:root {
  --color-primary: #102a43;
  --color-secondary: #243b53;
  --color-accent: #f59e0b;
  --color-accent-soft: rgba(245, 158, 11, 0.16);
  --color-text-primary: #f0f4f8;
  --color-text-secondary: #bcccdc;
  --color-text-muted: #829ab1;
  --color-border: #334e68;
  --color-night-950: #0a1929;
  --color-night-900: #102a43;
  --color-night-800: #1b3a57;
  --color-night-700: #243b53;
  --shadow-night: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-night-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-night-950);
  color: var(--color-text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-spacing {
  padding: 4rem 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.38), rgba(10, 25, 41, 0.95));
  border-top: 1px solid rgba(51, 78, 104, 0.45);
  border-bottom: 1px solid rgba(51, 78, 104, 0.35);
}

.text-gradient {
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-night);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 25%, #fcd34d, #f59e0b 45%, #92400e 100%);
  box-shadow: var(--shadow-glow);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.7rem solid #0a1929;
  transform: translate(-40%, -50%);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tagline {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(51, 78, 104, 0.9);
  border-radius: 0.75rem;
  background: rgba(16, 42, 67, 0.65);
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 1rem 1rem;
  background: rgba(10, 25, 41, 0.98);
  border-top: 1px solid rgba(51, 78, 104, 0.6);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav-link {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: var(--color-text-secondary);
  background: rgba(16, 42, 67, 0.46);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--color-accent);
  background: rgba(245, 158, 11, 0.12);
}

.hero-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: var(--color-night-950);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a1929 0%, rgba(10, 25, 41, 0.72) 48%, rgba(10, 25, 41, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 80vh;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero-copy {
  width: min(100%, 48rem);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-meta,
.detail-facts,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  color: var(--color-text-muted);
}

.hero-meta {
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-night-950);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #d97706;
}

.btn-ghost {
  border-color: rgba(188, 204, 220, 0.2);
  background: rgba(10, 25, 41, 0.48);
  color: var(--color-text-primary);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--color-accent);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 1.5rem;
}

.hero-next {
  right: 1.5rem;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
  width: 1.8rem;
  background: var(--color-accent);
}

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

.section-heading h2,
.ranking-title h2,
.page-hero-copy h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
}

.section-heading h2,
.ranking-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-link,
.filter-link {
  color: var(--color-accent);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(51, 78, 104, 0.72);
  border-radius: 1rem;
  background: rgba(16, 42, 67, 0.55);
  box-shadow: var(--shadow-night);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(51, 78, 104, 0.78);
  border-radius: 0.8rem;
  background: rgba(10, 25, 41, 0.7);
}

.search-box span {
  color: var(--color-accent);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text-primary);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-controls select {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(51, 78, 104, 0.78);
  border-radius: 0.8rem;
  background: rgba(10, 25, 41, 0.76);
  color: var(--color-text-primary);
}

.filter-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 0.8rem;
  background: var(--color-accent-soft);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.55);
  border-radius: 1rem;
  background: rgba(16, 42, 67, 0.72);
  box-shadow: var(--shadow-night);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.08);
  transform: translateY(-5px);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-night-800), var(--color-night-950));
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.07);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
  opacity: 0.82;
}

.movie-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: var(--color-night-950);
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-type,
.card-rank {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.82);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-rank {
  right: auto;
  left: 0.75rem;
  background: var(--color-accent);
  color: var(--color-night-950);
}

.movie-card-body {
  padding: 1rem;
}

.movie-meta-line {
  gap: 0.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 3rem;
  margin: 0;
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card h2 a:hover {
  color: var(--color-accent);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.75rem;
  margin: 0.7rem 0 0;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.movie-card .tag-row {
  margin-top: 0.9rem;
}

.movie-card .tag-row span {
  min-height: auto;
  border-color: rgba(51, 78, 104, 0.7);
  background: rgba(10, 25, 41, 0.68);
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.category-card {
  position: relative;
  display: flex;
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.6);
  border-radius: 1rem;
  background: var(--color-night-900);
  box-shadow: var(--shadow-night);
}

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

.category-card:hover img {
  opacity: 0.62;
  transform: scale(1.06);
}

.category-card span {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 25, 41, 0.92), rgba(10, 25, 41, 0.1));
}

