:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(56, 189, 248, 0.22);
  --line-soft: rgba(148, 163, 184, 0.15);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --blue: #0284c7;
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(14, 165, 233, 0.2), transparent 28rem),
    radial-gradient(circle at 84% 0%, rgba(34, 211, 238, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
  color: var(--text);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--sky), var(--cyan), #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #082f49;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

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

.nav-link,
.nav-drop a,
.mobile-nav a {
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(14, 165, 233, 0.12);
}

.nav-group {
  position: relative;
}

.nav-drop-button {
  cursor: pointer;
}

.nav-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-group:hover .nav-drop,
.nav-group:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-drop a:hover {
  color: white;
  background: rgba(14, 165, 233, 0.16);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
}

.mobile-nav a:hover {
  color: white;
  background: rgba(14, 165, 233, 0.16);
}

.hero {
  position: relative;
  padding: 28px 0 18px;
}

.hero-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 36px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(34, 211, 238, 0.2), transparent 22rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: white;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
}

.hero-movie-title {
  margin-top: 16px !important;
  font-size: clamp(30px, 3vw, 44px) !important;
  background: linear-gradient(135deg, #e0f2fe, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hero-text,
.page-hero p,
.detail-content .lead-text {
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.85;
}

.hero-text {
  max-width: 720px;
  margin: 24px 0 0;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.52);
  font-size: 12px;
}

.hero-actions,
.page-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button,
.inline-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
}

.primary-button {
  color: #082f49;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 18px 44px rgba(34, 211, 238, 0.26);
}

.ghost-button {
  color: white;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.68);
}

.text-button,
.inline-link,
.section-more {
  color: var(--cyan);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.inline-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #082f49;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.hero-controls {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.38);
}

.hero-dot.active {
  width: 54px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.band-section {
  position: relative;
}

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

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

.section-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 64px rgba(14, 165, 233, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  top: 10px;
  min-width: 56px;
  min-height: 28px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(186, 230, 253, 0.2);
  font-size: 12px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  color: #082f49;
  background: linear-gradient(135deg, #fde68a, var(--amber));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  color: #082f49;
  background: rgba(255, 255, 255, 0.92);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #bae6fd;
  font-size: 12px;
}

.tag-row {
  margin-top: 10px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 20px 64px rgba(2, 6, 23, 0.22);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.96));
}

.category-tile strong,
.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 76px;
  color: white;
  font-size: 22px;
}

.category-tile p {
  bottom: 18px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(14, 116, 144, 0.18);
}

.rank-number {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: white;
  font-size: 15px;
}

.rank-info em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rank-tag {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.6);
  font-size: 12px;
}

.sub-page {
  padding-top: 28px;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 76% 22%, rgba(34, 211, 238, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.62));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-search {
  flex: 1;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
  outline: none;
}

.filter-panel input,
.search-box input {
  width: 100%;
  padding: 0 16px;
}

.filter-panel select {
  min-width: 145px;
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

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

.category-overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

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

.ranking-side {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
}

.ranking-side h2 {
  margin: 0 0 16px;
  color: white;
}

.side-list .rank-row {
  grid-template-columns: 36px 48px minmax(0, 1fr);
}

.side-list .rank-tag {
  display: none;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 680px;
  margin-top: 28px;
}

.search-box button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-card,
.detail-side,
.detail-content,
.internal-links {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.2);
}

.player-card {
  overflow: hidden;
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: white;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.86));
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-round {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, white, var(--cyan));
  box-shadow: 0 20px 58px rgba(34, 211, 238, 0.28);
  font-size: 30px;
}

.play-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-side {
  padding: 16px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
}

.detail-actions {
  display: grid;
}

.detail-content {
  margin-top: 24px;
  padding: 34px;
}

.detail-content h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.detail-content h2 {
  margin: 34px 0 12px;
  color: white;
  font-size: 26px;
}

.detail-content p {
  color: var(--muted-strong);
  line-height: 1.9;
}

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

.internal-links {
  margin-top: 28px;
  padding: 22px;
  background: rgba(8, 47, 73, 0.2);
}

.internal-links h2 {
  margin-top: 0;
}

.internal-links ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
}

.internal-links li {
  margin: 8px 0;
}

.internal-links a:hover {
  color: var(--cyan);
}

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

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.84);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner strong {
  color: white;
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 54px;
  }

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

  .ranking-side {
    position: static;
  }

  .detail-side {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-shell,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 24px 88px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .footer-inner,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 38px 52px minmax(0, 1fr);
  }

  .rank-tag {
    display: none;
  }

  .internal-links ul {
    columns: 1;
  }
}

@media (max-width: 540px) {
  .nav-shell,
  .content-section,
  .page-hero,
  .detail-shell,
  .footer-inner,
  .hero-shell {
    width: min(100% - 20px, 1240px);
  }

  .brand {
    font-size: 18px;
  }

  .movie-grid,
  .catalog-grid,
  .ranking-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-text,
  .page-hero p,
  .detail-content .lead-text {
    font-size: 16px;
  }

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