:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.28);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

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

.brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.32);
  color: #ffffff;
  font-size: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

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

.brand-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.15);
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(8px) saturate(1.08);
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(249, 115, 22, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 72px;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding-top: 40px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-one-line {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.movie-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.34);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.42);
}

.button-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.button-soft:hover {
  background: rgba(255, 255, 255, 0.24);
}

.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.38);
}

.hero-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 560px;
}

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

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

.hero-dot.is-active {
  width: 54px;
  background: #f97316;
}

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

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 450px) 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

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

.hero-search input,
.inline-filter input,
.inline-filter select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.hero-search button,
.inline-filter button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: #f97316;
  font-weight: 900;
  cursor: pointer;
}

.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-category-pills a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 74px 0;
}

.section-light {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-dark {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

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

.section-link,
.text-link {
  color: var(--accent);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

.poster-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-meta {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-tags span {
  background: #f1f5f9;
  color: #475569;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.rank-no {
  color: #fb923c;
  font-weight: 1000;
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: #94a3b8;
  font-size: 13px;
}

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

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

.category-card {
  position: relative;
  display: flex;
  min-height: 148px;
  overflow: hidden;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background-image:
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.18)),
    var(--category-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.category-card strong {
  position: relative;
  z-index: 2;
  font-size: 21px;
}

.category-card em {
  position: relative;
  z-index: 2;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.category-glow {
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 80%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.48), transparent 62%);
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.34), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b 52%, #431407);
}

.page-hero h1 {
  max-width: 840px;
  margin: 12px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.inline-filter {
  max-width: 720px;
  margin-top: 26px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

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

.category-overview-card p {
  color: var(--muted);
}

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

.ranking-spotlight {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background-image: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 60%), var(--spotlight-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.ranking-spotlight strong {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.ranking-spotlight em {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.ranking-filter {
  margin: 0 0 28px;
}

.ranking-table {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 76px 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-row-poster img {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.ranking-number {
  color: #f97316;
  font-size: 22px;
  font-weight: 1000;
}

.ranking-row-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row-main p {
  margin: 0 0 10px;
  color: var(--muted);
}

.search-status {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(9px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(249, 115, 22, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 52px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 800px;
  color: #dbeafe;
  font-size: 19px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-card);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.36));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.36);
  font-size: 28px;
}

.player-cover strong {
  max-width: min(80%, 560px);
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.15;
}

.content-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2 {
  margin: 8px 0 16px;
  font-size: 26px;
  line-height: 1.2;
}

.content-card p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

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

.side-related-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.side-related-list img {
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.related-section {
  padding-top: 28px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

.footer-brand p {
  max-width: 440px;
  color: #94a3b8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
}

.footer-column a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fb923c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  color: #94a3b8;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.36);
  cursor: pointer;
}

.back-to-top.is-visible {
  display: grid;
  place-items: center;
}

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

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

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

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

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

@media (max-width: 860px) {
  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 610px;
    padding-top: 32px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    padding-top: 600px;
  }

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

  .section-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .detail-poster {
    width: 180px;
  }

  .ranking-row {
    grid-template-columns: 64px 1fr;
  }

  .ranking-number,
  .ranking-row .button {
    display: none;
  }
}

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

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

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

  .movie-grid,
  .movie-grid.dense,
  .category-movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .movie-desc {
    display: none;
  }

  .ranking-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 124px;
  }

  .detail-hero-inner {
    padding: 30px 0 36px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }
}
