:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --border: rgba(34, 211, 238, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --pink: #ec4899;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(2, 132, 199, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.18), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #08111f 52%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.25);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  padding: 9px;
}

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

.mobile-nav {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

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

main {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.66) 42%, rgba(2, 6, 23, 0.9) 100%),
    radial-gradient(circle at 70% 34%, rgba(34, 211, 238, 0.22), transparent 28rem);
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 82px 22px 150px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: 0.6s ease;
  z-index: 3;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 760px;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px) saturate(1.18);
  transform: scale(1.03);
  z-index: 1;
}

.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.primary-btn,
.ghost-btn,
.panel-link,
.rank-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

.primary-btn:hover,
.rank-watch:hover,
.panel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(34, 211, 238, 0.35);
}

.ghost-btn {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(15, 23, 42, 0.58);
}

.ghost-btn:hover {
  background: rgba(34, 211, 238, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.12);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(680px, calc(100% - 44px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  color: #e2e8f0;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 16px;
  outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-search button,
.search-panel button {
  min-width: 98px;
  border: 0;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 800;
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(1080px, calc(100% - 30px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(2, 6, 23, 0.82);
}

.hero-category-strip a,
.tag-row a,
.category-samples a {
  white-space: nowrap;
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  transition: 0.2s ease;
}

.hero-category-strip a:hover,
.tag-row a:hover,
.category-samples a:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.18);
}

.content-section {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 58px 0 0;
}

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

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

.section-heading h2,
.ranking-head h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--border);
}

.section-more {
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 14px 45px rgba(2, 6, 23, 0.22);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.85));
}

.movie-card-compact .movie-poster,
.category-movie-grid .movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.movie-card:hover .movie-poster img,
.rank-row:hover img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.92));
}

.duration,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  right: auto;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.84);
  opacity: 0;
  transition: 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta,
.detail-meta,
.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #93c5fd;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.rank-info div span {
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(59, 130, 246, 0.08);
}

.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.movie-info h3 a:hover,
.rank-info h2 a:hover {
  color: #67e8f9;
}

.movie-info p,
.category-tile p,
.category-card-large p,
.rank-info p,
.prose-card p {
  color: var(--muted);
  margin: 0;
}

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

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

.ranking-panel,
.prose-card,
.detail-side,
.detail-article,
.search-panel,
.filter-bar,
.category-card-large {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 45px rgba(2, 6, 23, 0.18);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-panel ol {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  transition: 0.2s ease;
}

.ranking-panel li a:hover {
  background: rgba(34, 211, 238, 0.1);
}

.ranking-panel li span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #67e8f9;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  font-weight: 900;
}

.ranking-panel li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel li em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
}

.panel-link,
.rank-watch {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

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

.category-tile,
.category-card-head {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.76);
  transition: 0.25s ease;
}

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

.category-tile span,
.category-card-head span {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card-large {
  overflow: hidden;
}

.category-card-head {
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-card-large p {
  padding: 18px 22px 0;
}

.category-samples {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 22px 22px;
}

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

.page-hero {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.78));
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 46px;
}

.small-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.small-hero p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  margin-top: 18px;
}

.crumbs a {
  color: #67e8f9;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) 180px 120px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 94px minmax(0, 1fr) 98px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  padding: 14px;
  transition: 0.25s ease;
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.44);
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fef08a;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-bottom: 1px solid var(--border);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px) saturate(1.2);
  transform: scale(1.03);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7));
}

.detail-content {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(34, 211, 238, 0.26);
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.8);
}

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

.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: #dbeafe;
  max-width: 820px;
  font-size: 18px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.12);
  font-size: 28px;
}

.player-overlay strong {
  padding: 0 22px;
  text-align: center;
  font-size: 20px;
}

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

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.detail-article,
.detail-side,
.prose-card {
  padding: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 26px;
}

.detail-article p,
.prose-card p {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px 12px;
  margin: 20px 0 0;
}

.detail-side dt {
  color: #67e8f9;
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: #cbd5e1;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.94);
}

.footer-grid {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-slide,
  .detail-content,
  .split-section,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(320px, 74vw);
    margin: 0 auto;
  }

  .ranking-panel {
    position: relative;
    top: 0;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 820px;
  }

  .hero-slide {
    padding-top: 52px;
    padding-bottom: 190px;
    gap: 22px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-category-strip {
    bottom: 0;
  }

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

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

  .filter-bar,
  .search-panel,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-row {
    align-items: start;
  }

  .detail-content {
    padding-top: 44px;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .content-section,
  .page-hero,
  .detail-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1280px);
  }

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

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button,
  .search-panel button {
    min-height: 44px;
  }

  .movie-grid,
  .compact-grid,
  .category-large-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .small-hero {
    padding: 30px 22px;
  }

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

  .player-shell {
    border-radius: 20px;
  }
}
