
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.10);
  --brand: #dc2626;
  --brand-2: #7f1d1d;
  --brand-soft: rgba(220, 38, 38, 0.10);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #f6f7fb 18%, #f6f7fb 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 10px;
  flex: 1;
}
.nav a,
.nav summary,
.nav button {
  color: #334155;
  font-weight: 600;
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav a:hover,
.nav button:hover,
.nav summary:hover { color: var(--brand); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .22s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
}
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.searchbar {
  position: relative;
  width: min(360px, 100%);
}
.searchbar input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 48px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  outline: none;
  transition: .2s ease;
}
.searchbar input:focus {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.searchbar svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  max-height: 430px;
  overflow-y: auto;
}
.search-suggest.show { display: block; }
.search-suggest a {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.search-suggest a:hover { background: var(--surface-2); }
.search-suggest img { width: 52px; height: 74px; object-fit: cover; border-radius: 10px; }
.search-suggest strong { display: block; margin-bottom: 4px; }
.menu-button { display: none; }
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10), transparent 28%),
    linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #ef4444 100%);
  color: white;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.28));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 58px 0 46px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.06;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
  color: rgba(255,255,255,0.88);
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary { background: white; color: var(--brand-2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,0,0,0.12); }
.btn-outline { border-color: rgba(255,255,255,0.28); color: white; background: rgba(255,255,255,0.08); }
.btn-outline:hover { background: rgba(255,255,255,0.16); }
.hero-search {
  margin-top: 22px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 14px;
}
.hero-search label { display: block; font-size: .92rem; margin-bottom: 8px; color: rgba(255,255,255,0.85); }
.hero-search input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: rgba(255,255,255,0.96);
}
.section { padding: 26px 0 22px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.section-link { color: var(--brand); font-weight: 700; }
.section-link:hover { text-decoration: underline; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
  transition: transform .22s ease, box-shadow .22s ease;
  min-height: 100%;
}
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.movie-card .poster {
  aspect-ratio: 5 / 7;
  width: 100%;
  object-fit: cover;
  background: #e2e8f0;
}
.movie-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.movie-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
}
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.movie-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
}
.movie-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.3em;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-content: stretch;
}
.hero-card-grid .movie-card:first-child {
  grid-column: span 3;
  grid-row: span 2;
}
.hero-card-grid .movie-card:first-child .movie-title {
  font-size: 1.18rem;
  min-height: 2.9em;
}
.bento {
  display: grid;
  grid-template-columns: 1.3fr .9fr 1fr;
  gap: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 34px rgba(15,23,42,0.06);
  overflow: hidden;
}
.panel-pad { padding: 20px; }
.list-stack { display: grid; gap: 12px; }
.list-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background .2s ease;
}
.list-item:hover { background: #f8fafc; }
.list-item img { width: 84px; height: 118px; object-fit: cover; border-radius: 14px; }
.list-item h4 { margin: 0 0 6px; font-size: 1rem; }
.list-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.hscroll .movie-card { scroll-snap-align: start; }
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(15,23,42,0.10);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.timeline-item h4 { margin: 0 0 4px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.page-hero {
  padding: 30px 0 18px;
}
.page-hero-box {
  background: linear-gradient(135deg, #fff, #fff7f7);
  border: 1px solid rgba(220, 38, 38, 0.10);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}
.page-hero-box h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 3rem); }
.page-hero-box p { margin: 0; color: var(--muted); line-height: 1.7; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.filter-bar input,
.filter-bar select {
  min-width: 180px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  padding: 0 14px;
  outline: none;
}
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.stat strong { display: block; font-size: 1.65rem; margin-bottom: 6px; }
.stat span { color: var(--muted); }
.detail {
  padding: 28px 0 40px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
.poster-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}
.poster-frame img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.poster-actions {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.poster-actions .btn { box-shadow: 0 10px 22px rgba(0,0,0,0.15); }
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-card .inner { padding: 24px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.detail-title { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-box {
  background: #fff7f7;
  border: 1px solid rgba(220,38,38,0.12);
  border-radius: 20px;
  padding: 18px;
  line-height: 1.8;
  color: #334155;
}
.split-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 18px;
}
.panel-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.player-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  background: #0f172a;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.player-btn {
  pointer-events: auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.94);
  color: var(--brand-2);
  font-size: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 32px rgba(0,0,0,0.22);
  cursor: pointer;
}
.player-info {
  display: grid;
  gap: 12px;
}
.player-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.source-btn {
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.source-btn.active { border-color: rgba(220,38,38,0.28); background: var(--brand-soft); color: var(--brand); }
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.footer {
  margin-top: 30px;
  background: #0b1220;
  color: rgba(255,255,255,0.90);
}
.footer .container { padding: 28px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.footer h4 { margin: 0 0 10px; }
.footer p, .footer a { color: rgba(255,255,255,0.72); line-height: 1.7; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: .92rem;
}
.mobile-only { display: none; }
.hidden { display: none !important; }
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
@media (max-width: 1180px) {
  .hero-grid, .detail-grid, .bento, .split-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid, .recommend-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-card-grid .movie-card:first-child { grid-column: span 2; grid-row: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; margin-left: auto; }
  .searchbar { display: none; }
  .mobile-only { display: block; }
  .hero-inner { padding-top: 36px; }
  .feature-grid, .recommend-grid, .hero-card-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card-grid .movie-card:first-child { grid-column: span 2; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .hero-copy, .panel-pad, .page-hero-box .inner, .detail-card .inner { padding: 18px; }
  .feature-grid, .recommend-grid, .hero-card-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-card-grid .movie-card:first-child { grid-column: span 1; }
  .header-inner { gap: 12px; }
  .brand span:last-child { display: none; }
  .hero-actions .btn { width: 100%; }
}
