:root {
  --blue: #2563eb;
  --cyan: #0891b2;
  --teal: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, var(--slate-100));
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(8, 145, 178, 0.18));
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.25);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text {
  font-size: 1.35rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.search-open {
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  opacity: 0.96;
  padding: 8px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.search-open:hover,
.nav-link.is-active {
  color: #dffbff;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(110deg, #2563eb 0%, #0891b2 52%, #0d9488 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.92));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.42);
}

.hero-glow-left {
  left: -120px;
  top: -160px;
}

.hero-glow-right {
  right: -100px;
  bottom: -140px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 74px;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.62fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #dffbff;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(240, 249, 255, 0.92);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-light {
  color: var(--cyan);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.32);
}

.hero-poster img {
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  transition: transform 0.65s ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, 0.86));
}

.hero-poster-info {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-poster-info strong {
  font-size: 1.35rem;
}

.hero-poster-info em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cats a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--white);
  font-weight: 750;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cats a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

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

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

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

.tinted-section {
  margin-top: 10px;
  margin-bottom: 24px;
  padding: 34px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
}

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

.section-kicker {
  color: var(--cyan);
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.section-desc {
  max-width: 780px;
  margin: -8px 0 24px;
  color: var(--slate-600);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-200);
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.82));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.badge {
  position: absolute;
  z-index: 1;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-region {
  top: 10px;
  right: 10px;
  background: var(--cyan);
}

.badge-year {
  left: 10px;
  bottom: 10px;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(12px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.card-body strong {
  min-height: 3em;
  color: var(--slate-800);
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--cyan);
}

.card-desc {
  min-height: 2.7em;
  color: var(--slate-600);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.rank-section {
  padding-top: 18px;
}

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

.compact-link {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: 14px;
  padding: 10px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.compact-link img {
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-link span:last-child {
  min-width: 0;
}

.compact-link strong,
.compact-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link strong {
  color: var(--slate-800);
  font-size: 0.95rem;
}

.compact-link em {
  color: var(--slate-500);
  font-size: 0.78rem;
  font-style: normal;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero {
  color: var(--white);
  background: linear-gradient(110deg, var(--blue), var(--cyan), var(--teal));
}

.slim-hero {
  padding: 56px 0;
}

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

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

.category-tile {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  height: 160px;
  overflow: hidden;
  background: var(--slate-100);
}

.category-thumb-grid img {
  height: 100%;
  object-fit: cover;
}

.category-content {
  display: block;
  padding: 18px;
}

.category-content strong {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-800);
  font-size: 1.25rem;
}

.category-content em {
  color: var(--slate-600);
  font-style: normal;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar a,
.search-inline {
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--cyan);
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.ranking-row img {
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main strong {
  color: var(--slate-800);
  font-size: 1.05rem;
}

.ranking-main em,
.ranking-side {
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.9rem;
}

.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 24px;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: start;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.detail-heading {
  padding: 24px 0 18px;
}

.detail-heading h1 {
  margin: 0 0 14px;
  color: var(--slate-800);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--slate-600);
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.story-card,
.tag-card {
  margin-bottom: 18px;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.gradient-card {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
}

.story-card h2,
.tag-card h2,
.side-box h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 1.28rem;
}

.story-card p {
  margin: 0;
  color: var(--slate-700);
}

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

.lead-text {
  font-size: 1.05rem;
  font-weight: 700;
}

.tag-card .tag-list {
  margin-top: 0;
}

.tag-card .tag-list span {
  background: var(--slate-50);
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-box {
  border-radius: var(--radius-xl);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-list .compact-link {
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 0;
  box-shadow: none;
}

.side-list .compact-link img {
  height: 96px;
}

.side-list .rank-no {
  display: none;
}

.related-section {
  width: 100%;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 84px 16px 24px;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(10px);
}

.search-panel[hidden] {
  display: none;
}

.search-panel-inner {
  position: relative;
  width: min(760px, 100%);
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.35);
}

.search-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  cursor: pointer;
  font-size: 1.35rem;
}

.search-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-800);
  font-weight: 800;
}

.search-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
}

.search-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.search-results {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
  margin-top: 16px;
}

.search-result-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: var(--slate-50);
}

.search-result-link img {
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-link strong,
.search-result-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-link em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.86rem;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0 34px;
}

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

.footer-block h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 1.05rem;
}

.footer-block p,
.footer-block a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-block li + li {
  margin-top: 8px;
}

.footer-block a:hover {
  color: #67e8f9;
}

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 16px;
  color: #94a3b8;
  text-align: center;
  font-size: 0.88rem;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: var(--shadow);
  }

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

  .nav-link,
  .search-open {
    padding: 11px 10px;
    text-align: left;
  }

  .hero-shell {
    padding: 44px 0 58px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 340px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 620px) {
  .brand-text {
    font-size: 1.05rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .content-section {
    padding: 38px 0;
  }

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

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

  .rank-board,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-side {
    display: none;
  }

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

  .tinted-section {
    padding: 24px 16px;
  }
}
