:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --teal-500: #14b8a6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), #ffffff);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 28px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #06202c;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.25);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--white);
  background: rgba(148, 163, 184, 0.18);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
}

.nav-search input,
.mobile-nav input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
}

.nav-search input::placeholder,
.mobile-nav input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.nav-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-nav button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: min(720px, 76vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
  transform: scale(1.03);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 680px;
  color: var(--white);
}

.hero-eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-eyebrow {
  padding: 8px 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.26);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 24px;
  max-width: 620px;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 12px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.26);
}

.primary-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 28px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

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

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

.hero-dot.is-active {
  width: 56px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
}

.metric-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
  text-align: center;
}

.metric-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.metric-grid span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 14px;
}

.section-block {
  padding: 74px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.glow-bg {
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.16), transparent 32%),
    linear-gradient(135deg, #ecfeff, #eff6ff 48%, #f0fdfa);
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--cyan-600);
  gap: 6px;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  min-height: 176px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.category-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.category-tile em {
  margin-top: 6px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.tone-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.tone-rose { background: linear-gradient(135deg, #e11d48, #f97316); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.tone-indigo { background: linear-gradient(135deg, #4f46e5, #0891b2); }
.tone-emerald { background: linear-gradient(135deg, #059669, #14b8a6); }
.tone-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tone-pink { background: linear-gradient(135deg, #db2777, #8b5cf6); }
.tone-teal { background: linear-gradient(135deg, #0f766e, #06b6d4); }

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.stack-list {
  display: grid;
  gap: 16px;
}

.movie-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.17);
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--slate-800);
  aspect-ratio: 16 / 10;
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.year-badge {
  top: 10px;
  right: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f97316, #db2777);
}

.movie-info {
  padding: 17px;
}

.pill {
  color: var(--white);
  background: linear-gradient(135deg, #10b981, var(--teal-500));
  padding: 4px 9px;
  margin-bottom: 10px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.movie-info p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--gray-500);
}

.horizontal-card .movie-link {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.horizontal-card .poster-frame {
  aspect-ratio: auto;
  min-height: 145px;
}

.horizontal-card .movie-info h3 {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.mini-card {
  box-shadow: none;
  background: transparent;
}

.mini-card .poster-frame {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.mini-card .movie-info {
  padding: 12px 0 0;
}

.compact-info h3 {
  min-height: 42px;
  font-size: 15px;
}

.page-hero {
  padding: 74px 0;
  color: var(--white);
}

.gradient-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.35), transparent 30%),
    linear-gradient(135deg, var(--cyan-600), var(--blue-600), var(--teal-500));
}

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

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 28px;
}

.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-overview-card div {
  position: relative;
  z-index: 1;
  max-width: 540px;
  color: var(--white);
}

.category-overview-card span {
  display: inline-block;
  margin-bottom: 8px;
  opacity: 0.86;
}

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

.category-overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select,
.hero-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: 0;
  color: var(--gray-900);
  background: var(--white);
  border-radius: 999px;
  padding: 13px 16px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.hero-search input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
  display: none;
  padding: 60px 20px;
  color: var(--gray-500);
  text-align: center;
}

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

.hero-search {
  position: relative;
  width: min(680px, 100%);
  margin-top: 28px;
}

.hero-search input {
  padding: 17px 132px 17px 22px;
  border: 0;
}

.hero-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
  cursor: pointer;
}

.search-status {
  margin-bottom: 28px;
}

.search-status h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-status p {
  margin: 0;
  color: var(--gray-600);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.28));
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 42px 0;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 24px;
}

.detail-intro img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-intro h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-intro p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-section {
  padding-top: 56px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.23);
  aspect-ratio: 16 / 9;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
  cursor: pointer;
  font-size: 30px;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-overlay span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-weight: 700;
}

.player.is-loading .play-button {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.content-card,
.side-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 11px 16px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 30px;
}

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

.site-footer p,
.site-footer li,
.site-footer a,
.footer-bottom {
  color: rgba(226, 232, 240, 0.72);
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .desktop-nav a:nth-last-child(-n + 3) {
    display: none;
  }

  .six-grid,
  .five-grid,
  .four-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 600px;
  }

  .metric-grid,
  .category-grid,
  .overview-grid,
  .three-grid,
  .four-grid,
  .five-grid,
  .six-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .horizontal-card .movie-link {
    grid-template-columns: 160px 1fr;
  }

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

  .detail-intro img {
    width: min(260px, 72vw);
  }

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

@media (max-width: 640px) {
  .container,
  .nav-shell,
  .mobile-nav,
  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 80px 0 110px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.95));
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .metric-grid,
  .category-grid,
  .overview-grid,
  .three-grid,
  .four-grid,
  .five-grid,
  .six-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 10px;
  }

  .horizontal-card .movie-link {
    grid-template-columns: 1fr;
  }

  .horizontal-card .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    padding: 52px 0;
  }

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

  .detail-intro h1 {
    font-size: 36px;
  }

  .detail-intro p {
    font-size: 17px;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }
}
