* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-strong: #f97316;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --cyan: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 36rem),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.nav-wrap {
  width: min(100% - 32px, var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.nav-search input,
.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding: 10px 14px;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.nav-search button,
.hero-search button {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  width: min(100% - 32px, var(--max));
  min-height: 720px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-bg-orb-one {
  width: 300px;
  height: 300px;
  left: -100px;
  top: -120px;
  background: rgba(56, 189, 248, 0.20);
}

.hero-bg-orb-two {
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -140px;
  background: rgba(249, 115, 22, 0.18);
}

.hero-slider {
  position: relative;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 72px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

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

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

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

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.62);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(145deg, #1e293b, #020617);
}

.hero-poster span,
.side-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0 72px 42px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.45);
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.hero-search {
  display: flex;
  gap: 10px;
}

.hero-search input {
  min-height: 48px;
  padding: 0 18px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero-quick-links a {
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  padding: 8px 12px;
  font-size: 13px;
}

.hero-mini-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 72px 56px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(10px);
}

.hero-mini-card img {
  width: 52px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(145deg, #1e293b, #020617);
}

.hero-mini-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section,
.detail-wrap,
.inner-hero {
  width: min(100% - 32px, var(--max));
  margin: 48px auto;
}

.inner-hero {
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
}

.inner-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

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

.section-head-compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 12px 0 6px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: var(--bg-card-strong);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b, #020617);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(145deg, #1e293b, #020617);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

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

.poster.media-empty,
.hero-mini-card.media-empty,
.side-poster.media-empty {
  min-height: 260px;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.24), transparent 8rem),
    linear-gradient(145deg, #1e293b, #020617);
}

.poster-gradient {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  font-style: normal;
  font-weight: 900;
}

.movie-card-body {
  padding: 15px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-line span {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.32);
  padding: 4px 8px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #fde68a;
}

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

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.filter-board,
.detail-content,
.player-card,
.detail-side .side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.rank-panel-head h2 {
  margin: 12px 0 18px;
  font-size: 28px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-list a,
.side-box a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.rank-list a:last-child,
.side-box a:last-child {
  border-bottom: 0;
}

.rank-list b {
  color: #fbbf24;
}

.rank-list span,
.side-box span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em,
.side-box em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 12rem),
    linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(2, 6, 23, 0.82));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.filter-board {
  margin-bottom: 22px;
  padding: 22px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.detail-wrap {
  margin-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

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

.player-card {
  overflow: hidden;
  background: #000;
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-status {
  display: none;
  color: var(--text-soft);
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.92);
}

.player-status.is-visible {
  display: block;
}

.detail-content {
  margin-top: 18px;
  padding: 30px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead-text {
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  margin: 20px 0 28px;
}

.detail-content h2 {
  margin: 30px 0 12px;
  color: #fde68a;
  font-size: 23px;
}

.detail-content p {
  color: var(--text-soft);
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.side-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #1e293b, #020617);
}

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

.side-box {
  padding: 20px;
}

.side-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.84);
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 17px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
}

.footer-grid a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: #64748b;
  text-align: center;
}

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 54px;
  }

  .hero-bottom,
  .hero-mini-row {
    padding-left: 54px;
    padding-right: 54px;
  }

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

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav,
  .nav-search {
    display: none;
  }

  .main-nav.is-open,
  .nav-search.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    top: 70px;
  }

  .nav-search.is-open {
    top: 270px;
  }

  .hero-section {
    min-height: auto;
    border-radius: 24px;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

  .hero-bottom {
    grid-template-columns: 1fr;
    padding: 0 34px 34px;
  }

  .hero-quick-links {
    justify-content: flex-start;
  }

  .hero-mini-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 34px 34px;
  }

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

  .inner-hero {
    padding: 36px;
  }
}

@media (max-width: 640px) {
  .content-section,
  .detail-wrap,
  .inner-hero,
  .hero-section {
    width: min(100% - 20px, var(--max));
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-search {
    flex-direction: column;
  }

  .hero-mini-row,
  .category-grid,
  .category-grid-large,
  .movie-grid,
  .movie-grid-small,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .detail-content {
    padding: 22px;
  }
}
