:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-card: 0 18px 50px rgba(28, 25, 23, 0.12);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fafaf9 0%, #ffffff 36%, #f5f5f4 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(28, 25, 23, 0.12);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand,
.brand-footer {
  color: var(--stone-900);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
  font-weight: 700;
}

.site-header.is-scrolled .nav-link,
.site-header.is-open .nav-link {
  color: var(--stone-700);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-search input,
.mobile-search input,
.page-search input {
  border: 0;
  outline: 0;
  color: var(--stone-900);
  min-width: 190px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-search button,
.mobile-search button,
.page-search button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  color: var(--stone-950);
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 10px;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  background: var(--stone-100);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-400);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  background: var(--stone-100);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--stone-700);
  font-weight: 800;
}

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

.hero-slider {
  position: relative;
  min-height: 780px;
  color: var(--white);
  background: var(--stone-950);
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 780px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease, transform 600ms ease;
  padding-top: 96px;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.75) 46%, rgba(12, 10, 9, 0.3) 100%), var(--hero-cover);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 32%, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(180deg, transparent 55%, var(--stone-950) 100%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.btn-primary {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

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

.btn-soft {
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.page-hero .btn-ghost {
  color: var(--stone-900);
  border-color: var(--stone-200);
  background: rgba(255, 255, 255, 0.86);
}

.detail-hero .btn-ghost,
.hero-slider .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  width: min(100%, 360px);
  justify-self: end;
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
}

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at 30% 18%, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #292524, #0c0a09);
}

.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, opacity 200ms ease;
}

.poster-shell:hover img {
  transform: scale(1.045);
}

.poster-shell.poster-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 18px;
}

.poster-shell.poster-missing::before {
  content: attr(data-title);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
}

.poster-badge,
.poster-type,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  right: 12px;
  color: var(--stone-950);
  background: var(--amber-400);
  padding: 6px 10px;
}

.poster-type {
  left: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(12, 10, 9, 0.76);
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}

.rank-mark {
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  font-style: normal;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--white);
  font-size: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.home-search-band,
