:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 48px rgba(244, 63, 94, 0.14);
  --shadow-card: 0 14px 36px rgba(17, 24, 39, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 34%, #fff8f1 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 100;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.92), rgba(253, 242, 248, 0.92), rgba(255, 247, 237, 0.92));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
  font-size: 15px;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  padding: 8px 0;
  transition: color 0.25s ease;
}

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

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

.nav-search input,
.mobile-search input,
.catalog-tools input,
.catalog-tools select,
.hero-search-card input {
  border: 1px solid rgba(244, 63, 94, 0.2);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  outline: none;
  color: var(--gray-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 15px;
}

.nav-search input:focus,
.mobile-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus,
.hero-search-card input:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search button,
.mobile-search button,
.catalog-tools button,
.hero-search-card button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.catalog-tools button,
.hero-search-card button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.25);
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
}

.nav-search button:hover,
.mobile-search button:hover,
.catalog-tools button:hover,
.hero-search-card button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--rose-600);
  background: rgba(244, 63, 94, 0.08);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

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

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.hero-track,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 24%, rgba(244, 63, 94, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.66) 40%, rgba(17, 24, 39, 0.25) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 130px 24px 190px;
  margin: 0 auto;
  transform: translateX(-260px);
}

.hero-kicker,
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffe4e6;
}

.hero-content h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.hero-channel-links,
.detail-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 138px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

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

.hero-search-card {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  width: min(1120px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.hero-search-card form {
  display: flex;
  gap: 12px;
}

.hero-search-card input {
  flex: 1;
  padding: 15px 18px;
}

.hero-search-card button {
  padding: 0 24px;
}

.hero-channel-links {
  margin-top: 14px;
}

.hero-channel-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  background: rgba(244, 63, 94, 0.08);
  font-weight: 700;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.soft-section {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.84), rgba(255, 247, 237, 0.84));
}

.inner-section {
  padding-top: 52px;
  padding-bottom: 52px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--gray-900);
}

.section-heading a {
  color: var(--rose-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(244, 63, 94, 0.18);
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffedd5);
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 14px;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 14px;
  padding: 6px 10px;
  background: rgba(244, 63, 94, 0.9);
}

.poster-score {
  right: 14px;
  padding: 6px 9px;
  background: rgba(17, 24, 39, 0.72);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 850;
  color: var(--gray-900);
}

.movie-card-body h3 a:hover {
  color: var(--rose-600);
}

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

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.movie-meta span {
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.1);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.45s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.1));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-top: 72px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

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

.rank-panel {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rank-panel-head span {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
}

.rank-panel-head a {
  color: var(--rose-600);
  font-weight: 800;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr);
  grid-template-areas:
    "num img title"
    "num img genre";
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
}

.rank-number {
  grid-area: num;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  border-radius: 10px;
  font-weight: 900;
}

.rank-row img {
  grid-area: img;
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  grid-area: title;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-900);
  font-weight: 800;
}

.rank-genre {
  grid-area: genre;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-500);
  font-size: 13px;
}

.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(249, 115, 22, 0.48), transparent 28%),
    linear-gradient(135deg, #881337 0%, #be123c 42%, #f97316 100%);
}

.compact-hero {
  padding: 78px 24px;
}

.page-hero > div,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 860px;
  margin: 10px 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 950;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero .eyebrow {
  color: #ffe4e6;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 180px auto;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.catalog-tools label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-weight: 800;
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  padding: 12px 14px;
}

.catalog-tools button {
  align-self: end;
  min-height: 48px;
  padding: 0 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(244, 63, 94, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 0.75;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 8px 0 8px;
  font-size: 26px;
  font-weight: 900;
  color: var(--gray-900);
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--gray-500);
}

.category-overview-card span {
  color: var(--rose-600);
  font-weight: 900;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
}

.ranking-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-weight: 900;
}

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

.ranking-item h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 900;
}

.ranking-item h2 a:hover {
  color: var(--rose-600);
}

.ranking-item p {
  margin: 0 0 14px;
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-shade {
  background:
    radial-gradient(circle at 72% 24%, rgba(249, 115, 22, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62));
}

.detail-shell {
  position: relative;
  z-index: 2;
  padding: 48px 24px 58px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  max-width: 880px;
  margin: 12px 0 12px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.78);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-content {
  padding-top: 46px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #050505;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.2), transparent 36%),
    rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  box-shadow: 0 18px 48px rgba(244, 63, 94, 0.32);
  font-size: 32px;
}

.play-overlay strong {
  font-size: 22px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.detail-text-block {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-text-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
  color: var(--gray-900);
}

.detail-text-block p {
  margin: 0;
  color: var(--gray-700);
}

.detail-neighbors {
  justify-content: space-between;
  margin-top: 24px;
}

.detail-neighbors a {
  flex: 1 1 260px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  color: var(--rose-600);
  background: rgba(244, 63, 94, 0.08);
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(244, 63, 94, 0.1);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--gray-700);
  font-weight: 800;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  color: var(--gray-500);
  font-size: 14px;
}

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

  .hero-content {
    transform: none;
    max-width: 960px;
  }

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    height: 66px;
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 96px 22px 280px;
  }

  .hero-search-card form,
  .catalog-tools,
  .footer-shell,
  .detail-text,
  .detail-grid,
  .category-overview-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .hero-search-card form {
    display: grid;
  }

  .hero-search-card button,
  .catalog-tools button {
    min-height: 48px;
  }

  .hero-dots {
    bottom: 218px;
  }

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

  .content-section {
    padding: 46px 18px;
  }

  .compact-hero {
    padding: 56px 18px;
  }

  .detail-shell {
    padding: 36px 18px 46px;
  }

  .detail-poster {
    max-width: 300px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

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

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-search-card {
    width: calc(100% - 28px);
    padding: 16px;
    border-radius: 22px;
  }

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

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

  .ranking-cover {
    aspect-ratio: 16 / 10;
  }

  .player-card {
    border-radius: 18px;
  }
}
