/* ============================================================
   主题 1：暗色流媒体 · 海报墙
   与母版差异：整体深色、全宽 hero、海报墙卡片(标题悬浮)、
   频道渐变磁贴、榜单数字式、详情页深色
   ============================================================ */
:root {
  --bg: #0a0d14;
  --bg-2: #0e1220;
  --surface: #141a29;
  --surface-2: #1b2234;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edf0f8;
  --muted: #8b94a8;
  --accent: #ef395d;
  --accent-2: #f5653d;
  --accent-text: #f76e89;
  --accent-soft: rgba(239, 57, 93, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -6%, rgba(239, 57, 93, 0.12), transparent 32rem),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 36rem),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 38%, #080a10 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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(10, 13, 20, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.brand-text {
  font-size: 1.22rem;
  background: linear-gradient(90deg, var(--accent-text), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 0.93rem;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
  background: var(--accent-soft);
}

.top-search {
  width: min(300px, 26vw);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 6px 8px 12px;
  background: transparent;
  color: var(--text);
}

.top-search input::placeholder {
  color: var(--muted);
}

.top-search button,
.primary-btn,
.hero-search-card button {
  border: 0;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

/* ============ 全宽 Hero ============ */
.hero {
  width: 100%;
  margin: 0;
}

.hero-stage {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  background: #05070c;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: clamp(40px, 8vw, 120px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  filter: saturate(1.15);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 57, 93, 0.28), transparent 30rem),
    linear-gradient(90deg, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.42) 55%, rgba(5, 7, 12, 0.6)),
    linear-gradient(0deg, rgba(5, 7, 12, 0.95), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fff;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 8px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--accent-text);
}

.hero p {
  max-width: 720px;
  color: #c4ccda;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.ghost-btn.light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  display: none;
}

.hero-dots {
  position: absolute;
  left: clamp(40px, 8vw, 120px);
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
  width: 44px;
  background: var(--accent);
}

