:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-850: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-500: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --red-600: #dc2626;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.12);
  --shadow-deep: 0 35px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fff7ed 0%, var(--stone-50) 36%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  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;
  left: 0;
  right: 0;
  z-index: 1000;
  color: var(--white);
  transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.02));
}

.site-header.is-scrolled,
.site-header.is-solid {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(28, 25, 23, 0.11);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--max-width);
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
  font-size: 14px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-400);
  opacity: 1;
  transform: translateY(-1px);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active,
.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link.is-active {
  color: var(--amber-700);
}

.nav-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled .nav-search,
.site-header.is-solid .nav-search {
  background: var(--stone-100);
  border-color: var(--stone-200);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  padding: 8px 12px;
}

.nav-search input::placeholder {
  color: currentColor;
  opacity: 0.58;
}

.nav-search button,
.mobile-search button,
.btn-primary,
.btn-ghost,
.filter-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.btn-primary,
.filter-button {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.26);
}

.nav-search button {
  padding: 8px 16px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.btn-primary:hover,
.filter-button:hover,
.nav-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.35);
}

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

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.site-header.is-scrolled .mobile-link,
.site-header.is-solid .mobile-link {
  background: var(--stone-100);
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.site-header.is-scrolled .mobile-search input,
.site-header.is-solid .mobile-search input {
  border-color: var(--stone-200);
  background: var(--white);
}

.mobile-search button {
  padding: 0 18px;
}

.main-page {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 780px;
  color: var(--white);
  background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(135deg, #1c1917 0%, #0c0a09 58%, #431407 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--stone-50));
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15) contrast(1.08);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.68) 45%, rgba(12, 10, 9, 0.28) 100%), radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.2), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 780px;
  margin: 0 auto;
  padding: 148px 24px 118px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.55fr);
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 20px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--amber-200);
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: rgba(251, 191, 36, 0.1);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.hero-stat {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.hero-poster-card {
  position: relative;
  width: min(100%, 420px);
  justify-self: end;
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(24px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.hero-poster-card .poster-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.12), rgba(12, 10, 9, 0.86));
}

.poster-note strong {
  display: block;
  font-size: 18px;
}

.poster-note span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

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

.page-hero,
.detail-top {
  position: relative;
  padding: 134px 24px 56px;
  color: var(--white);
  background: radial-gradient(circle at 20% 22%, rgba(245, 158, 11, 0.28), transparent 33%), linear-gradient(135deg, var(--stone-950), var(--stone-900));
  overflow: hidden;
}

.page-hero::after,
.detail-top::after {
  content: "";
  position: absolute;
  inset: auto -20% -80px -20%;
  height: 160px;
  background: var(--stone-50);
  filter: blur(45px);
}

.page-hero-inner,
.detail-top-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1,
.detail-top h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-top p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

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

.section,
.detail-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--stone-950);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--stone-600);
}

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

.movie-card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(28, 25, 23, 0.18);
}

.poster-link {
  display: block;
}

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.03em;
}

.poster-shell img:not(.image-missing) + .poster-fallback {
  opacity: 0;
}

.poster-shell img.image-missing {
  opacity: 0;
}

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta,
.detail-meta,
.player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.rank-meta span,
.detail-meta span,
.player-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--stone-100);
}

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--stone-950);
  font-size: 18px;
  line-height: 1.28;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.index-link:hover {
  color: var(--amber-700);
}

.card-body p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.category-pills a {
  color: var(--amber-700);
  background: #fffbeb;
  border: 1px solid #fde68a;
}

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

.category-card {
  position: relative;
  padding: 24px;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(145deg, var(--stone-900), var(--stone-950));
  box-shadow: var(--shadow-soft);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -45px;
  top: -55px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28);
}

.category-card h3 {
  position: relative;
  margin: 0;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.category-card span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-400);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(28, 25, 23, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  font-weight: 950;
}

.rank-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-thumb img.image-missing {
  opacity: 0;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--stone-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 150px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select,
.search-box input,
.search-box select {
  min-width: 0;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: 0;
  background: var(--white);
  padding: 12px 14px;
}

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

.filter-button {
  min-height: 48px;
  padding: 0 18px;
}

.filter-count {
  color: var(--stone-600);
  font-weight: 800;
  margin: 0 0 18px;
}

.detail-top-inner {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
  box-shadow: var(--shadow-deep);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover img.image-missing {
  opacity: 0;
}

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

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

.player-card,
.content-card,
.side-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-card {
  background: var(--stone-950);
  color: var(--white);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-large {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.36);
  font-size: 28px;
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(220, 38, 38, 0.92);
  font-weight: 700;
}

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

.player-caption {
  padding: 18px;
}

.player-caption h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.content-card {
  padding: 30px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--stone-700);
  font-size: 16px;
}

.content-card p + p {
  margin-top: 16px;
}

.side-card {
  padding: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--stone-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  transform: translateY(-2px);
  background: #fffbeb;
}

.side-link img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-700));
}

.side-link img.image-missing {
  opacity: 0;
}

.side-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link span {
  display: block;
  margin-top: 3px;
  color: var(--stone-600);
  font-size: 13px;
}

.index-list {
  columns: 4 220px;
  column-gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.index-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.index-link {
  font-weight: 700;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.empty-results {
  display: none;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  color: var(--stone-600);
  box-shadow: var(--shadow-soft);
}

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

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

  .mobile-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-poster-card {
    justify-self: start;
    max-width: 340px;
  }

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

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

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

@media (max-width: 820px) {
  .nav-inner {
    height: 68px;
    padding: 0 18px;
  }

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

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

  .hero-content {
    padding-top: 120px;
    padding-bottom: 96px;
  }

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

  .section-head {
    display: block;
  }

  .section-head .btn-primary,
  .section-head .btn-ghost {
    margin-top: 18px;
  }

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

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

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

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

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

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 14px;
  }

  .rank-info p {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-hero,
  .detail-top {
    padding-top: 112px;
  }

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

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

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

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

  .card-body h3 {
    font-size: 20px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

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

.site-footer {
  margin-top: 82px;
  color: var(--stone-300);
  background: linear-gradient(180deg, var(--stone-900), var(--stone-950));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 54px 24px 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 34px;
}

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

.footer-brand p {
  max-width: 360px;
  color: var(--stone-500);
}

.footer-count {
  font-weight: 800;
  color: var(--amber-400) !important;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

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

.footer-col a {
  color: var(--stone-400);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--stone-500);
  font-size: 13px;
}
