@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-deep: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
  --font-main: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(217, 119, 6, 0.14), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: var(--font-main);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.footer-brand,
.text-gradient {
  background: linear-gradient(135deg, #fbbf24, #f97316 48%, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav,
.category-strip {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav {
  margin-left: auto;
}

.category-strip {
  gap: 12px;
}

.nav-link,
.category-strip a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.category-strip a:hover,
.mobile-panel a:hover {
  color: var(--amber);
}

.category-strip a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #f8fafc;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-panel a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
}

.hero-shell {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 74px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-overlay,
.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.82) 40%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22) 0%, rgba(2, 6, 23, 0.82) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
  padding: 72px 0;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.pill-row,
.detail-tags,
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.pill-row span,
.detail-tags a,
.search-chips button {
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: #f8fafc;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.58);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  font-weight: 800;
}

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

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

.hero-dot.is-active {
  background: var(--amber);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 32px;
}

.quick-links a {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.66);
}

.section-block {
  padding: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.section-more {
  color: var(--amber);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-solid);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 82%);
}

.category-card:hover img {
  opacity: 0.48;
  transform: scale(1.08);
}

.category-card span,
.category-card small {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card small {
  margin-top: 6px;
  color: var(--muted);
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
  top: 12px;
}

.type-badge {
  right: 12px;
  top: 12px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
}

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

.movie-card-body h3 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card-body h3 a:hover,
.ranking-copy h3 a:hover,
.category-mini-links a:hover {
  color: var(--amber);
}

.movie-card-body p,
.ranking-copy p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 15%, rgba(245, 158, 11, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
}

.sub-hero p {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
}

.filter-search input,
.filter-selects select,
.search-box-large input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.filter-search input,
.search-box-large input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-selects select {
  min-width: 138px;
  padding: 0 12px;
}

.category-panels {
  display: grid;
  gap: 26px;
  padding: 42px 0 70px;
}

.category-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.category-panel-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 22px;
}

.category-panel-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-panel-copy h2 {
  margin: 0;
  font-size: 32px;
}

.category-panel-copy p {
  color: var(--muted);
}

.category-mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 24px;
  color: #cbd5e1;
}

.ranking-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 64px;
}

.ranking-grid.is-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

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

.ranking-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #fbbf24;
  font-weight: 900;
}

.ranking-kicker {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.ranking-copy h3 {
  margin: 6px 0 8px;
  font-size: 21px;
}

.search-panel {
  padding: 34px 0 70px;
}

.search-box-large {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
}

.search-box-large button,
.search-chips button {
  border: 0;
  cursor: pointer;
}

.search-box-large button {
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-weight: 900;
}

.search-chips {
  margin: 18px 0 28px;
}

.search-chips button {
  color: #fbbf24;
}

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

.detail-head {
  position: relative;
  z-index: 1;
  padding: 36px 0 64px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-tags {
  margin: 22px 0;
}

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

.detail-meta-grid span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.58);
}

.detail-main {
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.35);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #111827;
}

.player-overlay strong {
  max-width: 88%;
  font-size: 22px;
  text-align: center;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 28px;
}

.detail-article,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
}

.detail-article {
  padding: 28px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #dbeafe;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.side-card {
  padding: 24px;
  align-self: start;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
}

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

.related-grid .movie-card.is-compact .movie-card-body p {
  min-height: 0;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
}

.footer-brand {
  font-size: 26px;
  font-weight: 900;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .category-strip {
    display: none;
  }

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

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

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-content,
  .detail-layout,
  .detail-content-grid,
  .category-panel,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    font-size: clamp(34px, 11vw, 54px);
  }

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

  .detail-poster {
    max-width: 260px;
  }

  .detail-main {
    margin-top: -30px;
  }
}

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

  .hero-shell {
    min-height: 680px;
  }

  .quick-links {
    padding-top: 10px;
  }

  .movie-grid,
  .category-grid,
  .ranking-grid.is-preview,
  .category-mini-links,
  .detail-meta-grid,
  .search-box-large {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .movie-card-body h3,
  .ranking-copy h3 {
    font-size: 17px;
  }

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

  .category-panel-cover img {
    height: 120px;
  }
}
