:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.68);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #2563eb;
  --orange: #fb923c;
  --purple: #a855f7;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-cyan: 0 24px 80px rgba(34, 211, 238, 0.12);
  --shadow-card: 0 20px 60px rgba(2, 6, 23, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 34rem),
    radial-gradient(circle at 78% 10%, rgba(37, 99, 235, 0.12), transparent 32rem),
    var(--bg);
  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: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.5);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.brand-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(10px);
}

.brand-icon svg {
  position: relative;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.brand-text strong {
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.brand-text em {
  margin-top: 4px;
  color: rgba(34, 211, 238, 0.85);
  font-size: 0.72rem;
  font-style: normal;
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 650;
  font-size: 0.96rem;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.big-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text);
  outline: none;
  border-radius: 999px;
  padding: 11px 42px 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.big-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.86);
}

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

.header-search button:hover {
  color: var(--cyan);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

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

.mobile-panel nav,
.mobile-category-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-category-links {
  grid-template-columns: repeat(2, 1fr);
}

.mobile-category-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted-strong);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-search button,
.big-search button,
.filter-bar button,
.search-filter button {
  border: 0;
  border-radius: 999px;
  background: var(--cyan-strong);
  color: white;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mobile-search button:hover,
.big-search button:hover,
.filter-bar button:hover,
.search-filter button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--cyan);
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.18);
}

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

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-fallback,
.thumb-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 40%),
    linear-gradient(135deg, #0f172a, #020617 65%, #155e75);
  color: rgba(248, 250, 252, 0.72);
  font-weight: 800;
  text-align: center;
}

.media-missing > img,
.hero-bg.media-missing > img,
.poster-card.media-missing > img {
  display: none;
}

.media-missing .hero-fallback,
.media-missing .thumb-fallback {
  display: flex;
}

.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-gradient-bottom {
  background: linear-gradient(to top, var(--bg) 3%, rgba(15, 23, 42, 0.65) 42%, transparent 100%);
}

.hero-gradient-side {
  background: linear-gradient(to right, rgba(2, 6, 23, 0.86), transparent 55%, rgba(2, 6, 23, 0.42));
}

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

.hero-copy {
  width: min(720px, 100%);
  display: grid;
  gap: 22px;
}

.hero-kicker,
.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
}

.hero-kicker span,
.detail-kicker a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cyan-strong);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-kicker em,
.detail-kicker span {
  font-style: normal;
  color: #d1d5db;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0;
  color: #d1d5db;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d1d5db;
}

.hero-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: 160px;
  border-radius: 14px;
  background: var(--cyan-strong);
  color: white;
  padding: 15px 24px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

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

.page-stack {
  padding-top: 64px;
  padding-bottom: 56px;
  display: grid;
  gap: 72px;
}

.home-stack {
  padding-top: 72px;
}

.quick-search-panel,
.accent-panel,
.trending-panel,
.soft-panel,
.ranking-strip,
.ranking-list-panel,
.detail-card,
.info-card,
.category-overview-card,
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1 {
  margin: 0;
}

.quick-search-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.quick-search-panel p,
.page-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.big-search input {
  padding: 15px 18px;
}

.content-section {
  display: grid;
  gap: 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--cyan);
  font-weight: 750;
}

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

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

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

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid var(--line);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-cyan);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.movie-card-small .movie-thumb {
  aspect-ratio: 4 / 3;
}

.movie-card-wide .movie-thumb {
  aspect-ratio: 21 / 9;
}

.movie-thumb img,
.poster-card img,
.podium-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18), transparent);
}

.thumb-badges,
.thumb-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.thumb-badges {
  top: 12px;
  justify-content: flex-end;
}

.thumb-meta {
  bottom: 12px;
}

.thumb-badges span,
.thumb-meta span {
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.thumb-badges span:first-child {
  background: rgba(6, 182, 212, 0.86);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-hover::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.86);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.25);
}

.play-hover {
  z-index: 1;
}

