:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --rose-50: #fff1f2;
  --rose-600: #e11d48;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-700: #0e7490;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.10), 0 2px 4px -2px rgb(15 23 42 / 0.10);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.12), 0 4px 6px -4px rgb(15 23 42 / 0.12);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.16), 0 8px 10px -6px rgb(15 23 42 / 0.16);
  --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 38%, var(--slate-50));
}

body.lock-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-800), var(--amber-700), var(--amber-900));
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.82;
}

.logo-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--white));
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(120 53 15 / 0.96);
}

.mobile-panel a {
  display: block;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--amber-700) 45%, #7f1d1d);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image: radial-gradient(circle at 18px 18px, rgb(255 255 255 / 0.55) 2px, transparent 0);
  background-size: 60px 60px;
  animation: glowMove 18s linear infinite;
}

@keyframes glowMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(60px, 60px, 0);
  }
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.1) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(120 53 15 / 0.96), rgb(146 64 14 / 0.74) 46%, rgb(15 23 42 / 0.34));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  align-items: center;
  gap: 3rem;
  height: 100%;
  padding-top: 1rem;
}

.hero-copy {
  max-width: 48rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(4px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--amber-100);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hero-meta span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-meta span {
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.75rem;
  font-weight: 850;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--amber-900);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--amber-100);
}

.btn-secondary {
  color: var(--white);
  border: 2px solid rgb(255 255 255 / 0.75);
  background: var(--amber-800);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
  background: var(--amber-700);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.12);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(6px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster-card strong {
  display: block;
  padding: 1rem;
  font-size: 1.05rem;
}

.hero-controls {
  position: absolute;
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: 2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-control,
.hero-dot {
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.2rem;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  padding: 0;
}

.hero-control:hover,
.hero-dot:hover,
.hero-dot.active {
  background: rgb(255 255 255 / 0.44);
  transform: translateY(-1px);
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.7rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.7rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--rose-600));
  box-shadow: var(--shadow-md);
}

.lead {
  max-width: 54rem;
  margin: 0.8rem 0 0;
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.movie-card:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--shadow-2xl);
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-200), var(--slate-200));
}

.feature-card .poster-frame {
  aspect-ratio: 16 / 9;
}

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

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

.poster-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.badge-year {
  color: var(--white);
  background: var(--amber-600);
}

.badge-region {
  color: var(--white);
  background: #2563eb;
}

.badge-type {
  color: var(--white);
  background: var(--teal-600);
}

.movie-body {
  padding: 0.85rem;
}

.feature-card .movie-body {
  padding: 1.25rem;
}

.movie-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.feature-card .movie-title {
  font-size: 1.25rem;
}

.movie-card:hover .movie-title {
  color: var(--amber-700);
}

.movie-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.movie-desc {
  display: -webkit-box;
  margin: 0.75rem 0 0;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  padding: 1.35rem;
  border-radius: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--rose-600));
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-700));
}

.category-tile:nth-child(3n + 3) {
  background: linear-gradient(135deg, #7c3aed, var(--rose-600));
}

.category-tile:hover {
  transform: translateY(-0.35rem);
  box-shadow: var(--shadow-2xl);
}

.category-tile h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0.75rem 0 0;
  color: rgb(255 255 255 / 0.86);
  line-height: 1.7;
}

.category-tile span {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  font-weight: 900;
  opacity: 0.84;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: visible;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--white), var(--rose-50));
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--shadow-2xl);
}

.rank-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  z-index: 2;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-600);
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
}

.ranking-cover {
  overflow: hidden;
  min-height: 16rem;
  border-radius: 1rem 0 0 1rem;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ranking-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
}

.ranking-body h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 900;
}

.ranking-body p {
  display: -webkit-box;
  margin: 0.75rem 0 0;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) repeat(3, minmax(8rem, 0.45fr));
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-md);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.8rem;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.18);
}

.empty-state {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--slate-500);
}

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

.page-hero {
  padding: 4rem 0 2.8rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-900), var(--amber-700), #7f1d1d);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 50rem;
  margin: 1rem 0 0;
  color: var(--amber-100);
  font-size: 1.1rem;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--amber-100);
  font-weight: 700;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(15 23 42 / 0.95), rgb(120 53 15 / 0.84), rgb(15 23 42 / 0.5));
}

.detail-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-2xl);
}

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

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-subtitle {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: var(--amber-100);
  font-size: 1.15rem;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.detail-tags span {
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.5rem;
  align-items: start;
  padding: 3rem 0;
}

.content-card,
.side-card,
.player-card {
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.content-card {
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.content-card.highlight {
  border: 2px solid var(--amber-200);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.content-card h2,
.side-card h2,
.player-card h2 {
  margin: 0 0 1rem;
  color: var(--slate-800);
  font-size: 1.5rem;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
  white-space: pre-line;
}

.player-card {
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

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

.player-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgb(0 0 0 / 0.20), rgb(0 0 0 / 0.52));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-2xl);
  font-size: 2rem;
  transform: translateX(0.12rem);
}

.side-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
}

.info-list {
  display: grid;
  gap: 0.2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.95rem;
}

.info-row span:first-child {
  color: var(--slate-500);
}

.info-row span:last-child {
  color: var(--slate-800);
  font-weight: 800;
  text-align: right;
}

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

.related-card {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--slate-50);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-xl);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-card strong {
  display: -webkit-box;
  min-height: 2.7rem;
  margin: 0;
  overflow: hidden;
  padding: 0.75rem;
  color: var(--slate-800);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  color: rgb(203 213 225);
  background: linear-gradient(135deg, var(--slate-900), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  margin: 0;
  color: rgb(203 213 225 / 0.88);
  line-height: 1.8;
}

.footer-grid ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--amber-200);
}

.footer-bottom {
  padding: 1.1rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.10);
  color: rgb(203 213 225 / 0.78);
  font-size: 0.9rem;
}

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

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

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 0 6rem;
  }

  .hero-poster-card {
    max-width: 15rem;
  }

  .hero-controls {
    left: 1rem;
    right: auto;
  }

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

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

  .detail-poster {
    max-width: 14rem;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 80rem);
  }

  .logo span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .ranking-cover {
    min-height: 0;
    border-radius: 1rem 1rem 0 0;
  }

  .ranking-cover img {
    aspect-ratio: 16 / 10;
  }

  .content-card,
  .player-card {
    padding: 1rem;
  }

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