:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.82);
  --panel-strong: #1e293b;
  --border: rgba(6, 182, 212, 0.2);
  --border-bright: rgba(34, 211, 238, 0.72);
  --text: #ffffff;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a855f7;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.24);
  transition: transform 0.25s ease;
}

.logo-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.site-logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
  transform: scale(1.08);
}

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

.nav-link {
  position: relative;
  color: #d1d5db;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: #fff;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e2e8f0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.98);
}

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

.mobile-nav-link {
  padding: 12px;
  border-radius: 12px;
  color: #d1d5db;
  font-weight: 600;
}

.mobile-nav-link:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 70vh;
  padding-top: 64px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 56px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.28), rgba(8, 47, 73, 0.36) 45%, #0f172a 100%),
              linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.48) 52%, rgba(2, 6, 23, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #67e8f9;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: #d1d5db;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 42px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--border-bright);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.24);
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-6deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 20px;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.hero-poster:hover img {
  transform: scale(1.06);
}

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

.hero-dots button {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
}

.hero-dots button.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star-field span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #fff;
  opacity: 0.75;
  animation: starPulse 3.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.65);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.2);
  }
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.page-main {
  padding-top: 64px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 24px 70px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.22), transparent 36%),
              linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
  border-bottom: 1px solid var(--border);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.75;
}

.compact-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.18);
}

.section-more,
.text-link {
  color: #67e8f9;
  font-weight: 700;
  transition: color 0.2s ease;
}

.section-more:hover,
.text-link:hover {
  color: #fff;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(51, 65, 85, 0.85);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-bright);
  box-shadow: 0 22px 56px rgba(6, 182, 212, 0.14);
}

.card-poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: #020617;
}

.movie-card:not(.compact) .card-poster {
  aspect-ratio: 16 / 9;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-poster::after {
  opacity: 1;
}

.duration-badge,
.play-badge {
  position: absolute;
  z-index: 2;
}

.duration-badge {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.92));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

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

.card-body p {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.16);
  font-size: 12px;
  font-weight: 700;
}

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

.ranking-panel,
.text-card,
.player-card,
.category-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.74);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.18);
}

.ranking-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 88px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 40px 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(51, 65, 85, 0.82);
  transform: translateX(3px);
}

.rank-number {
  color: #67e8f9;
  font-weight: 900;
  font-size: 20px;
}

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

.rank-info {
  min-width: 0;
}

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

.rank-info strong {
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.rank-info em {
  color: var(--soft);
  font-style: normal;
  font-size: 12px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #1e293b;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.2);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(2, 6, 23, 0.86));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 6px;
}

.category-tile em {
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-card-image {
  overflow: hidden;
  border-radius: 16px;
  background: #020617;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-samples a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.54);
  font-size: 12px;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
}

.filter-search,
.filter-select {
  display: grid;
  gap: 8px;
}

.filter-search {
  flex: 1;
}

.filter-search span,
.filter-select span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.filter-search input,
.filter-select select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(71, 85, 105, 0.85);
  border-radius: 14px;
  color: #fff;
  outline: none;
  background: rgba(30, 41, 59, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search input:focus,
.filter-select select:focus {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 32px;
  border-radius: var(--radius);
  color: #cbd5e1;
  text-align: center;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid var(--border);
}

.empty-state.show {
  display: block;
}

.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #67e8f9;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.04);
  opacity: 0.85;
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #020617;
}

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

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 22px;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.detail-tags {
  margin-bottom: 26px;
}

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-card,
.text-card {
  padding: 24px;
}

.player-card h2,
.text-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.08);
}

.player-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28), transparent 46%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.34);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.player-overlay:hover .player-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.text-card p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.9;
}

.detail-aside {
  position: sticky;
  top: 88px;
}

.aside-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer-brand p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 700;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
}

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

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

  .ranking-panel,
  .detail-aside,
  .sticky-panel {
    position: static;
  }

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

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

  .menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 86px;
  }

  .hero-poster {
    display: none;
  }

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

  .category-card,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    display: grid;
  }

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

@media (max-width: 560px) {
  .site-nav {
    padding: 0 16px;
  }

  .site-logo {
    font-size: 18px;
  }

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

  .hero {
    min-height: 74vh;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .content-section {
    padding: 52px 16px 0;
  }

  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-poster,
  .movie-card:not(.compact) .card-poster {
    aspect-ratio: 16 / 10;
  }

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

  .rank-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-card,
  .text-card,
  .ranking-panel {
    padding: 18px;
  }
}
