:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: rgba(30, 41, 59, 0.64);
  --panel-strong: rgba(15, 23, 42, 0.88);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --sky: #0ea5e9;
  --sky-strong: #0284c7;
  --radius: 22px;
  --shadow: 0 24px 90px rgba(2, 6, 23, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.13), transparent 32rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

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

.brand.small {
  font-size: 18px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.32);
  color: white;
  font-size: 13px;
}

.brand-text {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
}

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

.nav-link {
  color: var(--soft);
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: white;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
  background: rgba(30, 41, 59, 0.46);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.26)),
    linear-gradient(0deg, var(--bg), rgba(15, 23, 42, 0.14) 52%, rgba(15, 23, 42, 0.48));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  max-width: 1280px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: clamp(16px, 2.1vw, 20px);
}

.hero-meta,
.card-kicker,
.row-meta,
.breadcrumb,
.hero-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.hero-tags span,
.tag-line span,
.card-kicker span,
.card-kicker a,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span {
  padding: 7px 13px;
  background: rgba(14, 165, 233, 0.86);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span,
.tag-line span {
  padding: 4px 9px;
  background: rgba(51, 65, 85, 0.82);
  color: #dbeafe;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--sky);
  color: white;
  box-shadow: 0 16px 44px rgba(14, 165, 233, 0.26);
}

.btn.primary:hover {
  background: var(--sky-strong);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.44);
  color: white;
}

.btn.subtle {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.24);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--sky);
}

.content-section,
.page-section,
.detail-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 58px 0;
}

.page-section {
  padding: 48px 0 64px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
}

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

.compact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.54);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.poster {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.feature-large .poster {
  aspect-ratio: 16 / 9;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.quality,
.poster-tag {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.quality {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fbbf24;
}

.poster-tag {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-large .card-body strong {
  min-height: auto;
  font-size: 26px;
}

.card-body em,
.row-body em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-kicker {
  justify-content: space-between;
  color: #fbbf24;
  font-size: 12px;
}

.card-kicker span,
.card-kicker a {
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.72);
}

.movie-row {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.54);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.movie-row:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(30, 41, 59, 0.82);
}

.row-poster {
  flex: 0 0 132px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.row-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.row-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

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

.row-meta {
  color: #64748b;
  font-size: 12px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.rank-item {
  position: relative;
  padding-left: 36px;
}

.rank-number {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
  font-size: 18px;
  font-weight: 900;
}

.category-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), transparent),
    rgba(30, 41, 59, 0.58);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.36);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  color: white;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-card strong {
  color: #fbbf24;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 18px;
  margin: 26px 0 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.52);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(30, 41, 59, 0.9);
  color: white;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(14, 165, 233, 0.72);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.hidden-by-filter {
  display: none !important;
}

.breadcrumb {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 4px 9px;
  background: rgba(30, 41, 59, 0.48);
}

.detail-wrap {
  padding: 34px 0 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.18));
}

.play-layer.hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  color: white;
  box-shadow: 0 22px 58px rgba(14, 165, 233, 0.34);
  cursor: pointer;
  font-size: 28px;
  transition: transform 0.22s ease;
}

.play-layer:hover .play-button,
.play-button:hover {
  transform: scale(1.06);
}

.detail-title {
  padding: 22px 0 4px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

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

.detail-meta span,
.detail-meta a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.74);
  color: var(--soft);
  font-size: 13px;
}

.detail-meta a {
  color: #fbbf24;
}

.info-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.56);
}

.info-panel h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 22px;
}

.info-panel p {
  margin: 0;
  color: #cbd5e1;
}

.side-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.58);
}

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

.side-poster div {
  padding: 18px;
}

.side-poster h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.side-poster p {
  margin: 0;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.84);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand p,
.footer-links a,
.copyright {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fbbf24;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-grid,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ranking-grid,
  .category-grid,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .row-poster {
    flex-basis: 112px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body strong {
    font-size: 14px;
  }

  .row-poster {
    flex-basis: 98px;
  }

  .play-button {
    width: 68px;
    height: 68px;
  }
}
