:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.64);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-deep: #0891b2;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(6, 182, 212, 0.17), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.16), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #020617 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: calc(100vh - 320px);
  padding-top: var(--header);
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #67e8f9 48%, #a5f3fc);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

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

.brand-title {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.76);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.mobile-link.active {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.18);
}

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

.hero {
  position: relative;
  min-height: calc(78vh - var(--header));
  overflow: hidden;
  background: #020617;
}

.hero-carousel {
  position: relative;
  min-height: calc(78vh - var(--header));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 45%, rgba(2, 6, 23, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #cffafe;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.24);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.28);
}

.secondary-button {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.ghost-button {
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

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

.hero-card {
  position: relative;
  align-self: center;
  padding: 16px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-card-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-card-info em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.82);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.34);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 310px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

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

.movie-card {
  display: block;
  min-width: 0;
  color: var(--text);
  scroll-snap-align: start;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.movie-card.featured .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, transparent 56%);
  opacity: 0.9;
}

.movie-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.score-badge,
.rank-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  top: 10px;
  right: 10px;
  color: #1c1917;
  background: var(--yellow);
}

.rank-badge {
  top: 10px;
  left: 10px;
  color: #e0f2fe;
  background: rgba(8, 145, 178, 0.86);
}

.type-badge {
  left: 10px;
  bottom: 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
}

.movie-card-body {
  display: block;
  padding: 13px 2px 0;
}

.movie-card-body strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

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

.movie-card-body em,
.movie-card-body small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.14);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 12rem),
    rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.42);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.category-tile span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  padding: 78px 0 42px;
  background:
    radial-gradient(circle at 72% 8%, rgba(6, 182, 212, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0));
}

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

.breadcrumb a {
  color: #a5f3fc;
}

.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 220px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  margin: 32px 0;
  padding: 28px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.64);
}

.empty-state.show {
  display: block;
}

.is-filtered {
  display: none !important;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 78px minmax(0, 1fr) 82px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.38);
  background: rgba(15, 23, 42, 0.94);
}

.ranking-number {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.ranking-item img {
  width: 78px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.7);
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info em,
.ranking-info small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-score {
  justify-self: end;
  color: #1c1917;
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.32) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.26) 58%, rgba(2, 6, 23, 0.68) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  padding: 76px 0 62px;
}

.detail-poster {
  padding: 12px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

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

.content-panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--line);
}

.content-panel + .content-panel {
  margin-top: 22px;
}

.content-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.content-panel p {
  margin: 0 0 16px;
  color: #d1d5db;
  line-height: 1.9;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #001018;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.34), transparent 14rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.14));
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, #22d3ee, #a5f3fc);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.42);
}

.player-shell.is-playing .play-overlay {
  display: none;
  pointer-events: none;
}

.side-panel {
  display: grid;
  gap: 18px;
}

.info-table {
  display: grid;
  gap: 10px;
}

.info-table div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-table span {
  color: var(--muted);
}

.info-table strong {
  font-weight: 700;
}

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

.related-grid .movie-card-body .movie-desc {
  display: none;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.related-list img {
  width: 58px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.related-list strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-list span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  margin-top: 72px;
  background: rgba(15, 23, 42, 0.82);
  border-top: 1px solid var(--line);
}

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

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.footer-about p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}

.footer-link-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-link-grid a:hover {
  color: var(--cyan);
}

.copyright {
  padding: 18px 0 24px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 860px) {
  :root {
    --header: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 64px 0 70px;
  }

  .hero-card {
    max-width: 320px;
  }

  .hero-arrow {
    display: none;
  }

  .section-header {
    display: block;
  }

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

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

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-poster {
    width: 220px;
  }

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

@media (max-width: 620px) {
  .brand-subtitle {
    display: none;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero {
    min-height: 720px;
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-card {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-row {
    grid-auto-columns: minmax(220px, 260px);
  }

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

  .ranking-item {
    grid-template-columns: 42px 62px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .ranking-item img {
    width: 62px;
  }

  .detail-poster {
    width: 180px;
  }

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

  .content-panel {
    padding: 20px;
  }

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

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

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

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

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
}

@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}
