* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-deep: #020617;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #f59e0b;
  --accent-strong: #f97316;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
}

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

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

.image-missing {
  opacity: 0;
}

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

.header-inner,
.footer-inner,
.section-wrap,
.page-hero,
.detail-inner,
.home-search-band,
.hero-carousel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111827;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

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

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

.nav-link {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 36px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slides,
.hero-slide,
.hero-backdrop,
.hero-backdrop:after {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 86px 74px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-backdrop {
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) saturate(130%);
  transform: scale(1.12);
  opacity: 0.36;
}

.hero-backdrop:after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 52%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 45%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-heading span,
.panel-title span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.28);
}

.button-ghost {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  aspect-ratio: 3 / 4.28;
}

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

.hero-dots {
  position: absolute;
  left: 74px;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.home-search-band,
.page-hero {
  margin-top: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.58));
  box-shadow: var(--shadow);
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
}

.large-search,
.search-control-panel {
  display: flex;
  gap: 12px;
}

.large-search input,
.search-control-panel input,
.filter-bar input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.large-search input:focus,
.search-control-panel input:focus,
.filter-bar input:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.section-wrap {
  padding: 74px 0 0;
}

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

.section-heading h2,
.panel-title h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #fbbf24;
  font-weight: 800;
}

.narrow-heading,
.inline-heading {
  display: block;
  margin-bottom: 0;
}

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

.category-tile,
.category-page-tile {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
}

.category-tile strong,
.category-page-tile span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile em,
.category-page-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-tile img,
.category-page-tile img {
  position: absolute;
  right: -10px;
  bottom: -22px;
  width: 118px;
  height: 158px;
  border-radius: 18px;
  object-fit: cover;
  opacity: 0.22;
  transform: rotate(8deg);
}

.category-glow {
  position: absolute;
  inset: auto -30px -60px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.24);
  filter: blur(30px);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 28px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111827;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 17px;
  line-height: 1.32;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row span {
  padding: 5px 8px;
  color: #fef3c7;
  font-size: 11px;
}

.ranking-panel,
.side-card,
.article-card,
.player-card,
.search-control-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.rank-number {
  color: #fbbf24;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-meta {
  grid-column: 2;
  color: var(--dim);
  font-size: 12px;
}

.full-button {
  width: 100%;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  min-height: 330px;
}

.small-hero {
  display: block;
  min-height: 240px;
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.category-hero img {
  width: 240px;
  aspect-ratio: 3 / 4.2;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.filter-bar {
  margin-bottom: 24px;
}

.search-layout {
  padding-top: 34px;
}

.search-control-panel {
  display: block;
  margin-bottom: 26px;
  padding: 20px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.search-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.52);
  cursor: pointer;
}

.wide-rank-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.wide-rank-poster img {
  width: 118px;
  aspect-ratio: 3 / 4.2;
  border-radius: 16px;
  object-fit: cover;
}

.wide-rank-body h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.wide-rank-body p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-bg,
.detail-bg:after {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) saturate(120%);
  transform: scale(1.12);
  opacity: 0.34;
}

.detail-bg:after {
  content: "";
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 56%, rgba(2, 6, 23, 0.48) 100%),
    linear-gradient(0deg, #020617 0%, transparent 55%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 78px 0 54px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 30px;
  aspect-ratio: 3 / 4.2;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px;
  padding-top: 0;
}

.player-card,
.article-card,
.side-card {
  margin-bottom: 24px;
  padding: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 55px rgba(245, 158, 11, 0.4);
  font-size: 30px;
  transform: translateX(2px);
}

.play-overlay.is-hidden {
  display: none;
}

.player-card h2,
.article-card h2,
.side-card h2 {
  margin: 18px 0 12px;
}

.player-card p,
.article-card p {
  color: #cbd5e1;
  line-height: 1.9;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--dim);
}

.side-card dd {
  margin: 0;
  color: #e2e8f0;
}

.prev-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prev-next-links a {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.74);
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 110px;
  color: var(--muted);
}

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

.footer-links a {
  color: #e2e8f0;
}

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    background: rgba(2, 6, 23, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-carousel {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 40px 24px 82px;
  }

  .hero-poster {
    width: 210px;
    margin: 0 auto;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

  .home-search-band,
  .page-hero,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding-top: 42px;
  }

  .detail-poster,
  .category-hero img {
    width: min(260px, 78vw);
  }

  .large-search {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .section-wrap,
  .page-hero,
  .detail-inner,
  .home-search-band,
  .hero-carousel {
    width: min(100% - 22px, 1280px);
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

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

  .category-tile,
  .category-page-tile,
  .home-search-band,
  .page-hero {
    padding: 22px;
  }

  .movie-card-body {
    padding: 11px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .wide-rank-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .wide-rank-poster img {
    width: 82px;
  }

  .wide-rank-body h2 {
    font-size: 18px;
  }

  .wide-rank-body p {
    display: none;
  }

  .detail-layout,
  .prev-next-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    padding: 24px 0;
  }
}
