:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --green: #22c55e;
  --orange: #fb923c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

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

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 45%, #3b82f6);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.34);
  transform: rotate(-8deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.54);
}

.brand-text strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
}

.brand-text em {
  display: block;
  color: rgba(103, 232, 249, 0.82);
  font-size: 0.78rem;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  background: #020617;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.34) 50%, rgba(2, 6, 23, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 66vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.13);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1,
.hero-site-title,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-site-title {
  font-weight: 800;
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(1.9rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p,
.inner-hero p,
.detail-one-line {
  width: min(760px, 100%);
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #bae6fd;
  font-weight: 650;
}

.hero-meta {
  margin-top: 22px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 55%, #60a5fa);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  border: 1px solid rgba(226, 232, 240, 0.2);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.56);
}

.btn-soft {
  border: 1px solid rgba(34, 197, 94, 0.34);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 46%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(34, 211, 238, 0.22);
  transform: scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 170px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 20px;
  padding: 0 0 34px;
  margin-top: calc(84vh - 170px);
}

.hero-search-card,
.hero-thumbs,
.ranking-card,
.content-card,
.category-card,
.rank-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.hero-search-card strong {
  display: block;
  font-size: 1.25rem;
}

.hero-search-card span {
  color: var(--muted);
}

.search-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
}

.search-box.wide {
  width: min(460px, 100%);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.hero-category-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-row a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-category-row a:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: #001018;
  background: var(--cyan);
  transform: translateY(-1px);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 12px;
}

.hero-thumb {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #0f172a;
}

.hero-thumb.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.26);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-thumb span {
  position: absolute;
  inset: auto 8px 8px;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.section {
  padding: 74px 0;
}

.section-dark {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.section-gradient {
  background:
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.08), transparent 28rem),
    linear-gradient(180deg, #0f172a, #020617);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.compact-heading {
  margin-bottom: 20px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.24);
}

.section-icon.orange {
  background: var(--orange);
}

.section-icon.green {
  background: var(--green);
}

.section-icon.cyan {
  background: var(--cyan);
}

.section-heading h2,
.ranking-card h2,
.content-card h2,
.rank-section h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.section-heading p,
.content-card p,
.category-card strong,
.site-footer p {
  margin: 7px 0 0;
  color: var(--muted);
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 20;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.3);
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #020617;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

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

.card-meta {
  color: #93c5fd;
  font-size: 0.82rem;
}

.card-body h3 {
  margin: 9px 0 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.06rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--cyan);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.1);
  font-size: 0.78rem;
}

.large-tags span {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.9rem;
}

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

.category-card {
  overflow: hidden;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card a:first-child {
  display: grid;
  gap: 10px;
}

.category-card span {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-card div a {
  color: #a5f3fc;
  font-size: 0.9rem;
}

.category-card div a:hover {
  color: #fff;
}

.large-card {
  min-height: 210px;
}

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

.ranking-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

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

.ranking-head a {
  color: var(--cyan);
  font-weight: 800;
}

.ranking-list,
.rank-board {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li + li,
.rank-board li + li {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-list a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.ranking-list span,
.rank-board span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #001018;
  background: var(--cyan);
  font-weight: 900;
}

.ranking-list strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em,
.rank-board em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inner-hero {
  padding: 110px 0 74px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(180deg, #020617, #0f172a);
}

.inner-hero h1 {
  width: min(820px, 100%);
}

.category-hero {
  padding-bottom: 54px;
}

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

.rank-section {
  padding: 22px;
}

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

.rank-board a {
  display: grid;
  grid-template-columns: 36px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.rank-board img {
  width: 62px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 70px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.64), #020617 86%);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 18px 0 28px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

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

.breadcrumb strong {
  color: #fff;
  font-weight: 800;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

.detail-info h1 {
  width: min(880px, 100%);
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.12);
}

.player-section {
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.54);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 44%, rgba(34, 211, 238, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-box.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001018;
  background: var(--cyan);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.46);
  font-size: 2rem;
  transition: transform 0.25s ease;
}

.player-cover:hover .player-button {
  transform: scale(1.08);
}

.player-cover strong {
  font-size: 1.25rem;
}

.detail-text {
  padding-top: 46px;
}

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

.content-card {
  padding: 26px;
}

.content-card p {
  color: #cbd5e1;
  font-size: 1rem;
}

.site-footer {
  padding: 56px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: #cbd5e1;
}

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

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 15px;
    font-size: 0.94rem;
  }

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

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

  .ranking-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-content {
    min-height: 58vh;
    padding-top: 68px;
  }

  .hero-panel {
    margin-top: calc(94vh - 260px);
  }

  .hero-search-card {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .two-col,
  .category-grid,
  .rank-layout,
  .detail-columns,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .container,
  .site-header-inner,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text em {
    font-size: 0.72rem;
  }

  .hero-arrow {
    display: none;
  }

  .hero h1,
  .hero-site-title,
  .inner-hero h1,
  .detail-info h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero h2 {
    font-size: clamp(1.55rem, 9vw, 2.4rem);
  }

  .hero-dots {
    bottom: 238px;
  }

  .hero-panel {
    margin-top: calc(94vh - 260px);
  }

  .hero-thumbs {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .catalog-grid,
  .two-col,
  .category-grid,
  .rank-layout,
  .detail-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

  .rank-board a {
    grid-template-columns: 32px 54px minmax(0, 1fr);
  }

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