.page-home {
  --home-bg: #0F1115;
  --home-bg-green: #1A2520;
  --home-bg-blue: #1E1F26;
  --home-card: #2C313A;
  --home-line: #3A3F45;
  --home-text: #EDEDED;
  --home-muted: #A8A8A8;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  background: linear-gradient(180deg, var(--home-bg-green) 0%, var(--home-bg) 100%);
  padding: 1.5rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-green), var(--electric-blue), var(--brand-orange));
  z-index: 2;
}

.page-home .hero-shell {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-home .hero-strip {
  order: -1;
  min-width: 0;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .breadcrumbs {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--electric-blue);
  letter-spacing: 0.06em;
}

.page-home .breadcrumb-current {
  color: var(--electric-blue);
}

.page-home h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--home-text);
}

.page-home .hero-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--home-muted);
  margin: 0 0 1rem;
  max-width: 34rem;
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .hero-meta-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--home-muted);
}

.page-home .hero-meta-item b {
  color: var(--neon-green);
  font-size: 1rem;
  font-weight: 700;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .btn {
  font-size: 0.88rem;
  font-weight: 700;
}

.page-home .hero-strip {
  background: rgba(15, 17, 21, 0.55);
  border: 1px solid var(--home-line);
  border-radius: 12px;
  padding: 1rem 0.75rem 0.75rem;
}

.page-home .strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.page-home .strip-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.08em;
}

.page-home .strip-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--electric-blue);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .strip-more:hover {
  color: var(--neon-green);
}

.page-home .update-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0.25rem 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .update-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .update-rail::-webkit-scrollbar-track {
  background: var(--home-bg);
  border-radius: 3px;
}

.page-home .update-rail::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 3px;
}

.page-home .update-card {
  flex: 0 0 138px;
  scroll-snap-align: start;
  background: var(--home-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.page-home .update-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-home .update-thumb {
  position: relative;
  aspect-ratio: 5 / 7;
  background: var(--home-bg-green);
  overflow: hidden;
}

.page-home .update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .update-day {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 17, 21, 0.82);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.page-home .update-day.day-yesterday {
  color: var(--brand-orange);
}

.page-home .update-day.day-old {
  color: var(--home-muted);
}

.page-home .update-info {
  padding: 0.65rem 0.7rem 0.75rem;
}

.page-home .update-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .update-ep {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-orange);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .ep-badge {
  display: inline-block;
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon-green);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: 1px;
}

.page-home .home-genres {
  background: var(--home-bg-blue);
  padding: 2.25rem 0 2.5rem;
  position: relative;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-genres::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--c-magenta), var(--electric-blue));
}

.page-home .section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.3rem;
}

.page-home .section-heading .section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--electric-blue);
  letter-spacing: 0.08em;
  margin: 0;
}

.page-home .section-heading h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 900;
  font-style: italic;
  color: var(--home-text);
  margin: 0;
}

.page-home .genre-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.page-home .genre-tile {
  --tile-bg: #A8A8A8;
  --tile-fg: #0F1115;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.9rem 0.85rem 0.75rem;
  background: var(--tile-bg);
  color: var(--tile-fg);
  text-decoration: none;
  border-radius: 6px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 108px;
}

.page-home .genre-tile:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.page-home .tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(15, 17, 21, 0.18);
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.page-home .tile-title {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

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

.page-home .tile-tag {
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.6;
  writing-mode: vertical-rl;
}

.page-home .home-boards {
  background: var(--home-bg);
  padding: 2.25rem 0 2.5rem;
}

.page-home .board-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.page-home .board-col {
  background: var(--home-bg-green);
  border-radius: 12px;
  padding: 1.1rem 1rem 1.25rem;
  border: 1px solid rgba(57, 255, 20, 0.18);
}

.page-home .board-ended {
  background: var(--home-bg-blue);
  border-color: rgba(179, 107, 255, 0.22);
}

.page-home .board-upcoming {
  background: var(--home-bg-green);
  border-color: rgba(255, 92, 92, 0.22);
}

.page-home .board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-home .board-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--home-muted);
}

.page-home .status-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.page-home .board-list {
  display: grid;
  gap: 0.65rem;
}

.page-home .board-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--home-card);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  transition: background 0.2s ease;
}

.page-home .board-item:hover {
  background: rgba(44, 49, 58, 0.75);
}

.page-home .board-thumb {
  flex: 0 0 56px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--home-bg);
  width: 56px;
  height: 74px;
}

.page-home .board-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .thumb-ended,
.page-home .thumb-upcoming {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 74px;
}

