:root {
  --amber-50: #fff8ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-50: #fefce8;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --shadow-soft: 0 12px 28px rgba(146, 64, 14, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 48%, var(--yellow-50));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 248, 237, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.09);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-800);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
  font-size: 14px;
}

.brand-name {
  font-size: 24px;
  letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 650;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-800);
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  background: var(--white);
}

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

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 78px 24px 88px;
  background:
    radial-gradient(circle at 10% 18%, rgba(245, 158, 11, 0.22), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.22), transparent 30%),
    linear-gradient(135deg, #ffedd5 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.35;
}

.hero-glow-left {
  left: 4vw;
  top: 80px;
  background: var(--amber-500);
}

.hero-glow-right {
  right: 3vw;
  bottom: 40px;
  background: var(--orange-500);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.09);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  color: var(--amber-900);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  color: var(--amber-800);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 740px;
}

.hero-search {
  margin: 28px 0 22px;
  display: flex;
  max-width: 650px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.18);
  outline: none;
  color: var(--gray-800);
  background: var(--white);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
}

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

.hero-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.26);
}

.hero-search button {
  padding: 12px 22px;
  white-space: nowrap;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  padding: 12px 24px;
}

.ghost-button {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: 0 12px 22px rgba(146, 64, 14, 0.10);
}

.mini-button {
  min-height: 34px;
  padding: 8px 15px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 14px;
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.mini-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-actions,
.hero-chips,
.tag-row,
.detail-meta,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-chips {
  margin-top: 22px;
}

.hero-chips a,
.tag-row span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 750;
}

.hero-chips a,
.tag-row span {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.hero-showcase {
  position: relative;
  min-height: 530px;
}

.hero-slider {
  position: relative;
  height: 510px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-50));
  overflow: hidden;
}

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

.hero-poster:hover img,
.poster-link:hover img,
.compact-poster:hover img,
.detail-poster:hover img {
  transform: scale(1.05);
}

.hero-movie-copy {
  padding: 46px 38px;
  color: var(--gray-800);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.16), transparent 34%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-movie-copy span {
  color: var(--amber-700);
  font-weight: 850;
}

.hero-movie-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  color: var(--amber-900);
}

.hero-movie-copy p {
  margin: 0;
  color: var(--gray-700);
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-600);
}

.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 68px 24px;
}

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

.section-heading h2,
.panel-head h2,
.info-card h2,
.text-block h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-more,
.panel-head a,
.category-card-copy a:not(.mini-button),
.prev-next a,
.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

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

.movie-card,
.compact-card,
.category-tile,
.category-card-large,
.info-card,
.text-block,
.player-card,
.rank-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.12)),
    var(--amber-100);
}

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

.movie-year,
.play-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.movie-year {
  top: 10px;
  left: 10px;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.68);
}

.play-pill {
  right: 10px;
  bottom: 10px;
  padding: 8px 11px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-card-body {
  padding: 15px 15px 17px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.movie-meta span {
  color: var(--amber-700);
  background: var(--amber-100);
  padding: 4px 9px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card p,
.compact-card p,
.category-tile p,
.category-card-copy p,
.info-card p,
.text-block p {
  margin: 0;
  color: var(--gray-500);
}

.movie-card p {
  min-height: 48px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
}

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

.horizontal-list,
.ranking-list {
  display: grid;
  gap: 18px;
}

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

.horizontal-card .poster-frame {
  height: 100%;
  min-height: 200px;
}

.rank-panel,
.info-card,
.text-block,
.player-card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 15px;
  align-items: center;
}

.compact-poster {
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--amber-100);
}

.compact-title {
  display: block;
  color: var(--gray-900);
  font-weight: 850;
  line-height: 1.3;
  margin-bottom: 4px;
}

.compact-card p {
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.compact-card span:not(.rank-no) {
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
}

.rank-no {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-size: 12px;
  vertical-align: middle;
}

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

.category-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-tile > a {
  display: block;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 213, 0.70));
}

.category-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  margin-bottom: 15px;
}

.category-tile h3,
.category-card-copy h2 {
  margin: 0 0 10px;
  color: var(--amber-900);
}

.tile-links {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.tile-links a {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}

.cta-section {
  max-width: var(--container);
  margin: 0 auto 72px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.cta-section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .primary-button {
  color: var(--amber-700);
  background: var(--white);
}

.page-hero,
.detail-hero {
  padding: 72px 24px;
  background:
    radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.page-hero > div {
  max-width: var(--container);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 840px;
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1,
.search-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.category-list-large {
  display: grid;
  gap: 24px;
}

.category-card-large {
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 24px;
  align-items: center;
}

.category-card-copy span {
  color: var(--amber-700);
  font-weight: 850;
}

.category-card-copy h2 {
  font-size: 34px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.rich-toolbar {
  grid-template-columns: minmax(300px, 1fr) 180px 180px 160px;
}

.toolbar input,
.toolbar select {
  border-radius: 14px;
  padding: 12px 14px;
}

.detail-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: var(--amber-100);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-700);
  font-weight: 800;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.8);
  color: var(--amber-800);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.large-tags span {
  font-size: 13px;
  padding: 7px 11px;
}

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

.main-detail,
.side-detail {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(15, 23, 42, 0.82));
  cursor: pointer;
  z-index: 4;
}

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

.cover-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(146, 64, 14, 0.55));
}

.play-button-large,
.player-cover strong {
  position: relative;
  z-index: 2;
}

.play-button-large {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  font-size: 28px;
  padding-left: 4px;
}

.player-cover strong {
  max-width: 85%;
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
}

.text-block p {
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 17px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 18px 0 0;
}

.info-card dt {
  color: var(--amber-700);
  font-weight: 850;
}

.info-card dd {
  margin: 0;
  color: var(--gray-700);
}

.prev-next {
  justify-content: space-between;
  padding: 20px 0 0;
}

[hidden] {
  display: none !important;
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), #9a3412);
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--amber-200);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-brand {
  color: var(--amber-100);
  margin-bottom: 14px;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(254, 215, 170, 0.22);
  color: var(--amber-200);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .rank-panel,
  .side-detail {
    max-width: none;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-inner {
    padding: 0 18px;
  }

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

  .hero-section,
  .page-hero,
  .detail-hero {
    padding: 52px 18px;
  }

  .hero-inner,
  .detail-layout,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 640px;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 330px minmax(0, 1fr);
  }

  .hero-poster img {
    min-height: 330px;
  }

  .hero-movie-copy {
    padding: 28px;
  }

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

  .hero-search {
    border-radius: 22px;
  }

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

  .toolbar,
  .rich-toolbar {
    grid-template-columns: 1fr;
  }

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

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

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

  .horizontal-card .poster-frame {
    min-height: 180px;
  }

  .content-section {
    padding: 48px 18px;
  }

  .cta-section {
    margin: 0 18px 54px;
    padding: 30px;
  }
}

@media (max-width: 540px) {
  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-showcase {
    min-height: 590px;
  }

  .hero-slider {
    height: 580px;
    border-radius: 24px;
  }

  .movie-grid,
  .library-grid,
  .related-grid {
    gap: 14px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card p {
    min-height: 42px;
  }

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

  .horizontal-card .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .detail-poster {
    max-width: 260px;
  }

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