:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --rose-50: #fff1f2;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(180, 83, 9, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(244, 63, 94, 0.12), transparent 30rem),
    linear-gradient(135deg, var(--amber-50), #fff7ed 38%, var(--rose-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 241, 242, 0.94), rgba(255, 251, 235, 0.94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(146, 64, 14, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber-400), var(--rose-400), var(--amber-300));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.24);
}

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

.gradient-text {
  background: linear-gradient(120deg, var(--amber-700), var(--rose-600), var(--amber-600));
  background-size: 220% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: silk-gradient-flow 6s ease infinite;
}

.silk-shine {
  position: relative;
  overflow: hidden;
}

.silk-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: silk-shine-animation 4.8s ease-in-out infinite;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #92400e;
  font-weight: 700;
  padding: 8px 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(254, 243, 199, 0.8);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--amber-700);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  flex-direction: column;
  gap: 6px;
}

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

.hero-carousel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-stage {
  min-height: 590px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.38)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.28), transparent 26rem),
    radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.20), transparent 22rem);
}

.hero-content {
  min-height: 590px;
  position: relative;
  z-index: 2;
  padding: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.88);
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-meta,
.movie-tags,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.detail-meta span,
.tag,
.filter-button,
.movie-meta span,
.movie-meta a {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.primary-button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.23);
  border: 0;
  cursor: pointer;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(180, 83, 9, 0.26);
}

.hero-poster {
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.quick-search-section,
.content-section,
.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-section {
  margin-top: 28px;
}

.silk-panel,
.spotlight-panel,
.page-hero,
.detail-hero,
.detail-section,
.player-section {
  border: 1px solid rgba(180, 83, 9, 0.13);
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-inner {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  align-items: center;
  gap: 22px;
}

.quick-search-inner h2,
.section-heading h2,
.detail-section h2,
.player-section h2 {
  margin: 8px 0 0;
  color: #78350f;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.hero-search {
  display: flex;
  gap: 12px;
}

.hero-search input,
.filter-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-search input:focus,
.filter-input:focus {
  border-color: rgba(244, 63, 94, 0.48);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.content-section {
  margin-top: 42px;
}

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

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

.section-more {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(146, 64, 14, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(244, 63, 94, 0.18));
}

.movie-card.compact .movie-cover {
  aspect-ratio: 3 / 4;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.58));
  opacity: 0.82;
}

.movie-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.movie-info {
  padding: 17px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-meta span,
.movie-meta a,
.tag,
.filter-button {
  color: #9a3412;
  background: rgba(254, 243, 199, 0.9);
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #78350f;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--rose-600);
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  gap: 8px;
}

.tag:hover,
.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.split-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
}

.spotlight-panel {
  padding: 26px;
}

.rose-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 241, 242, 0.82));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  background: rgba(254, 243, 199, 0.95);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #78350f;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-card img {
  grid-row: span 2;
  width: 64px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card span {
  align-self: end;
  color: #78350f;
  font-weight: 800;
}

.mini-card small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.09);
}

.category-visual {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
}

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

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

.category-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.category-visual span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.category-body {
  padding: 20px;
}

.category-body h2 {
  margin: 0 0 8px;
  color: #78350f;
}

.category-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--rose-600);
  background: rgba(255, 241, 242, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.page-main {
  padding-top: 30px;
}

.page-hero {
  padding: 48px;
  background:
    radial-gradient(circle at 82% 20%, rgba(244, 63, 94, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(120, 53, 15, 0.95), rgba(146, 64, 14, 0.78), rgba(244, 63, 94, 0.72));
}

.compact-hero h1 {
  color: #fff;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.filter-button {
  border: 0;
  cursor: pointer;
}

.result-count {
  min-height: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.76)),
    radial-gradient(circle at 80% 18%, rgba(244, 63, 94, 0.3), transparent 20rem);
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

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

.detail-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section,
.detail-section {
  margin-top: 28px;
  padding: 28px;
}

.video-player {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.35);
  font-size: 34px;
  padding-left: 5px;
}

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

.detail-section h2,
.player-section h2 {
  margin-top: 0;
}

.detail-section p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  margin-bottom: 52px;
}

.site-footer {
  margin-top: 60px;
  color: #fde68a;
  background: linear-gradient(135deg, #78350f, #9f1239);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 30px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  color: #fde68a;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

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

@keyframes silk-shine-animation {
  0% {
    left: -120%;
  }

  52%,
  100% {
    left: 120%;
  }
}

@keyframes silk-gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 250px;
    padding: 48px;
  }

  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-stage,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 42px 28px 70px;
    gap: 28px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }

  .quick-search-inner,
  .detail-hero,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 280px;
  }

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

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .hero-carousel,
  .quick-search-section,
  .content-section,
  .page-main,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-actions,
  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }
}
