:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #7c3aed;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --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: linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--purple));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
  background: #fdf2f8;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 30vw);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.header-search button,
.hero-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.22);
}

.header-search button {
  height: 36px;
  padding: 0 16px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fdf2f8;
  cursor: pointer;
}

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

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

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-stage {
  position: relative;
  height: 620px;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 26%, rgba(236, 72, 153, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 46%, rgba(17, 24, 39, 0.20) 100%),
    linear-gradient(180deg, transparent 68%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 40px;
}

.hero-kicker,
.sub-hero span,
.section-heading span,
.rank-head span,
.category-card span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: #fee2e2;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  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;
}

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

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

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(17, 24, 39, 0.28);
  border-radius: 50%;
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-search-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 16px;
  margin-top: -90px;
  padding-bottom: 20px;
}

.hero-search {
  display: flex;
  gap: 10px;
  width: min(780px, 100%);
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 52px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: #fff7fb;
  border-radius: 20px;
}

.hero-search button {
  min-width: 120px;
  padding: 0 22px;
}

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

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(229, 231, 235, 0.78);
  padding: 8px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.hero-dot.is-active {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.36);
  background: #fff1f2;
}

.hero-dot img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 800;
}

.page-section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(90deg, #fff7ed, #fdf2f8);
}

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

.section-heading h2,
.rank-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--pink);
  font-weight: 900;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(236, 72, 153, 0.32);
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

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

.movie-card:not(.movie-card-compact) .movie-poster {
  aspect-ratio: 4 / 5;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info h3 a:hover {
  color: var(--pink);
}

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

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

.movie-meta span {
  max-width: 34%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
}

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

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

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 0 18px;
}

.category-tile span {
  margin-top: auto;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  padding-bottom: 18px;
  color: #ffe4e6;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.content-card {
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel ol,
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rank-panel li:last-child a {
  border-bottom: 0;
}

.rank-panel b,
.ranking-row b {
  color: var(--rose);
  font-size: 18px;
}

.rank-panel span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-panel em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.sub-hero {
  padding: 90px 0 76px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.38), transparent 32%),
    linear-gradient(135deg, #111827 0%, #4c1d95 45%, #9f1239 100%);
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.sub-hero p {
  max-width: 700px;
  margin: 0;
  color: #fee2e2;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  outline: 0;
  color: #374151;
  background: #ffffff;
  border-radius: 16px;
  padding: 0 14px;
}

.filter-bar button {
  height: 44px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #f9a8d4;
  border-radius: 24px;
  background: #fff7fb;
}

.empty-state.is-visible {
  display: block;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.ranking-list {
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 52px 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.ranking-row:last-child a {
  border-bottom: 0;
}

.ranking-row img {
  width: 78px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row strong,
.ranking-row em {
  display: block;
}

.ranking-row strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.ranking-row em,
.ranking-row i {
  color: var(--muted);
  font-style: normal;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(4px) saturate(1.15);
  transform: scale(1.06);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(236, 72, 153, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.70));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 66px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: #fecdd3;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fee2e2;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 26px;
  color: #fce7f3;
}

.detail-meta span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.34), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.78));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-overlay button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(244, 63, 94, 0.42);
}

.player-overlay span {
  transform: translateX(3px);
  font-size: 30px;
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 36px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.detail-section {
  padding-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  line-height: 1.6;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #4c0519);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 360px;
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-card.is-hidden {
  display: none;
}

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

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

  .home-split,
  .ranking-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

  .hero-stage {
    height: 610px;
  }

  .hero-control {
    display: none;
  }

  .hero-search-wrap {
    margin-top: -70px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .hero-dot:not(.is-active) {
    display: none;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    height: 48px;
  }

  .section-heading,
  .detail-intro {
    display: block;
  }

  .detail-poster {
    max-width: 240px;
    margin-bottom: 24px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    display: none;
  }

  .hero-stage {
    height: 560px;
  }

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

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

  .movie-grid,
  .catalog-grid,
  .small-grid,
  .side-grid,
  .poster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

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

  .ranking-row a {
    grid-template-columns: 38px 62px minmax(0, 1fr);
  }

  .ranking-row i {
    display: none;
  }

  .ranking-row img {
    width: 62px;
    height: 82px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .content-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .catalog-grid,
  .small-grid,
  .side-grid,
  .poster-row {
    grid-template-columns: 1fr;
  }
}
