:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --emerald: #34d399;
  --orange: #fb923c;
  --purple: #c084fc;
  --shadow: 0 20px 45px rgba(8, 47, 73, 0.26);
  --radius-xl: 26px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.14), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 164px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(37, 99, 235, 0.22));
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
}

.brand-mark::before {
  content: "▶";
  font-size: 18px;
  transform: translateX(1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  margin-top: 5px;
  color: rgba(34, 211, 238, 0.82);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-weight: 650;
}

.main-nav a,
.footer-links a,
.inline-link {
  transition: color 0.18s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.inline-link:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search,
.filter-search {
  position: relative;
}

.header-search input,
.filter-search input,
.filter-select {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 42px 10px 16px;
}

.header-search input:focus,
.filter-search input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.84);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.94);
}

.search-button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.search-button::before {
  content: "⌕";
  font-size: 18px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.68);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle span {
  opacity: 0;
}

.site-header.is-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: 600px;
  height: 85vh;
  overflow: hidden;
  background: #020617;
}

.hero-slider,
.hero-slide,
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
}

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

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

.hero-media {
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 36rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.03);
}

.hero-media img.is-missing {
  opacity: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.66) 38%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.3) 52%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 0 78px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow,
.badge,
.meta-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
}

.eyebrow {
  padding: 8px 13px;
  color: white;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.26);
}

.hero-title {
  margin: 22px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-desc {
  width: min(620px, 100%);
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #dbeafe;
}

.meta-pill {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(12px);
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  padding: 13px 19px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.16);
}

.btn-primary {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.hero-dots {
  position: absolute;
  right: min(6vw, 70px);
  bottom: 54px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.main-content {
  padding: 70px 0 64px;
}

.section {
  margin-bottom: 76px;
}

.section-card {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.56));
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.2);
}

.section-card.cyan {
  border-color: rgba(34, 211, 238, 0.2);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.48), rgba(30, 64, 175, 0.24));
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
}

.section-desc {
  margin: -8px 0 25px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 46px rgba(6, 182, 212, 0.13);
}

.movie-card.is-hidden {
  display: none;
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(34, 211, 238, 0.18), transparent 48%),
    linear-gradient(145deg, #1e293b, #020617);
}

.poster-shell.wide {
  aspect-ratio: 16 / 8.5;
}

.poster-shell img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.36s ease, opacity 0.2s ease;
}

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

.poster-shell img.is-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge,
.score-pill {
  padding: 6px 9px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
}

.badge.cyan {
  background: rgba(6, 182, 212, 0.86);
  border-color: rgba(103, 232, 249, 0.24);
}

.badge.orange {
  background: rgba(251, 146, 60, 0.9);
}

.score-pill {
  color: #a7f3d0;
}

.card-body {
  padding: 17px;
}

.card-title {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-line {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.6) rgba(15, 23, 42, 0.56);
}

.horizontal-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 20px;
}

.page-hero {
  padding: 138px 0 42px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), transparent);
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan);
  font-weight: 850;
}

.page-title {
  margin: 0;
  font-size: clamp(34px, 5.3vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.page-desc {
  max-width: 820px;
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 17px;
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(12px);
}

.filter-search input {
  width: 100%;
  padding: 12px 16px;
}

.filter-select {
  width: 100%;
  padding: 12px 14px;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.78));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-tile h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-tile p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 92px minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.66);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.86);
}

.rank-number {
  font-size: 28px;
  font-weight: 950;
  color: var(--cyan);
  text-align: center;
}

.rank-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

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

.rank-title {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 900;
}

.rank-line {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-score {
  justify-self: end;
  min-width: 128px;
  text-align: center;
  padding: 13px 15px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.24);
}

.player-panel {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 18%, rgba(34, 211, 238, 0.2), transparent 44%),
    linear-gradient(145deg, #020617, #0f172a);
}

.video-player,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player {
  z-index: 3;
  background: #020617;
}

.video-player:not(.is-ready) {
  opacity: 0;
  pointer-events: none;
}

.player-poster {
  object-fit: cover;
  opacity: 0.58;
}

.player-poster.is-missing {
  opacity: 0;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.7));
}

.video-player.is-ready + .player-overlay {
  display: none;
}

.player-launch {
  width: 84px;
  height: 84px;
  border: 1px solid rgba(34, 211, 238, 0.52);
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96));
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.player-launch::before {
  content: "▶";
  display: block;
  transform: translateX(3px);
  font-size: 32px;
}

.player-launch:hover {
  transform: scale(1.07);
  box-shadow: 0 26px 60px rgba(6, 182, 212, 0.42);
}

.player-info {
  padding: 22px;
}

.player-info h2,
.detail-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.player-status {
  color: var(--muted);
  line-height: 1.7;
}

.detail-panel {
  padding: 26px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-intro {
  margin: 20px 0 0;
  color: #dbeafe;
  line-height: 1.85;
  font-size: 18px;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
}

.detail-section p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 16px;
}

.side-panel {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-poster {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-title {
  margin: 0 0 5px;
  font-weight: 850;
  line-height: 1.35;
}

.side-meta {
  color: var(--muted);
  font-size: 13px;
}

.pagination-note {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.78);
  padding: 42px 0;
}

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

.footer-brand p,
.footer-col p,
.footer-col a {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: white;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.copyright {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--muted-2);
  font-size: 13px;
}

.empty-result {
  display: none;
  padding: 30px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-result.is-visible {
  display: block;
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 78px;
    z-index: 45;
    display: none;
    padding: 18px 0 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(14px);
  }

  .site-header.is-open .mobile-panel {
    display: block;
  }

  .mobile-panel nav,
  .mobile-panel form {
    display: grid;
    gap: 14px;
  }

  .mobile-panel a {
    padding: 11px 0;
    color: #cbd5e1;
    font-weight: 750;
  }

  .mobile-panel input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
  }

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

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

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

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

  .result-count {
    grid-column: 1 / -1;
  }
}

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

  .header-inner {
    height: 70px;
  }

  .mobile-panel {
    top: 70px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 36px;
  }

  .main-content {
    padding-top: 50px;
  }

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

  .movie-grid,
  .movie-grid.three,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-line {
    min-height: auto;
    font-size: 13px;
  }

  .page-hero {
    padding-top: 112px;
  }

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

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

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

  .rank-score {
    grid-column: 2 / -1;
    justify-self: stretch;
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid.three,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }
}
