:root {
  --cherry-pink: #ffb7c5;
  --rose: #ec4899;
  --rose-soft: #ffe4e9;
  --rose-deep: #be185d;
  --tender-green: #a8d5ba;
  --light-yellow: #fff4e6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 114, 182, 0.22);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.18);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.82), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 183, 197, 0.42), transparent 28%),
    linear-gradient(135deg, #fff4e6 0%, #ffe4e9 42%, #ffd4e0 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.glass-effect {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(255, 183, 197, 0.42);
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cherry-blossom {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #ffb7c5, #ff8aad);
  border-radius: 50% 0;
  opacity: 0.72;
  animation: fall linear infinite;
}

.cherry-blossom::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: -6px;
  left: 6px;
  background: radial-gradient(circle, #ffb7c5, #ff8aad);
  border-radius: 0 50%;
}

@keyframes fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.82;
  }
  100% {
    transform: translate3d(48px, 110vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.65s ease both;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.3);
}

.brand-text {
  font-size: 22px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--rose), #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-deep);
  background: rgba(252, 231, 243, 0.78);
}

.nav-chip {
  font-weight: 500;
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input {
  min-width: 0;
  border: 2px solid rgba(244, 114, 182, 0.24);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus {
  border-color: rgba(236, 72, 153, 0.66);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.13);
}

.header-search button,
.mobile-search button,
.hero-search button,
.button-primary {
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), #fb7185);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.34);
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--rose-deep);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-ghost:hover {
  transform: translateY(-2px);
  background: rgba(252, 231, 243, 0.92);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: none;
  border-radius: 12px;
  background: rgba(252, 231, 243, 0.9);
  padding: 10px 12px;
  color: var(--rose-deep);
}

.mobile-menu {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(255, 244, 230, 0.92), rgba(255, 228, 233, 0.92), rgba(255, 212, 224, 0.86));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  color: var(--rose-deep);
  background: rgba(252, 231, 243, 0.86);
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 strong {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--rose), #fb7185, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero-search {
  max-width: 660px;
  margin-top: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.12);
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
}

.hero-actions,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-category-links a {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
}

.hero-showcase {
  position: relative;
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 58% 42%;
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster,
.hero-poster img,
.hero-poster .poster-fallback {
  height: 100%;
  min-height: 290px;
  border-radius: 0;
}

.hero-slide-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.hero-slide-copy span,
.hero-slide-copy small {
  color: var(--rose-deep);
  font-weight: 800;
}

.hero-slide-copy h3 {
  margin: 0;
  font-size: 26px;
}

.hero-slide-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-slide-copy a {
  width: max-content;
  margin-top: 6px;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), #fb7185);
}

.hero-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  line-height: 1;
}

.section-block {
  position: relative;
  z-index: 1;
  padding: 54px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

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

.section-more {
  color: var(--rose-deep);
  font-weight: 800;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster-shell {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.movie-card-featured .movie-poster-shell {
  height: 310px;
}

.poster-wrap,
.poster-fallback,
.poster-wrap img {
  width: 100%;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(255, 244, 230, 0.9));
}

.poster-wrap img {
  position: relative;
  z-index: 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.ranking-row:hover .poster-wrap img,
.ranking-list-row:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap.is-missing img {
  display: none;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #9f1239;
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(135deg, #ffe4e9, #fff4e6);
}

.badge {
  position: absolute;
  z-index: 4;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge-primary {
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
}

.badge-dark {
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-size: 36px;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 55%);
  transition: opacity 0.25s ease;
}

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

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

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

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #9ca3af;
  font-size: 13px;
}

.ranking-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.72), rgba(252, 231, 243, 0.72));
}

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

.ranking-row,
.ranking-list-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
}

.ranking-row {
  grid-template-columns: 52px 124px minmax(0, 1fr) auto;
  padding: 14px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), #fb7185);
}

.rank-poster {
  height: 78px;
  border-radius: 14px;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-views {
  color: var(--muted);
  font-size: 14px;
}

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

.category-card,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 24px;
  padding: 22px;
}

.category-dot {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), #fb7185);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.2);
}

.category-card h3,
.category-overview-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-card strong,
.category-overview-card strong {
  color: var(--rose-deep);
}

.category-card small {
  color: #9ca3af;
  line-height: 1.5;
}

.category-overview-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.category-sample-links {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.category-sample-links a {
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-sample-links a:hover {
  color: var(--rose-deep);
}

.cta-panel {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  margin-bottom: 64px;
  padding: 42px;
  border-radius: 30px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.cta-panel p {
  color: var(--muted);
  margin-bottom: 22px;
}

.page-hero {
  padding: 70px 0 42px;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.76), rgba(252, 231, 243, 0.56));
}

.compact-hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
}

.page-hero-inner {
  display: grid;
  gap: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 22px;
}

.filter-panel h2 {
  margin: 0 0 6px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-panel span,
.search-status {
  color: var(--rose-deep);
  font-weight: 800;
}

.search-status {
  margin-bottom: 24px;
  border-radius: 22px;
  padding: 18px 20px;
}

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

.ranking-list-row {
  grid-template-columns: 58px 112px minmax(0, 1fr) auto;
  padding: 14px;
}

.rank-list-poster {
  height: 92px;
  border-radius: 16px;
}

.ranking-list-row h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-list-row p,
.ranking-list-row small {
  color: var(--muted);
}

.ranking-list-row p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.detail-hero {
  padding: 42px 0 22px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 22px;
}

.detail-poster {
  min-height: 410px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-radius: 28px;
  padding: 30px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta-chips span,
.tag-list a {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.82);
  color: var(--rose-deep);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card {
  overflow: hidden;
  border-radius: 26px;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: none;
  color: #ffffff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(0, 0, 0, 0.42));
  transition: opacity 0.2s ease;
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 34px;
}

.player-card.is-playing .player-start,
.player-card.is-loaded .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
}

.content-card {
  padding: 24px;
}

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

.content-card p {
  color: #4b5563;
  line-height: 1.85;
  margin: 0;
  white-space: pre-line;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: #9ca3af;
}

.info-list dd {
  margin: 0;
  color: #374151;
  font-weight: 700;
}

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

.related-grid .movie-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-radius: 18px;
}

.related-grid .movie-poster-shell {
  height: 112px;
}

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

.related-grid .movie-card-body p {
  display: none;
}

.related-grid .badge,
.related-grid .play-overlay {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  padding: 46px 0;
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.54);
}

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

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

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

@media (max-width: 820px) {
  .hero-grid,
  .detail-hero-grid,
  .filter-panel,
  .ranking-row,
  .ranking-list-row {
    grid-template-columns: 1fr;
  }

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

  .hero-section {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 520px;
  }

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

  .player-toolbar {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--max-width));
  }

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

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

  .hero-search,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button,
  .button-primary,
  .button-ghost {
    width: 100%;
  }

  .featured-grid,
  .movie-grid-large,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .movie-poster-shell {
    height: 260px;
  }

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

  .related-grid .movie-poster-shell {
    height: 210px;
  }
}
