:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --green-500: #22c55e;
  --emerald-500: #10b981;
  --purple-500: #a855f7;
  --violet-600: #7c3aed;
  --slate-900: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(146, 64, 14, 0.28);
  --radius-xl: 18px;
  --radius-2xl: 26px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 42%, var(--amber-50));
  font-family: var(--font-main);
}

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

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

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

.nav-link,
.mobile-nav-link {
  color: #78350f;
  border-radius: 999px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #9a3412;
  background: rgba(254, 243, 199, 0.95);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--gray-700);
  background: transparent;
}

.header-search button,
.mobile-search button,
.primary-button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.32);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #78350f;
  background: rgba(254, 243, 199, 0.88);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--amber-200);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.mobile-nav-link {
  display: block;
  padding: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
}

.mobile-search input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #92400e, var(--orange-600));
}

.hero-carousel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  pointer-events: none;
}

.hero-slides {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.58fr);
  gap: 42px;
  align-items: center;
  width: 100%;
  min-height: 620px;
  padding: 78px max(32px, calc((100vw - 1180px) / 2)) 92px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fef3c7;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #ffedd5;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.hero-tags,
.movie-card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #ffedd5;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
  transition: transform 240ms ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: var(--amber-500);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

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

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

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

.hero-category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

.category-tile,
.category-hero-tile {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 22px;
  color: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-tile:hover,
.category-hero-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.category-tile span,
.category-hero-tile span {
  font-size: 2.2rem;
}

.category-tile strong,
.category-hero-tile strong {
  font-size: 1.05rem;
}

.category-tile small,
.category-hero-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.gradient-pink { background: linear-gradient(135deg, #fb7185, var(--pink-500)); }
.gradient-amber { background: linear-gradient(135deg, #fbbf24, var(--orange-600)); }
.gradient-green { background: linear-gradient(135deg, #4ade80, var(--emerald-500)); }
.gradient-blue { background: linear-gradient(135deg, #60a5fa, #4f46e5); }
.gradient-purple { background: linear-gradient(135deg, #c084fc, var(--violet-600)); }
.gradient-cyan { background: linear-gradient(135deg, #22d3ee, #0f766e); }
.gradient-red { background: linear-gradient(135deg, #fb7185, #dc2626); }
.gradient-violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.gradient-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.gradient-slate { background: linear-gradient(135deg, #64748b, #1e293b); }

.section-block {
  padding: 54px 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

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

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.section-more {
  color: #b45309;
  font-weight: 800;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.featured-card:hover img {
  transform: scale(1.04);
}

.featured-card > div {
  padding: clamp(24px, 4vw, 46px);
}

.featured-card .eyebrow,
.page-hero .eyebrow,
.detail-title-row .eyebrow {
  color: #d97706;
}

.featured-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.featured-card p {
  color: var(--gray-600);
  line-height: 1.9;
}

.featured-card .primary-button {
  display: inline-flex;
  margin-top: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #fed7aa;
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.movie-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
}

.movie-badge {
  top: 10px;
  left: 10px;
  background: var(--amber-500);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.play-hover {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

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

.movie-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 1.02rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 180ms ease;
}

.movie-card:hover h2 {
  color: #d97706;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

.movie-card-tags span {
  padding: 5px 8px;
  color: #92400e;
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.two-column-section,
.ranking-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.detail-card,
.poster-card,
.side-card-list,
.category-overview-card,
.filter-panel,
.player-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  padding: 22px;
}

.large-ranking {
  padding: 28px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.horizontal-card:hover {
  background: var(--amber-50);
  transform: translateX(2px);
}

.horizontal-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.horizontal-info {
  min-width: 0;
}

.horizontal-info strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.horizontal-info em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cta-section {
  margin-top: 54px;
  margin-bottom: 64px;
  padding: 42px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
  border-radius: var(--radius-2xl);
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.cta-section p {
  margin: 0 auto 24px;
  max-width: 700px;
  color: var(--gray-700);
  line-height: 1.8;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #92400e, var(--orange-600));
}

.page-hero h1 {
  color: var(--white);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 54px 0 64px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.15fr);
  gap: 18px;
  padding: 18px;
}

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

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--amber-200);
  outline: 0;
  padding: 16px 18px;
  background: #fffbeb;
  border-radius: 999px;
}

.filter-search input:focus,
.filter-actions select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.filter-actions select,
.filter-actions button {
  border: 1px solid var(--amber-200);
  padding: 12px 14px;
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
}

.filter-actions button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 800;
}

.filter-empty {
  margin: 18px 0 0;
  color: #b45309;
  font-weight: 800;
}

.detail-shell {
  padding: 28px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #92400e;
  font-size: 0.92rem;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 999px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

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

.player-start span {
  margin-left: 5px;
  font-size: 2rem;
}

.detail-card {
  padding: clamp(22px, 4vw, 36px);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.category-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #92400e;
  background: var(--amber-100);
  border-radius: 999px;
  font-weight: 900;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-600);
}

.detail-stats span {
  padding: 7px 11px;
  background: #f8fafc;
  border-radius: 999px;
}

.detail-tags {
  margin-top: 20px;
}

.detail-tags span {
  color: #92400e;
  background: var(--amber-100);
  border-color: rgba(245, 158, 11, 0.24);
}

.text-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--gray-200);
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.text-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.95;
  white-space: pre-line;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.prev-next a {
  overflow: hidden;
  padding: 14px;
  color: #92400e;
  background: var(--amber-50);
  border-radius: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-card h2,
.poster-card p {
  margin-inline: 18px;
}

.poster-card h2 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.poster-card p {
  margin-bottom: 20px;
  color: var(--gray-600);
}

.side-card-list {
  padding: 18px;
}

.side-card-list h2 {
  margin: 0 0 12px;
}

.mini-card .movie-card-body p,
.mini-card .movie-card-tags,
.mini-card .movie-meta-line {
  display: none;
}

.site-footer {
  margin-top: 64px;
  padding: 48px 0;
  color: #ffedd5;
  background: #7c2d12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 460px;
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.05rem;
}

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

.footer-links a {
  color: #fed7aa;
}

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

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 720px;
    padding-top: 58px;
  }

  .hero-poster {
    min-height: 260px;
    max-width: 420px;
  }

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

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

  .featured-card,
  .two-column-section,
  .ranking-page-layout,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-slides,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    padding-inline: 18px;
    padding-bottom: 84px;
  }

  .hero-category-strip,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .footer-grid,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 112px;
  }

  .featured-card img {
    min-height: 240px;
  }

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

  .horizontal-card img {
    width: 76px;
    height: 52px;
  }

  .detail-title-row {
    display: block;
  }

  .category-pill {
    display: inline-flex;
    margin-top: 14px;
  }

  .filter-actions,
  .hero-actions {
    display: grid;
  }

  .filter-actions select,
  .filter-actions button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
