:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #e5e7eb;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9fafb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

main {
  min-height: 70vh;
}

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

.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 {
  backdrop-filter: blur(16px);
}

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

.site-logo:hover .logo-icon {
  transform: scale(1.08) rotate(-5deg);
}

.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  color: #374151;
  font-weight: 600;
}

.mobile-nav-link:hover {
  background: #fff1f2;
  color: var(--rose);
}

.site-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

.hero-light {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.33;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-light-a {
  top: 58px;
  left: 8%;
  width: 280px;
  height: 280px;
  background: #fda4af;
}

.hero-light-b {
  right: 5%;
  bottom: 30px;
  width: 410px;
  height: 410px;
  background: #f9a8d4;
  animation-delay: 1.2s;
}

.hero-shell {
  position: relative;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-slide {
  display: none;
  min-height: 650px;
  align-items: center;
}

.hero-slide.is-active {
  display: flex;
  animation: fadeIn 0.55s ease;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
}

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

.hero-eyebrow,
.detail-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-eyebrow span,
.detail-eyebrow span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #fff;
  color: var(--rose);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.1);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.hero-copy h1 span,
.page-hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 1.5rem 0 0;
  color: #4b5563;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.wide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-tags span,
.detail-tags span,
.wide-tags span {
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-actions.single {
  margin-top: 1.6rem;
}

.primary-btn,
.ghost-btn,
.cta-section a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 1.6rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn,
.cta-section a {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #fff;
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.32);
}

.ghost-btn {
  border: 2px solid #fecdd3;
  background: #fff;
  color: #374151;
}

.primary-btn:hover,
.ghost-btn:hover,
.cta-section a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.28);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.65);
  border-radius: 2rem;
  background: linear-gradient(135deg, #fecdd3, #fce7f3);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose);
  font-size: 1.4rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
  transform: translateX(-50%);
}

.hero-dots {
  position: absolute;
  left: 1rem;
  bottom: 2.25rem;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #fecdd3;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 4.5rem 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.rose-section {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 900;
}

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

.more-link {
  flex: 0 0 auto;
  color: var(--rose);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 1.4rem;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: #fecdd3;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  transform: translateY(-8px);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

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

.movie-type,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.movie-type {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.32rem 0.72rem;
  background: var(--rose);
  font-size: 0.72rem;
}

.rank-badge {
  top: 0.75rem;
  left: 0.75rem;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #eab308;
  font-size: 0.85rem;
}

.play-chip {
  left: 50%;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: rgba(17, 24, 39, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.movie-meta span:first-child {
  overflow: hidden;
  max-width: 72%;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.4rem;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover,
.category-overview-card:hover {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 2.45rem;
  line-height: 1;
}

.category-icon.big {
  font-size: 3rem;
}

.category-card h2,
.category-overview-card h2 {
  margin: 1rem 0 0.55rem;
  color: #111827;
  font-size: 1.16rem;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  min-height: 4.4em;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.category-card span,
.category-main-link > span {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.category-main-link {
  display: block;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.category-samples a {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #f9fafb;
  color: #4b5563;
  font-size: 0.82rem;
}

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

.ranking-grid,
.ranking-page-list {
  display: grid;
  gap: 1rem;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wide-card:hover {
  border-color: #fecdd3;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
  transform: translateY(-4px);
}

.wide-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

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

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.1rem;
}

.wide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.wide-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.wide-rank {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.wide-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fff7ed 48%, #fdf2f8);
}

.page-hero {
  padding: 5rem 0 4.5rem;
}

.page-hero p {
  margin: 0 0 0.8rem;
  color: var(--rose);
  font-weight: 900;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 1.1rem;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.85;
}

.filter-panel {
  position: sticky;
  top: 72px;
  z-index: 30;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.filter-title strong {
  color: #111827;
  font-size: 1rem;
}

.filter-title span {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 0.8rem;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  color: #111827;
  padding: 0 0.9rem;
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.detail-hero {
  padding: 2rem 0 4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
}

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

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

.detail-cover {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
}

.detail-copy p {
  max-width: 820px;
  margin: 1.3rem 0 0;
  color: #4b5563;
  font-size: 1.13rem;
  line-height: 1.85;
}

.player-section {
  background: #111827;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: stretch;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.45rem;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose);
  font-size: 2rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease;
}

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

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

.player-side {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.4rem;
  color: #e5e7eb;
}

.player-side h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.player-side dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.player-side div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.player-side dt {
  color: #9ca3af;
}

.player-side dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.player-side a {
  color: #fda4af;
}

.detail-text-section {
  background: #fff;
}

.detail-article {
  border-radius: 1.5rem;
  background: #fff;
  padding: 0.5rem 0;
}

.detail-article h2 {
  margin: 0 0 1rem;
  color: #111827;
  font-size: 1.65rem;
  font-weight: 900;
}

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

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 1.04rem;
  line-height: 2;
}

.cta-section {
  display: grid;
  place-items: center;
  padding: 5.5rem 1rem;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
}

.cta-section p {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: #ffe4e6;
  font-size: 1.1rem;
  line-height: 1.8;
}

.cta-section a {
  background: #fff;
  color: var(--rose);
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.28rem;
}

.footer-grid p {
  max-width: 360px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-grid a {
  color: #d1d5db;
  font-size: 0.94rem;
}

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

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 1180px) {
  .featured-grid,
  .compact-grid,
  .all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-hero,
  .hero-shell,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 4rem 0 5rem;
  }

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

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

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .detail-cover {
    max-width: 320px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.25rem 0;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 0.9rem;
  }

  .featured-grid,
  .compact-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .movie-card-body {
    padding: 0.82rem;
  }

  .movie-card-body h2 {
    font-size: 0.92rem;
  }

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

  .wide-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .wide-tags {
    display: none;
  }

  .page-hero {
    padding: 3.5rem 0;
  }

  .detail-hero {
    padding-top: 1.4rem;
  }

  .player-cover span {
    width: 64px;
    height: 64px;
    font-size: 1.55rem;
  }
}
