:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #f8fafc;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(249, 115, 22, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::selection {
  background: rgba(34, 211, 238, 0.35);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: #001018;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

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

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

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

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

.desktop-nav > a,
.nav-dropdown > a {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: -18px;
  display: grid;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.dropdown-panel a,
.mobile-panel nav a,
.site-footer a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-panel nav a:hover,
.site-footer a:hover {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
  padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.top-search button,
.mobile-search button,
.hero-search button,
.filter-panel button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #04111d;
}

.top-search button {
  padding: 10px 16px;
}

.primary-button,
.ghost-button {
  padding: 13px 22px;
}

.ghost-button {
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-panel button:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 16px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hero-carousel {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide,
.hero-slide > img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, var(--bg), transparent 35%, rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1240px, calc(100% - 32px));
  min-height: 85vh;
  margin: 0 auto;
  padding: 160px 0 150px;
}

.hero-content h1 {
  max-width: 820px;
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 740px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-pill,
.card-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  font-weight: 700;
}

.hero-pill {
  padding: 8px 14px;
}

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

.hero-meta {
  margin-bottom: 18px;
  color: #cbd5e1;
}

.hero-meta span,
.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  cursor: pointer;
  font-size: 40px;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 46px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 5;
  bottom: 44px;
  left: max(16px, calc((100vw - 1240px) / 2));
  display: flex;
  width: min(520px, calc(100% - 32px));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  padding: 13px 16px;
}

.hero-search button {
  padding: 0 20px;
}

.hero-glow {
  position: absolute;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
}

.hero-glow-cyan {
  top: 15%;
  left: 28%;
  background: var(--cyan);
}

.hero-glow-orange {
  right: 18%;
  bottom: 8%;
  background: var(--orange);
}

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading span,
.subpage-hero > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.subpage-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

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

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.row-heading > a {
  color: var(--cyan);
  font-weight: 700;
}

.row-heading.compact h2 {
  font-size: 28px;
}

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

.category-tile,
.category-overview-card a,
.panel-card,
.prose-card,
.filter-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.category-tile {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-overview-card a:hover,
.movie-card:hover,
.compact-card a:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px);
}

.tile-thumbs,
.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  height: 95px;
  overflow: hidden;
}

.tile-thumbs img,
.overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-copy {
  display: grid;
  gap: 7px;
  padding: 16px;
}

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

.tile-copy em,
.card-body em,
.compact-card em {
  color: var(--muted);
  font-style: normal;
}

.tile-copy small {
  color: #cbd5e1;
}

.highlight-section {
  position: relative;
}

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

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.movie-card .card-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
}

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 52%);
  opacity: 0.85;
}

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

.year-badge {
  right: 10px;
  padding: 5px 9px;
}

.rank-number {
  left: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  color: #0b1220;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-category {
  padding: 4px 9px;
  font-size: 12px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body em,
.card-desc {
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  color: #94a3b8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.two-column-zone {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.panel-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
}

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

.compact-card a {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.3);
  padding: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.compact-card img {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  color: #ffffff;
}

.compact-card em {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.compact-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  font-weight: 900;
}

.subpage {
  min-height: 70vh;
}

.subpage-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 18px;
}

.category-hero,
.ranking-hero,
.search-hero {
  position: relative;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  overflow: hidden;
  min-height: 170px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.overview-thumbs {
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-overview-card div:last-child {
  padding: 24px 24px 24px 0;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
}

.category-overview-card span {
  color: var(--cyan);
  font-weight: 800;
}

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

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel label span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
}

.filter-panel button {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
}

.filter-count {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.empty-state {
  margin-top: 28px;
  padding: 50px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.detail-page {
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  padding-bottom: 40px;
}

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.04);
}

.detail-bg-mask {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 58%, rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, var(--bg), transparent 48%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 46px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 36px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 850px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 20px;
}

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

.meta-grid div {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  padding: 14px;
}

.meta-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}

.meta-grid dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 24rem),
    rgba(2, 6, 23, 0.48);
  color: #ffffff;
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.play-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #02111f;
  font-size: 34px;
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.35);
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay small {
  color: #cbd5e1;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  color: #fef3c7;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.prose-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.prose-card h2 {
  margin: 0 0 14px;
  color: #ffffff;
}

.prose-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 32px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

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

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

  .hero-content {
    padding-top: 120px;
    padding-bottom: 170px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    bottom: 72px;
  }

  .hero-dots {
    right: auto;
    left: 24px;
    bottom: 28px;
  }

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

  .two-column-zone,
  .category-overview-grid,
  .content-grid,
  .footer-grid,
  .detail-main {
    grid-template-columns: 1fr;
  }

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

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

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

  .overview-thumbs {
    height: 140px;
  }

  .category-overview-card div:last-child {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

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

  .hero-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search button {
    min-height: 44px;
  }

  .section-wrap {
    padding: 46px 0;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

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

  .detail-layout {
    padding-top: 28px;
  }

  .detail-main {
    gap: 24px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }

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