* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #eab308;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #d97706, #ca8a04);
  color: #fff;
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.28);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fef3c7;
  opacity: 1;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 310px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.search-form input,
.mobile-search input,
.quick-search input,
.search-page-form input,
.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
}

.search-form input {
  color: #fff;
  padding: 10px 74px 10px 18px;
}

.search-form input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-form button {
  position: absolute;
  right: 4px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: #92400e;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

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

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

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.mobile-search input {
  min-width: 0;
  padding: 12px 14px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #92400e;
  background: #fff7ed;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(180, 83, 9, 0.78), rgba(234, 179, 8, 0.58)), var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: -30px;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) brightness(0.72);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-copy h3 {
  margin: 0 0 14px;
  color: #fffbeb;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 850;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span,
.hero-tags a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.hero-tags a {
  padding: 6px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 18px 32px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.btn-primary.small {
  padding: 10px 16px;
  font-size: 14px;
}

.btn-ghost {
  padding: 12px 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

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

.quick-search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: -38px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.quick-search input,
.search-page-form input,
.filter-input,
.filter-select,
.search-tools select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate-800);
  background: #fff;
}

.quick-search input,
.search-page-form input,
.filter-input {
  padding: 0 18px;
}

.quick-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

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

.section-head h2,
.ranking-panel h2,
.related-sidebar h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-more {
  padding: 10px 16px;
  color: #c2410c;
  background: #ffedd5;
}

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

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

.small-grid,
.library-grid,
.ranking-list-grid,
.search-results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f97316, #facc15);
}

.featured-grid .poster,
.library-grid .poster,
.ranking-list-grid .poster,
.search-results .poster {
  aspect-ratio: 3 / 4;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.duration,
.rank-badge,
.play-dot {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  background: #ef4444;
}

.play-dot {
  left: 50%;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

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

.movie-meta,
.movie-one-line {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.movie-one-line {
  margin-top: 9px;
  min-height: 40px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #9a3412;
  background: #ffedd5;
}

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

.category-tile {
  min-height: 138px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #d97706 55%, #ca8a04);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(217, 119, 6, 0.3);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.65;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel,
.sticky-box,
.text-card,
.search-page-panel,
.filter-panel,
.category-overview-card,
.detail-card,
.player-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-panel {
  align-self: start;
  padding: 22px;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 96px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  color: var(--slate-800);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card:hover strong {
  color: var(--orange);
}

.compact-card span {
  display: block;
  margin-top: 5px;
  color: var(--slate-600);
  font-size: 12px;
}

.rank-mini {
  position: absolute;
  left: -6px;
  top: -6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #fff !important;
  background: #ef4444;
  font-size: 12px !important;
  font-weight: 900;
}

.page-main {
  padding: 34px 0 64px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 46px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #7c2d12, #ea580c 60%, #eab308);
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

.compact-hero p,
.category-hero p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

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

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

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  padding: 24px;
}

.category-overview-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-copy p {
  margin: 0 0 18px;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.filter-panel,
.search-page-panel {
  padding: 22px;
}

.filter-row,
.search-tools {
  display: grid;
  grid-template-columns: 1fr 190px 190px 160px;
  gap: 12px;
  margin-bottom: 22px;
}

.category-hero .hero-tags {
  margin-top: 22px;
}

.filter-select,
.search-tools select {
  padding: 0 14px;
}

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

.ranking-list-grid {
  gap: 20px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  margin-bottom: 14px;
}

.search-tools {
  grid-template-columns: 190px 190px;
}

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

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

.player-card {
  padding: 14px;
  background: #111827;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 30px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  text-align: center;
}

.player-overlay.is-hidden {
  display: none;
}

.player-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.36);
  font-size: 32px;
}

.player-overlay strong {
  max-width: 720px;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.2;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.highlight-line {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  border-radius: 16px;
  color: #7c2d12;
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 700;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card h2,
.text-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
}

.detail-card p,
.text-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.9;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--slate-600);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--slate-900);
  font-weight: 800;
}

.large-tags span {
  padding: 8px 12px;
}

.related-sidebar {
  min-width: 0;
}

.sticky-box {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.text-card {
  max-width: 900px;
  padding: 30px;
}

.text-card p + p {
  margin-top: 16px;
}

.site-footer {
  margin-top: 44px;
  color: #e2e8f0;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin-top: 9px;
  color: #cbd5e1;
}

.site-footer a:hover,
.footer-link {
  color: #fdba74 !important;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

  .search-form {
    width: 250px;
  }

  .poster-grid,
  .featured-grid,
  .small-grid,
  .library-grid,
  .ranking-list-grid,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .sticky-box {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    width: min(100% - 24px, 1280px);
  }

  .hero-carousel {
    height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 40px 0 80px;
  }

  .hero-poster {
    width: min(280px, 70vw);
    margin: 0 auto;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
  }

  .quick-search {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 17px;
  }

  .hero-carousel {
    height: 720px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .poster-grid,
  .featured-grid,
  .small-grid,
  .library-grid,
  .ranking-list-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-one-line {
    display: none;
  }

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

  .page-hero {
    padding: 30px 22px;
  }

  .search-page-form,
  .search-tools {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 20px;
  }

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

  .compact-card {
    grid-template-columns: 82px 1fr;
  }

  .compact-card img {
    width: 82px;
    height: 58px;
  }
}
