:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #64748b;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(190, 18, 60, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 30%, #fff7f8 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.94), rgba(255, 247, 237, 0.94));
  border-bottom: 1px solid rgba(251, 113, 133, 0.2);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

.brand-text,
.footer-brand {
  font-size: 26px;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-weight: 700;
}

.desktop-nav a {
  color: #475569;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--rose);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.top-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  min-width: 0;
  background: #fff;
}

.top-search input {
  width: 170px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.top-search input:focus {
  width: 220px;
}

.top-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--rose);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.12);
  cursor: pointer;
}

.mobile-panel {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel nav,
.mobile-panel form {
  max-width: 1240px;
  margin: 0 auto;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-panel a {
  padding: 10px 0;
  font-weight: 700;
  color: #475569;
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mobile-panel input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(190, 18, 60, 0.22);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) scale(1.06);
  opacity: 0.58;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.66), rgba(244, 63, 94, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero-copy .eyebrow {
  color: #fecdd3;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.32);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.9);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-poster span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 36px;
  background: #fff;
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  transform: translateY(-3px);
  border-color: rgba(244, 63, 94, 0.32);
}

.hero-thumb img {
  width: 66px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-thumb span {
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.centered {
  text-align: center;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.row-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--rose);
  font-weight: 900;
}

.text-link.orange {
  color: var(--orange);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

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

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.24);
}

.play-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

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

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

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

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.rank-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.band-section {
  background: linear-gradient(90deg, #fff1f2, #fff7ed);
}

.soft-band {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.78), rgba(253, 242, 248, 0.82));
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

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

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

.category-card {
  display: block;
  min-height: 184px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff1f2 55%, #ffedd5);
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 70px 52px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #be123c, #ec4899, #f97316);
  box-shadow: 0 28px 70px rgba(244, 63, 94, 0.2);
}

.page-hero .eyebrow,
.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.slim-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

.category-hero,
.ranking-hero {
  min-height: 310px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.1);
}

.compact-filter {
  grid-template-columns: minmax(240px, 1fr) 200px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ffe4e6;
  border-radius: 14px;
  color: var(--ink);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.result-line {
  margin: 12px 0 24px;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #fff;
}

.hidden-card {
  display: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
}

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

.rank-content h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-panel {
  display: grid;
  gap: 12px;
}

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

.category-samples {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.category-samples a {
  overflow: hidden;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  color: var(--rose);
}

.detail-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 26px;
}

.player-card,
.detail-info,
.content-card,
.related-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #111827;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111827;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.76;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.54));
}

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

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

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

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin-bottom: 14px;
}

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

.meta-table {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-table div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.meta-table dt {
  color: #94a3b8;
  font-weight: 900;
}

.meta-table dd {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.detail-tags span {
  min-height: 30px;
}

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

.content-card,
.related-card {
  padding: 30px;
}

.content-card h2,
.related-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 28px;
  color: #475569;
  font-size: 17px;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.related-grid .movie-card {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.related-grid .poster-link {
  aspect-ratio: 4 / 3;
}

.related-grid .card-body {
  padding: 12px;
}

.related-grid .card-body h2 {
  font-size: 15px;
}

.related-grid .card-body p,
.related-grid .tag-row,
.related-grid .card-badge,
.related-grid .play-cue {
  display: none;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-top: 1px solid rgba(244, 63, 94, 0.08);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 42px;
}

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

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #64748b;
  font-weight: 700;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 14px;
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero-content {
    padding: 48px;
  }

  .hero-poster {
    max-width: 330px;
    margin: 0 auto;
  }

  .movie-grid,
  .featured-grid,
  .quad-grid,
  .library-grid,
  .category-grid,
  .category-overview,
  .home-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .nav-shell {
    height: 64px;
  }

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

  .hero {
    margin-top: 16px;
    padding: 0 14px;
  }

  .hero-stage,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding: 34px 24px 70px;
  }

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

  .hero-desc {
    font-size: 16px;
  }

  .hero-poster {
    display: none;
  }

  .hero-dots {
    left: 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }

  .section,
  .detail-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

  .movie-grid,
  .featured-grid,
  .quad-grid,
  .library-grid,
  .category-grid,
  .category-overview,
  .home-rank,
  .footer-grid,
  .filter-panel,
  .compact-filter {
    grid-template-columns: 1fr;
  }

  .page-hero {
    margin: 16px 14px 0;
    padding: 42px 24px;
    border-radius: 26px;
  }

  .rank-item {
    grid-template-columns: 44px 86px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .detail-info,
  .content-card,
  .related-card {
    padding: 22px;
  }

  .related-grid .movie-card {
    grid-template-columns: 100px 1fr;
  }
}
