:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-100: #cffafe;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 25px 75px rgba(2, 6, 23, 0.32);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #bfdbfe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #bfdbfe;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 230px;
  height: 40px;
  padding: 0 44px 0 16px;
  color: var(--white);
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(100, 116, 139, 0.72);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(100, 116, 139, 0.55);
  border-radius: 12px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  padding: 16px;
  background: var(--slate-800);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 10px 12px;
  color: #e2e8f0;
  border-radius: 10px;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 96px;
}

.home-page {
  padding-top: 92px;
}

.hero {
  min-height: 620px;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--slate-950);
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 36%, rgba(34, 211, 238, 0.26), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.93) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.18));
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #cffafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 145, 178, 0.28);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
}

.hero h1,
.page-hero h1,
.detail-panel h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-summary,
.page-hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.pill-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #155e75;
  font-size: 12px;
  font-weight: 700;
  background: var(--cyan-100);
  border-radius: 999px;
}

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

.primary-button,
.ghost-button,
.panel-button,
.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  font-weight: 850;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.panel-button,
.watch-button {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

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

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.ghost-button.muted {
  color: #cffafe;
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  display: block;
  padding: 14px 16px;
  color: #e0f2fe;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.88);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 72px;
  bottom: 40px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--cyan-400);
}

.content-section {
  margin-top: 56px;
}

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

.section-header h2,
.ranking-head h2,
.side-card h2,
.related-categories h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-header p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-more {
  color: var(--blue-600);
  font-weight: 850;
}

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

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

.latest-grid,
.ranking-grid,
.category-movie-grid,
.search-grid,
.related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.02) 55%);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
}

.year-badge {
  right: 10px;
  background: rgba(2, 6, 23, 0.76);
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--slate-800);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
  color: var(--blue-600);
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact .movie-card-body p {
  display: none;
}

.movie-card.compact .tag-row {
  display: none;
}

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

.category-tile,
.category-overview-card,
.side-card,
.detail-panel,
.ranking-panel,
.sidebar-poster,
.player-card,
.filter-bar,
.page-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-thumbs,
.category-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-thumbs img,
.category-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.category-tile strong,
.category-title {
  display: block;
  color: var(--slate-800);
  font-size: 18px;
  font-weight: 950;
}

.category-tile em,
.category-overview-card p {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.ranking-panel {
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border-color: rgba(34, 211, 238, 0.24);
}

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

.ranking-head {
  margin-bottom: 18px;
}

.ranking-head span {
  color: var(--cyan-400);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ranking-head h2 {
  color: var(--white);
  font-size: 30px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 36px 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.horizontal-card img {
  width: 58px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.list-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 950;
  background: var(--cyan-400);
  border-radius: 999px;
}

.list-rank.soft {
  color: var(--blue-600);
  background: #dbeafe;
}

.horizontal-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.horizontal-card em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-button {
  width: 100%;
  margin-top: 18px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.34), transparent 24rem),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1 {
  max-width: 800px;
}

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

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

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

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-links a {
  max-width: 180px;
  overflow: hidden;
  padding: 7px 10px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  background: var(--blue-100);
  border-radius: 999px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-categories {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.related-categories h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 150px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-bar input,
.filter-bar select {
  height: 46px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}

.search-card-hidden {
  display: none !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-600);
  font-weight: 800;
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  background: var(--slate-950);
  border-radius: 24px;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-play {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  font-size: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.detail-panel {
  margin-top: 24px;
  padding: 30px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.detail-panel h1 {
  color: var(--slate-800);
  font-size: clamp(30px, 5vw, 48px);
}

.watch-button {
  flex: 0 0 auto;
  margin-top: 10px;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fact-row span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 12px;
}

.fact-row em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.detail-tags {
  margin-top: 18px;
}

.text-block {
  margin-top: 28px;
}

.text-block h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.95;
  white-space: pre-line;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.sidebar-poster {
  overflow: hidden;
  padding: 14px;
}

.sidebar-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.primary-button.full {
  width: 100%;
  margin-top: 14px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.side-card .horizontal-card {
  color: var(--slate-700);
  background: var(--slate-100);
  border-color: var(--slate-200);
}

.side-card .horizontal-card em {
  color: var(--slate-500);
}

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

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  color: #67e8f9;
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: max-content;
}

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

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto !important;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

  .header-search {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: block;
  }

  .movie-grid,
  .feature-grid,
  .latest-grid,
  .ranking-grid,
  .category-movie-grid,
  .search-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 860px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-text em,
  .header-search {
    display: none;
  }

  .page-shell,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1280px);
  }

  .hero-stage {
    min-height: 680px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 24px 78px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    transform: none;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .hero-dots {
    right: 24px;
    bottom: 34px;
  }

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

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

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

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

  .page-hero,
  .detail-panel {
    padding: 28px;
  }

  .detail-title-row,
  .section-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 17px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-summary,
  .page-hero p {
    font-size: 15px;
  }

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

  .movie-card-title {
    font-size: 14px;
  }

  .horizontal-card {
    grid-template-columns: 30px 50px minmax(0, 1fr);
  }

  .horizontal-card img {
    width: 50px;
    height: 70px;
  }
}
