* {
  box-sizing: border-box;
}

:root {
  --golden-50: #fffbeb;
  --golden-100: #fef3c7;
  --golden-200: #fde68a;
  --golden-300: #fcd34d;
  --golden-400: #fbbf24;
  --golden-500: #f59e0b;
  --golden-600: #d97706;
  --golden-700: #b45309;
  --golden-800: #92400e;
  --golden-900: #78350f;
  --sunshine-50: #fff7ed;
  --sunshine-100: #ffedd5;
  --sunshine-500: #f97316;
  --sunshine-700: #c2410c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-warm: 0 16px 45px rgba(245, 158, 11, 0.16);
  --shadow-golden: 0 12px 30px rgba(217, 119, 6, 0.26);
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--golden-50), #ffffff 45%, var(--sunshine-50));
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
  box-shadow: var(--shadow-golden);
}

.site-nav {
  max-width: 1280px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon,
.footer-logo span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-categories {
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link-small {
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.11);
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  border-color: #ffffff;
}

.nav-link-small:hover,
.nav-link-small.is-active {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.24);
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.nav-search button {
  border: 0;
  padding: 10px 16px;
  color: var(--golden-700);
  font-weight: 800;
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.page-home,
.page-container {
  padding-top: var(--header-height);
}

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

.page-spaced {
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 64px;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
  transition: background-image 0.6s ease, opacity 0.6s ease;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(217, 119, 6, 0.78), rgba(0, 0, 0, 0.48));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  padding: 72px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  animation: fadeIn 0.55s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7d6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-kicker {
  background: var(--golden-100);
  color: var(--golden-700);
}

.hero h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-one-line {
  max-width: 760px;
  color: var(--golden-100);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7d6;
  font-weight: 700;
}

.hero-actions,
.hero-controls,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.btn-primary {
  color: var(--golden-800);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  border-radius: inherit;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: linear-gradient(135deg, var(--golden-200), var(--golden-600));
}

.hero-controls {
  margin-top: 34px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.65;
}

.hero-dot.is-active {
  width: 34px;
  opacity: 1;
  background: #ffffff;
}

.hero-search {
  width: min(760px, 100%);
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-search input,
.search-page-form input,
.filter-panel input {
  width: 100%;
  border: 1px solid transparent;
  outline: 0;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--gray-900);
  background: #ffffff;
}

.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
  white-space: nowrap;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 0;
}

.content-section.no-padding {
  width: 100%;
  padding-top: 32px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-heading p,
.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.75;
}

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

.category-tile {
  min-height: 160px;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  box-shadow: var(--shadow-warm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-golden);
}

.category-tile span {
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--golden-600);
  font-size: 26px;
}

.category-tile small {
  color: var(--gray-500);
  line-height: 1.6;
}

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

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

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

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

.movie-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-warm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--golden-100), var(--golden-500));
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
}

.poster-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.card-body strong {
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
}

.card-meta {
  color: var(--golden-700);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-large .poster-frame img {
  aspect-ratio: 16 / 9;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.movie-card-large .card-body {
  justify-content: center;
}

.movie-card-compact .card-body strong {
  font-size: 15px;
}

.warm-panel {
  width: min(1280px, calc(100% - 32px));
  margin-top: 58px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--golden-100), #ffffff, var(--sunshine-100));
  box-shadow: var(--shadow-warm);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.site-intro-card,
.ranking-panel,
.detail-card,
.sidebar-card,
.search-page-panel,
.category-overview-card,
.filter-panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-warm);
}

.site-intro-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.site-intro-card h2 {
  margin: 16px 0 12px;
  font-size: 32px;
  line-height: 1.2;
}

.site-intro-card p {
  color: var(--gray-500);
  line-height: 1.8;
}

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

.mini-card {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  background: var(--golden-50);
}

.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
}

.mini-card img {
  width: 82px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--golden-100);
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card strong {
  overflow: hidden;
  color: var(--gray-900);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  margin-bottom: 30px;
}

.small-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 34%),
    linear-gradient(135deg, #ffffff, var(--golden-50));
  box-shadow: var(--shadow-warm);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--golden-700);
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: center;
}

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

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--gray-500);
  line-height: 1.7;
}

.category-overview-card span {
  color: var(--golden-700);
  font-weight: 900;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--golden-100);
}

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

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--golden-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input {
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.filter-count {
  margin: 0 0 20px;
  color: var(--gray-500);
  font-weight: 700;
}

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

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.search-page-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.search-page-form {
  display: flex;
  gap: 12px;
}

.search-page-form input {
  border-color: var(--gray-200);
  background: var(--gray-50);
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--golden-700);
  background: #ffffff;
}

.player-start.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
}

.player-message:empty {
  display: none;
}

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

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

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.score-pill {
  min-width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
  box-shadow: var(--shadow-golden);
}

.detail-one-line {
  margin: 0 0 22px;
  color: var(--golden-700);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: var(--gray-50);
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong {
  overflow: hidden;
  margin-top: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-block {
  margin-top: 28px;
}

.text-block h2,
.tag-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.tag-block {
  margin-top: 28px;
}

.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-block span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sunshine-700);
  font-weight: 800;
  background: var(--sunshine-100);
}

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

.sticky-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
}

.compact-rank-list .mini-card {
  grid-template-columns: 76px minmax(0, 1fr);
}

.compact-rank-list .rank-num {
  display: none;
}

.related-wide {
  margin-top: 20px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-800), var(--golden-900));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: var(--golden-100);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: relative;
  }

  .nav-panel {
    position: absolute;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, var(--golden-500), var(--golden-700));
    box-shadow: var(--shadow-golden);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links,
  .nav-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .nav-link {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-search {
    min-width: 0;
  }

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

  .hero-poster {
    width: min(340px, 80%);
    margin: 0 auto;
  }

  .movie-grid-featured,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-large {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .site-nav {
    padding: 0 14px;
  }

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

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    padding-top: 44px;
  }

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

  .hero-search,
  .search-page-form {
    flex-direction: column;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 48px;
  }

  .movie-grid-featured,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .small-hero,
  .detail-card,
  .sidebar-card,
  .warm-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .content-section,
  .page-container,
  .warm-panel,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .player-start {
    padding: 12px 16px;
  }
}
