:root {
  --bg: #080b12;
  --bg-soft: #101522;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(20, 26, 39, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #fb923c;
  --orange-strong: #f97316;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-strong), var(--cyan-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.24);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, var(--orange), #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--muted-strong);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

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

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.24), transparent 42%, rgba(8, 145, 178, 0.22));
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.28;
}

.hero-glow-one {
  left: -120px;
  top: 120px;
  background: var(--orange-strong);
}

.hero-glow-two {
  right: -140px;
  bottom: 40px;
  background: var(--cyan-strong);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.5rem, 9vw, 7.6rem);
  background: linear-gradient(90deg, var(--orange), #fff 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-search,
.filter-panel {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search {
  width: min(640px, 100%);
  margin: 30px 0 0;
  padding: 8px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.hero-search input {
  padding: 13px 14px;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.55);
}

.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-strong), var(--cyan-strong));
  cursor: pointer;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.hero-tags a,
.tag-row span {
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(251, 146, 60, 0.08);
}

.hero-tags a {
  padding: 8px 12px;
}

.hero-tags a:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange-strong), var(--cyan-strong));
  color: #fff;
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.22);
}

.btn-ghost,
.btn-soft {
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-soft {
  min-height: 42px;
  cursor: pointer;
}

.hero-showcase {
  position: relative;
}

.hero-frame {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.88), rgba(8, 13, 25, 0.94));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-art {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.3), rgba(34, 211, 238, 0.2));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 18, 0.96), transparent 66%);
}

.hero-slide-copy {
  position: relative;
  z-index: 2;
  padding: 0 28px 28px;
  margin-top: -88px;
}

.hero-rank {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.16);
  color: var(--orange);
  font-weight: 800;
}

.hero-slide-copy h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.hero-slide-copy p {
  margin: 0 0 14px;
  color: var(--muted-strong);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.page-main,
.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-main {
  padding-top: 28px;
}

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

.compact-section {
  padding-top: 34px;
}

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

.section-heading h2,
.page-hero h1,
.text-card h2 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
}

.text-link:hover {
  color: #fff;
}

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

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

.category-tile,
.category-overview-card,
.movie-card,
.rank-card,
.text-card,
.player-card,
.page-hero,
.detail-hero {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 160px;
  padding: 20px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-tile span {
  color: var(--muted-strong);
}

.category-tile strong {
  font-size: 2.2rem;
  color: var(--text);
}

.category-tile p,
.category-overview-card p,
.movie-card p,
.rank-card p,
.text-card p,
.page-hero p {
  color: var(--muted-strong);
}

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.3), rgba(34, 211, 238, 0.18)),
    #111827;
}

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

.movie-card:hover .poster img,
.category-sample:hover img,
.rank-card:hover .rank-cover img {
  transform: scale(1.06);
}

.poster-fallback::before,
.hero-art.poster-fallback::before,
.rank-cover.poster-fallback::before,
.category-sample.poster-fallback::before {
  content: attr(data-title);
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 3.1em;
  font-size: 0.88rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.breadcrumb em {
  color: rgba(148, 163, 184, 0.42);
  font-style: normal;
}

.page-hero {
  margin-top: 24px;
  padding: clamp(28px, 6vw, 54px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.2), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 25rem),
    var(--panel);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
}

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

.category-overview-card {
  border-radius: 26px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.category-sample,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.22), rgba(34, 211, 238, 0.16));
}

.category-sample {
  aspect-ratio: 2 / 3;
}

.category-sample img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
}

.filter-panel label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-top: 14px;
  align-items: end;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-number {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(251, 146, 60, 0.12);
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 2 / 3;
}

.rank-body h2 {
  margin: 6px 0;
  font-size: 1.22rem;
}

.rank-body p {
  margin: 0;
}

.rank-score {
  text-align: center;
}

.rank-score strong {
  display: block;
  color: var(--cyan);
  font-size: 1.5rem;
}

.rank-score span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-main {
  width: min(1120px, calc(100% - 32px));
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  margin-top: 24px;
  padding: 26px;
  border-radius: 30px;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.detail-one-line {
  margin: 18px 0;
  color: var(--muted-strong);
  font-size: 1.12rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-tags span {
  font-size: 0.82rem;
}

.detail-actions {
  margin-top: 24px;
}

.player-card {
  position: relative;
  padding: 16px;
  border-radius: 28px;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-strong), var(--cyan-strong));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.44);
}

.player-start.is-hidden {
  display: none;
}

.player-note {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.text-card {
  padding: 24px;
  border-radius: 24px;
}

.text-card h2 {
  font-size: 1.45rem;
}

.text-card p {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.84);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 40px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

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

.footer-links h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--orange);
}

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

@media (max-width: 1050px) {
  .hero-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 520px;
  }

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

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

  .detail-poster {
    width: min(320px, 100%);
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0;
    gap: 36px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    min-height: 44px;
  }

  .hero-frame {
    min-height: 500px;
    border-radius: 24px;
  }

  .section-heading,
  .category-overview-head {
    display: grid;
    align-items: start;
  }

  .category-grid,
  .category-overview-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 2 / -1;
    display: flex;
    gap: 8px;
    text-align: left;
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page-main,
  .content-section,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .mobile-panel.is-open {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-slide-copy {
    padding: 0 18px 22px;
  }

  .hero-slide-copy h2 {
    font-size: 1.55rem;
  }

  .movie-grid,
  .movie-grid-wide {
    gap: 12px;
  }

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

  .player-start {
    width: 70px;
    height: 70px;
  }
}