.hero-search-card {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 36px));
  margin: -52px auto 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(20, 26, 41, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.hero-search-card label {
  color: var(--accent-text);
  font-weight: 900;
}

.hero-search-card form div {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero-search-card input::placeholder {
  color: var(--muted);
}

.hero-search-card button {
  padding: 0 24px;
}

.hero-search-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-search-card nav a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ============ 分区 ============ */
.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 64px auto;
}

.section-heading,
.rank-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.rank-panel-head h2,
.detail-article h2,
.detail-side h2 {
  margin: 8px 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.text-btn {
  color: #fff;
  background: var(--accent-soft);
}

/* ============ 频道 · 渐变磁贴 ============ */
.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  filter: brightness(1.08);
}

.category-card:nth-child(10n + 1) { background: linear-gradient(135deg, #f43f5e, #9f1239); }
.category-card:nth-child(10n + 2) { background: linear-gradient(135deg, #f59e0b, #b45309); }
.category-card:nth-child(10n + 3) { background: linear-gradient(135deg, #10b981, #065f46); }
.category-card:nth-child(10n + 4) { background: linear-gradient(135deg, #0ea5e9, #075985); }
.category-card:nth-child(10n + 5) { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.category-card:nth-child(10n + 6) { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.category-card:nth-child(10n + 7) { background: linear-gradient(135deg, #84cc16, #3f6212); }
.category-card:nth-child(10n + 8) { background: linear-gradient(135deg, #ec4899, #831843); }
.category-card:nth-child(10n + 9) { background: linear-gradient(135deg, #14b8a6, #115e59); }
.category-card:nth-child(10n + 10) { background: linear-gradient(135deg, #6366f1, #312e81); }

.category-card span {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.category-card strong {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card em {
  display: none;
}

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

.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-overview-title {
  color: var(--accent-text);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-overview-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
  font-size: 0.95rem;
}

.category-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-overview-links a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 0.88rem;
}

/* ============ 电影 · 海报墙 ============ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.6);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1b2234, #0e1220);
}

.poster-frame img,
.rank-cover img,
.detail-poster img,
.hero-poster img {
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img,
.rank-item:hover .rank-cover img {
  transform: scale(1.07);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.82));
}

.poster-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

/* 海报墙：标题与信息悬浮在海报底部 */
.movie-card .card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 46px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.92));
}

.movie-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.movie-card .card-meta span {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.movie-card .card-title {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 800;
}

.movie-card .card-title a:hover {
  color: var(--accent-text);
}

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

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

/* ============ 横向 compact 卡片 ============ */
.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 3 / 4;
}

.movie-card.compact .poster-frame::after {
  display: none;
}

.movie-card.compact .poster-play {
  display: none;
}

.movie-card.compact .card-content {
  position: static;
  padding: 14px;
  background: transparent;
}

.movie-card.compact .card-meta {
  color: var(--muted);
  margin-bottom: 8px;
}

.movie-card.compact .card-meta span {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.movie-card.compact .card-title {
  color: var(--text);
  font-size: 0.98rem;
}

.movie-card.compact .card-title a:hover {
  color: var(--accent-text);
}

.movie-card.compact .card-desc {
  display: -webkit-box;
  min-height: 0;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 7px;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ============ 榜单 ============ */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.rank-panel-head {
  align-items: center;
  margin-bottom: 16px;
}

.rank-panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.4rem;
}

.rank-panel-head a {
  color: var(--accent-text);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.rank-number {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.rank-copy h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.rank-copy h2 a:hover {
  color: var(--accent-text);
}

.rank-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta span {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-list.mini .rank-item {
  grid-template-columns: 38px minmax(0, 1fr);
}

.rank-list.mini .rank-cover,
.rank-list.mini .rank-copy p,
.rank-list.mini .rank-meta span:nth-child(2) {
  display: none;
}

.rank-list.full .rank-item {
  grid-template-columns: 58px 112px minmax(0, 1fr);
  padding: 16px;
}

/* ============ 页面 Hero（榜单/搜索/分类/栏目） ============ */
.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 14%, rgba(239, 57, 93, 0.4), transparent 26rem),
    linear-gradient(135deg, #0e1220, #1b2234 55%, #23283d);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: clamp(34px, 6vw, 66px);
}

.page-hero .kicker {
  color: var(--accent-text);
}

.page-hero h1 {
  max-width: 860px;
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  color: #c4ccda;
  line-height: 1.9;
}

.category-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

/* ============ 筛选面板 ============ */
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter-panel select {
  background: var(--surface-2);
}

.filter-panel select option {
  background: var(--surface-2);
  color: var(--text);
}

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

/* ============ 面包屑 ============ */
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--accent-text);
  font-weight: 700;
}

/* ============ 详情页 ============ */
.detail-hero {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 50px);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.detail-copy h1 {
  margin: 14px 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-copy .kicker {
  color: var(--accent-text);
}

.lead {
  max-width: 820px;
  color: #c4ccda;
  font-size: 1.06rem;
  line-height: 1.9;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

.detail-tags {
  margin-bottom: 26px;
}

.watch-section {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: #05070c;
  box-shadow: var(--shadow);
}

.video-core {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.4), rgba(5, 7, 12, 0.82));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  font-size: 2rem;
}

.video-overlay strong {
  font-size: 1.1rem;
}

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

.detail-article,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.detail-article {
  padding: clamp(24px, 4vw, 42px);
}

.detail-article p {
  margin: 0 0 16px;
  color: #c4ccda;
  font-size: 1.02rem;
  line-height: 2;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.detail-side h2 {
  font-size: 1.4rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-side dd {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #080a10;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--accent-text);
  font-size: 1.2rem;
}

.site-footer p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}

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

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .top-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .compact-grid,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
    gap: 10px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .top-search {
    display: none;
  }

  .hero,
  .content-section,
  .page-hero,
  .detail-hero,
  .watch-section,
  .breadcrumb,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    width: 100%;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero-search-card {
    width: calc(100% - 18px);
    border-radius: 14px;
  }

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

  .hero-search-card form div {
    flex-direction: column;
  }

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

  .section-heading,
  .category-hero {
    display: block;
  }

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

  .movie-card.compact {
    grid-template-columns: 104px minmax(0, 1fr);
  }

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

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

  .rank-item,
  .rank-list.full .rank-item {
    grid-template-columns: 42px 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

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

  .video-shell {
    border-radius: 14px;
  }

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

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