:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(30, 41, 59, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(251, 146, 60, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --orange: #f97316;
  --red: #dc2626;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(220, 38, 38, 0.12), transparent 32rem),
    linear-gradient(180deg, #0f172a 0%, #020617 46%, #020617 100%);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img,
video {
  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;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.26);
}

.logo-text {
  font-size: 20px;
}

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

.nav a {
  border-radius: 12px;
  padding: 9px 13px;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.header-search {
  position: relative;
  width: min(300px, 28vw);
}

.header-search input,
.search-box input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  outline: none;
  background: rgba(51, 65, 85, 0.82);
  color: #fff;
  padding: 11px 14px 11px 42px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.search-box input:focus,
.filter-input:focus {
  border-color: rgba(249, 115, 22, 0.78);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
  background: rgba(30, 41, 59, 0.95);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
  cursor: pointer;
  padding: 9px 11px;
}

.header-chips {
  display: flex;
  gap: 9px;
  padding: 0 0 14px;
  overflow-x: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.86);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover,
.chip.is-active {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  transform: translateY(-1px);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
  padding: 14px 0 18px;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.94)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  content: "";
  background: linear-gradient(180deg, transparent, #020617);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 46px;
  align-items: center;
  padding: 76px 0 92px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 13px;
}

.hero h1,
.page-title {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-title {
  display: block;
}

.hero-text,
.page-lead {
  max-width: 760px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(51, 65, 85, 0.9);
  transform: translateY(-2px);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster-wrap::before {
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  content: "";
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(220, 38, 38, 0.2));
  filter: blur(18px);
}

.hero-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.hero-rating {
  position: absolute;
  right: 16px;
  top: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fef3c7;
  font-weight: 900;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.main {
  padding: 54px 0 72px;
}

.section {
  margin: 0 0 64px;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow);
  padding: 30px;
}

.section-panel.orange {
  border-color: rgba(249, 115, 22, 0.25);
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(124, 45, 18, 0.22), rgba(15, 23, 42, 0.9));
}

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

.section-title {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(30, 41, 59, 0.94);
  transform: translateY(-5px);
}

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

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.card-poster::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.card-badge,
.card-score,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 10px;
  top: 10px;
  background: rgba(249, 115, 22, 0.9);
  color: #fff;
}

.card-score {
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.58);
  color: #fef08a;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tag {
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.88);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 145px 1fr;
}

.movie-card.horizontal .card-poster {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-title {
  font-size: 18px;
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
}

.rail .movie-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 10%, rgba(249, 115, 22, 0.22), transparent 10rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
  padding: 22px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(249, 115, 22, 0.44);
  transform: translateY(-4px);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 11px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.15), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.page-hero-inner {
  padding: 62px 0 52px;
}

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

.breadcrumb a {
  color: #fed7aa;
  font-weight: 800;
}

.breadcrumb span {
  color: var(--muted);
}

.search-box {
  position: relative;
  max-width: 740px;
  margin-top: 26px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 26px;
}

.filter-row select {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  outline: none;
  background: rgba(51, 65, 85, 0.82);
  color: #fff;
  padding: 11px 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  padding: 14px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

.rank-index {
  color: #fed7aa;
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  min-width: 86px;
  color: #fef08a;
  font-size: 22px;
  font-weight: 1000;
  text-align: right;
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.96)),
    var(--detail-image);
  background-position: center;
  background-size: cover;
  opacity: 0.6;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 58px 0 46px;
}

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

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

.detail-title {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  max-width: 850px;
  margin: 0;
  color: #e2e8f0;
  font-size: 19px;
}

.player-section {
  margin-top: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 18rem),
    rgba(2, 6, 23, 0.42);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.36);
  font-size: 30px;
  transform: scale(1);
  transition: transform 0.22s ease;
}

.player-cover:hover .play-symbol {
  transform: scale(1.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  margin-top: 34px;
}

.article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  padding: 28px;
}

.article h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 16px;
}

.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  padding: 18px;
}

.side-box h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-link {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 9px;
  transition: background 0.2s ease;
}

.side-link:hover {
  background: rgba(51, 65, 85, 0.7);
}

.side-link img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.side-link span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-weight: 900;
  padding: 9px 12px;
}

.pagination a:hover,
.pagination span {
  border-color: rgba(249, 115, 22, 0.42);
  color: #fff;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.98));
  color: #cbd5e1;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.copy {
  margin-top: 28px;
  color: #64748b;
  font-size: 13px;
}

.hide {
  display: none !important;
}

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

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

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

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

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

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

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

@media (max-width: 840px) {
  .header-search,
  .site-header > .container > .header-chips,
  .header-inner > .nav {
    display: none;
  }

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

  .hero,
  .hero-track {
    min-height: 700px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 54px 0 96px;
  }

  .hero-poster-wrap {
    max-width: 280px;
  }

  .hero-control {
    display: none;
  }

  .grid.cards,
  .grid.cards.compact,
  .grid.cards.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

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

  .rank-item {
    grid-template-columns: 44px 76px 1fr;
  }

  .rank-score {
    grid-column: 3 / 4;
    text-align: left;
  }

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

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

  .hero h1,
  .page-title {
    font-size: 35px;
  }

  .hero-text,
  .page-lead,
  .detail-line {
    font-size: 15px;
  }

  .grid.cards,
  .grid.cards.compact,
  .grid.cards.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 112px 1fr;
  }

  .movie-card.horizontal .card-poster {
    min-height: 154px;
  }

  .section-panel,
  .article {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-index,
  .rank-score {
    text-align: left;
  }

  .rank-thumb {
    width: 120px;
  }

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