:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: rgba(18, 18, 24, 0.78);
  --panel-strong: rgba(26, 25, 32, 0.94);
  --text: #f8fafc;
  --muted: #a8b0c2;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f5c451;
  --orange: #f97316;
  --red: #e11d48;
  --violet: #7c3aed;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 0, rgba(245, 196, 81, 0.12), transparent 30rem),
    linear-gradient(135deg, #050507 0%, #101018 45%, #060609 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange) 54%, var(--gold));
  box-shadow: 0 14px 38px rgba(225, 29, 72, 0.35);
}

.brand-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  width: min(360px, 34vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.page-filter input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.header-search input::placeholder,
.page-filter input::placeholder {
  color: #747d91;
}

.header-search button,
.page-filter button {
  border: 0;
  border-radius: 999px;
  color: #17120b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  cursor: pointer;
}

.header-search button {
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav,
.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.mobile-panel a,
.mobile-cats a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.95) 0%, rgba(5, 5, 7, 0.7) 46%, rgba(5, 5, 7, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%, rgba(5, 5, 7, 0.65) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 44px;
  align-items: center;
  padding: 92px 0 76px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker,
.page-hero span,
.panel-head span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-line {
  margin: 22px 0 0;
  color: #d1d5e5;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e9edf8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-btn,
.wide-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 13px 22px;
  color: #180f09;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  padding: 12px 20px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.wide-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  width: min(360px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  color: #190d09;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 99px;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.content-section {
  padding: 72px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head h2,
.panel-head h2,
.story-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.text-btn,
.wide-link {
  padding: 11px 16px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  color: var(--gold);
  background: rgba(245, 196, 81, 0.08);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 196, 81, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.048));
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #171720, #09090d);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7));
}

.poster-play {
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 8px 0;
  overflow: hidden;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .card-body h2 {
  min-height: 42px;
  font-size: 16px;
}

.compact-card .card-body p {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.spotlight-panel,
.ranking-panel,
.story-card,
.rank-board,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.spotlight-panel,
.ranking-panel {
  padding: 24px;
}

.category-grid,
.overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  border-color: rgba(245, 196, 81, 0.3);
  transform: translateY(-3px);
}

.tile-posters,
.overview-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.tile-posters img,
.overview-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile span,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.ranking-list,
.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a,
.rank-row a {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-list a {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
}

.ranking-list a:hover,
.rank-row a:hover {
  border-color: rgba(245, 196, 81, 0.32);
  transform: translateX(4px);
}

.ranking-list span,
.rank-num {
  color: var(--gold);
  font-weight: 900;
}

.ranking-list strong,
.rank-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em,
.rank-main em,
.mini-card em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-link {
  width: 100%;
  margin-top: 14px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
  border-color: rgba(245, 196, 81, 0.3);
  transform: translateY(-3px);
}

.mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  padding: 86px 0 28px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 800px;
}

.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.page-filter input {
  padding: 0 14px;
}

.page-filter button {
  padding: 11px 18px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 36px 0 72px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card span {
  color: var(--gold);
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 26px;
}

.featured-strip {
  margin-top: -20px;
}

.rank-row a {
  grid-template-columns: 48px 70px minmax(0, 1fr) auto;
  padding: 10px 14px;
}

.rank-row img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(36px, 6vw, 70px);
}

.player-section {
  padding-top: 36px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.26);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #180f09;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  font-size: 28px;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 32px;
}

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 16px 0 0;
  color: #d7dce9;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) minmax(180px, 0.6fr);
  gap: 28px;
  padding: 44px 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: #7f8798;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-grid,
  .detail-grid,
  .detail-content,
  .overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
    padding: 74px 0 92px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 36px 58px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .page-filter {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .page-filter input {
    padding: 12px 14px;
  }

  .mobile-panel nav,
  .mobile-cats {
    grid-template-columns: 1fr;
  }

  .video-overlay span {
    width: 68px;
    height: 68px;
  }
}
