:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --purple: #8b5cf6;
  --purple-deep: #7c3aed;
  --blue: #3b82f6;
  --orange: #f97316;
  --yellow: #fde047;
  --green: #10b981;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.14);
  --shadow-soft: 0 12px 28px rgba(31, 41, 55, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fff7fb 38%, #f8fbff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.28);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-logo__mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef08a, #fb7185);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(253, 224, 71, 0.28);
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  margin: 4px 0;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #ffe4ef 0%, #f3e8ff 47%, #dbeafe 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.22), transparent 28%),
    radial-gradient(circle at 70% 10%, rgba(59, 130, 246, 0.26), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(249, 115, 22, 0.16), transparent 34%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 460ms ease, transform 460ms ease;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(90deg, var(--pink-deep), var(--purple-deep));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  color: var(--dark);
}

.hero-copy p {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #6d28d9;
  background: linear-gradient(90deg, #dbeafe, #f3e8ff);
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 32px rgba(219, 39, 119, 0.26);
}

.btn-soft {
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.12);
}

.btn-link {
  color: var(--purple-deep);
  background: transparent;
}

.hero-poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(55, 65, 81, 0.28);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 34px 80px rgba(55, 65, 81, 0.32);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-poster__info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: #fff;
}

.hero-poster__info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.hero-poster__info small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-controls {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: -74px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 34px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(31, 41, 55, 0.45);
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.28);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.home-search,
.section-wrap,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search {
  margin-top: 34px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.home-search h2,
.section-heading h2,
.page-hero h1,
.detail-top h1,
.detail-card h2,
.side-card h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.home-search h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-wrap {
  padding: 70px 0;
}

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

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

.section-heading h2 {
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading a {
  color: var(--purple-deep);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(236, 72, 153, 0.82);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.26);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--dark);
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__title:hover {
  color: var(--purple-deep);
}

.movie-card__meta {
  margin: 9px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.wide-grid {
  display: grid;
  gap: 18px;
}

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

.movie-card--wide .movie-card__poster {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.movie-card--wide .movie-card__body {
  padding: 22px;
}

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

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

.category-tile {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-tile__cover {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
}

.category-grid--large .category-tile__cover {
  height: 220px;
}

.category-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-tile:hover .category-tile__cover img {
  transform: scale(1.08);
}

.category-tile__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72) 100%);
}

.category-tile__cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.category-tile__body {
  padding: 18px;
}

.category-tile__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile__body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile__links a {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  color: var(--purple-deep);
  background: #f3e8ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.compact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.compact-card img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card h3 {
  overflow: hidden;
  margin: 0 0 6px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-card__rank {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  font-weight: 950;
}

.page-hero {
  color: #fff;
  background: linear-gradient(110deg, var(--orange), var(--pink), var(--purple));
}

.page-hero--category {
  background: linear-gradient(110deg, #f97316, #ec4899, #8b5cf6);
}

.page-hero--library {
  background: linear-gradient(110deg, #2563eb, #8b5cf6, #ec4899);
}

.page-hero--ranking {
  background: linear-gradient(110deg, #111827, #7c2d12, #db2777);
}

.page-hero__inner,
.detail-top__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero h1,
.detail-top h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p,
.detail-top p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.85;
  opacity: 0.92;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  color: #6d28d9;
  background: #f3e8ff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  transform: translateY(-1px);
}

.detail-top {
  color: #fff;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.detail-layout {
  padding: 42px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(0, 0, 0, 0.12));
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.player-cover__icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.36);
  font-size: 30px;
}

.player-cover strong {
  max-width: 86%;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
}

.player-controls {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  opacity: 0;
  transition: opacity 180ms ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
  opacity: 1;
}

.player-controls button {
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(17, 24, 39, 0.62);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.detail-card,
.side-card {
  margin-top: 26px;
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 24px;
}

.detail-card section {
  margin-top: 28px;
}

.detail-card p,
.side-card p {
  margin: 0;
  color: #374151;
  line-height: 1.85;
}

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

.detail-meta-grid div {
  padding: 14px;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  border-radius: 16px;
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta-grid strong {
  color: var(--dark);
}

.review-box {
  padding: 22px;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border-radius: 18px;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 92px;
}

.side-card + .side-card {
  position: static;
}

.side-card--gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.side-card--gradient h2,
.side-card--gradient p {
  color: #fff;
}

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

.side-list .compact-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  padding: 0;
  box-shadow: none;
}

.side-list .compact-card img {
  width: 92px;
  height: 64px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-grid p {
  color: #d1d5db;
  line-height: 1.75;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 18px 16px;
  color: #d1d5db;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .site-header__inner {
    height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-section {
    min-height: 780px;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    min-height: 320px;
    transform: none;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .hero-controls {
    margin-top: -80px;
  }

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

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

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

  .compact-grid,
  .compact-grid--ranking {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-section {
    min-height: 820px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-top p {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid--dense,
  .category-grid,
  .category-grid--large {
    grid-template-columns: 1fr;
  }

  .movie-card__poster {
    aspect-ratio: 16 / 10;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

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