:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 18px 50px rgba(217, 119, 6, 0.16);
  --shadow-lg: 0 30px 80px rgba(120, 53, 15, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 32rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  box-shadow: 0 8px 30px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.35);
}

.brand-text {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.hero-search input,
.inline-filter input,
.search-page-form input {
  border: 1px solid rgba(217, 119, 6, 0.28);
  outline: none;
  background: var(--white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.inline-filter input:focus,
.search-page-form input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search input {
  width: 210px;
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
  background: var(--white);
  padding: 14px 20px 20px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border-radius: 999px;
  padding: 10px 14px;
}

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

.mobile-link {
  padding: 8px 4px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #f59e0b, #fb923c 48%, #d97706);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 30%, rgba(255, 237, 213, 0.26), transparent 18rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.36) 48%, rgba(28, 25, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: min(1180px, calc(100% - 32px));
}

.hero-content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(255, 251, 235, 0.92);
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  padding: 8px 14px;
  color: var(--amber-100);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-actions,
.detail-tags,
.tag-links,
.category-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--amber-700);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  color: var(--white);
  background: rgba(180, 83, 9, 0.9);
  box-shadow: var(--shadow-md);
}

.hero-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 128px;
  display: flex;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-dot {
  width: 46px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: var(--white);
}

.hero-search {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 42px;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 0 18px;
}

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

.section {
  padding: 72px 0;
}

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

.section-head.center {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.page-hero p {
  margin: 6px 0 0;
  color: var(--gray-500);
  font-size: 1.05rem;
}

.more-link {
  color: var(--amber-700);
  font-weight: 900;
}

.soft-panel,
.cta-panel {
  margin-top: 54px;
  margin-bottom: 54px;
  padding: 52px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 235, 0.92));
  box-shadow: var(--shadow-sm);
}

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

.feature-grid article {
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.08);
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  border-radius: 999px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
}

.feature-grid p,
.movie-card em,
.wide-card em,
.category-tile em,
.category-overview-card em,
.content-card p {
  color: var(--gray-500);
}

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.type-pill {
  right: 12px;
  padding: 5px 10px;
  background: rgba(217, 119, 6, 0.92);
}

.rank-badge {
  left: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.82);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card strong {
  overflow: hidden;
  color: var(--gray-900);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--amber-700);
}

.movie-card em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.1em;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span,
.tag-row span,
.detail-tags span,
.detail-tags a,
.tag-links a {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

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

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

.movie-card.is-compact .movie-card-body {
  padding: 14px;
}

.movie-card.is-compact strong {
  font-size: 0.98rem;
}

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

.amber-block {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, var(--amber-50), #fff7ed);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-2xl);
  background: var(--gray-900);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card {
  min-height: 330px;
}

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

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile-shade,
.category-overview-card::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.86));
}

.category-tile-content,
.overview-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--white);
}

.category-tile-content b,
.overview-content b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 1.25rem;
}

.category-tile-content strong,
.overview-content strong {
  font-size: 1.45rem;
}

.category-tile-content em,
.overview-content em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.sample-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-line span {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
}

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

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

.wide-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--white), var(--amber-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.wide-card img {
  width: 96px;
  height: 126px;
  border-radius: 1rem;
  object-fit: cover;
}

.wide-card span {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wide-card strong {
  overflow: hidden;
  color: var(--gray-900);
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-card em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-card small {
  color: var(--amber-700);
  font-weight: 800;
}

.rank-num {
  width: max-content;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.cta-panel {
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
}

.cta-panel p {
  margin: 0 0 24px;
  color: var(--gray-500);
}

.category-badges {
  justify-content: center;
}

.category-badges.tight {
  justify-content: flex-start;
  margin-top: 22px;
}

.category-badges.vertical {
  align-items: stretch;
  flex-direction: column;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-badge:hover {
  transform: translateY(-2px);
  background: var(--amber-200);
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 32px 0 42px;
  padding: clamp(44px, 8vw, 82px);
  border-radius: 2rem;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.24), transparent 20rem),
    linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-lg);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.filter-section {
  padding-top: 28px;
}

.inline-filter input {
  width: min(320px, 72vw);
  border-radius: 999px;
  padding: 12px 16px;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: var(--gray-500);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state.is-visible {
  display: block;
}

.ranking-layout {
  align-items: start;
}

.rank-side {
  position: sticky;
  top: 90px;
  padding: 26px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-side h2 {
  margin: 0 0 18px;
}

.detail-main {
  padding-top: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin: 28px 0 62px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
}

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

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-kicker {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 900;
}

.detail-info h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.detail-one-line {
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.detail-tags span,
.detail-tags a,
.tag-links a {
  padding: 7px 12px;
}

.detail-tags span,
.detail-tags a {
  color: var(--amber-700);
  background: var(--amber-100);
}

.tag-links a {
  color: var(--gray-700);
  background: var(--gray-100);
}

.jump-player {
  width: max-content;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600)) !important;
}

.player-section {
  margin-bottom: 62px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--white);
  font-size: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  max-width: min(620px, 90%);
  overflow: hidden;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 24px;
  padding-top: 0;
}

.content-card {
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 1.45rem;
}

.content-card p {
  margin: 0;
  font-size: 1.05rem;
}

.meta-card {
  grid-row: span 2;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.meta-card dt {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.meta-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.meta-card a {
  color: var(--amber-700);
}

.related-section {
  padding-top: 16px;
}

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

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(180deg, #78350f, #451a03);
}

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

.footer-logo .brand-text {
  color: var(--amber-100);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 390px;
  color: rgba(254, 243, 199, 0.82);
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-links div {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 18px;
}

.footer-links a {
  color: rgba(254, 243, 199, 0.82);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(254, 243, 199, 0.16);
  color: rgba(254, 243, 199, 0.72);
  text-align: center;
}

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 26px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 0 18px;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .two-columns,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-search,
  .search-page-form {
    border-radius: 1.4rem;
    flex-direction: column;
  }

  .hero-search input,
  .search-page-form input {
    min-height: 46px;
  }

  .feature-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .soft-panel,
  .cta-panel {
    padding: 28px;
  }

  .section-head,
  .section-head.compact {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .section,
  .page-main {
    width: calc(100% - 24px);
  }

  .section {
    padding: 48px 0;
  }

  .movie-grid,
  .listing-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

  .wide-card img {
    width: 76px;
    height: 104px;
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 1.4rem;
  }

  .detail-info h1 {
    font-size: 2.4rem;
  }

  .play-circle {
    width: 68px;
    height: 68px;
  }

  .content-card {
    padding: 22px;
  }
}
