:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-400: #f87171;
  --pink-400: #f472b6;
  --green-400: #4ade80;
  --teal-400: #2dd4bf;
  --blue-400: #60a5fa;
  --cyan-400: #22d3ee;
  --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-soft: 0 20px 50px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 12px 28px rgba(146, 64, 14, 0.12);
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50), var(--amber-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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), rgba(255, 251, 235, 0.96));
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(253, 230, 138, 0.8);
}

.nav-shell {
  max-width: 1280px;
  height: 4rem;
  padding: 0 1rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.3s ease;
}

.site-logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.04);
}

.logo-play {
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.68rem solid var(--white);
  margin-left: 0.15rem;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

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

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

.nav-search {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-search input {
  width: 16rem;
  height: 2.5rem;
  padding: 0 3rem 0 1rem;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  outline: none;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-page-panel input:focus,
.search-page-panel select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.nav-search button {
  position: absolute;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.mobile-menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(254, 243, 199, 0.75);
}

.mobile-menu-button span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.27rem auto;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--amber-200);
  background: var(--white);
}

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

.mobile-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  outline: none;
  background: var(--gray-50);
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.mobile-nav {
  display: grid;
  gap: 0.85rem;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 34rem;
  overflow: hidden;
  background: var(--gray-900);
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-content h1 {
  max-width: 48rem;
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 42rem;
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.75;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--amber-500);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: var(--amber-400);
  font-size: 1.05rem;
}

.hero-meta,
.detail-meta,
.tag-row,
.hero-actions,
.page-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-bottom: 1.7rem;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-meta span {
  color: var(--white);
  background: rgba(245, 158, 11, 0.86);
  backdrop-filter: blur(8px);
}

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.small-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: var(--gray-800);
  border-color: rgba(253, 230, 138, 0.72);
  background: rgba(255, 255, 255, 0.68);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

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

main,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-section {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--gray-800);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section-heading a {
  color: var(--amber-600);
  font-weight: 800;
}

.horizontal-scroll {
  display: flex;
  gap: 1.25rem;
  padding: 0.35rem 0.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  flex: 0 0 20rem;
  scroll-snap-align: start;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

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

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

.poster-link:hover img {
  transform: scale(1.09);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.56));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-link:hover .poster-gradient {
  opacity: 1;
}

.quality-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  border-radius: 0.55rem;
  padding: 0.32rem 0.55rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.quality-badge {
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(245, 158, 11, 0.9);
}

.year-badge {
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  display: block;
  padding: 1rem;
}

.card-title {
  display: -webkit-box;
  min-height: 3rem;
  margin-bottom: 0.45rem;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.poster-link:hover .card-title {
  color: var(--amber-600);
}

.card-line {
  display: -webkit-box;
  min-height: 2.75rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.card-meta em {
  max-width: 55%;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #a16207;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--amber-50);
}

.card-meta b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-panel,
.ranking-panel {
  margin: 2rem 0;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.highlight-panel {
  background: rgba(255, 255, 255, 0.72);
}

.ranking-panel {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(236, 253, 245, 0.85));
}

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

.category-tile {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  border-radius: 1.4rem;
  color: var(--white);
  box-shadow: var(--shadow-card);
  background: var(--gray-900);
}

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

.category-tile:hover img {
  opacity: 0.72;
  transform: scale(1.08);
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 11rem;
  padding: 1rem;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.category-tile strong {
  font-size: 1.22rem;
}

.category-tile em {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-link {
  display: grid;
  grid-template-columns: 3rem 5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 0.85rem;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  color: var(--amber-600);
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.rank-link img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.rank-content {
  min-width: 0;
}

.rank-content strong,
.rank-content span,
.rank-content em {
  display: block;
}

.rank-content strong {
  margin-bottom: 0.25rem;
  color: var(--gray-800);
  font-size: 1.05rem;
}

.rank-content span {
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content em {
  margin-top: 0.35rem;
  color: var(--gray-500);
  font-size: 0.78rem;
  font-style: normal;
}

.rank-action {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.page-main {
  padding-top: 2rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.95), rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.86));
  box-shadow: var(--shadow-soft);
}

.page-hero:after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -5rem;
  top: -5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.page-hero p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}

.category-overview-list {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.category-overview-card {
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-overview-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1.7rem;
}

.category-overview-head p {
  max-width: 46rem;
  margin: 0.4rem 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.small-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

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

.filter-panel,
.search-page-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.filter-search,
.search-page-panel input {
  flex: 1;
}

.filter-panel input,
.search-page-panel input,
.filter-panel select,
.search-page-panel select {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  outline: none;
  color: var(--gray-700);
  background: var(--white);
}

.filter-selects {
  display: flex;
  gap: 0.75rem;
}

.filter-selects select {
  min-width: 8rem;
}

.is-filtered-out {
  display: none !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 750;
}

.detail-main {
  padding-top: 0.5rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius-2xl);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

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

.detail-info h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.detail-one-line {
  margin: 0 0 1.2rem;
  color: var(--gray-600);
  font-size: 1.12rem;
  line-height: 1.85;
}

.detail-meta {
  margin-bottom: 1rem;
}

.detail-meta span,
.tag-row span {
  color: #92400e;
  background: var(--amber-50);
}

.tag-row {
  margin-bottom: 1.5rem;
}

.player-section {
  padding: 2rem 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
}

.play-circle span {
  width: 0;
  height: 0;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.15rem solid var(--white);
  margin-left: 0.2rem;
}

.player-overlay strong {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.story-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.story-card h2 {
  margin: 0 0 0.8rem;
  color: var(--gray-800);
  font-size: 1.45rem;
}

.story-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.95;
}

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

.search-page-panel {
  align-items: stretch;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--amber-200);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50), var(--amber-50));
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 1rem;
  color: var(--gray-800);
  font-size: 1rem;
}

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

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: var(--gray-600);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--amber-600);
}

.footer-bottom {
  border-top: 1px solid var(--amber-200);
  padding: 1.2rem 1rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  text-align: center;
}

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

  .nav-search input {
    width: 13rem;
  }

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 32rem;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  .hero-control {
    display: none;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-heading,
  .category-overview-head,
  .filter-panel,
  .search-page-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

  .movie-grid,
  .all-grid,
  .category-grid,
  .mini-card-row,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-panel,
  .ranking-panel {
    padding: 1rem;
  }

  .rank-link {
    grid-template-columns: 2.6rem 4rem 1fr;
  }

  .rank-action {
    display: none;
  }

  .rank-link img {
    width: 4rem;
    height: 4rem;
  }

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

  .detail-poster {
    max-width: 19rem;
  }

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

@media (max-width: 520px) {
  .logo-text {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-meta span,
  .detail-meta span,
  .tag-row span {
    padding: 0.42rem 0.65rem;
    font-size: 0.82rem;
  }

  .hero-actions,
  .page-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .horizontal-scroll .movie-card {
    flex-basis: 16rem;
  }

  .movie-grid,
  .all-grid,
  .category-grid,
  .mini-card-row,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    border-radius: 1.4rem;
    padding: 1.5rem;
  }

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