:root {
  color-scheme: dark;
  --bg-main: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at 78% 4%, rgba(249, 115, 22, 0.1), transparent 24%),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.72));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.45);
}

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

.brand-text strong,
.footer-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fcd34d, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--text-soft);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.35);
}

.header-search input {
  width: 150px;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
  padding-left: 10px;
}

.header-search button,
.hero-search button,
.big-search button {
  border: 0;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
}

.header-search button {
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.hero {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 45%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100% - var(--max)) / 2));
  bottom: 128px;
  width: min(720px, calc(100% - 48px));
  display: grid;
  gap: 20px;
  animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker span {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-soft), var(--orange));
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta-line,
.rank-stats,
.rank-topline,
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span,
.rank-stats span,
.rank-topline span,
.card-foot span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.62);
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
}

.movie-meta-line span,
.rank-stats span,
.rank-topline span,
.card-foot span {
  padding: 5px 9px;
  font-size: 12px;
}

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

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

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: max(24px, calc((100% - var(--max)) / 2));
  bottom: 70px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(90deg, var(--amber-soft), var(--orange));
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 62px;
  z-index: 4;
  display: flex;
  width: min(480px, calc(100% - 48px));
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
}

.hero-search input,
.big-search input,
.filter-controls input,
.filter-controls select {
  min-width: 0;
  color: var(--text-main);
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.6);
}

.hero-search input,
.big-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
}

.hero-search button,
.big-search button {
  padding: 12px 20px;
}

.section-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 6;
  padding-top: 0;
}

.intro-strip a,
.channel-card,
.spotlight-panel,
.story-card,
.filter-panel,
.prose-card article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.66));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip a {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.intro-strip span,
.channel-card span {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
}

.intro-strip strong,
.channel-card strong {
  color: var(--text-main);
  line-height: 1.5;
}

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

.section-title.compact {
  align-items: center;
}

.section-title h2,
.filter-panel h2,
.spotlight-panel h2,
.story-card h2,
.category-preview h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.section-title a {
  color: #fde68a;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.movie-grid.compact-grid {
  grid-template-columns: repeat(6, 1fr);
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

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

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

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #111827;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.26);
}

.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card h3,
.rank-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-item p,
.spotlight-panel p,
.prose-card p,
.story-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.movie-card p {
  min-height: 76px;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span,
.mini-tags a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fde68a;
  font-size: 12px;
  background: rgba(245, 158, 11, 0.12);
}

.card-foot {
  justify-content: space-between;
}

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

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

.rank-list.wide-list {
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.36);
}

.rank-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

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

.rank-content {
  display: grid;
  align-content: center;
  gap: 9px;
}

.rank-num {
  color: #111827 !important;
  background: linear-gradient(135deg, #fde68a, #f59e0b) !important;
  font-weight: 900;
}

.spotlight-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 26px;
  border-radius: var(--radius-xl);
}

.mini-tags {
  margin-top: 18px;
}

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

.channel-grid.wide {
  grid-template-columns: repeat(5, 1fr);
}

.channel-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  min-height: 150px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.channel-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.34);
}

.channel-card a {
  display: grid;
  gap: 8px;
}

.channel-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-card div a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
}

.page-hero {
  position: relative;
  padding: 160px 0 56px;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.4));
}

.page-hero > div {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.filter-panel h2 {
  font-size: 26px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  height: 44px;
  border-radius: 999px;
  padding: 0 14px;
}

.filter-empty {
  width: 100%;
  color: var(--text-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.62);
}

.pagination .is-current,
.pagination a:hover {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
}

.detail-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 132px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.08);
  transform: scale(1.1);
  opacity: 0.46;
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 56%, rgba(2, 6, 23, 0.65) 100%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-info {
  display: grid;
  gap: 18px;
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: #fde68a;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin-bottom: 4px;
}

.detail-content {
  padding-top: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #111827;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-soft), var(--orange));
  box-shadow: 0 18px 54px rgba(245, 158, 11, 0.38);
}

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

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.story-card,
.prose-card article {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.story-card p,
.prose-card p {
  font-size: 17px;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.next-prev a {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  color: #fde68a;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.big-search {
  display: flex;
  width: min(720px, 100%);
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.prose-card {
  display: grid;
  gap: 18px;
}

.prose-card h2 {
  margin: 0 0 10px;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 82px auto 0;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--text-soft);
}

.footer-grid a:hover {
  color: #fde68a;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 18px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .channel-grid,
  .channel-grid.wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    position: relative;
    top: 0;
  }
}

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

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

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

  .header-inner {
    min-height: 66px;
  }

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

  .hero {
    min-height: 680px;
    height: 86vh;
  }

  .hero-copy {
    bottom: 170px;
  }

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

  .hero-controls {
    bottom: 34px;
  }

  .intro-strip,
  .detail-columns,
  .next-prev,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: grid;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .movie-grid.compact-grid,
  .channel-grid,
  .channel-grid.wide {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 86px 1fr;
  }

  .hero-actions,
  .big-search {
    display: grid;
    border-radius: 24px;
  }

  .big-search input {
    min-height: 46px;
  }
}
