:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.16), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.38);
}

.brand-text,
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-drop-button {
  padding: 10px 14px;
  color: var(--soft);
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-button:hover {
  color: white;
  background: rgba(51, 65, 85, 0.72);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-menu a,
.mobile-menu a,
.footer-links a {
  padding: 8px 10px;
  color: var(--soft);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-drop-menu a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
}

.global-search input,
.quick-search-card input,
.filter-bar input,
.filter-bar select {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.global-search input {
  width: 190px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.search-panel {
  position: fixed;
  top: 78px;
  right: max(16px, calc((100vw - 1280px) / 2));
  width: min(440px, calc(100vw - 32px));
  max-height: 70vh;
  overflow: auto;
  display: none;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid transparent;
}

.search-result:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.search-result img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result strong,
.search-result em {
  display: block;
}

.search-result em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding-top: 68px;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 68px 0 0;
  display: grid;
  align-items: center;
  min-height: calc(720px - 68px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-overlay,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 40%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-grid,
.detail-layout {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: white;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 22px 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #00111a;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 35px rgba(34, 211, 238, 0.22);
}

.btn.ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--border);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-dot {
  flex: 0 0 auto;
  max-width: 180px;
  color: var(--soft);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-dot.is-active,
.hero-dot:hover {
  color: #00111a;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section {
  padding: 70px 0;
}

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

.section-head.centered {
  display: block;
  max-width: 760px;
  text-align: center;
  margin: 0 auto 34px;
}

.section-head h2,
.category-overview-head h2,
.story-card h2,
.rank-panel h2 {
  margin: 0;
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.category-overview-head p,
.rank-panel p,
.page-hero p,
.story-card p,
.footer-inner p {
  color: var(--muted);
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

.quick-search-card input {
  min-height: 50px;
  padding: 0 16px;
}

.quick-search-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #00111a;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

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

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

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

.watch-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #00111a;
  font-weight: 900;
  font-size: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

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

.movie-card h3 a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  min-height: 24px;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.72);
  color: var(--soft);
}

.dark-band {
  position: relative;
}

.dark-band::before {
  content: "";
  position: absolute;
  inset: 20px -16px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.56));
  border: 1px solid var(--border);
}

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

.category-tile,
.category-overview-card,
.story-card,
.rank-panel {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.category-tile {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 160px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.08);
  filter: blur(10px);
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 900;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.12);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.rank-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  padding: 36px;
}

.rank-list,
.rank-page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.3);
}

.rank-list a:hover,
.rank-row a:hover {
  background: rgba(34, 211, 238, 0.08);
}

.rank-list span,
.rank-num {
  display: inline-grid;
  place-items: center;
  color: #00111a;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.rank-list span {
  width: 34px;
  height: 34px;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-main,
.detail-main {
  padding-top: 96px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 70px 36px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.92));
}

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

.overview-stack {
  display: grid;
  gap: 28px;
  margin-bottom: 70px;
}

.category-overview-card {
  padding: 28px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid transparent;
}

.mini-card:hover {
  border-color: rgba(34, 211, 238, 0.34);
}

.mini-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
}

.filter-bar select option {
  background: #0f172a;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 48px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-row img {
  width: 86px;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-num {
  width: 40px;
  height: 40px;
}

.rank-info strong,
.rank-info em,
.rank-info b {
  display: block;
}

.rank-info strong {
  font-size: 20px;
}

.rank-info em,
.rank-info b {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  margin: -96px calc((100vw - min(1280px, calc(100vw - 32px))) / -2) 0;
  padding-top: 96px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-cover {
  justify-self: center;
}

.detail-cover img {
  width: min(390px, 90vw);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

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

.detail-meta {
  margin: 18px 0;
}

.player-section {
  padding-top: 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: black;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.player-overlay {
  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.58));
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #00111a;
  font-size: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.28);
}

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

.story-card {
  padding: 34px;
}

.story-card h2 + p {
  margin-top: 10px;
}

.story-card p {
  font-size: 18px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.98));
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(320px, 80vw);
  }

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

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

@media (max-width: 760px) {
  .global-search span {
    display: none;
  }

  .global-search input {
    width: 120px;
  }

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

  .hero-slide {
    min-height: calc(780px - 68px);
  }

  .hero-grid,
  .detail-layout {
    gap: 26px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-desc,
  .detail-line {
    font-size: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .category-overview-head {
    display: block;
  }

  .quick-search-card,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .card-content {
    padding: 13px;
  }

  .category-tile {
    min-height: 160px;
    padding: 18px;
  }

  .rank-row a {
    grid-template-columns: 42px 70px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 70px;
    height: 100px;
  }

  .detail-hero {
    padding-top: 120px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    width: calc(100% - 20px);
    gap: 10px;
  }

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

  .global-search {
    display: none;
  }

  .mobile-menu.is-open {
    grid-template-columns: 1fr;
  }

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

  .hero-slide {
    min-height: calc(820px - 68px);
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .story-card,
  .category-overview-card,
  .rank-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .mini-card {
    grid-template-columns: 64px 1fr;
  }

  .mini-card img {
    width: 64px;
    height: 86px;
  }
}
