:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-soft: rgba(30, 41, 59, 0.55);
  --panel-deep: rgba(2, 6, 23, 0.9);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --green: #4ade80;
  --pink: #f472b6;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.13), transparent 38rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.45);
  font-size: 0.95rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
}

.mobile-link:hover {
  background: rgba(30, 41, 59, 0.75);
  color: var(--cyan);
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 35%, rgba(15, 23, 42, 0.26) 68%, rgba(2, 6, 23, 0.86) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.08) 38%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding-bottom: 94px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-copy h1,
.page-hero h1,
.detail-header h1 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  max-width: 840px;
}

.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.hero-tags,
.tag-list,
.category-pills,
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.category-pills a,
.cta-links a {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.66);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn,
.quick-search button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.25);
}

.ghost-btn {
  color: var(--text);
  background: rgba(15, 23, 42, 0.66);
  border-color: rgba(148, 163, 184, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.48);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.65);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--cyan);
}

.quick-search-section {
  position: relative;
  margin-top: -38px;
  z-index: 5;
}

.quick-search,
.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search label,
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.17);
}

.quick-search input,
.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.category-pills {
  margin-top: 18px;
}

.category-pills a:hover,
.cta-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.96);
}

.content-section {
  padding: 74px 0;
}

.content-band {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.42), rgba(15, 23, 42, 0.42));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.compact-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 54%);
  opacity: 0.68;
}

.poster-wrap img,
.wide-thumb img,
.detail-poster,
.category-cover-stack img,
.ranking-card img,
.rank-item img,
.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poster-wrap img {
  transition: transform 0.34s ease;
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.hover-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 50%;
  color: #001018;
  background: rgba(34, 211, 238, 0.95);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3,
.wide-info h3,
.rank-item h3,
.mini-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.wide-info p {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.8rem;
}

.meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 126px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(34, 211, 238, 0.32);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.rank-item img {
  aspect-ratio: 16 / 10;
  border-radius: 13px;
}

.rank-item p,
.mini-card p {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 0.86rem;
}

.category-preview-wrap {
  padding-bottom: 72px;
}

.category-strip {
  margin-bottom: 64px;
}

.site-cta {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.22), rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.24));
  text-align: center;
}

.site-cta h2 {
  margin: 0 auto 16px;
  max-width: 860px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.site-cta p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-links {
  justify-content: center;
}

.page-hero {
  padding: 150px 0 78px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.19), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.slim-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  max-width: 900px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.small-actions {
  margin-top: 24px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
}

.category-cover-stack img {
  min-width: 0;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.3rem;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--subtle);
}

.category-card-body span {
  color: var(--cyan);
  font-weight: 800;
}

.filter-panel {
  align-items: stretch;
  margin-bottom: 32px;
}

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

.filter-select {
  min-width: 138px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 999px;
  outline: 0;
  background: rgba(2, 6, 23, 0.52);
  color: var(--text);
}

.empty-state {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--subtle);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 136px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  min-width: 0;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.36);
}

.ranking-card img {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.ranking-position {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 1.35rem;
  font-weight: 950;
}

.ranking-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.ranking-card p {
  margin: 8px 0 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-band {
  padding: 110px 0 28px;
  background: #000;
}

.player-layout {
  max-width: 1120px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.56));
  color: #001018;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.96);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.42);
  font-size: 2.3rem;
  padding-left: 7px;
}

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

.player-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.player-card:hover .player-controls,
.player-card:focus-within .player-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.player-controls button {
  min-width: 72px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.detail-section {
  padding: 42px 0 82px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--subtle);
}

.breadcrumb a {
  color: var(--cyan);
}

.detail-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-header h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.detail-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.tag-list {
  margin-top: 20px;
}

.story-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.story-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.55rem;
}

.story-card h2:not(:first-child) {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}

.site-footer {
  background: rgba(2, 6, 23, 0.96);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: 34px;
  padding: 54px 0 38px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.25rem;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

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

@media (max-width: 1120px) {
  .movie-grid,
  .latest-grid,
  .small-grid,
  .related-grid,
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .desktop-nav {
    gap: 14px;
    font-size: 0.95rem;
  }
}

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

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

  .hero-carousel,
  .hero-image {
    min-height: 620px;
  }

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

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

  .quick-search,
  .filter-panel,
  .filter-selects {
    flex-direction: column;
  }

  .quick-search label,
  .search-box,
  .quick-search button,
  .filter-select {
    width: 100%;
  }

  .movie-grid,
  .feature-grid,
  .latest-grid,
  .small-grid,
  .related-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rank-list,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 62px 104px 1fr;
    gap: 12px;
  }

  .ranking-position {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

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

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

  .detail-poster {
    width: min(260px, 72vw);
  }

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

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

  .nav-wrap {
    height: 68px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-carousel,
  .hero-image {
    min-height: 600px;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

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

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

  .content-section {
    padding: 54px 0;
  }

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

  .movie-grid,
  .feature-grid,
  .latest-grid,
  .small-grid,
  .related-grid,
  .catalog-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 0.92rem;
  }

  .card-body p {
    font-size: 0.78rem;
  }

  .rank-item {
    grid-template-columns: 40px 96px 1fr;
    gap: 10px;
  }

  .page-hero {
    padding: 118px 0 58px;
  }

  .player-band {
    padding-top: 88px;
  }

  .player-card {
    border-radius: 16px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }

  .player-controls {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .story-card {
    padding: 22px;
  }

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