:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --orange: #f97316;
  --amber: #f59e0b;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.18), transparent 32rem),
    radial-gradient(circle at 100% 12%, rgba(245, 158, 11, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff7ed;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.34);
  font-size: 14px;
}

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

.desktop-nav a,
.mobile-panel nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
}

.top-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(30, 41, 59, 0.86);
  color: #fff;
  padding: 0 14px;
}

.top-search input {
  width: min(260px, 24vw);
}

.top-search button,
.mobile-panel button,
.primary-btn,
.ghost-btn,
.section-link {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  transition: 0.2s ease;
}

.top-search button,
.mobile-panel button,
.primary-btn {
  padding: 12px 18px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.24);
}

.top-search button:hover,
.mobile-panel button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.ghost-btn,
.section-link {
  padding: 12px 18px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--line);
}

.ghost-btn:hover,
.section-link:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.45);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.78);
  color: #fff;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mobile-cats a {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.76);
  color: #cbd5e1;
  font-size: 13px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
}

main {
  width: 100%;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease, transform 4s ease;
  transform: scale(1.03);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, #020617, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 128px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.28);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
  max-width: 740px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(249, 115, 22, 0.22);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 8;
  padding-top: 0;
}

.feature-strip a {
  display: block;
  padding: 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.feature-strip a:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.44);
}

.feature-strip span {
  display: block;
  margin-bottom: 8px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
}

.feature-strip strong {
  font-size: 20px;
}

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

.section-head h2,
.rank-panel h2,
.detail-info h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.48);
  box-shadow: 0 24px 80px rgba(249, 115, 22, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body strong {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 16px;
}

.movie-card-body em {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-desc.compact {
  -webkit-line-clamp: 2;
}

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

.category-tile,
.category-cover {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-cover span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  color: #fff;
  line-height: 1.45;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.rank-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin-bottom: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  font-weight: 950;
  font-size: 18px;
  color: #fb923c;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
}

.rank-item em {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 340px;
  margin: 34px auto 0;
  padding: 58px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 260px;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.74));
}

.filter-shell {
  padding-top: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
}

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

.category-card-large {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.category-card-large > div {
  padding: 20px;
}

.category-card-large h2 {
  margin: 0 0 10px;
}

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

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.13);
  color: #fed7aa;
  font-size: 12px;
}

.sticky-panel {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

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

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 20px 70px rgba(249, 115, 22, 0.35);
}

.player-card.playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.detail-info,
.detail-poster,
.detail-side .rank-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.detail-info h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.05em;
}

.detail-tags {
  margin: 18px 0;
}

.lead-text {
  color: #fed7aa;
  font-size: 18px;
  line-height: 1.75;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.meta-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-grid dd {
  margin: 6px 0 0;
  color: #fff;
  font-weight: 800;
}

.detail-info p {
  color: #dbe4ef;
  line-height: 1.9;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 34px 0 48px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  line-height: 1.75;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  align-content: start;
}

.site-footer a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
}

[data-card].hidden {
  display: none;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

  .two-col,
  .detail-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: minmax(0, 280px) 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .content-section,
  .page-hero,
  .breadcrumb,
  .detail-layout,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero-wrap {
    min-height: 610px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-top: 92px;
  }

  .hero-actions,
  .section-head,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-strip,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-listing,
  .filter-bar,
  .meta-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 32px;
    border-radius: 22px;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
  }

  .site-footer nav {
    justify-content: start;
  }
}
