:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1f2937;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

img {
  object-fit: cover;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

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

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: #cbd5e1;
  margin-top: 4px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.nav-link {
  padding: 10px 18px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--white);
  background: var(--orange-500);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 16px 18px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 48%, #7c2d12 100%);
}

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

.orb-a {
  top: 70px;
  left: 8%;
  width: 290px;
  height: 290px;
  background: var(--orange-500);
}

.orb-b {
  right: 8%;
  bottom: 60px;
  width: 360px;
  height: 360px;
  background: var(--blue-500);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  padding: 92px 0 78px;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.story-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  color: var(--orange-300);
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: 20px;
}

.hero-search {
  display: flex;
  width: min(640px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 18px 20px;
}

.hero-search input::placeholder {
  color: #cbd5e1;
}

.hero-search button,
.btn-primary,
.filter-grid button {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
  font-weight: 900;
}

.hero-search button {
  padding: 0 26px;
}

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

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags a,
.tag-row span,
.detail-facts span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}

.hero-showcase {
  position: relative;
}

.hero-slider {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.45);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide img,
.poster-wrap img,
.category-card img,
.category-image img,
.detail-poster img {
  width: 100%;
  height: 100%;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(2, 6, 23, 0.92));
}

.hero-slide-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.hero-slide-info strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
}

.hero-slide-info small {
  display: block;
  color: #cbd5e1;
  margin-top: 8px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

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

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

.stats-section {
  margin-top: -44px;
  position: relative;
  z-index: 4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card,
.movie-card,
.filter-panel,
.category-overview-card,
.guide-card,
.story-card,
.side-panel,
.player-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  color: var(--orange-600);
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  font-weight: 900;
}

.stat-card p {
  margin: 4px 0 0;
  color: var(--gray-500);
}

.section {
  padding: 86px 0;
}

.white-section {
  background: var(--white);
}

.soft-section {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading span {
  margin: 0 auto 14px;
  color: var(--orange-600);
  background: #ffedd5;
}

.dark-section .section-heading span {
  color: var(--orange-300);
  background: rgba(255, 255, 255, 0.1);
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

.section-heading p,
.page-hero p {
  color: var(--gray-500);
  font-size: 18px;
  margin: 14px 0 0;
}

.dark-section .section-heading p {
  color: #cbd5e1;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-800);
}

.poster-wrap img {
  transition: transform 0.5s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

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

.movie-meta-row,
.card-action-row,
.detail-facts,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta-row {
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.text-link:hover,
.side-panel a:hover {
  color: var(--orange-600);
}

.movie-card p {
  min-height: 44px;
  color: var(--gray-500);
  margin: 0 0 14px;
}

.tag-row span {
  color: var(--orange-700);
  background: #ffedd5;
}

.card-action-row {
  justify-content: space-between;
  margin-top: 16px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 800;
}

.card-action-row a {
  color: var(--orange-600);
}

.horizontal-list,
.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.compact-card .poster-wrap {
  aspect-ratio: auto;
  min-height: 188px;
}

.compact-card .movie-card-body {
  display: flex;
  flex-direction: column;
}

.compact-card .card-action-row {
  margin-top: auto;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.88));
}

.category-card strong,
.category-card small,
.category-card p {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 22px;
}

.category-card strong {
  padding-top: 140px;
  font-size: 24px;
}

.category-card small {
  color: var(--orange-300);
  margin-top: 4px;
  font-weight: 900;
}

.category-card p {
  color: #e2e8f0;
  margin-top: 8px;
  padding-bottom: 22px;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.34), transparent 26%), linear-gradient(135deg, var(--slate-800), var(--slate-950));
  padding: 86px 0;
}

.page-hero span {
  color: var(--orange-300);
  background: rgba(255, 255, 255, 0.1);
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
}

.filter-panel {
  margin-bottom: 32px;
  padding: 24px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-head h2 {
  margin: 0;
  font-size: 26px;
}

.filter-head p {
  margin: 0;
  color: var(--gray-500);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  background: var(--white);
  padding: 13px 14px;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-grid button {
  align-self: end;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
}

.category-image {
  display: block;
  min-height: 230px;
  background: var(--slate-800);
}

.category-overview-card div {
  padding: 24px;
}

.category-overview-card span {
  color: var(--orange-600);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 8px 0;
}

.category-overview-card p,
.guide-card p,
.story-card p,
.side-panel dd {
  color: var(--gray-500);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--orange-600);
  font-weight: 900;
}

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

.guide-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.guide-card,
.story-card {
  padding: 28px;
}

.guide-card strong {
  color: var(--orange-600);
  font-size: 32px;
}

.guide-card h2,
.story-card h2,
.side-panel h2 {
  margin: 12px 0 10px;
}

.detail-hero {
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding: 78px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-300);
}

.detail-copy h1 {
  margin: 20px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
}

.detail-lead {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-facts {
  margin: 22px 0;
}

.detail-facts span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero-tag-row span {
  color: var(--orange-200);
  background: rgba(249, 115, 22, 0.18);
}

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

.player-card {
  overflow: hidden;
  background: var(--slate-950);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: var(--slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.76));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.42);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 22px;
}

.side-panel {
  padding: 24px;
}

.side-panel dl {
  margin: 0;
}

.side-panel dt {
  color: var(--gray-700);
  font-weight: 900;
  margin-top: 12px;
}

.side-panel dd {
  margin: 4px 0 0;
}

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

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.site-footer h2 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--orange-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 18px 16px;
  text-align: center;
}

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

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .detail-hero-grid,
  .detail-layout,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 58px;
  }

  .hero-showcase {
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-grid,
  .movie-grid,
  .horizontal-list,
  .rank-list,
  .full-rank-list,
  .category-grid,
  .category-overview-grid,
  .guide-grid,
  .story-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 50px;
  }

  .stats-grid,
  .movie-grid,
  .horizontal-list,
  .rank-list,
  .full-rank-list,
  .category-grid,
  .category-overview-grid,
  .guide-grid,
  .story-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-card .poster-wrap {
    min-height: 176px;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 58px 0;
  }
}
