:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --black: #0f0a04;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.18);
  --soft-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--amber-950);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 46%, var(--amber-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(253, 230, 138, 0.9);
  box-shadow: 0 8px 28px rgba(120, 53, 15, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--amber-950);
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-700));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.logo-text {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  font-weight: 700;
  color: var(--amber-800);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 9px 0;
  font-size: 0.94rem;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
  color: var(--amber-950);
}

.search-bar-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
}

.site-search {
  position: relative;
}

.site-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid var(--amber-200);
  background: var(--white);
  color: var(--amber-950);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 14px 26px rgba(217, 119, 6, 0.16);
}

.search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  max-height: 420px;
  overflow: auto;
  background: var(--white);
  border: 2px solid var(--amber-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong,
.search-result-item em {
  display: block;
}

.search-result-item strong {
  font-size: 0.98rem;
  color: var(--amber-950);
}

.search-result-item em {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--amber-700);
  font-style: normal;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--amber-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--amber-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-top: 1px solid var(--amber-200);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(254, 243, 199, 0.8);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  min-height: 650px;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  min-height: 650px;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.38), transparent 30%), linear-gradient(115deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.78), rgba(15, 10, 4, 0.9));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-text h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content h1 {
  max-width: 720px;
  color: var(--white);
}

.hero-desc {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--amber-100);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

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

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

.hero-tags span {
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.38);
  background: rgba(254, 243, 199, 0.12);
  padding: 8px 12px;
}

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

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

.primary-btn {
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
}

.ghost-btn {
  color: var(--amber-100);
  border: 1px solid rgba(253, 230, 138, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 38px;
  background: var(--amber-400);
}

.hero-rank-link {
  color: var(--amber-100);
  font-weight: 800;
}

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

.lifted-section {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}

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

.section-heading h2,
.panel-title h2,
.content-card h2,
.footer-links h2 {
  margin: 0;
  color: var(--amber-950);
  letter-spacing: -0.04em;
}

.section-heading h2,
.panel-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading a,
.panel-more {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.type-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--amber-950);
  background: rgba(254, 243, 199, 0.94);
  border: 1px solid rgba(253, 230, 138, 0.9);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  color: var(--amber-950);
  font-weight: 900;
  font-size: 1.08rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc {
  color: var(--amber-700);
  line-height: 1.7;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  padding: 5px 8px;
  font-size: 0.75rem;
}

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

.ranking-panel,
.content-card,
.category-overview-card,
.filter-panel {
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  position: sticky;
  top: 146px;
  padding: 24px;
}

.rank-list,
.compact-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.compact-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.compact-card:hover {
  background: var(--amber-50);
  transform: translateX(3px);
}

.rank-num {
  width: 38px;
  color: var(--amber-600);
  font-weight: 950;
}

.rank-row img,
.compact-card img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em,
.compact-card strong,
.compact-card em {
  display: block;
}

.rank-info strong,
.compact-card strong {
  color: var(--amber-950);
  font-weight: 900;
  line-height: 1.35;
}

.rank-info em,
.compact-card em {
  margin-top: 5px;
  color: var(--amber-700);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.5;
}

.panel-more {
  margin-top: 18px;
  width: 100%;
  border: 1px solid var(--amber-200);
  background: var(--amber-50);
}

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

.category-tile,
.category-overview-main {
  display: flex;
  gap: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--amber-100);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile {
  min-height: 210px;
  flex-direction: column;
  padding: 22px;
}

.category-tile:hover,
.category-overview-main:hover {
  transform: translateY(-4px);
  border-color: var(--amber-300);
  box-shadow: var(--shadow);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-100), #fff7ed);
  font-size: 1.6rem;
}

.category-tile strong,
.category-overview-main strong {
  color: var(--amber-950);
  font-size: 1.12rem;
  font-weight: 950;
}

.category-tile em,
.category-overview-main em {
  color: var(--amber-700);
  font-size: 0.92rem;
  line-height: 1.65;
  font-style: normal;
}

