.page-home {
  --card-pink: #FF99CC;
  --card-mint: #7ED9A8;
  --card-violet: #B28DFF;
  --card-peach: #FFB380;
  --card-cyan: #66E0E0;
  --timetable-bg: #CC3399;
  --hotlist-bg: #FFE135;
  --replay-bg: #1E3A8A;
  --tagcloud-bg: #66CCFF;
  background: linear-gradient(160deg, #FFB84D 0%, #FFF8F0 40%, #FFE135 100%);
  min-height: 70vh;
}

.page-home .home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 70vh;
}

.page-home .home-sidebar {
  background: #1A1A1A;
  color: #FFF8F0;
  padding: 18px 16px;
  position: relative;
  z-index: 2;
}

.page-home .home-h1 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
  color: #FFE135;
}

.page-home .home-h1-sub {
  display: block;
  font-size: 0.95rem;
  color: #FF6600;
  letter-spacing: 0.06em;
}

.page-home .home-tagline {
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: rgba(255, 248, 240, 0.72);
  letter-spacing: 0.12em;
}

.page-home .home-dir {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.page-home .home-dir-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFF8F0;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.page-home .home-dir-link:hover {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.4);
}

.page-home .home-dir-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #66CCFF;
  background: rgba(102, 204, 255, 0.14);
  border-radius: 999px;
  padding: 1px 8px;
}

.page-home .home-dir-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FF6600;
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  margin: 2px 0 12px;
}

.page-home .home-dir-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: rgba(255, 248, 240, 0.82);
}

.page-home .home-dir-note-text {
  font-family: var(--font-mono);
}

.page-home .home-sidebar-faq {
  display: block;
  color: #66CCFF;
  font-size: 0.75rem;
  text-decoration: none;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .home-main {
  min-width: 0;
  padding: 12px 12px 24px;
}

.page-home .home-section {
  padding: 18px 14px;
  border-radius: 14px;
  margin: 0 0 16px;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.14);
}

.page-home .channel-section {
  background: linear-gradient(145deg, #FFB84D 0%, #FFD991 55%, #FFE135 100%);
}

.page-home .timetable-section {
  background: #CC3399;
  color: #FFFFFF;
}

.page-home .hotlist-section {
  background: #FFE135;
}

.page-home .replay-section {
  background: #1E3A8A;
  color: #FFFFFF;
}

.page-home .tile-section {
  background: #FFF8F0;
}

.page-home .tagcloud-section {
  background: #66CCFF;
}

.page-home .timetable-section .section-heading-mark,
.page-home .timetable-section .section-heading-more,
.page-home .replay-section .section-heading-mark,
.page-home .replay-section .section-heading-more {
  color: #FFFFFF;
}

.page-home .channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .channel-card {
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .channel-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.16);
}

.page-home .channel-card-link {
  text-decoration: none;
  color: #1A1A1A;
}

.page-home .channel-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-home .channel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .channel-card-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .channel-card-1 .channel-card-media {
  background: linear-gradient(135deg, #FFB84D, #FF6600);
}

.page-home .channel-card-2 .channel-card-media {
  background: linear-gradient(135deg, #FFE135, #FFB84D);
}

.page-home .channel-card-3 .channel-card-media {
  background: linear-gradient(135deg, #66CCFF, #1E3A8A);
}

.page-home .channel-card-4 .channel-card-media {
  background: linear-gradient(135deg, #99CC33, #33CC99);
}

.page-home .channel-card-5 .channel-card-media {
  background: linear-gradient(135deg, #FFB84D, #FF6600);
}

.page-home .channel-card-6 .channel-card-media {
  background: linear-gradient(135deg, #B28DFF, #9B59B6);
}

.page-home .channel-card-7 .channel-card-media {
  background: linear-gradient(135deg, #FF99CC, #CC3399);
}

.page-home .channel-card-8 .channel-card-media {
  background: linear-gradient(135deg, #66E0E0, #33CC99);
}

.page-home .channel-clarity {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.72);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.page-home .channel-card-media .badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
}

.page-home .channel-card-body {
  padding: 10px;
}

.page-home .channel-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-home .channel-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.page-home .timetable-banner {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
}

.page-home .schedule-grid {
  display: grid;
  gap: 6px;
}

.page-home .schedule-row {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.page-home .schedule-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
}

.page-home .schedule-time .text-mono {
  font-size: 0.72rem;
  opacity: 0.85;
}

.page-home .schedule-blocks {
  display: grid;
  gap: 8px;
}

.page-home .schedule-block {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-home .schedule-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #FFFFFF;
}

.page-home .schedule-channel {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 1px 8px;
}

.page-home .hot-layout {
  display: grid;
  gap: 14px;
}

.page-home .hotrank-list {
  display: grid;
  gap: 6px;
}

.page-home .hot-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 7px 10px;
}

.page-home .hot-rank {
  font-weight: 800;
  font-size: 0.85rem;
  color: #FF6600;
}

.page-home .hot-name {
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hot-name:hover {
  color: #FF6600;
}

.page-home .hot-indicator {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) 34px;
  align-items: center;
  gap: 6px;
}

.page-home .hot-indicator .indicator-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .hot-indicator .indicator-fill {
  height: 100%;
  border-radius: 999px;
}

.page-home .hot-indicator .indicator-fill.is-purple {
  background: #9B59B6;
}

.page-home .hot-indicator .indicator-fill.is-red {
  background: #FF3143;
}

.page-home .hot-indicator .indicator-fill.is-yellow {
  background: #FFB84D;
}

.page-home .hot-indicator .indicator-fill.is-green {
  background: #99CC33;
}

.page-home .hot-indicator .indicator-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1A1A1A;
}

.page-home .hot-illust {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

.page-home .replay-list {
  display: grid;
  gap: 6px;
}

.page-home .replay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
}

.page-home .replay-row-featured {
  background: rgba(255, 255, 255, 0.16);
}

.page-home .replay-row-featured img {
  width: 90px;
  height: 51px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.page-home .replay-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .replay-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #FFFFFF;
}

.page-home .replay-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08);
  text-decoration: none;
  color: #1A1A1A;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 26, 26, 0.12);
}

.page-home .tile-label {
  font-weight: 800;
  font-size: 0.86rem;
}

.page-home .tile-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.85;
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-home .cloud-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.78);
  color: #1A1A1A;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.page-home .cloud-tag:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.95);
}

.page-home .cloud-sm {
  font-size: 0.7rem;
}

.page-home .cloud-md {
  font-size: 0.8rem;
}

.page-home .cloud-lg {
  font-size: 0.9rem;
}

.page-home .cloud-xl {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .page-home .home-main {
    padding: 16px 16px 28px;
  }

  .page-home .home-section {
    padding: 22px 20px;
    margin-bottom: 20px;
  }

  .page-home .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .replay-row-featured img {
    width: 120px;
    height: 68px;
  }

  .page-home .schedule-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .page-home .schedule-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hot-layout {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }

  .page-home .hot-illust {
    margin: 0;
    position: sticky;
    top: 20px;
  }
}

@media (min-width: 960px) {
  .page-home .home-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .page-home .home-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
  }

  .page-home .home-main {
    padding: 20px 22px 32px;
  }

  .page-home .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .replay-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .page-home .replay-row-featured img {
    width: 140px;
    height: 79px;
  }
}
