:root {
  color-scheme: dark;
  --night-950: #05070d;
  --night-900: #0b1020;
  --night-850: #10162a;
  --night-800: #151d35;
  --night-700: #26314f;
  --night-500: #78839f;
  --night-400: #a5afc7;
  --night-200: #e6eaf4;
  --gold-500: #f4c85f;
  --gold-400: #ffd77c;
  --ember-500: #f97345;
  --ember-400: #ff9c67;
  --line: rgba(244, 200, 95, 0.18);
  --panel: rgba(16, 22, 42, 0.78);
  --panel-strong: rgba(21, 29, 53, 0.92);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 200, 95, 0.15), transparent 28rem),
    radial-gradient(circle at top right, rgba(249, 115, 69, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 36rem, #070a13);
  color: var(--night-200);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 200, 95, 0.14);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(22px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  color: #090b12;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(249, 115, 69, 0.24);
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff8d9, var(--gold-400), var(--ember-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: var(--night-400);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(244, 200, 95, 0.1);
  transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.filter-bar input {
  width: 220px;
  border: 1px solid rgba(244, 200, 95, 0.16);
  background: rgba(16, 22, 42, 0.84);
  color: #fff;
  outline: none;
  border-radius: 14px;
  padding: 11px 14px;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: rgba(244, 200, 95, 0.56);
  box-shadow: 0 0 0 4px rgba(244, 200, 95, 0.08);
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.rank-action,
.category-preview-head a,
.section-title a {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.top-search button,
.mobile-search button,
.primary-btn,
.rank-action {
  color: #0b0d14;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  box-shadow: 0 14px 30px rgba(249, 115, 69, 0.18);
}

.top-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 69, 0.28);
}

.ghost-btn,
.section-title a,
.category-preview-head a {
  color: var(--gold-400);
  border: 1px solid rgba(244, 200, 95, 0.22);
  background: rgba(244, 200, 95, 0.07);
}

.ghost-btn:hover,
.section-title a:hover,
.category-preview-head a:hover {
  color: #fff;
  background: rgba(244, 200, 95, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 200, 95, 0.18);
  background: rgba(16, 22, 42, 0.84);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(244, 200, 95, 0.12);
  padding: 14px 16px 18px;
  background: rgba(5, 7, 13, 0.96);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1 1 auto;
  width: auto;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 200, 95, 0.12);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.78) 42%, rgba(5, 7, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.08) 0%, rgba(5, 7, 13, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 64px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--gold-400);
  background: rgba(244, 200, 95, 0.1);
  border: 1px solid rgba(244, 200, 95, 0.2);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-main h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  color: var(--gold-400);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0;
  max-width: 780px;
  color: var(--night-300, #c2cadb);
  line-height: 1.85;
  font-size: 17px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-tags span,
.tag-list span {
  color: #f7efd6;
  border: 1px solid rgba(244, 200, 95, 0.16);
  background: rgba(244, 200, 95, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(244, 200, 95, 0.26);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.hero-poster img {
  width: 100%;
  height: 100%;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  color: #090b12;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  border-radius: 999px;
  padding: 10px 18px;
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.hero-dot.is-active {
  width: 56px;
  background: linear-gradient(90deg, var(--gold-500), var(--ember-500));
}

.quick-panel,
.content-section,
.filter-bar,
.rank-list,
.player-section,
.detail-wrap {
  width: min(1440px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-panel a {
  border: 1px solid rgba(244, 200, 95, 0.18);
  border-radius: 22px;
  padding: 22px;
  background: rgba(16, 22, 42, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.quick-panel a:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 200, 95, 0.42);
  background: rgba(21, 29, 53, 0.94);
}

.quick-panel strong {
  display: block;
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.quick-panel span {
  color: var(--night-400);
}

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

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

.section-title h2,
.side-rank h2,
.text-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(244, 200, 95, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.poster-link img {
  width: 100%;
  height: 100%;
  transition: transform 420ms ease, filter 420ms ease;
}

.poster-link::after {
  position: absolute;
  inset: auto 0 0 0;
  content: "";
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  opacity: 0.8;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
  filter: saturate(1.12);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #090b12;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #090b12;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.movie-card:hover .poster-play {
  transform: translateY(0);
  opacity: 1;
}

.card-body {
  padding: 12px 2px 0;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  line-height: 1.35;
  min-height: 2.7em;
}

.card-title:hover,
.rank-title:hover,
.compact-card:hover strong {
  color: var(--gold-400);
}

.card-body p {
  color: var(--night-400);
  line-height: 1.55;
  margin: 8px 0 0;
  font-size: 13px;
}

.card-meta {
  margin-top: 10px;
}

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

.side-rank,
.text-panel,
.category-preview-card,
.category-card-large a {
  border: 1px solid rgba(244, 200, 95, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.side-rank {
  padding: 22px;
  position: sticky;
  top: 96px;
}

.side-rank h2 {
  margin-bottom: 16px;
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 180ms ease, transform 180ms ease, border 180ms ease;
}

.compact-card + .compact-card {
  margin-top: 10px;
}

.compact-grid .compact-card + .compact-card {
  margin-top: 0;
}

.compact-card:hover {
  background: rgba(244, 200, 95, 0.08);
  border-color: rgba(244, 200, 95, 0.22);
  transform: translateY(-2px);
}

.compact-card img {
  width: 54px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
}

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

.compact-info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  line-height: 1.35;
}

.compact-info em {
  display: block;
  color: var(--night-400);
  font-style: normal;
  font-size: 12px;
  margin-top: 6px;
}

.category-preview-grid,
.category-grid-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-preview-card {
  padding: 22px;
}

.category-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.category-preview-head h3 {
  color: #fff;
  font-size: 24px;
  margin: 0 0 8px;
}

.category-preview-head p {
  color: var(--night-400);
  margin: 0;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 34px auto 0;
  border: 1px solid rgba(244, 200, 95, 0.16);
  border-radius: 30px;
  padding: 72px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 200, 95, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(249, 115, 69, 0.12), transparent 60%),
    rgba(16, 22, 42, 0.76);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
  transition: transform 180ms ease, border 180ms ease;
}

.category-card-large a:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 200, 95, 0.36);
}

.category-covers {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.category-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

.category-card-body p {
  color: var(--night-400);
  line-height: 1.75;
  margin: 0;
}

.filter-bar {
  margin-top: 34px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(16, 22, 42, 0.74);
  border: 1px solid rgba(244, 200, 95, 0.12);
}

.filter-bar input {
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid rgba(244, 200, 95, 0.16);
  color: var(--night-300, #c2cadb);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: #090b12;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
}

.rank-list {
  padding: 34px 0 0;
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 76px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(244, 200, 95, 0.12);
  border-radius: 20px;
  background: rgba(16, 22, 42, 0.7);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 200, 95, 0.3);
  background: rgba(21, 29, 53, 0.86);
}

.rank-cover {
  display: block;
  width: 76px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
}

.rank-cover img {
  width: 100%;
  height: 100%;
}

.rank-number {
  font-size: 28px;
  font-weight: 950;
  color: var(--gold-400);
  text-align: center;
}

.rank-title {
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.rank-content p {
  color: var(--night-400);
  line-height: 1.65;
  margin: 7px 0 0;
}

.rank-tags {
  margin-top: 10px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
}

.detail-wrap {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--night-400);
  margin-bottom: 26px;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 200, 95, 0.24);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.detail-main h1 {
  margin-top: 18px;
  margin-bottom: 16px;
}

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

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(244, 200, 95, 0.18);
  background: #000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(244, 200, 95, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #090b12;
  background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
  box-shadow: 0 18px 38px rgba(249, 115, 69, 0.28);
  font-size: 30px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.text-panel {
  padding: 28px;
}

.text-panel p {
  color: var(--night-300, #c2cadb);
  line-height: 1.9;
  margin: 16px 0 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(244, 200, 95, 0.12);
  background: rgba(5, 7, 13, 0.72);
}

.footer-inner {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 38px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-inner p {
  color: var(--night-400);
  max-width: 650px;
  line-height: 1.75;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
  max-width: 480px;
}

.footer-links a {
  color: var(--night-400);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-links a:hover {
  color: var(--gold-400);
  border-color: rgba(244, 200, 95, 0.22);
}

.footer-bottom {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--night-500);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0 24px;
  font-size: 13px;
}

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

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

  .header-inner {
    justify-content: space-between;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

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

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

  .side-rank {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

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

  .hero-poster {
    width: min(240px, 68vw);
    justify-self: center;
    transform: none;
  }

  .quick-panel,
  .category-preview-grid,
  .category-grid-large,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .wide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-hero {
    padding: 42px 24px;
    border-radius: 24px;
  }

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

  .detail-grid {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }

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

  .rank-action {
    grid-column: 3;
    width: fit-content;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .quick-panel,
  .content-section,
  .filter-bar,
  .rank-list,
  .player-section,
  .detail-wrap,
  .footer-inner,
  .footer-bottom,
  .page-hero {
    width: min(100% - 24px, 1440px);
  }

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

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

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

  .hero-copy h2 {
    font-size: 25px;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

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

  .compact-card {
    align-items: start;
    flex-direction: column;
  }

  .compact-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

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

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

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

  .player-box {
    border-radius: 18px;
  }

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

  .rank-number {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .rank-content {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .rank-action {
    grid-column: 2;
  }
}
