:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-solid: #111827;
  --panel-deep: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.44);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --dim: #64748b;
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-small: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 83, 9, 0.17), transparent 32rem),
    linear-gradient(180deg, #111827 0%, #020617 48%, #111827 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.94), rgba(17, 24, 39, 0.96));
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.34);
  flex: 0 0 auto;
}

.brand-icon span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--soft);
}

.desktop-nav,
.header-actions,
.quick-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.mobile-link {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.quick-links {
  gap: 8px;
}

.quick-chip {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.16);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--muted);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

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

.hero-stage,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.65) 44%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.38) 55%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 74vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 110px 0 116px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.58);
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-meta,
.card-meta,
.list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--soft);
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  box-shadow: 0 18px 38px rgba(180, 83, 9, 0.32);
}

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

.primary-button.wide {
  width: 100%;
}

.ghost-button {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(15, 23, 42, 0.7);
}

.text-button {
  min-height: 0;
  padding: 0;
  color: #fbbf24;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 42px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-category-panel {
  position: absolute;
  z-index: 3;
  left: max(16px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 660px;
}

.hero-category-panel a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.22);
  backdrop-filter: blur(10px);
}

.content-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 76px 0 0;
}

.content-section.compact {
  padding-top: 64px;
  padding-bottom: 64px;
}

.content-band {
  margin-top: 76px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.62), rgba(2, 6, 23, 0.38));
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.bottom-band {
  margin-bottom: -20px;
}

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

.section-heading h2,
.page-hero h1,
.detail-article h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.detail-article p,
.category-overview-body p,
.ranking-body p {
  color: var(--soft);
  line-height: 1.75;
}

.section-heading p {
  margin: 10px 0 0;
}

.section-link {
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 48px rgba(180, 83, 9, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.list-poster img,
.category-card img,
.category-cover img,
.ranking-poster img,
.detail-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.ranking-card:hover .ranking-poster img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 65%);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark,
.movie-card-list:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-body strong,
.list-body strong,
.ranking-body h2,
.category-overview-body h2 {
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.card-body em,
.list-body em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.6;
}

.card-meta {
  margin-top: auto;
  justify-content: space-between;
  font-size: 13px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.76);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.movie-card-list:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.list-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.list-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.list-body strong,
.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.list-body em,
.card-body em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.16));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 21px;
  margin-bottom: 6px;
}

.category-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

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

.ranking-panel {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span {
  font-size: 20px;
  font-weight: 900;
}

.panel-heading a {
  color: #fbbf24;
  font-weight: 800;
}

.rank-list {
  display: grid;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.rank-row:hover {
  background: rgba(245, 158, 11, 0.08);
}

.rank-no {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 900;
}

.rank-row img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

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

.rank-info em {
  margin-top: 4px;
  color: var(--soft);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.28), transparent 36rem),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-hero > div {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.compact-hero p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.78);
}

.category-cover {
  min-height: 250px;
  overflow: hidden;
}

.category-overview-body {
  padding: 24px 24px 24px 0;
}

.category-overview-body h2 {
  margin: 0;
}

.category-preview-strip {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.category-preview-strip img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  padding: 0 14px;
  color: white;
  outline: none;
  background: rgba(2, 6, 23, 0.78);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

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

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

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.78);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 11;
}

.ranking-poster span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  font-weight: 900;
}

.ranking-body h2 {
  margin: 3px 0 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(0.9);
  transform: scale(1.08);
  opacity: 0.28;
}

.detail-hero-bg::after {
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.98));
}

.detail-shell {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(2, 6, 23, 0.58));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  box-shadow: 0 22px 48px rgba(180, 83, 9, 0.36);
  font-size: 32px;
  line-height: 1;
}

.detail-content-section {
  padding-top: 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.detail-poster-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.76);
  box-shadow: var(--shadow);
}

.detail-poster-card img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  margin-bottom: 14px;
}

.detail-article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.76);
}

.detail-article h1 {
  margin-bottom: 18px;
}

.detail-article h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-article p {
  margin: 0;
  font-size: 17px;
}

.detail-meta {
  margin: 0 0 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.tag-list span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.18);
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), #020617);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 440px;
  color: var(--soft);
  line-height: 1.75;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-group h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-group a {
  color: var(--soft);
}

.footer-group a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .quick-links {
    display: none;
  }

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 19px;
  }

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

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

  .hero-category-panel {
    bottom: 76px;
    right: 16px;
  }

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

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

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

  .category-overview-card,
  .ranking-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-overview-body {
    padding: 0 20px 22px;
  }

  .category-cover {
    min-height: 220px;
  }

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

  .detail-poster-card {
    max-width: 360px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text em {
    display: none;
  }

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

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions,
  .hero-category-panel {
    gap: 8px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

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

  .list-poster {
    aspect-ratio: 1 / 1;
  }

  .compact-hero > div,
  .content-section,
  .detail-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

  .detail-article {
    padding: 22px;
  }

  .player-play-button {
    width: 70px;
    height: 70px;
  }
}
