:root {
  --mist-50: #f8f9fa;
  --mist-100: #f1f3f5;
  --mist-200: #e9ecef;
  --mist-300: #dee2e6;
  --mist-500: #adb5bd;
  --mist-600: #868e96;
  --mist-700: #495057;
  --mist-800: #343a40;
  --mist-900: #212529;
  --mineral-50: #f0f9ff;
  --mineral-200: #bae6fd;
  --mineral-500: #0ea5e9;
  --mineral-600: #0284c7;
  --mineral-700: #0369a1;
  --earth-50: #faf8f5;
  --earth-600: #8a6f4d;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(33, 37, 41, 0.08);
  --shadow-md: 0 16px 40px rgba(33, 37, 41, 0.14);
  --shadow-lg: 0 28px 70px rgba(33, 37, 41, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: min(1240px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist-50);
  color: var(--mist-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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;
  background: linear-gradient(135deg, var(--mist-800), var(--mist-900));
  color: var(--white);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.header-inner {
  width: var(--container);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mineral-600);
  box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand-text {
  white-space: nowrap;
}

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

.nav-link,
.nav-dropdown-button {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--mist-200);
  border: 0;
  background: transparent;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover .nav-dropdown-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--mist-800);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--mist-800);
}

.nav-dropdown-menu a:hover {
  color: var(--mineral-700);
  background: var(--mineral-50);
}

.global-search {
  position: relative;
  width: min(320px, 30vw);
}

.global-search-input,
.hero-search-input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.global-search-input::placeholder,
.hero-search-input::placeholder {
  color: var(--mist-300);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, 92vw);
  max-height: 440px;
  overflow: auto;
  background: var(--white);
  color: var(--mist-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
}

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

.search-panel.compact {
  left: 0;
  right: auto;
  width: min(520px, 90vw);
}

.search-result {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--mist-200);
}

.search-result:hover {
  background: var(--mineral-50);
}

.search-result-cover {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-700), var(--mineral-600));
}

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

.search-result h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.search-result p {
  margin: 0;
  color: var(--mist-600);
  font-size: 13px;
}

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

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

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mist-100);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 18%, rgba(2, 132, 199, 0.48), transparent 32%), var(--mist-900);
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  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-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(33, 37, 41, 0.94), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
  color: var(--white);
}

.hero-content > * {
  max-width: 680px;
}

.hero-pill,
.section-kicker,
.detail-kicker,
.page-hero span,
.ranking-head span,
.category-hero-content span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.86);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.05;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--mist-200);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--mist-100);
  font-size: 13px;
}

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

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

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

.button.primary {
  color: var(--white);
  background: var(--mineral-600);
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.32);
}

.button.primary:hover {
  background: var(--mineral-700);
}

.button.secondary {
  color: var(--mineral-700);
  background: var(--mineral-50);
  border-color: var(--mineral-200);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.button.small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  font-size: 36px;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.hero-search-card {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  width: min(420px, 44vw);
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.hero-search-card span {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.stats-band {
  width: var(--container);
  margin: -38px auto 0;
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  color: var(--mineral-700);
  font-size: 32px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--mist-600);
}

.content-section {
  width: var(--container);
  margin: 72px auto;
}

.soft-section {
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mineral-50), var(--earth-50));
}

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

.section-kicker {
  margin-bottom: 10px;
  background: var(--mineral-600);
}

