:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --amber-900: #78350f;
  --amber-800: #92400e;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --amber-300: #fcd34d;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
  --soft-shadow: 0 16px 40px rgba(120, 53, 15, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  color: var(--ink);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(154, 52, 18, 0.98), rgba(124, 45, 18, 0.98));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(124, 45, 18, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fff7ed, #fcd34d);
  box-shadow: 0 10px 24px rgba(252, 211, 77, 0.35);
}

.brand-name {
  font-size: 1.15rem;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-links a,
.mobile-category-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-links a:hover,
.mobile-category-links a:hover {
  color: #fde68a;
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input {
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.top-search button,
.mobile-search button,
.large-search button,
.filter-panel button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.filter-panel button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: #fffbeb;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.26);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 10px;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-links,
.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #78350f, #9a3412 48%, #431407);
  color: #ffffff;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 30px 30px, #ffffff 2px, transparent 2px);
  background-size: 60px 60px;
  animation: floatPattern 16s linear infinite;
}

@keyframes floatPattern {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(60px, 60px, 0);
  }
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-image-layer {
  position: absolute;
  inset: 0;
}

.hero-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.05);
}

.hero-image-layer.missing-cover {
  background: radial-gradient(circle at 75% 20%, rgba(252, 211, 77, 0.45), transparent 34%),
    linear-gradient(135deg, #78350f, #c2410c 54%, #431407);
}

.hero-cover-fallback {
  font-size: clamp(2.3rem, 9vw, 7rem);
  opacity: 0.13;
  text-align: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(252, 211, 77, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(67, 20, 7, 0.95), rgba(120, 53, 15, 0.75) 42%, rgba(67, 20, 7, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 138px 0 180px;
  max-width: 780px;
}

.hero-eyebrow,
.section-heading span,
.rank-card > span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 18px 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-title-block p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
}

.ghost-button,
.section-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 118px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.8rem;
}

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

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

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

.hero-thumbs {
  position: absolute;
  z-index: 6;
  right: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 128px));
  gap: 12px;
}

.hero-thumb {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.hero-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-thumb.is-active {
  border-color: #fde68a;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.24);
}

.section-block {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.tinted-block {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.center-heading {
  text-align: center;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  color: var(--orange-700);
  background: #ffedd5;
  border-color: rgba(249, 115, 22, 0.18);
}

.intro-search-block {
  padding-top: 58px;
  padding-bottom: 52px;
}

.large-search {
  display: flex;
  gap: 10px;
  width: min(780px, 100%);
  margin: 28px auto 0;
  padding: 10px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  font-size: 1rem;
}

.large-search button,
.filter-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-800));
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow);
}

.poster-shell {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.4), transparent 30%),
    linear-gradient(135deg, #431407, #c2410c 54%, #f97316);
}

.hot-grid .poster-shell {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.movie-card:not(.compact-card) .poster-shell img,
.detail-poster img,
.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

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

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  font-size: 1.45rem;
  text-align: center;
  letter-spacing: -0.04em;
}

.poster-shell img:not([data-missing="true"]) + .cover-fallback {
  opacity: 0;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.94);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  left: 14px;
  right: auto;
  background: rgba(120, 53, 15, 0.92);
}

.card-body {
  padding: 20px;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.card-meta a {
  color: var(--orange-700);
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--orange-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card .tag-row {
  margin: 0 0 16px;
}

.movie-card .tag-row span,
.detail-tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.card-foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-foot strong {
  color: #9a3412;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #78350f);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-main-link {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 245px;
  padding: 24px;
}

.category-icon {
  font-size: 2.5rem;
}

.category-tile h2 {
  margin: 18px 0 10px;
  font-size: 1.55rem;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-tile strong {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffffff;
}

.category-mini-links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-mini-links a {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.from-amber {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.from-orange {
  background: linear-gradient(135deg, #ea580c, #7c2d12);
}

.from-red {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
}

.from-purple {
  background: linear-gradient(135deg, #7e22ce, #312e81);
}

.from-pink {
  background: linear-gradient(135deg, #db2777, #be123c);
}

.from-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.from-cyan {
  background: linear-gradient(135deg, #0891b2, #155e75);
}

.from-green {
  background: linear-gradient(135deg, #16a34a, #14532d);
}

.from-yellow {
  background: linear-gradient(135deg, #ca8a04, #92400e);
}

.from-blue {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.rank-card,
.info-panel,
.content-panel,
.player-card {
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-card {
  padding: 26px;
}

.rank-card h2 {
  margin: 8px 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.rank-card p {
  color: var(--muted);
  line-height: 1.7;
}

.compact-rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-rank-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.compact-rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: #ea580c;
  font-weight: 900;
}

.compact-rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-rank-score {
  color: #9a3412;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  place-items: center start;
  padding: 70px max(16px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background: radial-gradient(circle at 78% 26%, rgba(252, 211, 77, 0.36), transparent 28%),
    linear-gradient(120deg, #78350f, #9a3412 50%, #431407);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20px 20px, #ffffff 2px, transparent 2px);
  background-size: 54px 54px;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 160px minmax(160px, 0.7fr) auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff7ed;
}

.no-results {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #431407;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px) saturate(1.1);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.96), rgba(120, 53, 15, 0.74), rgba(67, 20, 7, 0.48));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a:hover {
  color: #fde68a;
}

.detail-header-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  min-height: 390px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-title-block p {
  color: rgba(255, 255, 255, 0.86);
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #111827;
}

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

.play-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.54));
  cursor: pointer;
}

.play-toggle span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #7c2d12;
  background: #ffffff;
  font-size: 2.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.play-toggle strong {
  margin-top: -36px;
  font-size: 1.15rem;
}

.play-toggle.is-hidden {
  display: none;
}

.player-status {
  margin: 0;
  padding: 13px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
  font-size: 0.92rem;
}

.info-panel,
.content-panel {
  padding: 28px;
}

.info-panel h2,
.content-panel h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

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

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.info-list a {
  color: #c2410c;
}

.content-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
  white-space: pre-line;
}

.detail-tag-row {
  margin-bottom: 0;
}

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

.sticky-card {
  position: sticky;
  top: 96px;
}

.site-footer {
  margin-top: 44px;
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.4fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 440px;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fde68a;
}

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

.footer-cats h3 {
  grid-column: 1 / -1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

  .hero-thumbs {
    left: max(16px, calc((100vw - var(--max)) / 2));
    right: auto;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    width: min(100% - 32px, 640px);
  }
}

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

  .menu-button {
    display: block;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 30px;
  }

  .hero-controls {
    bottom: 205px;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .hot-grid,
  .compact-grid,
  .category-grid,
  .footer-inner,
  .detail-header-grid,
  .info-list,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .large-search {
    border-radius: 26px;
    flex-direction: column;
  }

  .large-search input {
    min-height: 46px;
  }

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

  .detail-poster {
    width: min(100%, 310px);
  }
}

@media (max-width: 520px) {
  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-title-block h1 {
    font-size: 2.55rem;
  }

  .section-block {
    padding: 48px 0;
  }

  .tinted-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .poster-shell {
    min-height: 220px;
  }
}
