:root {
  --canyon-50: #faf8f5;
  --canyon-100: #f5f0e8;
  --canyon-200: #e8dbc8;
  --canyon-300: #d9c3a3;
  --canyon-500: #b8895a;
  --canyon-600: #a6714a;
  --canyon-700: #8a5c3f;
  --canyon-800: #704c37;
  --canyon-900: #5c3f2f;
  --earth-600: #7a6752;
  --earth-700: #655545;
  --earth-800: #56483c;
  --gold-400: #ffc94a;
  --gold-500: #ffb41e;
  --gold-600: #f09200;
  --forest-100: #e5eae5;
  --forest-600: #5f7f62;
  --forest-700: #456348;
  --sand-50: #fdfcfa;
  --sand-100: #faf7f0;
  --sand-200: #f5eedd;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(138, 92, 63, 0.10), 0 2px 4px -1px rgba(138, 92, 63, 0.06);
  --shadow-lg: 0 18px 35px rgba(92, 63, 47, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--canyon-900);
  background: linear-gradient(135deg, var(--canyon-50), var(--white) 48%, var(--sand-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--canyon-900), var(--earth-800));
  box-shadow: 0 12px 28px rgba(52, 34, 25, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 10px 25px rgba(255, 180, 30, 0.32);
}

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

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

.nav-link,
.desktop-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link:hover,
.desktop-nav a:hover,
.nav-link.is-active {
  color: var(--gold-400);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-box input,
.filter-box select,
.search-tools select,
.search-page-form input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  outline: none;
}

.header-search input {
  width: 220px;
  padding: 10px 42px 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

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

.header-search button {
  margin-left: -46px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.80);
  background: transparent;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-link {
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.mobile-search input {
  flex: 1;
  padding: 11px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
}

.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--gold-500);
  cursor: pointer;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 180, 30, 0.22), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.25));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 42px;
  padding-bottom: 78px;
  color: var(--white);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 180, 30, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 720px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--canyon-700);
  background: var(--canyon-100);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  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(--white);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 14px 28px rgba(255, 180, 30, 0.28);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-ghost-dark {
  color: var(--canyon-700);
  background: var(--canyon-100);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
}

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

.hero-poster span,
.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: var(--white);
  background: var(--gold-500);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.50);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--gold-500);
}

.main-stack,
.page-main {
  padding: 48px 0 70px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-title > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

.section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--earth-600);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--gold-500);
}

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

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--canyon-200), var(--sand-200));
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 10;
}

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

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

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

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

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-year {
  right: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  left: 12px;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  background: var(--gold-500);
}

.play-float {
  z-index: 2;
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  min-height: 50px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.latest-item h3 a:hover,
.ranking-feature h3 a:hover {
  color: var(--gold-600);
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--earth-600);
  font-size: 13px;
}

.card-meta a,
.card-meta span:first-child {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--forest-700);
  background: var(--forest-100);
  font-weight: 700;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.category-section {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eff5ef, var(--canyon-50));
}

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

.category-grid-wide {
  margin-top: 28px;
}

.category-tile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-image {
  overflow: hidden;
  border-radius: 16px;
  background: var(--canyon-100);
}

.category-image img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 12px;
  color: var(--earth-600);
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest-600);
  font-weight: 800;
  font-size: 13px;
}

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

.category-mini-links a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--canyon-700);
  background: var(--sand-100);
  font-size: 12px;
  font-weight: 700;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.ranking-list,
.ranking-feature,
.ranking-column,
.search-tools,
.search-summary {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.rank-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.rank-line:hover {
  background: var(--canyon-50);
}

.rank-line span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--white);
  background: var(--gold-500);
  font-weight: 900;
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-line em {
  color: var(--earth-600);
  font-style: normal;
  font-size: 13px;
}

.ranking-feature {
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
}

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

.ranking-feature div {
  padding: 28px;
}

.ranking-feature span {
  color: var(--gold-600);
  font-weight: 900;
}

.ranking-feature h3 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.ranking-feature p {
  color: var(--earth-600);
  line-height: 1.75;
}

.latest-list {
  display: grid;
  gap: 16px;
}

.latest-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.latest-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.latest-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.latest-item h3 {
  margin: 2px 0 8px;
  font-size: 22px;
}

.latest-item p {
  margin: 0 0 12px;
  color: var(--earth-600);
  line-height: 1.65;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 42px;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 201, 74, 0.34), transparent 26%),
    linear-gradient(135deg, var(--canyon-900), var(--earth-800));
  box-shadow: var(--shadow-lg);
}

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

.hero-search input,
.search-page-form input {
  width: min(430px, 52vw);
  padding: 13px 18px;
  color: var(--canyon-900);
  background: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--earth-600);
}

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

.filter-box,
.search-tools {
  display: flex;
  gap: 12px;
}

.filter-box input,
.filter-box select,
.search-tools select {
  padding: 13px 16px;
  color: var(--canyon-900);
  background: var(--white);
  border-color: var(--canyon-200);
}

.category-movie-grid {
  margin-top: 30px;
}

.rank-card-grid {
  margin-top: 30px;
}

.ranking-columns {
  margin-top: 58px;
}

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

.ranking-column {
  padding: 18px;
}

.ranking-column h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.search-tools {
  margin: 24px 0;
  padding: 16px;
}

.search-summary {
  padding: 18px;
  margin-bottom: 24px;
  color: var(--earth-600);
  font-weight: 700;
}

.detail-main {
  max-width: 1120px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: var(--canyon-100);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info .eyebrow {
  align-self: flex-start;
}

.detail-one-line {
  margin: 18px 0 22px;
  color: var(--earth-600);
  font-size: 20px;
  line-height: 1.7;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: var(--canyon-50);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  margin-bottom: 5px;
  color: var(--earth-600);
  font-size: 13px;
}

.detail-meta-grid span {
  font-weight: 800;
}

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

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-start span {
  transform: translateX(3px);
  font-size: 32px;
}

.movie-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

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

.detail-content article {
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.detail-content p {
  margin: 0;
  color: var(--earth-600);
  line-height: 1.9;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--canyon-900), var(--earth-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.75;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 9px 0;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

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

  .header-search input {
    width: 180px;
  }

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

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

  .hero-poster img {
    height: 360px;
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .rank-card-grid,
  .category-grid,
  .ranking-column-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .page-hero,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    max-height: 520px;
  }

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

  .hero-search input,
  .search-page-form input {
    width: 100%;
  }

  .filter-box,
  .search-tools {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

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

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .rank-card-grid,
  .category-grid,
  .ranking-column-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .latest-item,
  .ranking-feature {
    grid-template-columns: 1fr;
  }

  .category-image img,
  .latest-thumb img {
    height: 190px;
  }

  .page-hero {
    padding: 28px;
  }

  .detail-hero {
    padding: 18px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
