:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --card: rgba(30, 41, 59, 0.56);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #06b6d4;
  --accent-strong: #22d3ee;
  --orange: #fb923c;
  --purple: #a78bfa;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.16);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 20px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(135deg, #06b6d4, #2563eb 60%, #7c3aed);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search-box input,
.filter-selects select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.74);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #082f49;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  font-weight: 800;
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search-box input:focus,
.filter-selects select:focus {
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
  background: rgba(15, 23, 42, 0.94);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: white;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 24px 22px;
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mobile-search input {
  flex: 1;
  width: 100%;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  height: 85vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: scale(1.03);
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0));
  z-index: -1;
}

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

.hero-content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px 96px;
}

.hero-kicker,
.detail-meta-list,
.movie-meta,
.poster-badges,
.hero-tags,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-kicker span,
.detail-meta-list span,
.poster-badges span,
.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.2);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more,
.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #082f49;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  padding: 15px 24px;
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.24);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: white;
  background: rgba(15, 23, 42, 0.42);
  padding: 14px 22px;
  backdrop-filter: blur(14px);
}

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

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

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

.hero-dot.is-active {
  width: 34px;
  background: #67e8f9;
}

.category-strip {
  position: relative;
  z-index: 5;
  margin-top: -32px;
  padding: 0 24px;
}

.category-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.category-strip a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-weight: 800;
  font-size: 14px;
}

.page-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 72px 24px 0;
}

.inner-page {
  padding-top: 44px;
}

.content-section {
  margin-bottom: 82px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  color: white;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  min-width: max-content;
  border: 1px solid rgba(34, 211, 238, 0.26);
  color: #67e8f9;
  padding: 11px 15px;
  background: rgba(8, 145, 178, 0.12);
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.66), rgba(15, 23, 42, 0.82));
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 26px 60px rgba(6, 182, 212, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.22), transparent 40%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.84));
}

.poster-badges {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  justify-content: space-between;
}

.poster-badges span {
  padding: 5px 9px;
  font-size: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-number {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #082f49;
  background: linear-gradient(135deg, #fef08a, #fb923c);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(251, 146, 60, 0.28);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.86);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.32);
}

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

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

.movie-title {
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
}

.tag-row span {
  padding: 4px 8px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.18);
  font-size: 12px;
}

.accent-section,
.rank-preview,
.rank-board,
.filter-panel,
.page-hero,
.detail-info-card,
.player-card,
.poster-panel,
.side-panel,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.72));
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.22);
}

.accent-section,
.rank-preview {
  padding: clamp(22px, 4vw, 42px);
}

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

.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px;
  background: rgba(15, 23, 42, 0.82);
}

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

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

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

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

.category-tile strong {
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.category-tile em {
  margin-top: 9px;
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.page-hero {
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.88));
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 62px);
}

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

.breadcrumb a {
  color: #67e8f9;
}

.filter-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 18px;
}

.filter-search-box {
  flex: 1;
}

.filter-search-box input {
  width: 100%;
  padding: 14px 18px;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-width: 132px;
  padding: 13px 16px;
}

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

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

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

.category-overview-card {
  overflow: hidden;
}

.category-cover {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
}

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

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

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

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

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

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

.category-preview-links {
  display: grid;
  gap: 8px;
}

.category-preview-links a {
  color: #bae6fd;
  font-size: 14px;
}

.rank-board {
  padding: 20px;
  margin-bottom: 60px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.rank-row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.rank-row-info em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row-action {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.player-card {
  overflow: hidden;
  padding: 0;
}

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

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 36%),
    rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(37, 99, 235, 0.95));
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.36);
  cursor: pointer;
  font-size: 34px;
  padding-left: 7px;
}

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

.detail-info-card h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}

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

.detail-info-card h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.detail-info-card p {
  color: var(--soft);
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.poster-panel,
.side-panel {
  padding: 18px;
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-panel h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.poster-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.full-button {
  width: 100%;
}

.side-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: rgba(15, 23, 42, 0.68);
}

.related-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-card span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.related-card strong {
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.related-section {
  margin-top: 64px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-link-grid {
  display: grid;
  gap: 10px;
}

.footer-link-grid a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 22px 24px;
  color: #64748b;
  text-align: center;
}

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

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

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

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

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

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

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

  .section-heading,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-grid,
  .library-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .footer-inner,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 38px 62px 1fr;
  }

  .rank-row-action {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .hero-content,
  .category-strip {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 17px;
  }

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

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

  .movie-title {
    font-size: 16px;
  }

  .movie-desc,
  .tag-row {
    display: none;
  }

  .page-hero,
  .accent-section,
  .rank-preview,
  .detail-info-card {
    border-radius: 20px;
    padding: 22px;
  }

  .player-start {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
