* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #1e293b;
  --bg-card-2: #334155;
  --text: #ffffff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --blue: #2563eb;
  --orange: #f97316;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%), linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
  color: #ffffff;
  font-size: 14px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.site-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  width: 282px;
}

.site-search-form input,
.inline-filter input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus,
.inline-filter input:focus,
.filter-bar input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.site-search-form button,
.inline-filter button,
.primary-btn,
.ghost-btn,
.panel-more,
.section-more {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-search-form button,
.primary-btn {
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(14, 165, 233, 0.28);
}

.site-search-form button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.panel-more:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.site-main {
  padding-top: 72px;
}

.home-main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.5);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 30%, rgba(56, 189, 248, 0.22), transparent 26%), linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.35) 100%), linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 24px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  color: #7dd3fc;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 850;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
}

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

.hero-cover {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(1.5deg);
}

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

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

.hero-cover span {
  position: absolute;
  inset: auto 22px 22px auto;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.38);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  width: min(720px, calc(100% - 48px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

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

.inner-main {
  min-height: 720px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), transparent 40%);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.13);
}

.section-more,
.panel-more {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.18);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

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

.movie-card-small .card-poster {
  aspect-ratio: 16 / 11;
}

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

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

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

.card-badge,
.card-year {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.card-badge {
  left: 12px;
  bottom: 12px;
}

.card-year {
  top: 12px;
  right: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body h2 a:hover {
  color: var(--sky);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

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

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

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

.rank-num {
  color: #7dd3fc;
  font-weight: 850;
}

.rank-title {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--orange);
  font-weight: 850;
}

.panel-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(51, 65, 85, 0.76));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.82), rgba(37, 99, 235, 0.72));
  border-color: rgba(125, 211, 252, 0.44);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 850;
}

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

.category-card.large {
  min-height: 190px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 24px 24px;
}

.compact-hero {
  position: relative;
  margin-top: 42px;
  padding: 60px 32px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 30%), linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
  overflow: hidden;
}

.inline-filter {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.6);
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  padding: 10px 14px;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--sky-dark);
  color: #ffffff;
  border-color: var(--sky);
}

.empty-state {
  display: none;
  padding: 56px 24px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 24px;
  color: #94a3b8;
  text-align: center;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 86px minmax(0, 1fr) 220px 74px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(30, 41, 59, 0.95);
}

.ranking-row img {
  width: 86px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-index {
  color: #7dd3fc;
  font-size: 20px;
  font-weight: 900;
}

.ranking-title {
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
}

.ranking-title em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: #94a3b8;
  font-size: 14px;
}

.ranking-score {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

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

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

.detail-hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

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

.detail-info {
  padding: 38px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34%), rgba(30, 41, 59, 0.72);
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
}

.detail-meta-grid dt {
  color: #64748b;
  font-size: 12px;
}

.detail-meta-grid dd {
  margin: 5px 0 0;
  color: #e2e8f0;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.big-play {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: #ffffff;
  font-size: 38px;
  box-shadow: 0 22px 54px rgba(14, 165, 233, 0.38);
  transition: transform 0.22s ease;
}

.play-overlay:hover .big-play {
  transform: scale(1.08);
}

.detail-text {
  display: grid;
  gap: 18px;
  padding-top: 42px;
}

.detail-text h2 {
  margin: 0;
  font-size: 28px;
}

.detail-text p {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  line-height: 1.9;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 34px;
}

.next-links a {
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-links a:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.36);
}

.site-footer {
  margin-top: 76px;
  padding: 46px 24px 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94));
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 16px 0 0;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
}

.footer-grid a:hover {
  color: var(--sky);
}

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

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

  .header-search {
    display: none;
  }

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 88px;
  }

  .hero-cover {
    max-width: 360px;
    transform: none;
  }

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

  .ranking-panel {
    position: static;
  }

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

  .ranking-row {
    grid-template-columns: 44px 74px minmax(0, 1fr) 58px;
  }

  .ranking-meta {
    display: none;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 72px 16px 150px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-search,
  .inline-filter {
    flex-direction: column;
    border-radius: 24px;
  }

  .content-section,
  .page-hero,
  .detail-hero,
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .compact-hero {
    margin-top: 24px;
    padding: 34px 20px;
    border-radius: 24px;
  }

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

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

  .horizontal-cards {
    grid-auto-columns: minmax(230px, 86vw);
  }

  .ranking-row {
    grid-template-columns: 38px 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-score {
    display: none;
  }

  .detail-info {
    padding: 24px;
    border-radius: 24px;
  }

  .detail-meta-grid,
  .next-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .big-play {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
