:root {
  --marshmallow-pink: #ffb6c1;
  --marshmallow-blue: #87ceeb;
  --marshmallow-mint: #98d8c8;
  --marshmallow-peach: #ffdab9;
  --marshmallow-cream: #fff8dc;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.09);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-soft-lg: 0 4px 25px rgba(0, 0, 0, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 182, 193, 0.24), transparent 36rem),
    radial-gradient(circle at top right, rgba(135, 206, 235, 0.24), transparent 34rem),
    linear-gradient(135deg, rgba(255, 248, 220, 0.78), rgba(255, 255, 255, 0.96) 42%, rgba(152, 216, 200, 0.16));
  min-height: 100vh;
}

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;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
  box-shadow: 0 12px 30px rgba(255, 182, 193, 0.42);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  padding: 9px 13px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #e85d75;
  background: rgba(255, 182, 193, 0.16);
}

.nav-link:hover,
.mobile-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.header-search input,
.mobile-search input,
.catalog-search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  width: 170px;
  padding-left: 10px;
}

.header-search button,
.mobile-search button,
.clear-search {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--marshmallow-pink), #f59eb0);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 10px 24px rgba(255, 182, 193, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 182, 193, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(71, 85, 105, 0.72));
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.66s ease;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.22);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.32) 52%, rgba(17, 24, 39, 0.72)),
    radial-gradient(circle at 75% 24%, rgba(255, 182, 193, 0.36), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(135, 206, 235, 0.28), transparent 30rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 44px;
  align-items: center;
  padding: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #e85d75;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #6b3f4b;
  font-size: 12px;
  font-weight: 750;
  background: rgba(255, 218, 185, 0.78);
}

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

.primary-button,
.secondary-button,
.text-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--marshmallow-pink), #f472b6);
  box-shadow: 0 18px 36px rgba(244, 114, 182, 0.32);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.text-button {
  min-height: 44px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.88);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster span,
.detail-poster span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-prev,
.hero-next {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto;
}

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

.section-heading p {
  margin: 0 0 6px;
  color: #e85d75;
  font-size: 14px;
  font-weight: 850;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.035em;
}

.section-more {
  color: #e85d75;
  font-weight: 800;
}

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

.category-tile,
.category-card-large,
.text-card,
.player-card,
.sticky-box {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 850;
}

.category-tile p,
.category-card-large p,
.text-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(135, 206, 235, 0.2));
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(17, 24, 39, 0.72));
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge {
  left: 10px;
  top: 10px;
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  font-size: 14px;
}

.card-content {
  padding: 15px;
}

.card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-meta a,
.ranking-meta a {
  color: #e85d75;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.36;
}

.movie-card h2 a:hover,
.ranking-row h2 a:hover,
.category-card-large h2 a:hover {
  color: #e85d75;
}

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

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

.movie-card-compact .card-cover img {
  aspect-ratio: 16 / 10;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.home-ranking {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 220, 0.62));
  box-shadow: var(--shadow-soft);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

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

.mini-ranking .ghost-link {
  display: none;
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--marshmallow-pink), #f472b6);
}

.ranking-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ranking-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.ghost-link {
  min-height: 40px;
  padding: 0 15px;
  color: #e85d75;
  background: rgba(255, 182, 193, 0.16);
}

.page-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 182, 193, 0.34), transparent 24rem),
    radial-gradient(circle at 88% 32%, rgba(135, 206, 235, 0.34), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 220, 0.78));
  box-shadow: var(--shadow-soft-lg);
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 66px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a:hover {
  color: #e85d75;
}

.catalog-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.catalog-search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.catalog-search-box input {
  flex: 1;
  min-height: 42px;
}

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

.filter-chip {
  border: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 750;
  background: rgba(152, 216, 200, 0.18);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--marshmallow-pink), var(--marshmallow-blue));
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.small-button {
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
}

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

.detail-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.24);
  transform: scale(1.08);
  opacity: 0.36;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 182, 193, 0.28), transparent 28rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 54px;
}

.detail-crumbs {
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  max-width: 780px;
  font-size: clamp(34px, 5.2vw, 68px);
}

.detail-copy .lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.78;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.detail-meta b {
  color: var(--marshmallow-peach);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.player-card,
.text-card,
.sticky-box {
  padding: 22px;
  border-radius: 28px;
}

.player-card h2,
.text-card h2,
.sticky-box h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(255, 182, 193, 0.18), rgba(15, 23, 42, 0.42));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--marshmallow-pink), #f472b6);
  box-shadow: 0 20px 50px rgba(244, 114, 182, 0.42);
}

.play-button span {
  transform: translateX(3px);
}

.movie-text p {
  font-size: 16px;
}

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

.sticky-box {
  position: sticky;
  top: 104px;
}

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

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

.side-related .card-content {
  padding: 12px;
}

.side-related .card-cover img {
  height: 100%;
  aspect-ratio: auto;
}

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

.inline-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-link-cloud a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #e85d75;
  font-weight: 750;
  background: rgba(255, 182, 193, 0.14);
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 20px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, #111827, #243047);
}

.footer-inner,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 44px;
}

.brand-footer {
  color: #fff;
}

.footer-brand p {
  max-width: 460px;
  line-height: 1.8;
}

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

.footer-columns h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.footer-columns a {
  display: block;
  margin: 8px 0;
}

.footer-columns a:hover {
  color: var(--marshmallow-pink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 48px;
  }

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

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

  .sticky-box {
    position: static;
  }
}

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

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

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

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

  .hero-poster {
    width: min(260px, 80vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-controls {
    right: 50%;
    transform: translateX(50%);
  }

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

  .category-grid,
  .category-large-grid,
  .text-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(260px, 72vw);
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero {
    width: min(100% - 20px, 1180px);
    margin-top: 14px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .content-section,
  .page-hero,
  .detail-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 20px, 1180px);
  }

  .page-hero,
  .player-card,
  .text-card,
  .sticky-box {
    border-radius: 22px;
  }

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

  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .card-content {
    padding: 12px;
  }

  .category-card-large,
  .ranking-row,
  .side-related .movie-card {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    align-items: start;
  }

  .ghost-link {
    width: max-content;
  }

  .catalog-search-box {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .clear-search {
    width: 100%;
  }
}