.category-card strong {
  color: #fff;
  font-size: 1.15rem;
}

.category-card small {
  color: var(--color-text-secondary);
}

.ranking-panel,
.detail-side,
.detail-article,
.overview-card {
  border: 1px solid rgba(51, 78, 104, 0.62);
  border-radius: 1.15rem;
  background: rgba(16, 42, 67, 0.68);
  box-shadow: var(--shadow-night);
}

.ranking-panel {
  padding: 1.25rem;
}

.compact-list {
  display: grid;
  gap: 0.85rem;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 5rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(51, 78, 104, 0.5);
  border-radius: 0.9rem;
  background: rgba(10, 25, 41, 0.52);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.compact-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(27, 58, 87, 0.72);
  transform: translateX(4px);
}

.compact-card img {
  width: 5rem;
  height: 3.2rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.compact-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-night-950);
  font-weight: 900;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  color: var(--color-text-muted);
}

.page-main {
  padding-top: 4.5rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.16), transparent 30%), linear-gradient(135deg, #102a43, #0a1929 72%);
}

.compact-hero,
.ranking-hero {
  padding: 5rem 0 3rem;
}

.page-hero-copy {
  max-width: 52rem;
}

.page-hero-copy h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.page-hero-copy p {
  max-width: 44rem;
  color: var(--color-text-secondary);
  font-size: 1.06rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.overview-grid {
  display: grid;
  gap: 1.2rem;
}

.overview-card {
  display: grid;
  overflow: hidden;
}

.overview-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 13rem;
  overflow: hidden;
}

.overview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-body {
  padding: 1.25rem;
}

.overview-body h2 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
}

.overview-body p {
  margin: 0 0 1rem;
  color: var(--color-text-secondary);
}

.detail-hero {
  min-height: 72vh;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a1929 0%, rgba(10, 25, 41, 0.82) 55%, rgba(10, 25, 41, 0.48) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: end;
}

.detail-poster {
  width: min(15rem, 72vw);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-night-lg);
}

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

.detail-copy h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 7vw, 5.3rem);
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 54rem;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.detail-facts {
  margin: 1rem 0;
}

.detail-tags {
  margin-bottom: 1.5rem;
}

.player-section {
  padding: 2rem 0 1rem;
  background: #07121f;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, 0.75);
  border-radius: 1.2rem;
  background: #000;
  box-shadow: var(--shadow-night-lg);
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.74));
  color: #fff;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-night-950);
  font-size: 2.1rem;
  box-shadow: var(--shadow-glow);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.detail-article {
  padding: 1.5rem;
}

.detail-article h2 {
  margin-bottom: 0.85rem;
  font-size: 1.8rem;
}

.detail-article p {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.86;
}

.review-eyebrow {
  margin-top: 2rem;
}

.detail-side {
  padding: 1.35rem;
  align-self: start;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.7rem 1rem;
  margin: 1rem 0 1.5rem;
}

.detail-side dt {
  color: var(--color-text-muted);
}

.detail-side dd {
  margin: 0;
  color: var(--color-text-primary);
}

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

.site-footer {
  border-top: 1px solid rgba(51, 78, 104, 0.6);
  background: #07121f;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--color-text-muted);
}

.footer-grid a {
  display: block;
  margin: 0.5rem 0;
}

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

.footer-grid h2 {
  margin: 0 0 0.75rem;
  color: var(--color-text-primary);
  font-size: 1rem;
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid rgba(51, 78, 104, 0.45);
  color: var(--color-text-muted);
  text-align: center;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }

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

  .overview-card {
    grid-template-columns: 18rem 1fr;
  }
}

@media (min-width: 768px) {
  .hero-control {
    display: flex;
  }

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

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

  .detail-layout {
    grid-template-columns: 16rem 1fr;
    gap: 2.2rem;
  }

  .detail-content-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

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

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-inner {
    height: 5rem;
  }

  .page-main {
    padding-top: 5rem;
  }

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

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

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

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

  .split-layout {
    grid-template-columns: minmax(0, 1fr) 24rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-section,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .compact-card {
    grid-template-columns: auto 4.2rem 1fr;
  }

  .compact-card img {
    width: 4.2rem;
  }
}
