:root {
  --cake-rose: #fff1f7;
  --cake-strawberry: #ff7aa8;
  --cake-coral: #ff8b7b;
  --bow-hotpink: #ec4899;
  --ink: #26233a;
  --muted: #6b6478;
  --line: rgba(236, 72, 153, 0.16);
  --card: rgba(255, 255, 255, 0.88);
  --glass: rgba(255, 255, 255, 0.74);
  --shadow-cake: 0 18px 45px rgba(236, 72, 153, 0.14);
  --shadow-hover: 0 24px 70px rgba(236, 72, 153, 0.24);
  --radius: 28px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 122, 168, 0.24), transparent 28rem),
    radial-gradient(circle at 95% 8%, rgba(255, 196, 219, 0.32), transparent 24rem),
    linear-gradient(180deg, #fff8fb 0%, #fff 46%, #fff6fb 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: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.34);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong,
.gradient-text,
.section-heading h2,
.footer-brand {
  background: linear-gradient(135deg, #ff5d9d, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--cake-coral);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #4b445d;
  font-weight: 700;
}

.main-nav a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown > button:hover {
  color: var(--bow-hotpink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-cake);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff7fb;
  font-size: 0.9rem;
}

.header-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-search input,
.search-panel input,
.large-search input,
.search-panel select {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search input {
  width: 220px;
  padding: 11px 16px;
}

.header-search button,
.large-search button,
.primary-btn,
.ghost-btn,
.search-panel select,
.filter-pills button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.large-search button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.primary-btn.small {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.header-search button:hover,
.large-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.filter-pills button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: #fff0f6;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--bow-hotpink);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #1f1723;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 118px max(28px, calc((100vw - var(--max)) / 2)) 96px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 9, 21, 0.92), rgba(67, 20, 55, 0.72), rgba(236, 72, 153, 0.2)),
    var(--hero-image) center / cover;
  filter: saturate(1.18);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 122, 168, 0.42), transparent 18rem),
    linear-gradient(0deg, rgba(20, 10, 24, 0.76), transparent 40%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #c026d3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.filter-pills,
.hero-actions,
.detail-meta,
.large-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-style: normal;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions {
  margin-top: 30px;
}

.hero-poster {
  display: block;
  overflow: hidden;
  min-height: 470px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4);
}

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

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--bow-hotpink);
  font-size: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, #fff, #ffbad4);
}

.intro-strip,
.page-main,
.section-block,
.section-split,
.site-footer,
.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
  margin-top: -58px;
  padding: 28px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-cake);
  backdrop-filter: blur(22px);
}

.intro-strip h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro-strip p,
.page-hero p,
.category-overview-head p,
.detail-copy p,
.detail-article p,
.site-footer p {
  color: var(--muted);
  line-height: 1.85;
}

.large-search,
.search-panel {
  display: flex;
  gap: 12px;
}

.large-search input,
.search-panel input {
  min-width: 0;
  flex: 1;
  padding: 15px 18px;
}

.section-block {
  margin-top: 62px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cake);
}

.compact-block {
  margin-top: 0;
}

.section-heading,
.category-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.035em;
}

.section-heading a,
.category-overview-head a {
  color: var(--bow-hotpink);
  font-weight: 900;
}

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(42, 32, 52, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fee7f1;
}

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

.movie-card-wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 150px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.44));
  opacity: 0.78;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--bow-hotpink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: 0.24s ease;
}

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

.card-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
}

.card-badge {
  left: 12px;
  top: 12px;
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
}

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

.card-body strong {
  min-height: 2.8em;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.4;
}

.card-body em,
.card-body small {
  color: var(--muted);
  font-style: normal;
}

.card-body small {
  min-height: 3.1em;
  line-height: 1.55;
}

.card-score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #f59e0b;
  font-weight: 900;
}

.card-score b {
  color: var(--muted);
  font-weight: 700;
}

.tag-row span {
  color: #a21caf;
  background: #fff0f7;
  border-color: var(--line);
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  border-radius: 24px;
  background: #3b1233;
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.16);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 12, 34, 0.12), rgba(26, 12, 34, 0.82)),
    var(--tile-image) center / cover;
  transition: transform 0.45s ease;
}

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

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 28px;
  margin-top: 62px;
}

.wide-list,
.ranking-list,
.category-overview-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-row:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-cake);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
}

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

.ranking-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-copy strong {
  font-size: 1.03rem;
}

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

.rank-score {
  color: #f59e0b;
  font-weight: 900;
}

.page-main {
  padding: 34px 0 72px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 54px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 238, 247, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cake);
}

.category-hero,
.ranking-hero {
  color: #fff;
  background: #29112e;
}

.category-hero::before,
.ranking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(28, 12, 36, 0.9), rgba(236, 72, 153, 0.36)),
    var(--page-image, linear-gradient(135deg, #3b1233, #ec4899)) center / cover;
}

.category-hero > *,
.ranking-hero > * {
  position: relative;
  z-index: 2;
}

.category-hero p,
.ranking-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.slim-hero p,
.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--bow-hotpink);
  font-weight: 800;
}

.category-overview-card {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cake);
}

.search-panel {
  max-width: 760px;
  margin-top: 26px;
}

.search-panel select {
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
}

.filter-pills {
  margin-top: 18px;
}

.filter-pills button {
  padding: 10px 15px;
  color: var(--bow-hotpink);
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
}

.filter-pills button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
}

.searchable-grid .movie-card.is-hidden {
  display: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  color: #fff;
  background: #29112e;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 8, 30, 0.96), rgba(23, 8, 30, 0.72), rgba(236, 72, 153, 0.22)),
    var(--page-image) center / cover;
  filter: saturate(1.1);
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 2;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.detail-meta {
  margin: 6px 0 18px;
}

.player-section {
  margin-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #09060b;
  box-shadow: 0 28px 80px rgba(26, 12, 34, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  pointer-events: auto;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--bow-hotpink);
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--bow-hotpink);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 50px rgba(236, 72, 153, 0.35);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cake);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.55rem;
}

.detail-article p {
  margin: 0 0 24px;
  font-size: 1.04rem;
}

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

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

.detail-side dd {
  margin: 0;
  color: var(--ink);
}

.site-footer {
  margin-top: 70px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--bow-hotpink);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

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

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-cake);
  }

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

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 96px;
  }

  .hero-poster {
    min-height: 280px;
    max-width: 360px;
  }

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

  .intro-strip,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .small-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p,
  .detail-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .large-search,
  .search-panel,
  .section-heading,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-block,
  .page-hero,
  .detail-hero,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .small-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-score {
    grid-column: 3;
  }
}
