* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fff8eb;
  --amber-100: #ffefcf;
  --amber-200: #fbd38d;
  --amber-300: #f6ad55;
  --amber-500: #d97706;
  --amber-600: #b45309;
  --amber-700: #92400e;
  --amber-800: #78350f;
  --amber-900: #451a03;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-700: #c2410c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(120, 53, 15, 0.12);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 38%, var(--orange-50));
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.96), rgba(69, 26, 3, 0.96));
  color: var(--white);
  box-shadow: 0 12px 36px rgba(69, 26, 3, 0.24);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(251, 211, 141, 0.14);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

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

.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 248, 235, 0.82);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav .is-active {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: var(--white);
  color: var(--slate-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-panel a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--slate-700);
}

.dropdown-panel a:hover {
  color: var(--amber-800);
  background: var(--amber-50);
}

.header-search,
.large-search,
.mobile-search {
  position: relative;
}

.header-search input,
.large-search input,
.mobile-search input,
.filter-panel input {
  width: 100%;
  border: 1px solid rgba(251, 211, 141, 0.36);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 12px 18px;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 248, 235, 0.64);
}

.header-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--amber-200);
  box-shadow: 0 0 0 4px rgba(251, 211, 141, 0.18);
}

.header-search {
  width: 260px;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  color: var(--slate-800);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
}

.search-results.is-visible {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong,
.search-result-item small {
  display: block;
}

.search-result-item small {
  margin-top: 4px;
  color: var(--slate-500);
}

.search-empty,
.filter-empty {
  padding: 18px;
  color: var(--slate-500);
  text-align: center;
}

.filter-empty {
  display: none;
  width: 100%;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px;
  color: var(--amber-50);
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  height: 78vh;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.72) 36%, rgba(0, 0, 0, 0.16) 100%), radial-gradient(circle at 18% 28%, rgba(217, 119, 6, 0.45), transparent 36%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  right: 24px;
  bottom: 92px;
  max-width: 760px;
  color: var(--white);
}

.hero-kicker,
.overview-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-700));
  border-radius: 999px;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-row span,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-700));
  box-shadow: 0 16px 28px rgba(180, 83, 9, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  min-height: auto;
  padding: 0;
  color: var(--amber-700);
  border-radius: 0;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 36px;
  background: var(--amber-500);
}

.search-hero {
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(251, 211, 141, 0.5);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-hero h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(24px, 3vw, 36px);
}

.search-hero p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.75;
}

.large-search input,
.filter-panel input {
  color: var(--slate-800);
  background: var(--slate-50);
  border-color: var(--slate-200);
}

.large-search input::placeholder,
.filter-panel input::placeholder {
  color: var(--slate-500);
}

.large-search input:focus,
.filter-panel input:focus {
  background: var(--white);
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

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

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

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.12);
}

.section-heading h2,
.compact-section h2,
.detail-card h2,
.side-box h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--slate-500);
}

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

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

.movie-card,
.list-card,
.category-tile,
.category-overview-card,
.detail-card,
.side-box {
  background: var(--white);
  border: 1px solid rgba(251, 211, 141, 0.36);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.movie-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.list-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 24px 54px rgba(120, 53, 15, 0.18);
}

.movie-card.is-hidden,
.list-card.is-hidden,
.category-overview-card.is-hidden {
  display: none;
}

.movie-poster,
.list-poster,
.category-cover,
.overview-covers {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--amber-900);
}

.movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-card-compact .movie-poster {
  aspect-ratio: 1 / 1;
}

.movie-poster img,
.list-poster img,
.category-cover img,
.overview-covers img,
.detail-head img,
.related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.movie-card:hover .movie-poster img,
.list-card:hover .list-poster img,
.category-tile:hover .category-cover img,
.category-overview-card:hover .overview-covers img {
  transform: scale(1.06);
}

.movie-badge,
.movie-score,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(69, 26, 3, 0.78);
  backdrop-filter: blur(10px);
}

.movie-badge {
  left: 10px;
  top: 10px;
}

.movie-score {
  right: 10px;
  bottom: 10px;
  color: var(--amber-900);
  background: var(--amber-200);
}

.rank-number {
  left: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-700));
  box-shadow: 0 10px 20px rgba(194, 65, 12, 0.26);
}

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