.tile-links {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.tile-links a {
  color: var(--amber-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.cta-band,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 88px auto 0;
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.28), transparent 30%), linear-gradient(135deg, var(--amber-900), var(--orange-700));
  box-shadow: var(--shadow);
}

.cta-band {
  padding: 58px 30px;
  text-align: center;
}

.cta-band h2,
.cta-band p,
.page-hero h1,
.page-hero p {
  margin: 0;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.cta-band p {
  max-width: 720px;
  margin: 16px auto 26px;
  color: var(--amber-100);
  line-height: 1.8;
}

.page-hero {
  padding: 72px 48px;
  overflow: hidden;
}

.small-page-hero,
.category-hero,
.ranking-hero {
  margin-top: 36px;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 18px;
  color: var(--amber-100);
  font-size: 1.12rem;
  line-height: 1.8;
}

.category-overview-card {
  padding: 18px;
}

.category-overview-main {
  align-items: center;
  padding: 18px;
}

.category-overview-main span:last-child {
  display: grid;
  gap: 6px;
}

.compact-list {
  margin-top: 16px;
}

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

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber-700) 50%), linear-gradient(135deg, var(--amber-700) 50%, transparent 50%);
  background-position: calc(100% - 18px) 54%, calc(100% - 12px) 54%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

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

.ranking-page-row {
  display: grid;
  grid-template-columns: 70px 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-page-row:hover {
  transform: translateY(-3px);
  border-color: var(--amber-300);
  box-shadow: var(--shadow);
}

.ranking-index {
  color: var(--amber-600);
  font-size: 1.4rem;
  font-weight: 950;
  text-align: center;
}

.ranking-page-row img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-text strong,
.ranking-text em,
.ranking-text small {
  display: block;
}

.ranking-text strong {
  color: var(--amber-950);
  font-size: 1.15rem;
  font-weight: 950;
}

.ranking-text em {
  margin: 8px 0;
  color: var(--amber-800);
  font-style: normal;
  line-height: 1.7;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.78), rgba(15, 10, 4, 0.92));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 62px;
}

.breadcrumb,
.breadcrumb-sep,
.detail-hero-inner > span {
  color: var(--amber-100);
  font-weight: 800;
}

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

.breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.65;
}

.detail-intro {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 32px;
}

.detail-cover {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

.detail-text h1 {
  color: var(--white);
}

.detail-one-line {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--amber-100);
  font-size: 1.16rem;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.3);
  font-weight: 800;
}

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

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

.player-shell {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--black);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 10, 4, 0.25), rgba(15, 10, 4, 0.66));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
  font-size: 2rem;
  padding-left: 5px;
}

.play-overlay strong {
  font-size: 1.15rem;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.content-card p {
  margin: 0;
  color: var(--amber-800);
  font-size: 1.02rem;
  line-height: 1.95;
}

.detail-aside {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 146px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amber-100);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--amber-600);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  color: var(--amber-950);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 96px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

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

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

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--amber-200);
  line-height: 1.8;
}

.footer-links h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-links div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a {
  color: var(--amber-200);
  font-weight: 800;
}

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

[data-card].is-hidden {
  display: none;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .search-bar-wrap {
    margin-bottom: 10px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    justify-self: center;
    transform: rotate(0deg);
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-grid,
  .feature-grid,
  .latest-grid,
  .category-movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .page-hero,
  .cta-band {
    padding: 42px 22px;
    border-radius: 22px;
  }

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

  .detail-cover {
    width: min(280px, 72vw);
  }

  .ranking-page-row {
    grid-template-columns: 52px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-page-row img {
    width: 72px;
    height: 96px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .feature-grid,
  .latest-grid,
  .category-movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
  }

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

  .rank-row {
    grid-template-columns: 34px 54px minmax(0, 1fr);
  }

  .rank-row img {
    width: 54px;
    height: 72px;
  }

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