:root {
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --red: #dc2626;
  --yellow: #f59e0b;
  --green: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 16px 36px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 26px 70px rgba(17, 24, 39, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  width: min(100% - 32px, var(--max-width));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  border-radius: 999px;
  background: var(--gray-800);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-nav-link:hover {
  color: var(--orange);
  background: var(--orange-soft);
}

.page-shell {
  min-height: 100vh;
}

.with-top-space {
  padding-top: 96px;
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--orange), var(--red), var(--yellow));
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(234, 88, 12, 0.85), rgba(220, 38, 38, 0.55));
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 65%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100% - 32px, 920px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  animation: fadeUp 0.8s ease both;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fed7aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero-content h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.1;
  font-weight: 850;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 22px 45px rgba(220, 38, 38, 0.34);
}

.btn-soft {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
}

.small-btn {
  min-height: 38px;
  padding: 9px 18px;
  font-size: 14px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

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

.stat-card,
.content-card,
.filter-panel,
.category-overview-card,
.prev-next-card {
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card strong {
  display: block;
  color: var(--orange);
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--gray-500);
  font-weight: 650;
}

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

.section-title-row h2,
.filter-heading h2,
.content-card h2,
.page-hero h1,
.detail-copy h1,
.category-overview-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-kicker {
  color: var(--orange);
}

.text-link {
  color: var(--orange);
  font-weight: 800;
}

.text-link:hover {
  color: var(--red);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--gray-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(239, 68, 68, 0.16));
}

.category-card img {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 82px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  opacity: 0.55;
  box-shadow: var(--shadow-sm);
}

.category-card strong,
.category-card small,
.category-card p,
.category-icon {
  position: relative;
  z-index: 1;
}

.category-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.category-card small {
  color: var(--orange);
  font-weight: 800;
}

.category-card p {
  max-width: 220px;
  margin: 12px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.8fr;
  gap: 34px;
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 92px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #7c2d12 55%, var(--red));
  box-shadow: var(--shadow-lg);
}

.feature-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.category-chip {
  padding: 9px 13px;
  color: var(--orange);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(135deg, #fed7aa, #fecaca 52%, #fde68a);
}

.poster-wrap::after {
  content: attr(data-poster-label);
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(127, 29, 29, 0.72);
  font-weight: 900;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.poster-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster-wrap img.is-hidden {
  display: none;
}

.movie-card-link:hover .poster-wrap img,
.category-card:hover img {
  transform: scale(1.08);
}

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(8px);
}

.card-year {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, #facc15, #f97316);
}

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

.movie-card-body h3 {
  min-height: 44px;
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card-body p {
  min-height: 42px;
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.card-type {
  color: var(--orange);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 750;
}

.filter-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.filter-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--gray-500);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.filter-controls.one-line {
  grid-template-columns: 1fr;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

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

.page-hero {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 24px;
  padding: 54px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #fee2e2);
  box-shadow: var(--shadow-sm);
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--gray-500);
  font-size: 18px;
}

.category-hero,
.ranking-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(127, 29, 29, 0.72)),
    var(--hero-poster, linear-gradient(135deg, var(--orange), var(--red)));
  background-size: cover;
  background-position: center;
}

.category-hero h1,
.category-hero p,
.ranking-hero h1,
.ranking-hero p {
  color: var(--white);
}

.category-hero .breadcrumb a,
.ranking-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-overview-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.category-overview-head strong {
  color: var(--orange);
  font-size: 22px;
}

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

.rank-row-link {
  display: grid;
  grid-template-columns: 70px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  width: 86px;
  border-radius: 14px;
}

.rank-main h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.rank-main p {
  margin: 0 0 10px;
  color: var(--gray-500);
}

.rank-score {
  padding: 8px 13px;
  color: #92400e;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 20px;
}

.detail-hero {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 32px;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(127, 29, 29, 0.68)),
    var(--detail-poster);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  color: var(--white);
}

.detail-copy p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-weight: 750;
}

.detail-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #050505;
  box-shadow: var(--shadow-lg);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  border: 0;
  background:
    radial-gradient(circle at center, rgba(234, 88, 12, 0.18), transparent 32%),
    rgba(0, 0, 0, 0.58);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.35);
  font-size: 30px;
}

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

.player-start small {
  color: rgba(255, 255, 255, 0.72);
}

.player-status {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.player-source-label {
  padding: 7px 12px;
  color: var(--orange);
  border-radius: 999px;
  background: var(--orange-soft);
  font-weight: 850;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 14px 0 0;
  color: var(--gray-700);
  font-size: 17px;
}

.info-card {
  grid-column: 1 / -1;
}

.info-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 18px;
  margin: 18px 0 0;
}

.info-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--gray-900);
}

.info-card a {
  color: var(--orange);
  font-weight: 800;
}

.prev-next-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.prev-next-card {
  padding: 22px;
}

.prev-next-card span {
  display: block;
  color: var(--gray-500);
  font-weight: 750;
}

.prev-next-card strong {
  display: block;
  margin-top: 8px;
  color: var(--gray-900);
  font-size: 20px;
}

.prev-next-card:hover strong {
  color: var(--orange);
}

.align-right {
  text-align: right;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #1f2937 55%, #111827);
}

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

.footer-brand p,
.footer-note {
  color: rgba(255, 255, 255, 0.66);
}

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

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
}

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

.footer-bottom {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 24px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1180px) {
  .category-grid,
  .library-grid,
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero-carousel {
    height: 620px;
  }

  .stats-section,
  .category-grid,
  .movie-grid,
  .library-grid,
  .compact-grid,
  .ranking-grid,
  .tiny-grid,
  .feature-split,
  .detail-content-grid,
  .prev-next-row,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-copy {
    position: static;
    grid-column: 1 / -1;
  }

  .detail-hero-grid {
    grid-template-columns: 180px 1fr;
  }

  .filter-heading,
  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .rank-row-link {
    grid-template-columns: 48px 72px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: min(100% - 20px, var(--max-width));
  }

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

  .hero-carousel {
    height: 640px;
  }

  .hero-content {
    text-align: left;
  }

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

  .section-wrap,
  .page-hero,
  .detail-hero {
    width: min(100% - 20px, var(--max-width));
  }

  .section-wrap {
    padding: 38px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 28px 20px;
  }

  .stats-section,
  .category-grid,
  .movie-grid,
  .library-grid,
  .compact-grid,
  .ranking-grid,
  .tiny-grid,
  .detail-content-grid,
  .prev-next-row,
  .footer-inner,
  .filter-controls,
  .category-overview-head,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 220px;
  }

  .movie-card-body h3 {
    min-height: auto;
  }

  .movie-card-body p {
    min-height: auto;
  }

  .rank-row-link {
    grid-template-columns: 42px 70px 1fr;
    gap: 12px;
  }

  .rank-main p {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
