:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --red: #ef4444;
  --amber: #f59e0b;
  --green: #10b981;
  --purple: #a855f7;
  --pink: #ec4899;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 28%),
              radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.15), transparent 28%),
              linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.nav-link,
.nav-drop-button {
  color: #cbd5e1;
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 38px;
  min-width: 190px;
  padding: 10px;
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
}

.dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 5px;
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.search-panel input,
.filter-panel select,
.search-panel select {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  outline: none;
}

.nav-search input {
  width: 220px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
}

.nav-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 14px 16px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  border-radius: 999px;
  padding: 12px 14px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: #cbd5e1;
}

.mobile-link.active {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.14);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-stage {
  min-height: 640px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.82) 44%, rgba(2, 6, 23, 0.25) 100%),
              linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 1180px;
}

.hero-label,
.detail-meta,
.horizontal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
}

.hero-label span:first-child {
  color: #fde68a;
  font-weight: 800;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

.hero-actions,
.detail-intro .primary-btn {
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.24);
}

.ghost-btn {
  color: #ffffff;
  margin-left: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.horizontal-card:hover,
.related-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.stats-strip div {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  margin-top: 7px;
  display: block;
}

.content-section {
  padding: 72px 0 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.ranking-column h2,
.text-card h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.section-more {
  color: var(--cyan);
  font-weight: 700;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.poster-link img,
.horizontal-poster img,
.related-card img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.horizontal-card:hover img,
.related-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(34, 211, 238, 0.92);
  box-shadow: 0 16px 45px rgba(34, 211, 238, 0.32);
  transition: 0.25s ease;
}

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

.rating-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.76);
  color: #fde68a;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.movie-title:hover,
.horizontal-title:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-desc,
.horizontal-card p,
.page-hero p,
.site-footer p,
.side-card dd {
  color: var(--muted);
}

.movie-meta {
  margin: 0 0 9px;
  font-size: 13px;
}

.movie-desc {
  min-height: 66px;
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 14px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 146px;
  border-radius: 24px;
  padding: 24px;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}

.category-tile {
  display: grid;
  align-content: end;
}

.category-tile strong {
  display: block;
  font-size: 22px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 5px;
}

.tile-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

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

.cyan,
.category-hero.cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

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

.amber,
.category-hero.amber {
  background: linear-gradient(135deg, #f59e0b, #eab308);
}

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

.emerald,
.category-hero.emerald {
  background: linear-gradient(135deg, #059669, #10b981);
}

.pink,
.category-hero.pink {
  background: linear-gradient(135deg, #db2777, #f43f5e);
}

.orange,
.category-hero.orange {
  background: linear-gradient(135deg, #ea580c, #ef4444);
}

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

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

.horizontal-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.25s ease;
}

.horizontal-poster {
  position: relative;
  min-height: 126px;
  overflow: hidden;
}

.horizontal-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
}

.horizontal-card > div {
  padding: 16px 16px 16px 0;
}

.horizontal-title {
  display: block;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 7px;
}

.horizontal-card p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.horizontal-meta {
  font-size: 13px;
}

.rank-panel,
.ranking-column,
.text-card,
.side-card,
.player-card,
.filter-panel,
.search-panel,
.archive-group {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 94px;
}

.rank-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 22px;
}

.rank-panel-head a {
  color: var(--cyan);
  font-size: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rank-no,
.ranking-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

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

.rank-score {
  color: #fde68a;
  font-weight: 800;
}

.page-hero {
  padding: 88px 0 52px;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.22), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.88));
}

.page-hero.small h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 0 0 12px;
}

.page-hero.small p {
  width: min(760px, 100%);
  line-height: 1.75;
  font-size: 18px;
}

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

.category-overview-card {
  min-height: 240px;
  display: grid;
  align-items: end;
}

.category-overview-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.38;
}

.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.category-overview-card div {
  position: relative;
  z-index: 1;
}

.category-overview-card span {
  font-size: 38px;
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.category-overview-card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.65;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 24px;
}

.search-panel {
  grid-template-columns: 1fr 180px 160px auto;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.filter-panel span,
.search-summary {
  color: #cbd5e1;
  font-weight: 800;
}

.search-summary {
  margin: 0 0 18px;
}

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

.ranking-column {
  padding: 20px;
}

.ranking-column h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.ranking-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-info strong,
.ranking-info small {
  display: block;
}

.ranking-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info small,
.ranking-value {
  color: var(--muted);
  font-size: 13px;
}

.ranking-value {
  color: #fde68a;
  font-weight: 800;
}

.archive-wrap {
  display: grid;
  gap: 22px;
}

.archive-group {
  padding: 20px;
}

.archive-group h2 {
  margin: 0 0 14px;
}

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

.archive-links a {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.62);
  border-radius: 13px;
  padding: 10px 12px;
  min-width: 0;
}

.archive-links a span {
  color: var(--cyan);
  font-weight: 800;
}

.archive-links a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.86);
}

.detail-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.detail-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-backdrop {
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.66)),
              linear-gradient(0deg, #020617, transparent 38%);
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

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

.detail-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin-top: 20px;
}

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

.detail-main,
.detail-side,
.related-list {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.text-card,
.side-card {
  padding: 22px;
}

.player-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.2));
  cursor: pointer;
  z-index: 2;
}

.player-cover.hidden {
  display: none;
}

.player-cover span {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 60px rgba(34, 211, 238, 0.34);
  font-size: 28px;
}

.player-cover strong {
  font-size: 18px;
}

.text-card h2,
.side-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.text-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: #e2e8f0;
  font-weight: 800;
}

.related-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.62);
  transition: 0.2s ease;
}

.related-card img {
  grid-row: span 2;
  width: 86px;
  height: 62px;
  border-radius: 12px;
}

.related-card span {
  font-weight: 800;
  line-height: 1.35;
}

.related-card small {
  color: var(--muted);
}

.site-footer {
  margin-top: 82px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 42px 0 24px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 32px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

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

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

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 20px;
}

.hidden-card {
  display: none !important;
}

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

  .nav-wrap {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .rank-panel {
    position: static;
  }

  .detail-hero-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .hero,
  .hero-stage,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .stats-strip,
  .movie-grid.four,
  .category-grid,
  .category-overview-grid,
  .archive-links,
  .footer-grid,
  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .horizontal-card > div {
    padding: 12px 12px 12px 0;
  }

  .horizontal-card p,
  .horizontal-meta span:nth-child(3) {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 30px 52px minmax(0, 1fr);
  }

  .ranking-value {
    display: none;
  }

  .detail-hero {
    min-height: auto;
    padding: 34px 0;
  }

  .detail-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-poster {
    width: min(260px, 78vw);
  }

  .detail-one-line {
    font-size: 17px;
  }

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