* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --bg-soft: #fff1e6;
  --paper: #ffffff;
  --paper-warm: #fffaf5;
  --text: #111827;
  --muted: #6b7280;
  --muted-strong: #374151;
  --line: #fed7aa;
  --brand: #ef4444;
  --brand-dark: #b91c1c;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.14);
  --shadow-soft: 0 12px 30px rgba(127, 29, 29, 0.10);
  --radius: 22px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #fff1f2 100%);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

img.image-error {
  opacity: 0;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(248, 113, 113, 0.18);
}

.header-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--brand-dark), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--orange));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  gap: 6px;
}

.page-shell {
  min-height: 70vh;
  overflow: hidden;
}

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

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #7f1d1d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.5fr);
  align-items: center;
  gap: 42px;
  width: 100%;
  padding-inline: max(16px, calc((100% - var(--container)) / 2));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(234, 88, 12, 0.82), rgba(245, 158, 11, 0.38));
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  padding: 13px 24px;
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(127, 29, 29, 0.25);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #fff7ed;
}

.ghost-button {
  padding: 12px 23px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(330px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  justify-self: end;
  box-shadow: 0 28px 65px rgba(69, 10, 10, 0.45);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.36), rgba(239, 68, 68, 0.18));
}

.hero-poster::after,
.movie-poster::after,
.ranking-cover::after,
.poster-side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.38));
}

.hero-poster img,
.movie-poster img,
.ranking-cover img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

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

.hero-controls > button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.stats-band {
  width: min(var(--container), calc(100% - 32px));
  margin: -38px auto 70px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-band div {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stats-band strong {
  display: block;
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.content-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 76px;
}

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

.section-heading .section-kicker {
  background: #fee2e2;
  color: var(--brand-dark);
}

.section-heading h2 {
  margin: 12px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.full-library .movie-poster {
  height: 210px;
}

.movie-card:hover .movie-poster img,
.hero-poster:hover img,
.ranking-cover:hover img {
  transform: scale(1.08);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  background: var(--brand);
}

.poster-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-title {
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title:hover,
.ranking-copy a:hover {
  color: var(--brand-dark);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: #7f1d1d;
  background: #fff1f2;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--orange), var(--amber));
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #be123c, #f97316);
}

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

.category-tile strong,
.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-tile em {
  margin-top: 20px;
  font-style: normal;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.movie-list {
  display: grid;
  gap: 16px;
}

.movie-card-list {
  flex-direction: row;
  gap: 0;
}

.movie-card-list .movie-poster {
  width: 210px;
  height: auto;
  min-height: 150px;
  flex: 0 0 210px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.ranking-panel .movie-card {
  margin-bottom: 12px;
}

.ranking-panel .movie-poster {
  height: 145px;
}

.text-link {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  color: var(--brand-dark);
  background: #fff1f2;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-weight: 900;
}

.filter-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
}

.filter-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fee2e2;
  font-weight: 900;
  cursor: pointer;
}

.filter-actions button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}

.filter-result {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

.page-hero {
  position: relative;
  margin: 38px 0 38px;
  padding: 58px;
  border-radius: 30px;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--brand-dark), var(--brand), var(--orange), var(--amber));
  box-shadow: var(--shadow);
}

.page-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.category-card-large {
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-main-link strong {
  font-size: 24px;
}

.category-main-link em {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fee2e2;
  font-style: normal;
  font-weight: 900;
}

.category-card-large p {
  color: var(--muted);
}

.category-preview {
  display: grid;
  gap: 8px;
}

.category-preview span {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted-strong);
  background: #fff7ed;
  font-size: 14px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 112px minmax(0, 1fr) 78px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  font-weight: 900;
}

.ranking-cover {
  position: relative;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: #fee2e2;
}

.ranking-copy a {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.ranking-copy p {
  display: -webkit-box;
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.heat-score {
  justify-self: end;
  color: var(--brand-dark);
  font-size: 24px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.52));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  font-size: 32px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
}

.detail-info-card,
.text-card,
.sidebar-card,
.standalone-card {
  padding: 28px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.detail-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fee2e2;
  font-weight: 900;
}

.detail-info-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
  color: var(--muted-strong);
}

.detail-meta-grid strong {
  display: block;
  color: var(--brand-dark);
  font-size: 12px;
}

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

.text-card p,
.sidebar-card p {
  margin: 0;
  color: var(--muted-strong);
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.poster-side {
  position: relative;
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
}

.block-button {
  width: 100%;
  margin-top: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--orange));
}

.nav-neighbor {
  display: grid;
  gap: 10px;
}

.nav-neighbor a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fff1f2;
  font-weight: 900;
}

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

.info-grid article {
  padding: 26px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 22px;
}

.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.sitemap-section a {
  display: block;
  margin: 8px 0;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.76);
}

.sitemap-section a:hover {
  color: var(--brand-dark);
  background: #fee2e2;
}

.sitemap-movie-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding-right: 8px;
}

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

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  color: #9ca3af;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .full-library,
  .related-grid,
  .category-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-slide {
    position: relative;
    grid-template-columns: 1fr;
    padding: 64px 0 100px;
  }

  .hero-slide:not(.active) {
    display: none;
  }

  .hero-poster {
    justify-self: start;
    width: min(280px, 80vw);
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -24px;
  }

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

  .filter-actions {
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 620px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

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

  .content-section {
    margin-bottom: 52px;
  }

  .stats-band,
  .movie-grid,
  .full-library,
  .related-grid,
  .category-grid,
  .category-grid-large,
  .detail-sidebar,
  .info-grid,
  .sitemap-columns {
    grid-template-columns: 1fr;
  }

  .movie-card-list {
    flex-direction: column;
  }

  .movie-card-list .movie-poster {
    width: 100%;
    min-height: 220px;
    flex-basis: auto;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .ranking-row {
    grid-template-columns: 44px 82px minmax(0, 1fr);
  }

  .heat-score {
    grid-column: 3;
    justify-self: start;
    font-size: 18px;
  }

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

  .footer-grid,
  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin: 8px 0;
  }
}