.section-heading h2,
.page-hero h1,
.category-hero-content h1,
.detail-main-card h1,
.ranking-head h2 {
  margin: 0;
  color: var(--mist-900);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

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

.section-link {
  flex-shrink: 0;
  color: var(--mineral-700);
  font-weight: 800;
}

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

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

.movie-card,
.category-tile,
.horizontal-card,
.category-overview-card,
.detail-main-card,
.detail-side-card,
.ranking-panel,
.player-shell,
.filter-panel,
.ranking-table {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

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

.poster-frame,
.horizontal-cover,
.category-tile {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(14, 165, 233, 0.38), transparent 24%),
    linear-gradient(135deg, var(--mist-800), var(--mist-900));
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.movie-card.featured .poster-frame {
  aspect-ratio: 16 / 10;
}

.poster-frame img,
.category-tile img,
.horizontal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.horizontal-card:hover img {
  transform: scale(1.08);
}

.poster-badge,
.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 132, 199, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(2, 132, 199, 0.86);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: 0.25s ease;
}

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

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

.movie-card-meta,
.eyebrow {
  display: flex;
  gap: 8px;
  color: var(--mineral-700);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3,
.horizontal-card h3 {
  margin: 7px 0 8px;
  color: var(--mist-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.horizontal-card p,
.category-tile p,
.category-overview-text p,
.detail-main-card p,
.page-hero p,
.category-hero-content p,
.footer-inner p {
  margin: 0;
  color: var(--mist-600);
}

.movie-card .tag-row span {
  color: var(--mist-700);
  background: var(--mist-100);
}

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

.category-tile {
  min-height: 220px;
  padding: 0;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.46;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.category-tile span {
  font-size: 13px;
  color: var(--mineral-200);
}

.category-tile h3 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.category-tile p {
  color: var(--mist-200);
  font-size: 14px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
}

.ranking-panel,
.detail-side-card {
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.ranking-head {
  margin-bottom: 18px;
}

.ranking-head span {
  color: var(--white);
}

.ranking-head a {
  color: var(--mineral-700);
  font-weight: 800;
}

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

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

.horizontal-card {
  overflow: hidden;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 92px;
}

.horizontal-cover {
  height: 100%;
  min-height: 92px;
}

.horizontal-body {
  padding: 12px;
}

.horizontal-card h3 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.horizontal-card p {
  font-size: 13px;
}

.rank-number {
  top: 8px;
  left: 8px;
  background: rgba(33, 37, 41, 0.82);
}

.page-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  width: var(--container);
  margin: 34px auto 0;
  padding: 72px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 18%, rgba(14, 165, 233, 0.28), transparent 24%),
    linear-gradient(135deg, var(--mist-800), var(--mist-900));
  color: var(--white);
}

.page-hero h1,
.category-hero-content h1 {
  color: var(--white);
}

.page-hero p,
.category-hero-content p {
  max-width: 760px;
  color: var(--mist-200);
  font-size: 18px;
}

.category-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
}

.category-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.category-hero-content .button {
  margin-top: 22px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--mist-700);
  font-weight: 700;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  color: var(--mist-900);
  background: var(--mist-50);
  border: 1px solid var(--mist-200);
}

.filter-count {
  margin: 0;
  color: var(--mist-600);
  font-size: 14px;
}

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  padding: 24px;
}

.category-overview-text span {
  color: var(--mineral-700);
  font-weight: 800;
}

.category-overview-text h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-overview-text .button {
  margin-top: 18px;
}

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

.player-section {
  background: #000;
}

.player-shell {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(2, 132, 199, 0.26), transparent 25%),
    rgba(0, 0, 0, 0.56);
}

.play-gate span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mineral-600);
  box-shadow: 0 0 0 14px rgba(2, 132, 199, 0.18);
  font-size: 30px;
}

.play-gate strong {
  font-size: 24px;
}

.play-gate small {
  color: var(--mist-200);
}

.player-shell.is-playing .play-gate {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  display: none;
}

.player-message.is-visible {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
}

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--mist-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--mineral-700);
  font-weight: 700;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.detail-kicker {
  color: var(--white);
}

.lead-text {
  margin-top: 18px !important;
  font-size: 20px;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta-table div {
  padding: 14px;
  border-radius: 14px;
  background: var(--mist-100);
}

.meta-table dt {
  color: var(--mist-600);
  font-size: 13px;
}

.meta-table dd {
  margin: 4px 0 0;
  color: var(--mist-900);
  font-weight: 800;
}

.meta-table a {
  color: var(--mineral-700);
}

.detail-tags span {
  color: var(--mineral-700);
  background: var(--mineral-50);
}

.detail-main-card h2,
.detail-side-card h2 {
  margin: 30px 0 10px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 26px;
}

.detail-main-card h2:first-child,
.detail-side-card h2:first-child {
  margin-top: 0;
}

.compact-side .horizontal-card a {
  grid-template-columns: 88px 1fr;
}

.ranking-table {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 76px 1fr 120px 90px 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--mist-200);
}

.ranking-row:hover {
  background: var(--mineral-50);
}

.ranking-index {
  color: var(--mineral-700);
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
}

.ranking-title {
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  padding: 46px 0;
  background: var(--mist-900);
  color: var(--mist-200);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-cats a {
  color: var(--mineral-200);
}

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

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

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

  .ranking-panel,
  .detail-side-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .primary-nav {
    display: none;
  }

  .global-search {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
  }

  .stats-band {
    margin-top: 18px;
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .page-hero,
  .category-hero,
  .soft-section {
    padding: 32px;
  }

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

  .ranking-row span:nth-child(n+3),
  .ranking-row strong {
    display: none;
  }
}

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

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

  .hero-content {
    padding-bottom: 96px;
  }

  .hero-tags,
  .hero-actions {
    gap: 8px;
  }

  .stats-band,
  .featured-grid,
  .movie-grid,
  .category-grid,
  .category-movie-grid,
  .compact-grid,
  .mini-list,
  .filter-panel,
  .meta-table {
    grid-template-columns: 1fr;
  }

  .horizontal-card a {
    grid-template-columns: 96px 1fr;
  }

  .content-section {
    margin: 44px auto;
  }

  .player-shell {
    aspect-ratio: 16 / 10;
  }
}