.movie-meta-row,
.list-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-card h3,
.list-card h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.list-card h3 a:hover,
.category-samples a:hover {
  color: var(--amber-700);
}

.movie-card p,
.list-card p,
.category-tile p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

.editor-section,
.rank-strip,
.compact-section {
  padding: 34px;
  margin-top: 72px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(255, 248, 235, 0.96), rgba(255, 237, 213, 0.88));
  border: 1px solid rgba(251, 211, 141, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.list-stack {
  display: grid;
  gap: 18px;
}

.list-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.list-poster {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.list-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-topline span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--amber-50);
  border-radius: 999px;
}

.list-rank {
  color: var(--white) !important;
  background: var(--amber-700) !important;
}

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

.category-tile {
  padding: 12px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.category-cover {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-cover span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: var(--white);
  font-size: 20px;
  font-weight: 850;
}

.category-tile p,
.category-overview-card p {
  padding: 14px 4px 0;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 6px;
}

.category-samples a {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--amber-800);
  background: var(--amber-50);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.section-more {
  margin-top: 24px;
  text-align: center;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.movie-card-compact p,
.movie-card-compact .tag-row,
.movie-card-compact .movie-meta-row {
  display: none;
}

.movie-card-compact h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.page-hero,
.player-top {
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.38), transparent 32%), linear-gradient(120deg, var(--amber-900), var(--amber-800), var(--orange-700));
}

.page-hero {
  padding: 86px 0 72px;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 750;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.overview-covers {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: 18px;
}

.overview-covers img:first-child {
  grid-row: span 2;
}

.overview-body h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(251, 211, 141, 0.42);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  border: 0;
  padding: 8px 12px;
  color: var(--amber-800);
  background: var(--amber-50);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chips button:hover {
  color: var(--white);
  background: var(--amber-700);
  transform: translateY(-1px);
}

.player-top {
  padding: 28px 0 42px;
}

.breadcrumb,
.player-shell,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(217, 119, 6, 0.28), rgba(0, 0, 0, 0.76));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding-left: 4px;
  color: var(--amber-900);
  background: var(--amber-200);
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.play-title {
  max-width: 86%;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 850;
  text-align: center;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-card,
.side-box {
  padding: 24px;
}

.detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.detail-head > img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.detail-head h1 {
  margin: 16px 0 14px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--slate-500);
  font-size: 18px;
  line-height: 1.78;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.meta-list div {
  padding: 12px;
  background: var(--amber-50);
  border-radius: 12px;
}

.meta-list dt {
  color: var(--slate-500);
  font-size: 12px;
}

.meta-list dd {
  margin: 4px 0 0;
  color: var(--slate-900);
  font-weight: 800;
}

.prose-card p {
  margin: 16px 0 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.95;
}

.review-card {
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.96), rgba(255, 237, 213, 0.94));
}

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

.side-box {
  position: sticky;
  top: 96px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: var(--amber-50);
  transform: translateX(2px);
}

.related-item img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.related-item span {
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.35;
}

.related-item small {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
}

.small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.site-footer {
  margin-top: 84px;
  color: rgba(255, 248, 235, 0.86);
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

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

.site-footer li + li {
  margin-top: 8px;
}

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

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

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

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

  .category-overview-grid,
  .rank-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-box {
    position: static;
  }
}

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

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

  .mobile-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .hero-slider {
    height: 72vh;
    min-height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-hero {
    grid-template-columns: 1fr;
    margin-top: -38px;
  }

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

  .list-card,
  .category-overview-card,
  .detail-head {
    grid-template-columns: 1fr;
  }

  .list-poster {
    aspect-ratio: 16 / 9;
  }

  .detail-head > img {
    width: min(260px, 100%);
  }

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

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .content-section,
  .search-hero,
  .breadcrumb,
  .player-shell,
  .detail-layout,
  .page-hero > div,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-slider {
    min-height: 620px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

  .hero-actions,
  .filter-chips {
    align-items: stretch;
  }

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

  .content-section {
    padding-top: 52px;
  }

  .editor-section,
  .rank-strip,
  .compact-section,
  .detail-card,
  .side-box {
    padding: 18px;
  }

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

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