: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;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 10px 28px rgba(120, 53, 15, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 35%, var(--orange-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid var(--amber-200);
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid var(--amber-300);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 104px 10px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
  background: #ffffff;
}

.header-search button,
.mobile-search button,
.home-search-panel button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.home-search-panel button:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #78350f;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber-600);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--amber-800, #92400e);
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid var(--amber-200);
}

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

.mobile-search {
  position: relative;
  margin: 16px 0;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  color: #78350f;
  font-weight: 700;
}

.hero {
  background: var(--gray-900);
}

.hero-stage {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 88px;
  max-width: 850px;
  color: #ffffff;
}

.hero-label,
.page-hero span {
  display: inline-block;
  color: #ffffff;
  background: var(--amber-500);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  max-width: 760px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.hero-meta,
.detail-meta,
.list-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button[aria-current="true"] {
  width: 34px;
  background: #ffffff;
}

.home-search-panel {
  max-width: 1180px;
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(253, 230, 138, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.home-search-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.home-search-panel p {
  margin: 0;
  color: var(--gray-600);
}

.home-search-panel form {
  position: relative;
}

.home-search-panel input {
  padding: 14px 128px 14px 18px;
}

.content-section,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading > span {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
}

.section-heading h2,
.ranking-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading p,
.ranking-header p {
  margin: 5px 0 0;
  color: var(--gray-600);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.2);
}

.card-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.movie-card-small .card-cover {
  height: 160px;
}

.movie-card-large .card-cover {
  height: 280px;
}

.card-cover img,
.list-cover img,
.poster-panel img,
.overview-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.card-cover img.is-hidden,
.list-cover img.is-hidden,
.poster-panel img.is-hidden,
.overview-card img.is-hidden,
.category-card img.is-hidden,
.hero-slide img.is-hidden {
  opacity: 0;
}

.movie-card:hover .card-cover img,
.movie-list-item:hover .list-cover img,
.category-card:hover img,
.overview-card:hover img {
  transform: scale(1.08);
}

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

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

.type-pill,
.region-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.type-pill {
  right: 10px;
  top: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.62);
}

.region-pill {
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.88);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--amber-600);
}

.card-body p,
.movie-list-item p,
.poster-panel p {
  color: var(--gray-600);
  line-height: 1.68;
}

.card-body p {
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  color: var(--gray-500);
  font-size: 13px;
  justify-content: space-between;
}

.card-meta span:last-child {
  max-width: 62%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
}

.hot-section {
  max-width: 1232px;
  border-radius: 34px;
  padding: 42px 34px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  box-shadow: var(--shadow);
}

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

.category-card,
.overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  box-shadow: var(--shadow-soft);
}

.category-card::after,
.overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2));
}

.category-card > div,
.overview-card > div {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
}

.category-card h3,
.overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p,
.overview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.overview-card > span {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.year-section,
.ranking-section {
  padding: 46px 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.year-section .section-heading h2,
.ranking-section .ranking-header h2 {
  color: #ffffff;
}

.year-section .section-heading p,
.ranking-section .ranking-header p {
  color: rgba(255, 255, 255, 0.68);
}

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

.movie-list-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--gray-900);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.list-cover {
  height: 100%;
  min-height: 150px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  overflow: hidden;
}

.list-content {
  padding: 20px 22px 20px 0;
}

.list-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-title-row h3 {
  margin: 0;
  font-size: 22px;
}

.list-rank {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

.movie-list-item p {
  margin: 10px 0 14px;
}

.list-meta span,
.detail-meta span {
  color: var(--amber-800, #92400e);
  background: var(--amber-100);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.compact-list .movie-list-item {
  grid-template-columns: 180px 1fr;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.ranking-header a {
  color: var(--amber-200);
  font-weight: 900;
}

.page-shell {
  padding-bottom: 68px;
}

.page-hero {
  min-height: 310px;
  border-radius: 34px;
  padding: 58px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.68)), linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 250px;
}

.ranking-hero {
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.48), transparent 28%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-weight: 700;
}

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

.filter-panel {
  margin: 32px 0;
  padding: 18px;
  border: 1px solid var(--amber-200);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.filter-panel.expanded {
  grid-template-columns: 1fr 170px 170px 150px;
}

.filter-panel input,
.filter-panel select {
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 70px 0;
  color: var(--gray-500);
  font-size: 18px;
}

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

.detail-shell {
  padding-bottom: 68px;
}

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

.player-card,
.movie-detail-card,
.poster-panel,
.related-panel {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

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

.movie-detail-card {
  padding: 34px;
}

.movie-detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.movie-detail-card .one-line {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--amber-500);
  border-radius: 16px;
  color: var(--gray-800);
  background: var(--amber-50);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}

.movie-detail-card h2,
.related-panel h2,
.poster-panel h2,
.site-footer h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.movie-detail-card p {
  color: var(--gray-700);
  line-height: 1.92;
  font-size: 16px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  height: 260px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.poster-panel div {
  padding: 20px;
}

.poster-panel h2 {
  margin-top: 0;
}

.related-panel {
  padding: 22px;
  position: sticky;
  top: 92px;
}

.related-panel h2 {
  margin-top: 0;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-list .movie-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 96px;
  border-radius: 16px;
}

.related-list .card-cover {
  height: 100%;
  min-height: 112px;
}

.related-list .card-body {
  padding: 12px;
}

.related-list .card-body h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.related-list .card-body p,
.related-list .card-meta,
.related-list .tag-row,
.related-list .type-pill,
.related-list .region-pill,
.related-list .play-hover {
  display: none;
}

.site-footer {
  margin-top: 58px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #111827, #78350f);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 950;
  color: var(--amber-200);
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin-top: 0;
  color: #ffffff;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
  color: var(--amber-100);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .four-col,
  .five-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .related-panel {
    position: static;
  }
}

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

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

  .nav-wrap {
    padding: 0 18px;
  }

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

  .hero-stage {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    left: 22px;
    bottom: 82px;
  }

  .hero-meta {
    gap: 8px;
  }

  .home-search-panel {
    margin: 0 18px;
    grid-template-columns: 1fr;
  }

  .three-col,
  .four-col,
  .five-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-list-item,
  .compact-list .movie-list-item {
    grid-template-columns: 150px 1fr;
  }

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

@media (max-width: 640px) {
  .hero-stage {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-control {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .content-section,
  .page-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .three-col,
  .four-col,
  .five-col,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .hot-section,
  .year-section,
  .ranking-section {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .movie-list-item,
  .compact-list .movie-list-item {
    grid-template-columns: 1fr;
  }

  .list-cover {
    height: 190px;
  }

  .list-content {
    padding: 18px;
  }

  .movie-detail-card {
    padding: 24px;
  }

  .related-list .movie-card {
    grid-template-columns: 104px 1fr;
  }
}
