:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #ea580c;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(234, 88, 12, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
}

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

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: var(--muted-strong);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-light);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.84);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: none;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  padding: 10px 18px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--amber-light);
}

.mobile-nav {
  display: none;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 76vh, 820px);
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: clamp(110px, 18vh, 190px);
  max-width: 1280px;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 850px;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.button-soft,
.button-ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}

.button-soft:hover,
.button-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.86);
}

.full-width {
  width: 100%;
}

.hero-search-card {
  position: absolute;
  right: max(32px, calc((100% - 1280px) / 2));
  bottom: 96px;
  z-index: 3;
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.hero-search-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.hero-search-card form,
.search-page-form {
  display: flex;
  gap: 10px;
}

.hero-search-card input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  padding: 12px 16px;
  outline: none;
}

.hero-search-card button,
.search-page-form button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 800;
}

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-mini-links a {
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
  font-size: 13px;
}

.hero-mini-links a:hover {
  color: var(--amber-light);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--amber);
}

.stats-strip {
  width: min(1280px, calc(100% - 32px));
  margin: -34px auto 64px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.stats-strip strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: var(--amber-light);
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

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

.section-more {
  color: var(--amber-light);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.poster-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h2,
.horizontal-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-card h2 a:hover,
.horizontal-card h2 a:hover {
  color: var(--amber-light);
}

.movie-card p,
.horizontal-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

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

.category-card,
.category-overview-card,
.filter-panel,
.ranking-panel,
.detail-info-panel,
.detail-article {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 64%);
}

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

.category-card span,
.category-card strong,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  color: var(--amber-light);
  font-weight: 900;
}

.category-card strong {
  font-size: 28px;
  line-height: 1.2;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.ranking-panel {
  padding: 22px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.ranking-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.ranking-heading span {
  color: var(--amber-light);
  font-weight: 900;
}

.ranking-heading h2 {
  margin: 0;
  font-size: 30px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 14px 0;
}

.horizontal-card:last-of-type {
  border-bottom: none;
}

.rank-number {
  color: var(--amber-light);
  font-size: 18px;
  font-weight: 900;
}

.horizontal-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.horizontal-content h2 {
  margin-top: 5px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 48px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.42)),
    radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.24), transparent 26rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  padding: clamp(32px, 7vw, 72px);
}

.slim-hero h1,
.category-hero h1,
.ranking-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 170px auto;
  gap: 12px;
  align-items: end;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 12px;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
}

.filter-count strong {
  color: var(--amber-light);
}

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

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

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

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

.search-page-form {
  margin-top: 26px;
  max-width: 720px;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 66px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-strong);
  margin-bottom: 28px;
}

.breadcrumbs a:hover {
  color: var(--amber-light);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 460px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 900px;
}

.video-player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay-button span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.38);
  font-size: 32px;
}

.video-player-shell.is-playing .video-overlay-button {
  opacity: 0;
  visibility: hidden;
}

.video-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.video-player-shell.is-playing .video-status {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.detail-article,
.detail-info-panel {
  padding: 26px;
}

.detail-article h2,
.detail-info-panel h2 {
  margin: 0 0 14px;
  color: var(--amber-light);
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: 17px;
}

.detail-info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-info-panel li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 13px 0;
}

.detail-info-panel li:last-child {
  border-bottom: none;
}

.detail-info-panel span {
  color: var(--muted);
}

.detail-info-panel strong {
  text-align: right;
}

.site-footer {
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #000000);
  margin-top: 72px;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 42px;
  padding: 46px 0;
}

.footer-brand p,
.footer-column a,
.footer-category-links a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 520px;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--amber-light);
  font-size: 18px;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: var(--amber-light);
}

.footer-category-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-category-links a {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  margin: 0;
}

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

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

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

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

  .two-column-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 16px 18px;
    background: rgba(2, 6, 23, 0.94);
  }

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

  .mobile-nav-link {
    display: block;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--muted-strong);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.is-active {
    color: var(--amber-light);
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .mobile-search input {
    min-width: 0;
    flex: 1;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .hero-search-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 32px, 480px);
    margin: 360px auto 74px;
  }

  .hero-content {
    padding-top: 100px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }

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

@media (max-width: 620px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .hero-shade,
  .detail-overlay {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.54) 100%);
  }

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

  .hero-search-card form,
  .search-page-form {
    flex-direction: column;
  }

  .stats-strip,
  .movie-grid,
  .compact-grid,
  .listing-grid,
  .category-grid,
  .ranking-list,
  .category-overview-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .horizontal-poster,
  .category-cover {
    width: 120px;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .video-status {
    display: none;
  }
}
