:root {
  --bg: #07090f;
  --bg-soft: #10141f;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f8fafc;
  --muted: #a9b3c7;
  --muted-strong: #d6dbe7;
  --gold: #f59e0b;
  --gold-soft: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(239, 68, 68, 0.15), transparent 30rem),
    linear-gradient(180deg, #080a12 0%, #0c1019 42%, #07090f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
}

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

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

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;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

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

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-soft), var(--orange));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

.logo-text {
  background: linear-gradient(90deg, #fde68a, #fb923c 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 30vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 10px;
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-soft), var(--orange));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.72fr);
  align-items: center;
  gap: 38px;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
  padding: clamp(28px, 6vw, 70px);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 34%, rgba(245, 158, 11, 0.26), transparent 24rem),
    linear-gradient(90deg, rgba(5, 7, 12, 0.94), rgba(8, 10, 17, 0.68) 52%, rgba(8, 10, 17, 0.88));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.12);
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-desc {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.88;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.16);
}

.btn.primary {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-soft), var(--orange));
  box-shadow: 0 14px 38px rgba(245, 158, 11, 0.28);
}

.hero-poster {
  justify-self: center;
  width: min(360px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
  transform: rotate(2deg);
  transition: 260ms ease;
}

.hero-poster:hover {
  transform: translateY(-4px) rotate(0deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-controls {
  position: absolute;
  left: clamp(28px, 6vw, 70px);
  right: clamp(28px, 6vw, 70px);
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: 180ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--gold-soft), var(--orange));
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.section {
  margin-top: 64px;
}

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

.section-kicker {
  margin: 0 0 9px;
  color: #fcd34d;
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  opacity: 0.82;
  transition: 420ms ease;
}

.featured-card:hover img {
  transform: scale(1.06);
}

.featured-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.92));
}

.featured-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px;
}

.featured-info h3 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 40px);
}

.featured-info p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.compact-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  transition: 180ms ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.compact-card img {
  width: 126px;
  height: 126px;
  object-fit: cover;
  border-radius: 16px;
}

.compact-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: 190ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: 320ms ease;
}

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

.card-badge,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.card-badge {
  left: 10px;
  top: 10px;
  padding: 7px 9px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-soft), var(--orange));
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

.card-year {
  right: 10px;
  top: 10px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.card-play {
  position: absolute;
  inset: auto 12px 12px auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.88);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 5%, rgba(245, 158, 11, 0.24), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  transition: 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.35);
  background-color: rgba(245, 158, 11, 0.09);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.category-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.category-mini img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.rank-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 22rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 24px;
}

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

.rank-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.rank-cover-text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.rank-cover-text h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  transition: 180ms ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.rank-num {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

.rank-main span,
.rank-score {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  margin-top: 26px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.20), transparent 24rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(7, 9, 15, 0.84));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 840px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.86;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  margin: 28px 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.filters input,
.filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: #fff;
  background: rgba(7, 9, 15, 0.82);
  padding: 0 14px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

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

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

.breadcrumb a:hover {
  color: #fcd34d;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 26px;
  align-items: start;
}

.player-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #000;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.play-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08) contrast(1.05);
}

.play-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 16rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78));
}

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

.play-ring {
  position: relative;
  z-index: 2;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.90);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.play-ring span {
  margin-left: 6px;
  font-size: 38px;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-card .one-line {
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.88;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.info-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.article-block {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

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

.article-block p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 2;
}

.article-block p + p {
  margin-top: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.54);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(140px, 0.4fr));
  gap: 28px;
  padding: 42px 0;
  color: var(--muted);
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.footer-inner p {
  margin: 14px 0 0;
  line-height: 1.75;
}

.footer-inner a {
  display: block;
  margin-top: 9px;
}

.footer-inner a:hover {
  color: #fcd34d;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.hidden-card {
  display: none;
}

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

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

  .featured-grid,
  .rank-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links,
  .header-search {
    display: none;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .header-search {
    position: absolute;
    left: 16px;
    right: 16px;
    display: flex;
    width: auto;
    border: 1px solid var(--line);
    background: rgba(7, 9, 15, 0.96);
    backdrop-filter: blur(18px);
  }

  .site-header.is-open .nav-links {
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px 18px 0 0;
  }

  .site-header.is-open .header-search {
    top: 257px;
    padding: 10px;
    border-radius: 0 0 18px 18px;
  }

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

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

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

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

  .navbar {
    min-height: 68px;
  }

  .logo {
    font-size: 18px;
  }

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

  .hero {
    min-height: 560px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 28px 20px 82px;
  }

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

  .section {
    margin-top: 48px;
  }

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

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

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

  .compact-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .compact-card img {
    width: 98px;
    height: 118px;
  }

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

  .rank-score {
    display: none;
  }

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

  .info-list {
    grid-template-columns: 1fr;
  }

  .article-block,
  .detail-card {
    padding: 20px;
  }

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