:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber-2: #f97316;
  --rose: #fb7185;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

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

img,
video {
  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: 60;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

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

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  border-radius: 12px;
  padding: 10px 16px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  transform: translateY(-1px);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.08);
}

.header-search:hover {
  background: rgba(245, 158, 11, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 10px;
  padding: 14px 0 20px;
}

.mobile-links .nav-link {
  display: block;
}

.mobile-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-strip a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 46%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: center;
  gap: 54px;
  padding: 58px 0 76px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 999px;
  padding: 7px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 22px 0 16px;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #fde68a 54%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-movie-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 44px);
}

.hero-desc {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.btn-secondary {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  background: rgba(15, 23, 42, 0.68);
}

.btn-ghost {
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.78);
  font-size: 13px;
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster-card div {
  position: absolute;
  inset: auto 18px 18px 18px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-poster-card em {
  color: #fbbf24;
  font-style: normal;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.page-hero {
  padding: 64px 0 44px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 38px);
}

.section-head a {
  color: #fbbf24;
  font-weight: 700;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 24px 50px rgba(245, 158, 11, 0.16);
  transform: translateY(-6px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.45);
}

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.quality-badge {
  right: 12px;
  background: rgba(2, 6, 23, 0.82);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: #fbbf24;
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row,
.movie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.score {
  color: #fbbf24;
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.side-panel h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.horizontal-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: rgba(30, 41, 59, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  background: rgba(51, 65, 85, 0.88);
  transform: translateX(4px);
}

.horizontal-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.horizontal-thumb img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.horizontal-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.28);
}

.horizontal-body {
  min-width: 0;
}

.horizontal-body strong,
.horizontal-body em,
.horizontal-body small {
  display: block;
}

.horizontal-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-body em {
  margin: 5px 0;
  color: #fbbf24;
  font-size: 12px;
  font-style: normal;
}

.horizontal-body small {
  color: var(--muted);
  line-height: 1.45;
}

.mini-rank {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.category-tile::before {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.36), transparent 68%);
  content: "";
}

.category-tile strong {
  position: relative;
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.category-tile p {
  position: relative;
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-tile span {
  position: relative;
  color: #fbbf24;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(30, 41, 59, 0.92);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.62);
}

.result-note {
  margin: 0 0 22px;
  color: var(--muted);
}

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

.breadcrumb a {
  color: #fbbf24;
}

.detail-hero {
  padding: 46px 0 34px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.24), transparent 38rem);
  border-bottom: 1px solid var(--line);
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-desc {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.84);
  color: #dbeafe;
}

.watch-section {
  padding: 42px 0 26px;
}

.watch-shell {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.watch-area {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.watch-area video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.watch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.28)),
    rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.watch-overlay.is-hidden {
  display: none;
}

.watch-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #fff;
  font-size: 30px;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.45);
  cursor: pointer;
}

.watch-caption {
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.watch-caption h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.watch-caption p {
  margin: 0;
  color: var(--muted);
}

.article-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.72);
  line-height: 1.9;
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

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

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

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

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.82);
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.78);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted-2);
  text-align: center;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 20px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.three,
  .category-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    gap: 28px;
    align-items: end;
    padding-top: 38px;
  }

  .hero-poster-card {
    max-width: 320px;
    transform: none;
  }

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

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

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

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

  .hero,
  .hero-stage,
  .hero-content {
    min-height: 720px;
  }

  .movie-grid,
  .movie-grid.three,
  .category-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h2 {
    font-size: 16px;
  }

  .horizontal-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .horizontal-thumb img {
    width: 84px;
  }

  .mini-rank {
    display: none;
  }

  .category-tile {
    min-height: 168px;
  }

  .watch-button {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid.three,
  .category-showcase {
    grid-template-columns: 1fr;
  }
}