.content-section,
.page-hero,
.detail-player-section,
.detail-content-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  align-items: center;
  gap: 26px;
  padding: 28px;
  margin-top: -72px;
  position: relative;
  z-index: 10;
  color: var(--white);
  background: rgba(28, 25, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.home-search-band h2,
.home-search-band p {
  margin: 6px 0 0;
}

.home-search-band p {
  color: rgba(255, 255, 255, 0.72);
}

.home-search-band form,
.page-search {
  display: flex;
  gap: 10px;
}

.home-search-band input,
.page-search input {
  flex: 1;
}

.content-section {
  padding: 86px 0 0;
}

.no-top-pad {
  padding-top: 0;
}

.dark-section {
  width: 100%;
  max-width: none;
  margin-top: 86px;
  padding: 86px max(16px, calc((100% - 1220px) / 2)) 92px;
  color: var(--white);
  background: radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.18), transparent 30%), linear-gradient(135deg, #1c1917, #0c0a09);
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text-card h2,
.detail-side-card h2 {
  margin: 10px 0 0;
  color: var(--stone-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.dark-section .section-head h2,
.dark-section .section-head p {
  color: var(--white);
}

.section-head p,
.page-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.movie-card .poster-shell {
  aspect-ratio: 2 / 3;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 10px 0 7px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 48px;
}

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

.rank-row,
.rank-wide-row {
  display: grid;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-row:hover,
.rank-wide-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(28, 25, 23, 0.14);
}

.rank-row {
  grid-template-columns: 54px 1fr auto auto;
  padding: 12px 16px;
}

.rank-num,
.rank-wide-num {
  color: var(--amber-600);
  font-weight: 950;
  font-size: 20px;
}

.rank-title {
  font-weight: 900;
}

.rank-info {
  color: var(--stone-500);
  font-size: 13px;
}

.rank-row strong,
.rank-wide-row b {
  color: var(--stone-950);
  background: #fef3c7;
  border-radius: 999px;
  padding: 6px 10px;
}

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

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

.category-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  border: 1px solid #ffedd5;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.category-card > a {
  display: block;
  padding: 22px;
}

.category-card span {
  display: inline-flex;
  color: var(--stone-950);
  background: var(--amber-400);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.category-card h2 {
  margin: 16px 0 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-preview a {
  max-width: 100%;
  color: var(--stone-600);
  background: var(--stone-100);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-preview a:hover {
  color: var(--amber-600);
  background: #fffbeb;
}

.page-main {
  padding-top: 104px;
}

.page-hero {
  padding: 76px 0 50px;
}

.compact-hero,
.category-hero,
.rank-hero {
  min-height: 360px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

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

.category-card-large {
  min-height: 260px;
}

.filter-bar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stone-200);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(14px);
}

.filter-chip {
  border: 0;
  cursor: pointer;
  color: var(--stone-700);
  background: var(--stone-100);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 850;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

.rank-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.rank-wide-row {
  grid-template-columns: 52px 74px minmax(0, 1fr) auto auto;
  padding: 12px 16px;
}

.rank-wide-cover {
  width: 74px;
  height: 104px;
  border-radius: 14px;
}

.rank-wide-main {
  min-width: 0;
}

.rank-wide-main strong,
.rank-wide-main em {
  display: block;
}

.rank-wide-main strong {
  color: var(--stone-900);
  font-size: 18px;
}

.rank-wide-main em {
  margin-top: 5px;
  color: var(--stone-500);
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-wide-meta {
  color: var(--stone-500);
  font-size: 13px;
}

.page-search {
  max-width: 780px;
  margin-top: 26px;
}

.page-search input {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
}

.search-empty {
  grid-column: 1 / -1;
  padding: 44px;
  color: var(--stone-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-main {
  background: var(--white);
}

.detail-hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  background: var(--stone-950);
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 48%, rgba(12, 10, 9, 0.38) 100%), var(--detail-cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.08) 0%, var(--stone-950) 100%), radial-gradient(circle at 22% 32%, rgba(245, 158, 11, 0.3), transparent 28%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 116px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(44px, 6vw, 78px);
}

.detail-one-line {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
}

.detail-meta div,
.detail-side-card dl div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.detail-meta dt,
.detail-side-card dt {
  color: var(--amber-400);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.detail-meta dd,
.detail-side-card dd {
  margin: 0;
  font-weight: 800;
}

.detail-player-section {
  padding: 84px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 52px rgba(245, 158, 11, 0.38);
}

.player-start strong {
  font-size: 18px;
}

.player-shell.is-playing .player-start,
.player-shell.is-loading .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(270px, 0.5fr);
  gap: 22px;
  padding-top: 46px;
}

.detail-text-card,
.detail-side-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-text-card p {
  color: var(--stone-600);
  line-height: 1.9;
}

.detail-side-card dl {
  display: grid;
  gap: 10px;
}

.detail-side-card dl div {
  background: var(--stone-100);
  border-color: var(--stone-200);
}

.detail-side-card dd a {
  color: var(--amber-600);
}

.related-section {
  padding-bottom: 92px;
}

.movie-card-compact h2 {
  font-size: 16px;
}

.site-footer {
  margin-top: 92px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--stone-950);
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 0.8fr 0.6fr;
  gap: 44px;
  padding: 56px 0 40px;
}

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

.footer-brand p {
  max-width: 430px;
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

  .section-split,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 110px;
    padding-bottom: 98px;
  }

  .hero-poster {
    display: none;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: clamp(38px, 12vw, 60px);
  }

  .home-search-band {
    grid-template-columns: 1fr;
  }

  .home-search-band form,
  .page-search,
  .mobile-search {
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-grid-full,
  .rank-feature-grid,
  .compact-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-wide-row {
    grid-template-columns: 40px 58px minmax(0, 1fr);
  }

  .rank-wide-meta,
  .rank-wide-row b {
    display: none;
  }

  .rank-wide-cover {
    width: 58px;
    height: 82px;
  }

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

  .detail-cover {
    max-width: 260px;
  }

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

@media (max-width: 540px) {
  .nav-wrap,
  .mobile-panel,
  .home-search-band,
  .content-section,
  .page-hero,
  .detail-player-section,
  .detail-content-grid,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1220px);
  }

  .hero-slider,
  .hero-track {
    min-height: 700px;
  }

  .hero-slide {
    width: min(100% - 24px, 1220px);
  }

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

  .rank-row {
    grid-template-columns: 44px 1fr auto;
  }

  .rank-info {
    display: none;
  }

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

  .player-start span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
