:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-deep: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 36rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 32rem),
    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.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(3, 7, 18, 0.92);
  border-color: var(--line);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45);
  font-size: 14px;
  padding-left: 2px;
}

.brand-name {
  font-size: clamp(19px, 2vw, 25px);
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #60a5fa;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  color: white;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: var(--shell);
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: rgba(59, 130, 246, 0.12);
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  transform: scale(1.02);
  transition: transform 7s ease, opacity 0.5s ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-slide img.is-missing,
.image-frame img.is-missing,
.category-stack img.is-missing {
  opacity: 0;
}

.hero-slide::before,
.image-frame::before,
.category-stack::before,
.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.35), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.55));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.56), rgba(3, 7, 18, 0.22)),
    linear-gradient(0deg, var(--bg), rgba(3, 7, 18, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 118px 0 132px;
}

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

.hero-eyebrow,
.section-kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  color: white;
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags {
  margin-bottom: 32px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.13);
  backdrop-filter: blur(10px);
}

.hero-tags span {
  padding: 9px 15px;
  font-size: 14px;
}

.tag-row span {
  padding: 5px 10px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.74);
  border-color: rgba(148, 163, 184, 0.14);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: white;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 70px));
  transform: translateY(-50%);
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 70px));
  transform: translateY(-50%);
}

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

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

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 5;
  transform: translateX(-50%);
}

.hero-search-form {
  width: min(540px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  padding: 0 14px;
}

.hero-search-form button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  padding: 12px 20px;
}

.section {
  padding: 78px 0;
}

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

.soft-section,
.rank-section {
  position: relative;
}

.soft-section::before,
.rank-section::before {
  content: "";
  position: absolute;
  inset: 24px -16px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: #93c5fd;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(30, 41, 59, 0.86);
}

.card-cover,
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.card-cover {
  aspect-ratio: 16 / 9;
}

.movie-card.compact .card-cover {
  aspect-ratio: 3 / 4;
}

.movie-card.rail .card-cover {
  aspect-ratio: 16 / 9;
}

.card-cover img,
.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-float {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(59, 130, 246, 0.9);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding-left: 3px;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 26px;
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.card-body {
  padding: 17px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a {
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h2 a {
  color: #60a5fa;
}

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

.rail {
  display: grid;
  grid-auto-columns: minmax(290px, 360px);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.rail .movie-card {
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.42);
}

.category-tile {
  min-height: 172px;
  padding: 24px;
}

.category-tile::before,
.category-overview-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -82px;
  top: -72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.34), transparent 70%);
}

.category-tile span,
.category-overview-card span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.category-tile em,
.category-overview-card p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

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

.movie-card.rank {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.rank .card-cover {
  min-height: 150px;
  height: 100%;
}

.movie-card.rank .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-block {
  display: grid;
  gap: 64px;
}

.page-hero {
  padding: 74px 0 28px;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #60a5fa;
}

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

.category-overview-card {
  min-height: 240px;
  padding: 24px;
}

.category-stack {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 180px;
  height: 118px;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.72;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.category-stack img {
  position: absolute;
  width: 56%;
  height: 84%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.category-stack img:nth-child(1) {
  left: 0;
  bottom: 0;
  z-index: 3;
}

.category-stack img:nth-child(2) {
  left: 36%;
  top: 0;
  z-index: 2;
}

.category-stack img:nth-child(3) {
  right: 0;
  bottom: 8px;
  z-index: 1;
}

.category-overview-card h2,
.category-overview-card p,
.category-overview-card span {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  outline: 0;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 16px;
}

.search-box input:focus {
  border-color: rgba(59, 130, 246, 0.66);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  padding: 8px 13px;
  font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: white;
  border-color: rgba(59, 130, 246, 0.62);
  background: rgba(59, 130, 246, 0.28);
}

.empty-result {
  display: none;
  margin: 16px 0 0;
  color: var(--muted);
}

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

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

.detail-main {
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.18), transparent 34rem),
    var(--bg);
}

.detail-layout {
  padding-top: 56px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.88);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.24)),
    radial-gradient(circle at center, rgba(59, 130, 246, 0.28), transparent 22rem);
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 22px 64px rgba(37, 99, 235, 0.45);
  font-size: 34px;
  padding-left: 5px;
}

.play-cover strong {
  font-size: 18px;
}

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

.detail-info {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 24px;
}

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

.meta-list div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.meta-list dd {
  margin: 4px 0 0;
  color: white;
  font-weight: 800;
}

.detail-text {
  margin-top: 38px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

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

.detail-text p {
  margin: 0 0 24px;
  color: var(--muted-strong);
}

.detail-text p:last-child {
  margin-bottom: 0;
}

.related-section {
  padding-top: 58px;
}

.site-footer {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 46px 0 28px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .cards-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  :root {
    --shell: min(100vw - 24px, 1180px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-shell {
    height: 68px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 184px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    bottom: 92px;
  }

  .hero-search-form {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search-form input {
    height: 42px;
  }

  .cards-4,
  .cards-3,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-info {
    grid-template-columns: 1fr;
  }

  .movie-card.rank {
    grid-template-columns: 1fr;
  }

  .category-overview-card h2,
  .category-overview-card p,
  .category-overview-card span {
    max-width: 100%;
  }

  .category-stack {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 140px;
    margin-bottom: 18px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .section {
    padding: 54px 0;
  }

  .page-main {
    padding-top: 78px;
  }

  .page-hero {
    padding-top: 48px;
  }

  .hero-tags span {
    padding: 7px 11px;
    font-size: 12px;
  }

  .btn {
    width: 100%;
  }

  .movie-card.compact .card-cover {
    aspect-ratio: 16 / 10;
  }

  .detail-text,
  .search-panel {
    padding: 18px;
  }

  .play-cover span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
