* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --faint: #94a3b8;
  --yellow: #facc15;
  --yellow-strong: #eab308;
  --purple: #581c87;
  --pink: #be185d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(147, 51, 234, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 6%, rgba(219, 39, 119, 0.18), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #111827 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(88, 28, 135, 0.96), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.05);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde047, #fff7ad);
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.site-nav > a {
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--yellow);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
}

.nav-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #94a3b8;
}

.nav-search button,
.hero-search button,
.filter-panel button {
  border: 0;
  cursor: pointer;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, #fde047, #eab308);
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 9px 16px;
}

.nav-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(250, 204, 21, 0.25);
}

.menu-toggle {
  display: none;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay-bottom {
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.78) 40%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-overlay-side {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.56) 42%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.75);
}

.hero h1 {
  margin: 18px 0 20px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.hero-meta span,
.detail-meta span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  color: #111827;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.92);
}

.detail-meta span {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-btn,
.secondary-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-btn {
  color: #111827;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #eab308);
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn {
  min-height: 48px;
  color: #2e1065;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  z-index: 5;
}

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

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

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -32px;
  position: relative;
  z-index: 8;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.6), rgba(190, 24, 93, 0.36));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-band h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-search {
  display: flex;
  gap: 10px;
}

.hero-search input {
  flex: 1;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
}

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

.content-section {
  padding-top: 70px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2,
.tag-cloud h2,
.related-panel h2,
.story-panel h2,
.player-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.section-more,
.text-link {
  color: var(--yellow);
}

.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.rail .movie-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

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

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

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

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

.poster-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.poster-card img,
.category-tile img,
.detail-poster img,
.horizontal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster-card:hover img,
.category-tile:hover img,
.horizontal-cover:hover img {
  transform: scale(1.1);
}

.poster-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.86));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  font-size: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

.poster-card:hover .play-circle,
.horizontal-cover:hover .play-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.score-badge,
.type-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  right: 12px;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
}

.type-badge {
  left: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.poster-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
}

.poster-text strong,
.poster-text em {
  display: block;
}

.poster-text strong {
  font-size: 18px;
  line-height: 1.25;
}

.poster-text em {
  color: #cbd5e1;
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
}

.card-body {
  padding: 14px 4px 0;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.card-body h3 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover {
  color: var(--yellow);
}

.card-body p,
.horizontal-info p,
.story-panel p,
.player-panel p,
.category-overview-head p,
.cta-panel p,
.page-hero p,
.detail-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.card-body p {
  margin: 0 0 12px;
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.11);
  border: 1px solid rgba(250, 204, 21, 0.24);
  font-size: 12px;
  padding: 6px 10px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.82), rgba(190, 24, 93, 0.78));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 62px;
  font-size: 24px;
}

.category-tile em {
  bottom: 18px;
  color: #e2e8f0;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

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

.rank-list,
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.rank-list li,
.ranking-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-num,
.ranking-index {
  color: var(--yellow);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  padding: 0;
}

.horizontal-cover {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.horizontal-info {
  min-width: 0;
  padding: 4px 0;
}

.card-title {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title:hover {
  color: var(--yellow);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--faint);
  font-size: 13px;
}

.tag-cloud {
  position: sticky;
  top: 100px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.tag-cloud a {
  display: inline-flex;
  margin: 9px 8px 0 0;
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-cloud a:hover {
  color: #111827;
  background: var(--yellow);
  transform: translateY(-2px);
}

.cta-panel {
  margin-top: 80px;
  padding: 48px;
  text-align: center;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.55), rgba(190, 24, 93, 0.42));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 16px 0;
  font-size: clamp(28px, 4vw, 48px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 74px;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(88, 28, 135, 0.66), rgba(15, 23, 42, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-hero h1,
.category-hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 58px);
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.hero-search input:focus {
  border-color: rgba(250, 204, 21, 0.8);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
}

.filter-panel button {
  min-height: 48px;
  padding: 0 20px;
}

.category-overview-list {
  display: grid;
  gap: 22px;
  padding-top: 64px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.category-overview-head h2 {
  margin: 12px 0;
  font-size: 32px;
}

.category-overview-head h2 a:hover {
  color: var(--yellow);
}

.overview-samples {
  display: grid;
  gap: 16px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.05);
  opacity: 0.7;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.5));
}

.detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 60px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 760px;
  font-size: 19px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
  padding-top: 70px;
}

.detail-main {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.player-panel,
.story-panel,
.related-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  font-size: 32px;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #eab308);
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.28);
}

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

.player-panel h2 {
  margin-top: 22px;
}

.story-panel h2 + p {
  margin-top: 12px;
}

.related-panel {
  position: sticky;
  top: 100px;
}

.related-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.ranking-list .movie-card-horizontal {
  width: 100%;
}

.site-footer {
  margin-top: 90px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), #020617 44%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 34px;
  padding: 54px 0 30px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
}

.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  background: var(--yellow);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.back-top.is-visible {
  display: block;
}

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

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

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

  .tag-cloud,
  .related-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    min-height: 640px;
  }

  .search-band,
  .detail-head,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-head {
    gap: 28px;
  }

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

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

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 84px;
  }

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

  .hero-search {
    flex-direction: column;
  }

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

  .poster-text {
    padding: 14px;
  }

  .poster-text strong,
  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    display: none;
  }

  .category-tile {
    min-height: 160px;
  }

  .rank-list li,
  .ranking-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .movie-card-horizontal {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .horizontal-cover {
    min-height: 82px;
  }

  .horizontal-info p {
    display: none;
  }

  .rank-num,
  .ranking-index {
    font-size: 26px;
  }

  .cta-panel,
  .player-panel,
  .story-panel,
  .related-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-head {
    padding: 38px 0;
  }

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

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