:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d5dc;
  --paper: #ffffff;
  --soft: #fff7f9;
  --shadow: 0 24px 60px rgba(225, 29, 72, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 63, 94, 0.12), transparent 32rem),
    radial-gradient(circle at 95% 12%, rgba(236, 72, 153, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff7fa 0%, #ffffff 36%, #fff9fb 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--rose-600);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.logo-text {
  font-size: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: 4px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.08);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.panel-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--rose-600);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow.one {
  left: -120px;
  top: 20px;
  background: rgba(251, 113, 133, 0.24);
}

.hero-glow.two {
  right: -140px;
  bottom: -120px;
  background: rgba(236, 72, 153, 0.22);
}

.hero-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 72% 24%, rgba(236, 72, 153, 0.22), transparent 26rem);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
  gap: 46px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-label,
.section-kicker,
.detail-kicker,
.page-hero span,
.story-block span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 228, 230, 0.82);
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  color: var(--rose-600);
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.14);
}

.hero-actions,
.detail-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 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  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: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn.ghost {
  color: var(--rose-600);
  background: #ffffff;
  border-color: rgba(244, 63, 94, 0.15);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.08);
}

.btn.ghost.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.btn.slim {
  min-height: 44px;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
  box-shadow: 0 30px 70px rgba(136, 19, 55, 0.22);
  transform: rotate(2deg);
}

.hero-poster img,
.movie-card img,
.rank-row img,
.detail-poster img,
.category-card img,
.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span,
.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.hero-controls {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.22);
}

.hero-dot.active {
  width: 56px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.content-section,
.category-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.category-section {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.72), rgba(253, 242, 248, 0.62));
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--rose-600);
  font-weight: 900;
}

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

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

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

.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card > a:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(225, 29, 72, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.movie-card img {
  transition: transform 0.45s ease;
}

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

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.22);
}

.type-badge {
  left: 10px;
  top: 10px;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
}

.play-hover {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.movie-card-body {
  padding: 15px;
}

.movie-card-body h2 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.35;
}

.movie-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  background: var(--rose-50);
}

.tag-row.large span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--rose-100);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.12);
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.78) 100%);
}

.category-card strong,
.category-card small {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #ffffff;
}

.category-card strong {
  bottom: 62px;
  font-size: 22px;
}

.category-card small {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.88;
}

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

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

.rank-list.full {
  gap: 10px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 54px 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.15);
}

.rank-num {
  color: var(--rose-600);
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
}

.rank-row img {
  width: 80px;
  height: 60px;
  border-radius: 12px;
  background: var(--rose-100);
}

.rank-content {
  min-width: 0;
}

.rank-content strong,
.rank-content small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-content strong {
  font-size: 16px;
}

.rank-content small {
  margin-top: 4px;
  color: var(--muted);
}

.rank-heat {
  color: var(--rose-600);
  font-weight: 900;
}

.side-panel,
.story-block,
.category-overview-card,
.filter-bar {
  border: 1px solid rgba(244, 63, 94, 0.13);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(225, 29, 72, 0.09);
}

.side-panel {
  padding: 28px;
  position: sticky;
  top: 100px;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.side-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.panel-search {
  display: grid;
  gap: 10px;
}

.panel-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 16px;
  outline: 0;
  padding: 13px 14px;
  color: var(--text);
  background: #ffffff;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.quick-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
  background: var(--rose-50);
}

.page-hero {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.86)),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.24), transparent 28rem);
  box-shadow: var(--shadow);
}

.page-hero.small {
  padding: 52px;
  color: #ffffff;
}

.page-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.9;
}

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

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: var(--rose-100);
}

.category-overview-body {
  padding: 26px;
}

.category-overview-body span {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.category-overview-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.filter-bar.wide {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.search-page-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) scale(1.14);
  opacity: 0.48;
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.34), transparent 34rem);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: var(--rose-100);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
}

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

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at 50% 48%, rgba(244, 63, 94, 0.32), rgba(17, 24, 39, 0.62));
}

.player-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: var(--rose-600);
  font-size: 30px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.player-button strong {
  font-size: 18px;
}

.player-message {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-block {
  padding: 30px;
}

.story-block.accent {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.88));
}

.story-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.story-block p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

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

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.footer-column a {
  color: var(--muted);
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #9ca3af;
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav,
  .header-search {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    background: #ffffff;
    box-shadow: 0 20px 54px rgba(17, 24, 39, 0.14);
  }

  .main-nav {
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
  }

  .header-search {
    top: 310px;
    width: auto;
  }

  body.menu-open .main-nav,
  body.menu-open .header-search {
    display: flex;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px;
  }

  .hero-poster {
    width: min(260px, 80%);
    margin: 0 auto;
  }

  .hero-controls {
    left: 34px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

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

  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .category-preview {
    height: 170px;
  }

  .detail-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

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

  .rank-row img {
    width: 64px;
    height: 52px;
  }

  .rank-heat {
    display: none;
  }

  .filter-bar,
  .filter-bar.wide,
  .search-page-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .content-section,
  .category-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .hero-section {
    padding-top: 24px;
  }

  .hero-shell {
    border-radius: 24px;
    min-height: 720px;
  }

  .hero-slide {
    padding: 24px;
  }

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

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

  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-line {
    display: none;
  }

  .tag-row {
    display: none;
  }

  .video-shell {
    border-radius: 18px;
  }
}
