
:root {
  --bg: #f7fbff;
  --bg-soft: #eef6ff;
  --card: rgba(255,255,255,.88);
  --card-strong: #ffffff;
  --text: #132238;
  --muted: #5d6b82;
  --line: rgba(114, 147, 190, .18);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --blue-dark: #0f3d8c;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, .16);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1600px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 30%),
    radial-gradient(circle at top right, rgba(6,182,212,.10), transparent 24%),
    linear-gradient(180deg, #f9fcff 0%, #edf5ff 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
}
.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { min-width: 0; }
.brand-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav a, .nav button {
  border: 0;
  background: transparent;
  color: #344156;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav a:hover, .nav button:hover, .nav a.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 32px rgba(37,99,235,.25);
}
.nav-toggle { display: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}
.mobile-menu a {
  display: flex;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  color: #344156;
}
.mobile-menu a.active, .mobile-menu a:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}
.hero {
  padding: 22px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
  min-height: 78vh;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 560px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(11,18,35,.0) 0%, rgba(11,18,35,.78) 100%),
    linear-gradient(135deg, rgba(37,99,235,.65), rgba(6,182,212,.48)),
    var(--poster, linear-gradient(135deg, #1d4ed8, #06b6d4));
  background-size: cover, cover, cover;
  background-position: center, center, center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:hover { transform: translateY(-5px); }
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,.02), rgba(255,255,255,.10) 35%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-card .hero-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  z-index: 2;
  color: #fff;
}
.hero-card .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe08a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-card h2, .hero-card h3, .hero-card p { margin: 0; }
.hero-card h2 {
  font-size: 36px;
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 12px;
  max-width: 16ch;
}
.hero-card p {
  color: rgba(255,255,255,.86);
  line-height: 1.7;
  font-size: 15px;
  max-width: 55ch;
}
.hero-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  z-index: 2;
  transition: transform .25s ease;
}
.play-badge svg { width: 34px; height: 34px; margin-left: 4px; }
.hero-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }
.section {
  padding: 34px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}
.section-desc { color: var(--muted); margin: 8px 0 0; line-height: 1.7; }
.section-link {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
.search-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.75);
}
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}
.search-bar input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}
.search-bar input:focus { border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.btn {
  border: 0;
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  transition: .25s ease;
  font-weight: 700;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(37,99,235,.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(37,99,235,.28); }
.btn-ghost {
  background: rgba(15,23,42,.05);
  color: #233149;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #324056;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s ease;
}
.filter-chip.active, .filter-chip:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #fff;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-strong);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.movie-poster {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, rgba(8,15,30,.02), rgba(8,15,30,.35)),
    var(--poster, linear-gradient(135deg, #dbeafe, #cffafe));
  background-size: cover;
  background-position: center;
  position: relative;
}
.movie-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(8,15,30,.72) 100%);
}
.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(37,99,235,.92);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37,99,235,.24);
}
.hot-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245,158,11,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.movie-body { padding: 14px 14px 16px; }
.movie-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  color: #132238;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.movie-meta .mini {
  font-size: 12px;
  color: #53627b;
  background: rgba(37,99,235,.07);
  padding: 5px 8px;
  border-radius: 999px;
}
.movie-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: var(--shadow-lg);
}
.banner-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.banner h3 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 48px); line-height: 1.05; }
.banner p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.8; }
.banner-card {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(9,13,22,.02), rgba(9,13,22,.68)),
    var(--poster, linear-gradient(135deg, #0f172a, #1d4ed8));
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 56px rgba(15,23,42,.28);
  position: relative;
}
.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
}
.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: #fff;
  color: var(--blue);
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  padding: 20px;
}
.category-card h4 { margin: 0 0 10px; font-size: 20px; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.category-card .count {
  margin-top: 16px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: var(--blue);
  font-weight: 700;
}
.split {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 20px;
}
.panel {
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 18px 20px 0;
}
.panel-body { padding: 20px; }
.rank-list { display: grid; gap: 12px; }
.rank-item {
  display: grid;
  grid-template-columns: auto 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.06);
}
.rank-item .order {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
}
.rank-item .small-cover {
  width: 84px;
  aspect-ratio: 3/4;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8,15,30,.02), rgba(8,15,30,.36)),
    var(--poster, linear-gradient(135deg, #dbeafe, #cffafe));
  background-size: cover;
  background-position: center;
}
.rank-item h5 { margin: 0 0 6px; font-size: 15px; }
.rank-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.detail-hero {
  padding: 26px 0 0;
}
.detail-shell {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: start;
}
.player-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,15,30,.08), rgba(8,15,30,.78)),
    var(--poster, linear-gradient(135deg, #0f172a, #2563eb));
  background-size: cover;
  background-position: center;
  min-height: 540px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.88);
}
.player-shell video {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
  background: #000;
}
.player-shell .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7,11,23,.12), rgba(7,11,23,.30));
  z-index: 3;
  cursor: pointer;
  transition: opacity .2s ease;
}
.player-shell.is-playing .overlay { opacity: 0; pointer-events: none; }
.player-shell .overlay-btn {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 46px rgba(15,23,42,.22);
}
.player-shell .overlay-btn svg { width: 38px; height: 38px; margin-left: 5px; }
.info-card {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--blue); }
.detail-title { margin: 0 0 12px; font-size: clamp(28px, 3vw, 46px); line-height: 1.08; font-weight: 900; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.detail-section { margin-top: 20px; }
.detail-section h3 { margin: 0 0 12px; font-size: 20px; }
.detail-section p { margin: 0; color: #334155; line-height: 1.9; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 13px;
}
.related-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.footer {
  padding: 30px 0 56px;
  color: var(--muted);
}
.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--blue); }
.empty-state {
  padding: 30px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px dashed rgba(37,99,235,.25);
  color: var(--muted);
}
[data-hidden="true"] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
@media (max-width: 1300px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-card:first-child { grid-column: 1 / -1; min-height: 460px; }
  .detail-shell, .banner-inner, .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar-inner { min-height: 72px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-card, .hero-card:first-child { min-height: 420px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: auto 72px 1fr; }
  .rank-item .rank-link { grid-column: 1 / -1; }
  .player-shell, .player-shell video { min-height: 360px; }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .brand-title { font-size: 18px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .hero-card h2 { font-size: 28px; }
  .movie-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .banner { padding: 20px; }
  .player-shell, .player-shell video { min-height: 260px; }
}
