:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(to bottom, var(--slate-50), var(--white));
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to right, var(--amber-500), var(--orange-500), var(--amber-600));
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.top-nav {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  white-space: nowrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-100);
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  min-width: 240px;
}

.nav-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 46px 10px 18px;
  color: #111827;
  box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.0);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.45);
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  color: var(--amber-600);
  background: transparent;
  font-weight: 800;
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  background: linear-gradient(to bottom, var(--amber-600), var(--orange-600));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 24px 20px;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search button {
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-link {
  display: block;
  padding: 10px 0;
  color: var(--white);
  font-weight: 650;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--amber-100);
}

main {
  min-height: 70vh;
  padding-top: 64px;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500), var(--amber-600));
  opacity: 0.95;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 38px;
}

.hero-heading {
  text-align: center;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 20px 40px rgba(120, 53, 15, 0.22);
  font-size: 34px;
  animation: pulseIcon 2.4s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.hero-heading h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(120, 53, 15, 0.32);
}

.hero-heading p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 26px);
}

.hero-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-link-row a,
.hero-tags span,
.tag-row span {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-link-row a {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 750;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-link-row a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.25);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  color: var(--amber-100);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  background: var(--white);
  color: var(--amber-600);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.18);
}

.primary-btn.white {
  background: var(--white);
  color: var(--amber-600);
}

.ghost-btn {
  border: 2px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: scale(1.04);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.3);
}

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

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

.hero-dot.active {
  width: 30px;
  background: var(--white);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  color: #111827;
}

.section-title.light h2 {
  color: var(--white);
}

.title-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-100);
  color: var(--amber-600);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 42px 14px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.34);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--amber-600);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-desc {
  margin-top: 8px;
  min-height: 42px;
}

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

.tag-row span {
  padding: 6px 10px;
  background: var(--amber-50);
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 750;
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 9;
}

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

.movie-card-horizontal .poster-link {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
}

.movie-card-compact .poster-link {
  aspect-ratio: 2 / 3;
}

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

.movie-card-compact h3 {
  font-size: 15px;
}

.movie-card-compact .movie-desc,
.movie-card-compact .tag-row {
  display: none;
}

.warm-section {
  background: linear-gradient(to right, #fff7ed, var(--amber-50));
}

.dark-section {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
}

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

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.92));
  color: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.recommend-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.ranking-panel {
  align-self: start;
  border-radius: 22px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.ranking-panel .movie-card {
  margin-bottom: 14px;
  box-shadow: none;
  border: 1px solid var(--slate-100);
}

.panel-more {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-600);
  font-weight: 850;
  text-align: center;
}

.cta-box {
  border-radius: 28px;
  padding: 52px 28px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to right, var(--amber-500), var(--orange-500));
  box-shadow: 0 22px 50px rgba(217, 119, 6, 0.24);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.cta-box p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-bar {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 13px 18px;
  border-radius: 999px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500), var(--amber-600));
}

.compact-hero .shell {
  padding-top: 82px;
  padding-bottom: 70px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.page-hero-inner {
  padding-top: 60px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 30px;
  align-items: center;
}

.page-hero-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.25);
}

.page-hero-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-card span {
  display: block;
  padding: 14px;
  font-weight: 850;
}

.category-overview-block {
  margin-bottom: 50px;
}

.category-overview-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.category-overview-head p {
  margin: 0;
  color: var(--slate-500);
}

.category-overview-head a {
  flex: none;
  color: var(--amber-600);
  font-weight: 850;
}

.big-search {
  position: relative;
  max-width: 680px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.big-search input {
  padding: 16px 22px;
  border-radius: 999px;
}

.big-search button {
  border-radius: 999px;
  padding: 0 28px;
  background: var(--white);
}

.detail-hero {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
}

.detail-layout {
  padding-top: 54px;
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
}

.detail-one {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.11);
  color: var(--amber-100);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.66));
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.45);
  font-size: 34px;
  transition: transform 0.22s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.76);
}

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

.content-card {
  border-radius: 22px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.85;
}

.site-footer {
  background: linear-gradient(to bottom, var(--slate-900), var(--slate-950));
  color: var(--white);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand p,
.footer-col li,
.footer-bottom {
  color: var(--slate-400);
}

.footer-brand p {
  max-width: 330px;
  margin: 16px 0 0;
}

.footer-col h2 {
  margin: 0 0 16px;
  color: var(--amber-400);
  font-size: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 22px 24px;
  text-align: center;
  font-size: 14px;
}

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

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

  .nav-search {
    min-width: 200px;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

  .featured-grid,
  .two-grid,
  .detail-content,
  .recommend-layout,
  .footer-inner,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding: 0 16px;
  }

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

  .shell,
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero-poster {
    width: 150px;
    justify-self: center;
  }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }

  .compact-grid,
  .library-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .filter-bar,
  .big-search {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero-card {
    max-width: 210px;
  }
}

@media (max-width: 460px) {
  .compact-grid,
  .library-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 18px;
  }

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