:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fef2f2;
  --orange: #f97316;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #16a34a;
  --slate: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 22%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.3);
  font-size: 15px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--red), #ef4444, var(--orange));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  color: var(--gray-500);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 26px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  opacity: 0;
  transform: scaleX(0.25);
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(120deg, #b91c1c 0%, #dc2626 48%, #f97316 100%);
  padding: 92px 0 72px;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(1px);
  animation: pulse 4s ease-in-out infinite;
}

.orb-one {
  top: 50px;
  left: 8%;
  width: 128px;
  height: 128px;
}

.orb-two {
  top: 150px;
  right: 10%;
  width: 210px;
  height: 210px;
  animation-delay: 0.8s;
}

.orb-three {
  bottom: 42px;
  left: 36%;
  width: 90px;
  height: 90px;
  animation-delay: 1.5s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.34;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-intro,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

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

.btn,
.hero-card-actions a,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.hero-card-actions a:hover,
.more-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary,
.hero-card-actions a,
.more-link {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.15);
}

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

.hero-hot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-hot-links span {
  font-weight: 850;
}

.hero-hot-links a {
  display: inline-flex;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-showcase {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(86, 13, 13, 0.28);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: 0.55s ease;
  backdrop-filter: blur(20px);
}

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

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-poster img,
.poster-frame img,
.detail-info-card img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-copy {
  padding: 12px 6px 10px 0;
}

.hero-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.hero-card-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.hero-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.hero-card-actions span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--white);
}

.feature-strip {
  padding: 34px 0;
  background: var(--white);
}

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

.feature-grid article {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.feature-grid span {
  margin-top: 8px;
  color: var(--gray-500);
  line-height: 1.65;
}

.section {
  padding: 72px 0;
  background: var(--white);
}

.section.soft {
  background: linear-gradient(180deg, var(--white), #fff7f7);
}

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

.section-head.compact {
  align-items: center;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-head a {
  color: var(--red);
  font-weight: 850;
}

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

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

.latest-grid,
.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

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

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.movie-card.wide .poster-frame {
  aspect-ratio: 16 / 9;
}

.movie-card.horizontal .movie-card-link {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.horizontal .poster-frame {
  aspect-ratio: auto;
  min-height: 132px;
}

.poster-frame img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(220, 38, 38, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card-link:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

.badge.gray {
  color: var(--gray-700);
  background: var(--gray-100);
}

.movie-card strong {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  border-radius: 24px;
  background: var(--gray-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-line:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.rank-num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

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

.rank-meta {
  color: #cbd5e1;
  font-size: 13px;
}

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

.category-tile {
  display: grid;
  min-height: 190px;
  align-content: end;
  gap: 8px;
  padding: 28px;
  border-radius: 26px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile span {
  font-size: 15px;
  opacity: 0.86;
  font-weight: 800;
}

.category-tile strong {
  font-size: 28px;
  font-weight: 900;
}

.category-tile em {
  font-style: normal;
  line-height: 1.65;
  opacity: 0.88;
}

.category-tile.red {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-tile.orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.category-tile.blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-tile.purple {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-tile.green {
  background: linear-gradient(135deg, #16a34a, #65a30d);
}

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

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.17), transparent 28%),
    linear-gradient(115deg, #b91c1c, #dc2626 55%, #fb923c);
}

.page-hero p {
  max-width: 780px;
}

.category-hero {
  background: linear-gradient(115deg, #7f1d1d, #dc2626, #f97316);
}

.rank-hero {
  background: linear-gradient(115deg, #111827, #b91c1c, #f97316);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 850;
}

.search-box input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-900);
  outline: 0;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-controls select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.empty-state {
  padding: 46px;
  text-align: center;
  color: var(--gray-500);
  border-radius: 24px;
  background: var(--gray-50);
  font-weight: 800;
}

.category-card {
  display: grid;
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 160px;
  overflow: hidden;
  background: var(--red-soft);
}

.category-card-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.category-card-body strong {
  font-size: 24px;
  font-weight: 900;
}

.category-card-body em {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.65;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag-cloud a,
.tag-list span,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
}

.ranking-card .movie-card-link {
  position: relative;
}

.ranking-index {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.detail-hero {
  padding: 40px 0 64px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.15), transparent 32%),
    linear-gradient(135deg, #111827 0%, #7f1d1d 52%, #dc2626 100%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-info-card,
.content-card,
.related-panel {
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card {
  background: #000;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.36);
  font-size: 28px;
}

.player-overlay strong {
  max-width: min(80%, 620px);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
}

.player-overlay em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-weight: 800;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  min-height: 100%;
  color: var(--gray-900);
}

.detail-info-card img {
  min-height: 100%;
}

.detail-info-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.detail-info-body h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.detail-info-body p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges span {
  background: var(--gray-100);
  color: var(--gray-700);
}

.detail-section {
  background: var(--gray-50);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

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

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

.content-card h2,
.related-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

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

.info-list dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.related-panel {
  position: sticky;
  top: 98px;
}

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

.related-list .movie-card-body {
  padding: 13px;
}

.related-list .movie-card strong {
  min-height: auto;
  font-size: 14px;
}

.related-list .card-desc {
  display: none;
}

.related-list .card-meta {
  font-size: 12px;
}

.related-panel .more-link {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.75;
}

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

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

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

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

  .hero-grid,
  .detail-grid,
  .detail-content-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .related-panel {
    position: static;
  }
}

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 58px 0 68px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-poster {
    max-height: 310px;
  }

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

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

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

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

  .detail-info-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-intro,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-showcase {
    min-height: 590px;
  }

  .feature-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .latest-grid,
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card strong {
    font-size: 14px;
  }

  .card-desc {
    font-size: 13px;
  }

  .section {
    padding: 48px 0;
  }

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

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

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

  .detail-info-card img {
    max-height: 320px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .content-card,
  .related-panel {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .latest-grid,
  .catalog-grid,
  .compact-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}
