:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --panel-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --ocean: #0ea5e9;
  --ocean-dark: #0284c7;
  --ocean-soft: rgba(14, 165, 233, 0.18);
  --amber: #f59e0b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(14, 165, 233, 0.25), transparent 36rem),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.18), transparent 30rem),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
}

.nav-container {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #7dd3fc;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(15, 23, 42, 0.7));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  color: var(--muted-strong);
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: var(--ocean-soft);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-categories {
  display: flex;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.header-categories a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.header-categories a:hover {
  color: #7dd3fc;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.72);
}

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

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

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

.hero-carousel {
  position: relative;
  height: 62vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.22), transparent 32rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-bg img.image-missing {
  opacity: 0;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(2, 6, 23, 0.7) 46%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 32%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  padding: 42px 0 76px;
  animation: fadeUp 0.65s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  color: white;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-dark));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p,
.intro-section p {
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.78;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.hero-meta span,
.hero-meta a {
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-dark));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.22);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: white;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(860px, calc(100% - 40px));
  transform: translateX(-50%);
}

.hero-category-strip a {
  padding: 8px 13px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.19), rgba(15, 23, 42, 0.74)),
    radial-gradient(circle at 76% 24%, rgba(56, 189, 248, 0.24), transparent 26rem),
    var(--panel);
  border-bottom: 1px solid var(--line);
}

.small-hero {
  padding: 64px 0 54px;
}

.category-hero {
  padding: 52px 0 44px;
}

.page-hero h1 {
  max-width: 860px;
}

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

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

.breadcrumb a:hover {
  color: #7dd3fc;
}

.content-section,
.intro-section {
  padding: 56px 0;
}

.intro-section {
  padding-bottom: 22px;
}

.intro-section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
}

.section-heading a {
  color: #7dd3fc;
  font-weight: 750;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  background: #162033;
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: var(--shadow);
}

.movie-card.compact {
  min-width: 220px;
  max-width: 240px;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.2), transparent 12rem),
    linear-gradient(135deg, #1e293b, #020617);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.poster-frame img.image-missing {
  opacity: 0;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  color: white;
  background: rgba(14, 165, 233, 0.92);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.rank-badge,
.rank-number {
  display: inline-grid;
  place-items: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
}

.rank-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

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

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: white;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-tags span,
.detail-tags span,
.tag-cloud span {
  padding: 5px 9px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.panel-section {
  padding: 34px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.2);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.category-tile img.image-missing,
.category-cover img.image-missing {
  opacity: 0;
}

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.94));
}

.category-tile span,
.category-tile p,
.category-cover strong {
  position: relative;
  z-index: 2;
}

.category-tile span,
.category-cover strong {
  display: block;
  margin-top: 92px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.category-cover {
  position: relative;
  display: block;
  min-height: 165px;
  margin: -22px -22px 18px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.category-cover strong {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  margin: 0;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}

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

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

.horizontal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  background: #162033;
  border-color: rgba(56, 189, 248, 0.35);
}

.horizontal-card figure {
  position: relative;
  flex: 0 0 108px;
  height: 70px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
  border-radius: 12px;
}

.horizontal-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizontal-card figure img.image-missing {
  opacity: 0;
}

.horizontal-card .play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.horizontal-card div {
  min-width: 0;
}

.horizontal-card strong {
  display: block;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.horizontal-card span {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.wide-toolbar {
  padding: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 750;
}

.search-box input,
.sort-select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  color: white;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: 0;
}

.search-box input:focus,
.sort-select:focus {
  border-color: rgba(56, 189, 248, 0.64);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  height: 36px;
  padding: 0 13px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

.filter-chip.active,
.filter-chip:hover {
  color: white;
  background: rgba(14, 165, 233, 0.28);
  border-color: rgba(56, 189, 248, 0.42);
}

.empty-state {
  margin: 28px 0 0;
  padding: 28px;
  color: var(--muted-strong);
  text-align: center;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  padding: 34px 0 64px;
}

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

.watch-panel,
.detail-card,
.side-panel {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(2, 6, 23, 0.28);
}

.watch-panel {
  padding: 12px;
  background: #030712;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: white;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.68)),
    rgba(0, 0, 0, 0.28);
  border: 0;
  transition: opacity 0.2s ease;
}

.video-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.start-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-dark));
  border-radius: 50%;
  box-shadow: 0 20px 54px rgba(14, 165, 233, 0.34);
  font-size: 26px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-player:hover .player-controls,
.video-player.is-playing .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  min-width: 40px;
  height: 38px;
  padding: 0 11px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.player-controls span {
  flex: 1;
  color: var(--muted-strong);
  font-size: 13px;
}

.detail-card,
.side-panel {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted-strong);
}

.detail-meta span {
  padding: 7px 11px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.detail-card section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-card h2,
.side-panel h2,
.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.detail-card p,
.info-list dd,
.footer-brand p {
  color: var(--muted-strong);
  line-height: 1.86;
}

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

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
}

.side-recommend {
  display: grid;
  gap: 14px;
}

.side-recommend .movie-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.side-recommend .poster-frame {
  aspect-ratio: 2 / 3;
}

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

.side-recommend .movie-card p,
.side-recommend .mini-tags,
.side-recommend .card-meta {
  display: none;
}

.site-footer {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 48px 0;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

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

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

@media (max-width: 1080px) {
  .header-categories {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .nav-container {
    min-height: 66px;
  }

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

  .hero-control {
    display: none;
  }

  .hero-copy {
    padding-bottom: 128px;
  }

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

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

  .movie-grid,
  .catalog-grid,
  .large-grid,
  .category-grid,
  .category-overview-grid,
  .split-section,
  .rank-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    min-width: 190px;
  }

  .panel-section {
    padding: 22px;
  }

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

  .detail-title-row {
    flex-direction: column;
  }

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

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

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-text strong {
    font-size: 18px;
  }

  .hero-category-strip {
    bottom: 70px;
  }

  .hero-dots {
    bottom: 28px;
  }

  .content-section,
  .intro-section {
    padding: 38px 0;
  }

  .horizontal-card figure {
    flex-basis: 92px;
    height: 62px;
  }

  .side-recommend .movie-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}
