:root {
  --lava-600: #ea580c;
  --lava-500: #f97316;
  --lava-100: #ffedd5;
  --volcanic-950: #09090b;
  --volcanic-900: #18181b;
  --volcanic-800: #27272a;
  --volcanic-700: #3f3f46;
  --volcanic-500: #71717a;
  --volcanic-100: #f4f4f5;
  --paper: #ffffff;
  --border: rgba(24, 24, 27, 0.1);
  --shadow: 0 24px 70px rgba(9, 9, 11, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 32rem),
    linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  color: var(--volcanic-900);
}

body.menu-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--volcanic-900);
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lava-600), #f59e0b);
  color: #fff;
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.34);
  font-size: 14px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #3f3f46;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: #ffedd5;
  color: #c2410c;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(330px, 28vw);
  overflow: hidden;
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.hero-search input,
.filter-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--volcanic-900);
}

.header-search input {
  padding: 11px 6px 11px 16px;
}

.header-search button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, var(--lava-600), var(--lava-500));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.header-search button {
  align-self: stretch;
  padding: 0 18px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: #fff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--volcanic-900);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-panel-inner {
  padding-top: 14px;
  padding-bottom: 18px;
}

.mobile-link {
  display: block;
  padding: 13px 4px;
  color: var(--volcanic-900);
  font-weight: 800;
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-categories a,
.category-pill,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 700;
}

.mobile-categories a {
  padding: 8px 12px;
  font-size: 13px;
}

.main-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #18181b 0%, #09090b 72%);
  color: #fff;
}

.main-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.34), transparent 64%);
  filter: blur(4px);
}

.hero-shell {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  display: grid;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.13);
  color: #fdba74;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-ghost,
.btn-light,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-solid,
.btn-light:hover {
  background: linear-gradient(135deg, var(--lava-600), #f59e0b);
  color: #fff;
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
}

.btn-light {
  background: #fff;
  color: var(--volcanic-900);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.46);
  aspect-ratio: 3 / 4;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.76));
}

.hero-floating-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(270px, 78%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-floating-card strong,
.hero-floating-card span {
  display: block;
}

.hero-floating-card strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-floating-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  left: 1rem;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--lava-500);
}

.hero-search-card {
  position: relative;
  margin-top: -40px;
  z-index: 3;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-height: 72px;
  padding: 0 24px;
  font-size: 18px;
}

.hero-search button {
  min-height: 72px;
  padding: 0 30px;
  font-size: 17px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-pill {
  padding: 9px 15px;
  font-size: 14px;
}

.section-block {
  padding-top: 76px;
  padding-bottom: 76px;
}

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

.section-heading h2,
.page-hero h1,
.detail-section h2,
.category-card h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p,
.page-hero p,
.category-card p,
.empty-state {
  color: var(--volcanic-500);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.08);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #27272a, #09090b);
}

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--lava-600), #f59e0b);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--volcanic-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta a {
  color: var(--lava-600);
}

.movie-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.28;
}

.movie-info p {
  min-height: 3.2em;
  margin: 10px 0 14px;
  color: #52525b;
  font-size: 14px;
  line-height: 1.62;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(24, 24, 27, 0.08);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(24, 24, 27, 0.06);
}

.ranking-number {
  color: var(--lava-600);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-copy strong,
.ranking-copy em {
  display: block;
}

.ranking-copy strong {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 900;
}

.ranking-copy em {
  color: #71717a;
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding-top: 76px;
  padding-bottom: 50px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
}

.page-hero p {
  max-width: 850px;
  font-size: 18px;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 24, 27, 0.06);
}

.filter-box input {
  padding: 12px;
  font-size: 16px;
}

.filter-box span {
  color: var(--lava-600);
  font-weight: 900;
}

.detail-hero {
  padding-top: 54px;
  padding-bottom: 48px;
  background: linear-gradient(135deg, #18181b 0%, #09090b 82%);
  color: #fff;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
  aspect-ratio: 3 / 4;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.breadcrumbs a {
  color: #fdba74;
}

.detail-title p {
  max-width: 920px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.76;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-facts span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 80px rgba(9, 9, 11, 0.24);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(234, 88, 12, 0.24), rgba(0, 0, 0, 0.4)),
    rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: 0.2s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lava-600), #f59e0b);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 22px 48px rgba(234, 88, 12, 0.35);
}

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

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

.detail-section {
  padding: 30px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(24, 24, 27, 0.07);
}

.detail-section + .detail-section {
  margin-top: 22px;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: #3f3f46;
  font-size: 17px;
  line-height: 1.86;
}

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

.related-link {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 24, 27, 0.06);
}

.related-link img {
  width: 70px;
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  object-fit: cover;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link strong {
  margin-bottom: 6px;
  font-weight: 900;
  line-height: 1.35;
}

.related-link span {
  color: #71717a;
  font-size: 13px;
}

.site-footer {
  margin-top: 34px;
  padding-top: 54px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.6fr) minmax(200px, 0.6fr);
  gap: 34px;
}

.footer-logo {
  color: #fff;
}

.site-footer p {
  max-width: 560px;
  margin-top: 16px;
  color: #d4d4d8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-links a {
  color: #d4d4d8;
  transition: 0.2s ease;
}

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed rgba(24, 24, 27, 0.2);
  border-radius: 22px;
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-media {
    max-width: 430px;
    margin: 0 auto;
  }

  .hero-dots {
    position: static;
    margin-top: 24px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(260px, 72vw);
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
  }

  .site-logo,
  .footer-logo {
    font-size: 18px;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 54px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 38px;
  }

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

  .section-heading {
    display: block;
  }

  .section-actions {
    margin-top: 16px;
  }

  .detail-section {
    padding: 22px;
  }

  .ranking-item {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 62px;
  }
}