.play-hover::after {
  content: "▶";
  position: relative;
  z-index: 2;
  transform: translateX(2px);
  font-size: 1.2rem;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-info h3 {
  color: var(--cyan);
}

.movie-info p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.accent-panel {
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.62));
}

.trending-panel {
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.16));
  border-color: rgba(34, 211, 238, 0.18);
}

.soft-panel {
  padding: clamp(22px, 4vw, 34px);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 32%);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

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

.ranking-strip {
  padding: clamp(24px, 4vw, 40px);
}

.ranking-strip ol,
.ranking-list-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ranking-strip li a,
.ranking-row a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-row a {
  grid-template-columns: 54px minmax(0, 1fr) minmax(160px, auto) 80px;
}

.ranking-strip li a:hover,
.ranking-row a:hover {
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.88);
}

.rank-number,
.ranking-index {
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.1rem;
}

.ranking-strip strong,
.ranking-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-strip em,
.ranking-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.ranking-row b {
  color: var(--orange);
}

.page-hero {
  padding: 150px 0 70px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), var(--bg)),
    radial-gradient(circle at 22% 30%, rgba(34, 211, 238, 0.18), transparent 34rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.07em;
}

.page-hero strong {
  color: var(--cyan);
}

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

.category-overview-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-overview-card a {
  display: grid;
  gap: 16px;
  padding: 22px;
  min-height: 100%;
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-card-top span {
  font-size: 1.3rem;
  font-weight: 850;
}

.category-card-top em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 800;
}

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

.mini-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-covers span {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #020617;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  padding: 16px;
}

.filter-bar select {
  border-radius: 999px;
  padding: 11px 16px;
}

.result-count {
  margin: -44px 0 -36px;
  color: var(--muted);
}

[data-card].is-hidden {
  display: none;
}

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

.podium-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.podium-card a {
  display: grid;
  height: 100%;
}

.podium-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.22));
}

.podium-card div,
.podium-rank {
  position: relative;
  z-index: 2;
}

.podium-rank {
  align-self: start;
  justify-self: start;
  margin: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cyan-strong);
  font-weight: 900;
}

.podium-card div {
  align-self: end;
  padding: 24px;
}

.podium-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.podium-card p {
  margin: 0;
  color: var(--muted-strong);
}

.ranking-list-panel {
  padding: clamp(20px, 4vw, 34px);
}

.detail-top {
  padding: 112px 0 56px;
}

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

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

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow-cyan);
}

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

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.9);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.28);
}

.player-panel.is-playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.player-loading,
.player-error {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.72);
  color: #d1d5db;
  font-size: 0.88rem;
}

.player-error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.76);
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-panel:hover .player-controls,
.player-controls:focus-within {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 12px;
  cursor: pointer;
}

.detail-card,
.info-card {
  padding: clamp(20px, 4vw, 30px);
}

.detail-card h1 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

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

.lead-text {
  font-size: 1.08rem;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.poster-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #020617;
  border: 1px solid var(--line);
}

.info-card h3 {
  margin: 0 0 18px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

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

.info-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.related-section {
  padding-bottom: 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  padding: 44px 0;
}

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

.footer-logo {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 640px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-note {
  color: var(--cyan);
  font-size: 0.9rem;
}

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

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

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

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

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

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

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

  .quick-search-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .four-cols,
  .three-cols,
  .category-overview-grid,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 68px;
  }

  .brand-text strong {
    font-size: 1.12rem;
  }

  .hero-shell {
    height: 78vh;
    min-height: 560px;
  }

  .hero-meta span:nth-child(3) {
    display: none;
  }

  .hero-dots {
    right: 20px;
  }

  .big-search,
  .filter-bar,
  .mobile-search,
  .ranking-row a {
    grid-template-columns: 1fr;
  }

  .four-cols,
  .three-cols,
  .category-overview-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: minmax(260px, 85%);
  }

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

  .page-stack {
    gap: 48px;
  }

  .detail-top {
    padding-top: 92px;
  }

  .player-controls {
    opacity: 1;
  }
}
