:root {
  color-scheme: dark;
  --stone-950: #0c0a09;
  --stone-925: #12100f;
  --stone-900: #1c1917;
  --stone-850: #231f1c;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-100: #f5f5f4;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --copper-600: #b45309;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-amber: 0 20px 80px rgba(245, 158, 11, 0.16);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem), linear-gradient(180deg, var(--stone-950), var(--stone-900) 46%, var(--stone-950));
  color: var(--stone-100);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(120, 113, 108, 0.18);
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(100% - 32px, var(--max));
  height: 72px;
  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-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--copper-600));
  color: white;
  box-shadow: var(--shadow-amber);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-400), #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--stone-300);
  font-weight: 700;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-400);
  background: rgba(68, 64, 60, 0.5);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--stone-800);
  color: var(--stone-100);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 18px;
  background: rgba(41, 37, 36, 0.94);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--stone-950);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(28, 25, 23, 0.92));
}

.hero-slide img.image-hidden,
.movie-card img.image-hidden,
.compact-card img.image-hidden,
.category-card img.image-hidden,
.detail-bg.image-hidden {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--stone-950) 0%, rgba(12, 10, 9, 0.84) 45%, rgba(12, 10, 9, 0.48) 100%), radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 34rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 120px 0 112px;
  animation: fadeUp 0.72s ease both;
}

.hero-meta,
.detail-meta,
.meta-line,
.tag-row,
.detail-tags,
.hero-tags,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.hero-tags span,
.tag-row span,
.detail-tags span,
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.62);
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  max-width: 850px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-content p {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--stone-300);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--amber-500), var(--copper-600));
  color: white;
  box-shadow: var(--shadow-amber);
}

.btn.ghost {
  border: 1px solid rgba(214, 211, 209, 0.2);
  background: rgba(41, 37, 36, 0.74);
  color: var(--stone-100);
}

.btn:hover,
.category-card:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 50%;
  background: rgba(41, 37, 36, 0.72);
  color: var(--stone-100);
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.48);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--amber-400);
}

.search-panel {
  position: relative;
  z-index: 10;
  width: min(100% - 32px, var(--max));
  margin: -36px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(120, 113, 108, 0.2);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.page-search {
  margin-top: -28px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--stone-800);
  color: var(--stone-400);
}

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

.content-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.rank-panel-head h2,
.text-panel h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--stone-400);
  line-height: 1.7;
}

.section-heading > a,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-400);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.94));
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: var(--shadow-amber);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(68, 64, 60, 0.5));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.72), transparent 55%);
}

.score,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.score {
  top: 12px;
  left: 12px;
  background: var(--amber-500);
  color: var(--stone-950);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(12, 10, 9, 0.72);
  color: var(--stone-100);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 50px;
  margin: 0 0 12px;
  color: var(--stone-400);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 26px;
  padding: 0 9px;
  color: var(--stone-300);
  font-size: 12px;
  border-color: rgba(214, 211, 209, 0.12);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.94));
}

.rank-panel-head {
  margin-bottom: 20px;
}

.rank-panel-head span {
  color: var(--amber-400);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.compact-list,
.rank-list-page {
  display: grid;
  gap: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(120, 113, 108, 0.16);
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.compact-card:hover {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(41, 37, 36, 0.92);
}

.rank-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--copper-600));
  color: white;
  font-weight: 900;
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(68, 64, 60, 0.54));
}

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

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

.compact-info strong {
  color: white;
  font-size: 15px;
}

.compact-info em {
  margin-top: 4px;
  color: var(--stone-400);
  font-size: 12px;
  font-style: normal;
}

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

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

.category-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(28, 25, 23, 0.92));
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: var(--shadow-amber);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.36s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.15));
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 1;
}

.category-card span {
  color: var(--amber-400);
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  color: var(--stone-300);
  font-size: 14px;
  line-height: 1.5;
}

.page-hero {
  position: relative;
  width: min(100% - 32px, var(--max));
  min-height: 320px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  padding: 58px;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 32px;
  background: radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.28), transparent 26rem), linear-gradient(135deg, rgba(41, 37, 36, 0.98), rgba(12, 10, 9, 0.98));
}

.small-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  filter: blur(2px);
}

.page-hero > div {
  position: relative;
  z-index: 1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--stone-800);
  color: var(--stone-300);
  font-weight: 800;
}

.pagination a.current,
.pagination a:hover {
  background: var(--amber-500);
  color: var(--stone-950);
}

.detail-hero {
  position: relative;
  min-height: 700px;
  padding: 42px 0 76px;
  overflow: hidden;
  background: var(--stone-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(4px) saturate(1.05);
  transform: scale(1.04);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--stone-950), rgba(12, 10, 9, 0.78) 45%, rgba(12, 10, 9, 0.36));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 28px;
  color: var(--stone-400);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 30px;
  align-items: end;
}

.detail-player-card,
.detail-info,
.text-panel,
.info-table {
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.82);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.detail-player-card {
  padding: 14px;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #050505;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(12, 10, 9, 0.72));
  color: white;
  cursor: pointer;
}

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

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--copper-600));
  box-shadow: var(--shadow-amber);
  font-size: 26px;
}

.player-cover strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--stone-300);
  font-size: 17px;
  line-height: 1.8;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 24px;
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin-bottom: 16px;
  color: white;
}

.text-panel p {
  margin: 0;
  color: var(--stone-300);
  font-size: 16px;
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.info-table div {
  padding: 20px;
  background: rgba(41, 37, 36, 0.58);
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.info-table strong {
  margin-top: 6px;
  color: var(--stone-100);
  line-height: 1.5;
}

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

.site-footer {
  margin-top: 88px;
  border-top: 1px solid rgba(120, 113, 108, 0.18);
  background: rgba(12, 10, 9, 0.86);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 34px;
  padding: 44px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--amber-400);
  font-size: 24px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 580px;
  margin: 0;
  color: var(--stone-400);
  line-height: 1.8;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: var(--stone-100);
  font-size: 16px;
}

.footer-column a {
  color: var(--stone-400);
}

.footer-column a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(120, 113, 108, 0.14);
  color: var(--stone-500);
  font-size: 14px;
  text-align: center;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rank-panel {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .brand-text {
    font-size: 19px;
  }

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

  .hero-content {
    padding-bottom: 118px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
  }

  .search-panel,
  .section-heading,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-categories,
  .related-grid,
  .rank-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: 36px 24px;
    min-height: 260px;
  }

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

  .detail-info {
    padding: 24px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-wrap,
  .mobile-menu,
  .content-section,
  .search-panel,
  .page-hero,
  .detail-wrap,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 20px, var(--max));
  }

  .hero-content {
    width: min(100% - 20px, var(--max));
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-categories,
  .related-grid,
  .rank-list-page {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    grid-template-columns: auto 52px minmax(0, 1fr);
  }
}
