:root {
  color-scheme: dark;
  --night-950: #071421;
  --night-900: #102a43;
  --night-850: #16324f;
  --night-800: #243b53;
  --night-700: #334e68;
  --night-600: #486581;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(36, 59, 83, 0.72);
  --card-strong: rgba(36, 59, 83, 0.92);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(90, 77, 126, 0.24), transparent 32rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 38%, #081827);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 33, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

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

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 1.16rem;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.72);
}

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

.header-search input::placeholder,
.filter-panel input::placeholder,
.hero-search input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.header-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: var(--amber-500);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 42, 67, 0.7);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(7, 20, 33, 0.96);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--night-900);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 42, 67, 0.95), rgba(36, 59, 83, 0.82)),
    linear-gradient(to right, rgba(7, 20, 33, 0.95), rgba(7, 20, 33, 0.54), rgba(7, 20, 33, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  min-height: 70vh;
  padding: 72px 0 100px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-tags,
.detail-meta,
.tag-row,
.filter-chips,
.sub-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.filter-chips button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  padding: 4px 10px;
  font-size: 0.84rem;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(36, 59, 83, 0.56);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.category-card img,
.rank-row-cover img,
.detail-poster img,
.detail-backdrop,
.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(36, 59, 83, 0.82);
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 20, 33, 0.6);
}

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

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

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.quick-search-card,
.quick-categories,
.filter-panel,
.category-overview-card,
.ranking-panel,
.detail-article,
.player-shell,
.prev-next {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(36, 59, 83, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-card {
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.category-overview-head h2,
.site-footer h2,
.detail-article h2 {
  margin: 0;
  line-height: 1.2;
}

.quick-search-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-search input,
.filter-panel input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: rgba(7, 20, 33, 0.54);
  padding: 13px 16px;
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.quick-categories a,
.text-link {
  color: #fde68a;
  transition: color 0.2s ease;
}

.quick-categories a {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  padding: 9px 13px;
}

.page-stack {
  display: grid;
  gap: 54px;
  padding: 56px 0 80px;
}

.content-section {
  position: relative;
}

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

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--soft);
}

.movie-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 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
}

.poster-frame img {
  transition: transform 0.36s ease, opacity 0.2s ease;
}

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

.poster-shade,
.category-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 20, 33, 0.94), transparent 58%);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: var(--amber-500);
  font-weight: 900;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-meta {
  display: flex;
  gap: 8px;
  color: var(--soft);
  font-size: 0.82rem;
}

.movie-card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.75em;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-summary {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.05em;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 0.78rem;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 168px;
}

.movie-card-compact .poster-frame {
  aspect-ratio: auto;
  height: 100%;
}

.movie-card-compact .movie-card-body {
  justify-content: center;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel {
  padding: 22px;
}

.slim-heading {
  align-items: center;
  margin-bottom: 16px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(7, 20, 33, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
  border-color: rgba(245, 158, 11, 0.36);
  transform: translateX(3px);
}

.mini-cover {
  width: 58px;
  height: 78px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
}

.mini-title,
.rank-row-main strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-meta,
.rank-row-main em,
.rank-row-meta {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 0.84rem;
  font-style: normal;
}

.mini-rank {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  color: #111827;
  background: var(--amber-500);
  font-size: 0.84rem;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  transition: transform 0.35s ease;
}

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

.category-card span:last-child {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  z-index: 2;
}

.category-card strong {
  display: block;
  font-size: 1.15rem;
}

.category-card em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(36, 59, 83, 0.82));
}

.sub-hero-inner {
  padding: 84px 0 58px;
}

.sub-hero h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 6vw, 4.7rem);
}

.sub-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-overview-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--soft);
}

.two-col-mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #111827;
  background: var(--amber-500);
}

.empty-state {
  display: none;
  margin: 26px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.top-rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(36, 59, 83, 0.58);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.rank-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: var(--amber-500);
  font-weight: 900;
}

.rank-row-cover {
  width: 68px;
  height: 92px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
}

.rank-row-main em {
  display: -webkit-box;
  overflow: hidden;
  max-width: 720px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.34;
}

.detail-mask {
  background:
    linear-gradient(to bottom, rgba(7, 20, 33, 0.62), rgba(7, 20, 33, 0.98)),
    linear-gradient(to right, rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.56));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 38px 0 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  color: var(--soft);
  font-size: 0.9rem;
}

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

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

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #29203d, #40365c, #5a4d7e);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.detail-meta {
  margin-top: 20px;
}

.detail-tags {
  margin-top: 14px;
}

.detail-content {
  padding: 42px 0 86px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(7, 20, 33, 0.08), rgba(7, 20, 33, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 26px 70px rgba(245, 158, 11, 0.38);
  cursor: pointer;
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #111827;
}

.detail-article {
  margin-top: 26px;
  padding: 28px;
}

.detail-article h2 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.prev-next a {
  border-radius: 14px;
  color: var(--muted);
  background: rgba(7, 20, 33, 0.35);
  padding: 12px 14px;
}

.prev-next a:hover {
  color: var(--amber-400);
}

.related-section {
  margin-top: 50px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 20, 33, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 38px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p,
.footer-links a,
.footer-bottom {
  color: var(--soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  font-size: 0.9rem;
}

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

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

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

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

  .hero-poster {
    display: none;
  }

  .ranking-panel {
    width: 100%;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .mobile-nav .nav-link {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 76vh;
  }

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

  .hero-actions,
  .hero-search,
  .section-heading,
  .category-overview-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-panel {
    margin-top: -24px;
  }

  .movie-grid,
  .compact-grid,
  .top-rank-grid,
  .category-grid,
  .overview-grid,
  .two-col-mini {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 148px;
  }

  .rank-row {
    grid-template-columns: 44px 58px minmax(0, 1fr);
  }

  .rank-row-meta {
    grid-column: 3;
  }

  .detail-grid {
    gap: 22px;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }

  .prev-next {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text {
    font-size: 1rem;
  }

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.02em;
  }

  .quick-search-card,
  .quick-categories,
  .category-overview-card,
  .ranking-panel,
  .detail-article {
    border-radius: 20px;
    padding: 18px;
  }
}
