:root {
  color-scheme: dark;
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.78);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber2: #fbbf24;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 28%), linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}
.nav-container {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber2), var(--amber));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}
.brand-name { font-size: 22px; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #cbd5e1;
  font-size: 15px;
}
.desktop-nav a:hover, .nav-dropdown:hover > a { color: var(--amber2); }
.nav-dropdown { position: relative; padding: 22px 0; }
.dropdown-panel {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 190px;
  transform: translateX(-50%) translateY(10px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}
.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}
.dropdown-panel a:hover { color: var(--amber2); background: rgba(51, 65, 85, 0.78); }
.nav-search { position: relative; width: min(290px, 28vw); }
.nav-search input, .filter-bar input, .filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
  outline: none;
}
.nav-search input { padding: 10px 42px 10px 18px; }
.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--amber2);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.nav-search input:focus, .filter-bar input:focus, .filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}
.mobile-toggle, .mobile-panel { display: none; }
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background: #020617;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 4.8s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 5%, rgba(2, 6, 23, 0.76) 45%, rgba(2, 6, 23, 0.3)), linear-gradient(to right, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.88));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 36px));
  text-align: center;
  padding: 84px 0 120px;
}
.hero-kicker, .section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--amber2);
  background: rgba(245, 158, 11, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 24px);
}
.hero-badges, .detail-meta, .movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges { justify-content: center; margin-bottom: 34px; }
.hero-badges span, .detail-meta span, .movie-meta-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
}
.hero-badges span, .detail-meta span { padding: 7px 14px; }
.movie-meta-line span { padding: 3px 8px; font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.btn-primary { color: #111827; background: linear-gradient(135deg, var(--amber2), var(--amber)); box-shadow: 0 16px 38px rgba(245, 158, 11, 0.34); }
.btn-ghost { border: 1px solid var(--line); color: #e2e8f0; background: rgba(15, 23, 42, 0.64); }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); }
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}
.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}
.hero-dots { display: flex; gap: 9px; }
.hero-dot { width: 11px; height: 11px; border: 0; border-radius: 50%; background: rgba(226, 232, 240, 0.46); cursor: pointer; }
.hero-dot.is-active { width: 30px; border-radius: 999px; background: var(--amber2); }
.section-wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}
.quick-panel { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.quick-copy h2, .section-heading h2, .page-hero h1, .detail-side h1, .detail-article h2 {
  margin: 12px 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.quick-copy h2 { font-size: clamp(30px, 4vw, 48px); }
.quick-copy p, .page-hero p, .detail-one-line, .detail-article p, .footer-container p { color: var(--muted); }
.quick-categories { display: flex; flex-wrap: wrap; gap: 12px; }
.category-pill {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
}
.category-pill:hover { color: var(--amber2); background: rgba(30, 41, 59, 0.86); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2 { font-size: clamp(28px, 3vw, 42px); }
.section-heading > a { color: var(--amber2); font-weight: 800; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.full-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.movie-card:hover { border-color: rgba(245, 158, 11, 0.42); transform: translateY(-6px); }
.poster-link { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #111827; }
.poster-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.42s ease, filter 0.42s ease; }
.movie-card:hover .poster-link img { filter: brightness(1.08); transform: scale(1.06); }
.poster-shade { position: absolute; inset: auto 0 0 0; height: 44%; background: linear-gradient(to top, rgba(2, 6, 23, 0.85), transparent); }
.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111827;
  background: var(--amber2);
}
.movie-card-body { padding: 16px; }
.movie-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.3; }
.movie-card h3 a:hover { color: var(--amber2); }
.movie-card p { min-height: 46px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { padding: 4px 9px; border-radius: 999px; color: #fde68a; background: rgba(245, 158, 11, 0.13); font-size: 12px; }
.large-tags span { padding: 7px 12px; font-size: 13px; }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rank-list-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rank-item {
  display: grid;
  grid-template-columns: 54px 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}
.rank-item:hover { background: rgba(30, 41, 59, 0.86); }
.rank-num { color: var(--amber2); font-size: 22px; font-weight: 900; }
.rank-item img { width: 56px; height: 78px; border-radius: 12px; object-fit: cover; }
.rank-title { font-weight: 800; }
.rank-meta { color: var(--muted); font-size: 13px; }
.page-hero { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 86px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(42px, 6vw, 70px); }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.category-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.18)); }
.category-card-content { position: absolute; inset: auto 20px 20px; display: grid; gap: 8px; }
.category-card strong { font-size: 24px; }
.category-card em { color: #cbd5e1; font-style: normal; font-size: 14px; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 14px; margin-bottom: 28px; }
.filter-bar-wide { grid-template-columns: minmax(0, 1.2fr) 180px 170px 170px; }
.filter-bar input, .filter-bar select { height: 48px; padding: 0 18px; }
.detail-main { padding-bottom: 40px; }
.breadcrumb {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a:hover { color: var(--amber2); }
.watch-section {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}
.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}
.player-shell video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.52));
  cursor: pointer;
}
.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber2), var(--amber));
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.34);
  font-size: 34px;
}
.play-layer.is-hidden { opacity: 0; pointer-events: none; }
.detail-side, .detail-article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}
.detail-side h1 { font-size: clamp(32px, 4vw, 50px); }
.detail-one-line, .detail-article p { font-size: 17px; }
.detail-meta { margin: 22px 0; }
.detail-article { max-width: 940px; }
.detail-article h2 { font-size: 28px; }
.site-footer { border-top: 1px solid var(--line); background: rgba(2, 6, 23, 0.84); }
.footer-container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
}
.footer-brand { color: var(--text); font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #cbd5e1; }
.footer-links a:hover { color: var(--amber2); }
.footer-bottom { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 30px; color: var(--muted); font-size: 14px; }
[data-card].is-filtered { display: none; }
@media (max-width: 1180px) {
  .movie-grid, .full-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid, .rank-list-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-section { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .desktop-nav, .nav-search { display: none; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: rgba(15, 23, 42, 0.8); }
  .mobile-panel { display: none; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: rgba(2, 6, 23, 0.96); }
  .mobile-panel.is-open { display: grid; gap: 10px; }
  .mobile-panel a { padding: 10px 0; color: #cbd5e1; }
  .quick-panel, .footer-container, .rank-list, .rank-list-large, .filter-bar, .filter-bar-wide { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 46px 52px 1fr; }
  .rank-meta { display: none; }
}
@media (max-width: 640px) {
  .nav-container { padding: 0 16px; }
  .brand-name { font-size: 18px; }
  .hero { min-height: 680px; }
  .hero-content { padding: 72px 0 112px; }
  .section-wrap, .page-hero, .breadcrumb, .watch-section, .footer-container, .footer-bottom { width: min(100% - 28px, 1280px); }
  .section-wrap { padding: 48px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .movie-grid, .full-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .movie-card-body { padding: 12px; }
  .movie-card h3 { font-size: 15px; }
  .movie-card p { display: none; }
  .player-shell, .detail-side, .detail-article { border-radius: 20px; }
  .play-layer span { width: 66px; height: 66px; font-size: 28px; }
}
