:root {
  --rose: #fb7185;
  --rose-deep: #f43f5e;
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --pink: #f472b6;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.14);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--rose), var(--pink), var(--teal));
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.desktop-nav a,
.mobile-nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--rose-deep);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.12);
}

.nav-search input {
  width: 150px;
  border: 0;
  outline: 0;
  padding: 8px 6px 8px 14px;
  color: var(--ink);
}

.nav-search button,
.hero-search button,
.primary-btn {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rose), var(--teal));
  box-shadow: 0 14px 28px rgba(45, 212, 191, 0.24);
}

.nav-search button {
  padding: 8px 14px;
}

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

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

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7f9;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(circle at 14% 22%, rgba(251, 113, 133, 0.28), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(45, 212, 191, 0.30), transparent 32%),
    linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #ccfbf1 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-orb-one {
  width: 320px;
  height: 320px;
  left: 4%;
  top: 8%;
  background: #fda4af;
}

.hero-orb-two {
  width: 430px;
  height: 430px;
  right: 2%;
  bottom: -8%;
  background: #5eead4;
}

.hero-shell,
.section-block,
.detail-shell,
.text-page,
.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding-top: 58px;
  padding-bottom: 56px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 45%);
  gap: 36px;
  align-items: center;
  min-height: 460px;
  padding: 46px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  max-width: 700px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.08em;
  background: linear-gradient(120deg, var(--rose-deep), var(--pink), var(--teal-deep));
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-desc {
  max-width: 640px;
  margin: 0;
  color: #374151;
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.detail-tags a,
.detail-tag-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.ghost-btn {
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.hero-art {
  position: relative;
  height: 390px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.26);
  background: #111827;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-art-shade,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.78));
}

.hero-art-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero-controls {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--rose-deep);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  font-size: 22px;
  font-weight: 900;
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: #fecdd3 !important;
  box-shadow: none !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: linear-gradient(90deg, var(--rose), var(--teal)) !important;
}

.hero-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 20px;
}

.hero-search,
.hero-category-strip {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(14px);
}

.hero-search label {
  display: block;
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 12px;
}

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

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
}

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

.hero-category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-category-strip a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-weight: 800;
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-head h2,
.page-hero h1,
.text-page h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.06em;
  color: var(--ink);
}

.section-head p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: var(--rose-deep);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.movie-card-link {
  display: grid;
  height: 100%;
}

.movie-poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  right: 12px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(120deg, var(--rose), var(--teal));
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

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

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  font-size: 12px;
  padding: 3px 9px;
  min-height: 24px;
}

.feature-grid .movie-card:nth-child(-n+3) {
  grid-column: span 1;
}

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

.category-tile,
.category-card a {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius-md);
  background: #111827;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile img,
.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile::after,
.category-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.category-tile span,
.category-card-body {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
}

.category-tile strong,
.category-card-body h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile em,
.category-card-body p {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.category-thumbs {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 22px;
  overflow-x: auto;
  padding: 2px 2px 20px;
  scroll-snap-type: x proximity;
}

.movie-row .movie-card {
  scroll-snap-align: start;
}

.rose-block {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(120deg, rgba(255, 241, 242, 0.86), rgba(240, 253, 250, 0.76));
}

.latest-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 253, 250, 0.54));
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

.small-hero {
  display: block;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 44px;
}

.small-hero p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.category-hero {
  min-height: 360px;
}

.page-hero-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-hero-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.filter-panel {
  max-width: 1280px;
  margin: 0 auto 8px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-head h2 {
  font-size: 28px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus,
.hero-search input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
}

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

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

.detail-shell {
  padding-top: 36px;
  padding-bottom: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--rose-deep);
  font-weight: 800;
}

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

.detail-main,
.detail-side,
.detail-info-card {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.70));
}

.player-cover[hidden] {
  display: none;
}

.player-cover span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 7px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-cover:hover span {
  transform: scale(1.08);
}

.detail-info-card,
.detail-side,
.text-page article {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
}

.detail-info-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #64748b;
  font-weight: 700;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
}

.lead-text {
  color: #334155;
  font-size: 20px;
  line-height: 1.8;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff1f2, #f0fdfa);
}

.detail-info-card h2,
.detail-side h2,
.text-page h3 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-info-card p,
.text-page p {
  color: #475569;
  line-height: 1.95;
  font-size: 16px;
}

.detail-tag-links a {
  color: var(--rose-deep);
  background: #fff1f2;
  border-color: #fecdd3;
}

.detail-side {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

.side-list {
  display: grid;
  gap: 16px;
}

.side-list a {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 108px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.side-list strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.45;
}

.side-list em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.side-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding: 13px 16px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--rose), var(--teal));
}

.related-section {
  padding-top: 20px;
}

.text-page {
  padding-top: 24px;
  padding-bottom: 72px;
}

.text-page article + article {
  margin-top: 24px;
}

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

.idea-grid section {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #f0fdfa);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid #e2e8f0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: #64748b;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-grid section:nth-child(n+2) {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid a:not(.footer-brand) {
  color: #64748b;
  font-weight: 700;
}

.footer-bottom {
  padding: 18px 24px 28px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--rose), var(--teal));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
}

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

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

  .hero-slide,
  .page-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 780px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

  .hero-shell,
  .section-block,
  .detail-shell,
  .text-page,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide {
    padding: 28px 18px 74px;
    min-height: auto;
  }

  .hero-art {
    height: 260px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
  }

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

  .hero-search button {
    min-height: 44px;
  }

  .section-head {
    display: block;
  }

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

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

  .movie-card-body strong {
    font-size: 16px;
  }

  .detail-info-card,
  .detail-side,
  .text-page article {
    padding: 20px;
  }

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

  .player-cover span {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .dense-grid,
  .category-grid,
  .category-page-grid,
  .idea-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-desc,
  .lead-text {
    font-size: 17px;
  }

  .movie-row {
    grid-auto-columns: 82vw;
  }

  .side-list a {
    grid-template-columns: 92px 1fr;
  }

  .side-list img {
    width: 92px;
    height: 66px;
  }
}