.page-home .thumb-ended {
  background: linear-gradient(135deg, rgba(179, 107, 255, 0.55) 0%, var(--home-bg) 100%);
}

.page-home .thumb-upcoming {
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.55) 0%, var(--home-bg) 100%);
}

.page-home .thumb-mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--home-text);
  letter-spacing: 0.08em;
}

.page-home .board-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.25rem;
}

.page-home .board-info p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--home-muted);
  margin: 0;
}

.page-home .home-schedule {
  background: var(--home-bg-green);
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  position: relative;
}

.page-home .home-schedule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--electric-blue), var(--c-magenta));
}

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

.page-home .schedule-day {
  background: rgba(15, 17, 21, 0.45);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 0.7rem 0.65rem;
  min-height: 104px;
}

.page-home .day-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.25);
}

.page-home .day-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.page-home .day-title {
  color: var(--home-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .day-ep {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--electric-blue);
  white-space: nowrap;
}

.page-home .weekend-note {
  color: var(--home-muted);
}

.page-home .home-ranking {
  background: var(--home-bg-blue);
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .rank-layout {
  display: grid;
  gap: 1.25rem;
}

.page-home .rank-list {
  display: grid;
  gap: 0.5rem;
}

.page-home .rank-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 17, 21, 0.55);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .rank-row:hover {
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(15, 17, 21, 0.85);
}

.page-home .rank-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-orange);
}

.page-home .rank-row:nth-child(1) .rank-num {
  color: var(--neon-green);
}

.page-home .rank-row:nth-child(2) .rank-num {
  color: var(--electric-blue);
}

.page-home .rank-row:nth-child(3) .rank-num {
  color: var(--c-magenta);
}

.page-home .rank-main {
  min-width: 0;
}

.page-home .rank-top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.page-home .rank-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--home-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .rank-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-blue);
  border: 1px solid rgba(74, 144, 226, 0.5);
  padding: 0 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.page-home .rank-value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-muted);
}

.page-home .metric-bar {
  display: block;
}

.page-home .metric-track {
  display: block;
  height: 5px;
  background: var(--home-bg);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .metric-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.page-home .rank-decor {
  display: none;
}

.page-home .rank-decor img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--home-line);
  display: block;
}

.page-home .home-tags {
  background: var(--home-bg);
  padding: 2.25rem 0 2.5rem;
}

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

.page-home .tag-cloud .tag {
  --tag-c: var(--brand-orange);
  font-family: var(--font-mono);
  text-decoration: none;
  border: 1px solid var(--tag-c);
  color: var(--tag-c);
  background: rgba(15, 17, 21, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .tag-cloud .tag:hover {
  background: var(--tag-c);
  color: var(--home-bg);
  transform: translateY(-2px);
}

.page-home .tag-cloud .tag-xl {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
}

.page-home .tag-cloud .tag-lg {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
}

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

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

.page-home .tag-cloud .tag-c1 { --tag-c: var(--brand-orange); }
.page-home .tag-cloud .tag-c2 { --tag-c: var(--c-blue); }
.page-home .tag-cloud .tag-c3 { --tag-c: var(--c-green); }
.page-home .tag-cloud .tag-c4 { --tag-c: var(--c-magenta); }
.page-home .tag-cloud .tag-c5 { --tag-c: var(--electric-blue); }
.page-home .tag-cloud .tag-c6 { --tag-c: var(--c-ended); }
.page-home .tag-cloud .tag-c7 { --tag-c: var(--c-upcoming); }

.page-home .home-entry {
  background: var(--home-bg-green);
  padding: 1.75rem 0 2rem;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.page-home .entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-home .chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--home-card);
  color: var(--home-text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--home-line);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .chip-link:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.45);
  transform: translateY(-2px);
}

.page-home .chip-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-green);
}

@media (min-width: 640px) {
  .page-home .genre-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-home .board-upcoming {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .page-home .hero-shell {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  }

  .page-home .hero-strip {
    order: 0;
  }

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

  .page-home .board-upcoming {
    grid-column: span 1;
  }

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

  .page-home .schedule-day {
    min-height: 150px;
  }

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

  .page-home .rank-decor {
    display: block;
    position: sticky;
    top: 7rem;
  }

  .page-home .rank-decor img {
    max-width: 280px;
  }
}

@media (min-width: 1200px) {
  .page-home .genre-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .update-card {
    flex-basis: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .genre-tile,
  .page-home .update-card,
  .page-home .chip-link,
  .page-home .tag-cloud .tag {
    transition: none;
    transform: none;
  }
}
