:root {
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --green: #10b981;
  --dark: #111827;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8f5ff;
  --line: rgba(236, 72, 153, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(67, 56, 202, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(135deg, #fff7fb 0%, #f6f0ff 45%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(67, 56, 202, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.header-search,
.mobile-link {
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.header-search:hover,
.mobile-link:hover,
.mobile-link.is-active {
  color: #db2777;
  background: rgba(236, 72, 153, 0.09);
}

.header-search {
  padding: 10px 18px;
  background: rgba(139, 92, 246, 0.09);
  color: #6d28d9;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.1);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #7c3aed;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.mobile-link {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: #140c2e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(236, 72, 153, 0.5), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(59, 130, 246, 0.42), transparent 26rem),
    linear-gradient(135deg, #111827 0%, #581c87 52%, #1e3a8a 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, #fff 1px, transparent 1px),
    linear-gradient(#fff 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 24px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slides {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.56s ease, transform 0.56s ease;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.detail-actions,
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.sub-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.28);
}

.ghost-button,
.sub-actions a {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.sub-actions a:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 54%, rgba(17, 24, 39, 0.72));
}

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

.hero-controls {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.hero-search {
  width: min(780px, 100%);
  margin-top: 26px;
  padding: 8px;
  display: flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  padding: 0 18px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  color: #6d28d9;
  font-weight: 900;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.section-wrap,
.category-section,
.filter-panel,
.detail-content,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.category-section {
  max-width: none;
  background: rgba(255, 255, 255, 0.62);
}

.category-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading.centered {
  text-align: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.section-heading span {
  display: block;
  margin-bottom: 6px;
  color: #db2777;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a {
  min-width: max-content;
  color: #db2777;
  font-weight: 900;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-detail-grid,
.compact-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

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

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

.movie-card-normal,
.movie-card-large,
.movie-card-small {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(67, 56, 202, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #eef2ff);
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  font-size: 13px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 18px;
}

.card-title,
.compact-title,
.rank-title {
  display: block;
  color: #111827;
  font-weight: 900;
  line-height: 1.3;
}

.card-title {
  font-size: 18px;
}

.card-desc {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta,
.card-foot,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.rank-meta strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.12);
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
  font-weight: 900;
}

.card-foot a,
.rating {
  color: #db2777;
}

.movie-card-small .card-title {
  font-size: 15px;
}

.movie-card-small .card-body {
  padding: 14px;
}

.movie-card-small .card-desc {
  display: none;
}

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  border-radius: 28px;
  background: var(--tile-gradient);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

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

.tile-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 24%, rgba(17, 24, 39, 0.58));
}

.category-tile strong {
  font-size: 26px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.compact-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(67, 56, 202, 0.1);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

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

.compact-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.compact-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.compact-card span {
  color: #db2777;
  font-size: 12px;
  font-weight: 900;
}

.warm-section {
  background: rgba(255, 249, 237, 0.54);
  border-radius: 40px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--hero-gradient, linear-gradient(135deg, #db2777, #7c3aed, #2563eb));
}

.sub-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 24px 84px;
}

.sub-hero h1 {
  max-width: 820px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.filter-panel {
  padding-top: 34px;
  padding-bottom: 0;
}

.filter-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.filter-field {
  display: grid;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  outline: 0;
  color: #111827;
  background: #fff;
  padding: 0 14px;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(236, 72, 153, 0.58);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

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

.category-detail-card a {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.category-detail-card span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 18px;
}

.category-detail-card h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
}

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

.rank-poster span {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-title {
  font-size: 24px;
}

.rank-info p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.rank-watch {
  padding: 12px 20px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}

.detail-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

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

.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

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

.player-section {
  padding-top: 44px;
  padding-bottom: 28px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  background: #030712;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030712;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.22), rgba(3, 7, 18, 0.72));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding-top: 34px;
}

.detail-main,
.detail-side {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.detail-main {
  padding: 34px;
}

.detail-side {
  padding: 24px;
  align-self: start;
}

.detail-section + .detail-section {
  margin-top: 34px;
}

.detail-section h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.movie-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.movie-info-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.07);
}

.movie-info-list dt {
  color: #7c3aed;
  font-weight: 900;
}

.movie-info-list dd {
  margin: 6px 0 0;
  color: #111827;
}

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

.related-section {
  padding-top: 20px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(236, 72, 153, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.7fr));
  gap: 32px;
}

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

.footer-column h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-column a:hover {
  color: #db2777;
}

.footer-bottom {
  padding: 18px 24px 26px;
  color: #6b7280;
  text-align: center;
}

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

@media (max-width: 1100px) {
  .featured-grid,
  .compact-grid,
  .category-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 52px;
  }

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

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

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

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

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

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

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

  .rank-watch {
    grid-column: 1 / -1;
    text-align: center;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .section-wrap,
  .category-section,
  .filter-panel,
  .detail-content,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner,
  .sub-hero > div,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .sub-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

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

  .hero-search input {
    min-height: 46px;
  }

  .featured-grid,
  .movie-grid,
  .catalog-grid,
  .small-grid,
  .category-grid,
  .category-detail-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .movie-player {
    border-radius: 22px;
  }
}
