:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow: 0 20px 45px rgba(28, 25, 23, 0.16);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--amber-50), var(--stone-100));
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--amber-50);
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--amber-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--amber-300);
  transition: transform 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--amber-300);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-50);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  position: relative;
  height: min(72vh, 680px);
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay,
.detail-shade,
.category-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.22), transparent 36%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(41, 37, 36, 0.72), rgba(28, 25, 23, 0.28)),
    linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 44%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 70px 0;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(253, 230, 138, 0.42);
  border-radius: 999px;
  color: var(--amber-200);
  background: rgba(120, 53, 15, 0.36);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.category-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.category-hero p,
.detail-info p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--stone-200);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.card-meta span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  color: var(--amber-100);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(253, 230, 138, 0.28);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--stone-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  color: var(--amber-100);
  border-color: rgba(253, 230, 138, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.block-btn {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.36);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-900));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

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

.hero-poster span,
.card-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--stone-900);
  background: var(--amber-300);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
}

.hero-poster span {
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  font-size: 24px;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--amber-300);
}

.quick-search-wrap,
.content-section,
.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-wrap {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}

.quick-search,
.filter-panel,
.global-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 211, 209, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search span,
.filter-search span {
  color: var(--amber-800);
  font-weight: 900;
}

.quick-search input,
.filter-search input,
.global-search-box input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  outline: none;
  background: var(--stone-50);
}

.quick-search input:focus,
.filter-search input:focus,
.global-search-box input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-search button,
.global-search-box button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--stone-900);
  background: var(--amber-400);
  font-weight: 900;
}

.content-section {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 900;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 126px;
  padding: 8px;
  background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.category-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3 {
  margin: 16px 16px 8px;
  color: var(--stone-900);
  font-size: 20px;
}

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

.filter-panel {
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-search {
  display: grid;
  flex: 1;
  gap: 8px;
}

.filter-actions,
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  color: var(--stone-700);
  background: white;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--stone-900);
  border-color: var(--amber-400);
  background: var(--amber-200);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-900));
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.card-duration,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-duration {
  right: 10px;
}

.rank-badge {
  left: 10px;
  color: var(--stone-900);
  background: var(--amber-300);
}

.card-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  flex: 1;
  margin: 9px 0 14px;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-meta span {
  padding: 4px 8px;
  color: var(--amber-800);
  background: var(--amber-100);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 150px;
}

.movie-card-horizontal .card-cover {
  height: 100%;
}

.movie-card-horizontal .card-body h3 {
  min-height: auto;
}

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

.ranking-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
  border-radius: 24px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin: 0;
  font-size: 28px;
}

.ranking-panel p {
  color: var(--amber-100);
  line-height: 1.7;
}

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

.ranking-list .movie-card-horizontal {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 112px;
  color: var(--stone-800);
}

.ranking-list .card-body {
  padding: 10px;
}

.ranking-list .card-body p,
.ranking-list .card-meta {
  display: none;
}

.ranking-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--stone-900);
}

.page-hero {
  padding: 92px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.page-hero-inner,
.category-hero-content,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.category-hero {
  min-height: 430px;
}

.category-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.category-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 64px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 700;
}

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

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

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-hero-inner {
  padding: 62px 0 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.35);
  border-radius: 26px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.52);
}

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

.detail-info p {
  color: var(--stone-100);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.detail-meta-grid span {
  display: block;
  color: var(--amber-200);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 16px;
}

.player-section {
  padding-top: 48px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: black;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.32);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: var(--stone-900);
  background: var(--amber-300);
  font-size: 32px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  max-width: 72%;
  color: var(--amber-100);
}

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

.detail-article,
.detail-sidebar {
  padding: 28px;
  border: 1px solid rgba(214, 211, 209, 0.76);
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
}

.detail-article h2,
.detail-sidebar h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-sidebar {
  position: sticky;
  top: 90px;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.related-grid .movie-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 126px;
}

.related-grid .card-cover {
  height: 100%;
}

.related-grid .card-body {
  padding: 11px;
}

.related-grid .card-body h3 {
  min-height: auto;
  font-size: 16px;
}

.related-grid .card-body p,
.related-grid .card-meta {
  display: none;
}

.search-filters {
  margin-bottom: 20px;
}

.global-search-box {
  width: min(760px, 100%);
  margin-top: 26px;
}

.site-footer {
  margin-top: 80px;
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-900), var(--stone-800), var(--stone-900));
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 520px;
  color: var(--stone-400);
  line-height: 1.75;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--amber-100);
}

.footer-links div {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(231, 229, 228, 0.12);
  color: var(--stone-500);
  text-align: center;
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    width: min(280px, 100%);
    height: 380px;
  }

  .hero-control {
    display: none;
  }

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

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

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

@media (max-width: 620px) {
  .nav-shell,
  .mobile-nav,
  .quick-search-wrap,
  .content-section,
  .player-section,
  .page-hero-inner,
  .category-hero-content,
  .detail-hero-inner,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-inner {
    padding-top: 44px;
  }

  .hero-copy h1,
  .page-hero h1,
  .category-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .quick-search,
  .filter-panel,
  .global-search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .ranking-page-list {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 240px;
  }

  .movie-card-horizontal,
  .related-grid .movie-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }
}
