:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --pink: #ec4899;
  --gold: #facc15;
  --shadow: 0 24px 60px rgba(8, 47, 73, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 30rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

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

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 12px;
  color: #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #cbd5e1;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.site-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 96px 16px 44px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  width: min(1220px, 100%);
  min-height: 610px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #08111f;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.76) 36%, rgba(2, 6, 23, 0.24) 68%, rgba(2, 6, 23, 0.68) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(680px, 100%);
  padding: 72px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.genre-pills,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.genre-pills span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  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: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.3);
}

.btn-soft {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid var(--line);
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
}

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

.hero-search {
  width: min(850px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-search label,
.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  padding: 0 14px;
}

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

.search-box button {
  min-width: 110px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  border: 0;
  border-radius: 15px;
  font-weight: 800;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

.featured-grid .movie-card:nth-child(1),
.featured-grid .movie-card:nth-child(7) {
  grid-column: span 2;
}

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

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

.movie-card {
  overflow: hidden;
  min-width: 0;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 26px 58px rgba(8, 47, 73, 0.32);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(30, 41, 59, 0.88));
}

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

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

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: rgba(6, 182, 212, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: block;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-line {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.movie-tags {
  margin-top: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 74px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.rank-num,
.ranking-index {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rank-item img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy strong {
  color: #fff;
  font-size: 14px;
}

.rank-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-arrow {
  color: var(--cyan);
  font-size: 26px;
}

.spotlight-panel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 18rem),
    linear-gradient(145deg, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 28px;
}

.spotlight-panel p {
  color: #cbd5e1;
  line-height: 1.8;
}

.spotlight-panel h2 {
  margin: 18px 0 12px;
  font-size: 34px;
  line-height: 1.15;
}

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

.category-tile,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  opacity: 0.58;
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.86));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

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

.category-tile em {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 110px auto 0;
  padding: 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.86));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero-small h1,
.page-hero-copy h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero-small p,
.page-hero-copy p {
  max-width: 740px;
  color: #cbd5e1;
  line-height: 1.8;
}

.category-hero {
  min-height: 410px;
  padding: 0;
}

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

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.82));
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 410px;
  padding: 62px;
}

.category-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: auto;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-copy strong,
.category-overview-copy em {
  display: block;
}

.category-overview-copy strong {
  color: #fff;
  font-size: 20px;
}

.category-overview-copy em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 190px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 58px 132px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
}

.ranking-card img {
  width: 132px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-body strong,
.ranking-body em,
.ranking-body span {
  display: block;
}

.ranking-body strong {
  color: #fff;
  font-size: 18px;
}

.ranking-body em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-body span {
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 130px 16px 70px;
}

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.52;
}

.detail-bg-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.96)),
    linear-gradient(180deg, transparent, var(--bg));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: #a5f3fc;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 800px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 9rem),
    rgba(2, 6, 23, 0.26);
  border: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
  border-radius: 999px;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.42);
  font-size: 36px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-article,
.detail-side {
  margin-top: 22px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-article p {
  color: #cbd5e1;
  line-height: 2;
}

.detail-side {
  margin-top: 0;
  position: sticky;
  top: 94px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: #64748b;
}

.detail-side dd {
  margin: 0;
  color: #e2e8f0;
}

.genre-pills {
  margin-top: 22px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  color: var(--muted);
}

.footer-inner strong {
  color: #fff;
}

.footer-inner p {
  margin: 4px 0 0;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 0;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 13px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .site-header.is-open .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .brand-copy em {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-shell,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    padding: 36px;
  }

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

  .split-layout,
  .detail-wrap,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    gap: 28px;
  }

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

  .detail-side {
    position: static;
  }

  .rank-list,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
    height: 66px;
  }

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

  .mobile-nav {
    width: calc(100% - 24px);
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-shell,
  .hero-slide img {
    min-height: 600px;
    border-radius: 24px;
  }

  .hero-content {
    justify-content: flex-end;
    padding: 28px 22px 72px;
  }

  .hero-actions,
  .detail-actions,
  .search-box {
    flex-direction: column;
  }

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

  .hero-search {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .content-section,
  .page-hero {
    width: calc(100% - 24px);
  }

  .content-section {
    padding: 38px 0;
  }

  .page-hero {
    margin-top: 88px;
    padding: 32px 22px;
    border-radius: 24px;
  }

  .page-hero-copy {
    min-height: 360px;
    padding: 32px 22px;
  }

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

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

  .featured-grid .movie-card:nth-child(1),
  .featured-grid .movie-card:nth-child(7) {
    grid-column: span 2;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-line,
  .movie-tags {
    display: none;
  }

  .rank-item {
    grid-template-columns: 36px 64px 1fr 14px;
  }

  .ranking-card {
    grid-template-columns: 40px 96px 1fr;
    gap: 10px;
  }

  .ranking-card img {
    width: 96px;
  }

  .detail-hero {
    min-height: auto;
    padding-top: 94px;
  }

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

  .detail-copy p {
    font-size: 15px;
  }

  .detail-article,
  .detail-side {
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
