:root {
  --primary: #f97316;
  --primary-soft: rgba(249, 115, 22, 0.18);
  --secondary-950: #050816;
  --secondary-900: #0f172a;
  --secondary-850: #121a2f;
  --secondary-800: #1e293b;
  --secondary-700: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --card: rgba(15, 23, 42, 0.82);
  --card-solid: #111827;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34rem),
    linear-gradient(135deg, var(--secondary-950), var(--secondary-900) 55%, #111827);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: #cbd5e1;
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--secondary-950), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.3)),
    radial-gradient(circle at 70% 35%, rgba(249, 115, 22, 0.22), transparent 26rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 330px;
  align-items: center;
  gap: 56px;
  height: 100%;
}

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

.hero-kicker,
.eyebrow {
  color: #fdba74;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-summary {
  max-width: 620px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.section-more,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(239, 68, 68, 0.36);
}

.ghost-button,
.section-more,
.small-button {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover,
.section-more:hover,
.small-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: var(--primary);
}

.content-section,
.page-hero,
.detail-layout,
.related-section {
  padding: 70px 0;
}

.page-hero {
  padding-bottom: 30px;
}

.page-hero-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.2), transparent 26rem),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
}

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

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

.section-heading h2 {
  margin: 6px 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.section-heading span {
  color: var(--muted);
}

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

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

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(30, 41, 59, 0.9)),
    var(--secondary-800);
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card-meta,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.movie-card-meta span,
.detail-meta span,
.breadcrumbs a,
.breadcrumbs span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  color: #fed7aa;
  background: var(--primary-soft);
  font-size: 12px;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at right top, rgba(249, 115, 22, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.42);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

.category-stats {
  display: flex;
  gap: 12px;
  color: #fdba74;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: #111827;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.6);
}

.filter-count {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.filter-count strong {
  padding: 0 5px;
  color: #fdba74;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 44px;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--secondary-950), rgba(15, 23, 42, 0.88));
}

.detail-top {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--secondary-800);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
}

.detail-copy p {
  max-width: 850px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.85;
}

.player-section {
  padding: 42px 0 72px;
}

.video-player-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-overlay-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-overlay-button span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.38);
  font-size: 32px;
}

.video-message {
  padding: 14px 18px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  padding-top: 36px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.info-card h2,
.info-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.info-card p {
  color: #cbd5e1;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  color: #cbd5e1;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  color: #fff;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 74px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 950;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: var(--secondary-800);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.empty-result {
  display: none;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.055);
}

.empty-result.show {
  display: block;
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .category-grid,
  .info-grid,
  .footer-grid,
  .detail-top {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    grid-template-columns: 48px 72px minmax(0, 1fr);
  }

  .ranking-row .small-button {
    grid-column: 1 / -1;
  }

  .page-hero-card {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card p,
  .tag-row {
    display: none;
  }

  .brand-text {
    font-size: 17px;
  }
}
