:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbf7;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.18);
  --accent: #f97316;
  --accent-dark: #c2410c;
  --accent-soft: #ffedd5;
  --gold: #facc15;
  --shadow: 0 24px 60px rgba(124, 45, 18, 0.14);
  --shadow-soft: 0 14px 30px rgba(124, 45, 18, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ea580c 58%, #7c2d12);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.brand__text {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a,
.nav-dropdown > button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #7c2d12;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav > a:hover,
.nav-dropdown > button:hover {
  color: var(--accent-dark);
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #7c2d12;
}

.nav-dropdown__menu a:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--accent-dark);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 56px;
  border-radius: 38px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.48) 48%, rgba(17, 24, 39, 0.8)),
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.34), transparent 18rem);
}

.hero-orb {
  position: absolute;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.66;
  animation: blob 7s infinite;
}

.hero-orb--one {
  left: 8%;
  bottom: 8%;
  background: rgba(249, 115, 22, 0.62);
}

.hero-orb--two {
  right: 14%;
  top: 8%;
  background: rgba(250, 204, 21, 0.42);
  animation-delay: 2s;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 78px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

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

.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
}

.hero-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.1) contrast(1.08);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fed7aa;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.button--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.button--ghost-dark {
  color: var(--accent-dark);
  border-color: var(--line);
  background: #ffffff;
}

.hero-poster {
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 78px;
  bottom: 46px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.8rem;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.home-search,
.content-section,
.filter-panel,
.page-hero,
.split-section,
.category-block,
.detail-hero__inner,
.player-section,
.detail-content,
.ranking-layout {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.home-search h2,
.section-heading h2,
.filter-panel h2,
.page-hero h1,
.category-block h2,
.ranking-panel h2,
.detail-copy h1,
.prose-card h2,
.player-section h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.home-search__box {
  display: flex;
  gap: 12px;
}

.home-search__box input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.home-search__box input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.content-section {
  margin-top: 52px;
  margin-bottom: 52px;
}

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

.section-heading--compact {
  align-items: center;
}

.section-heading h2,
.category-block h2,
.filter-panel h2,
.player-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-more {
  color: var(--accent-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px rgba(124, 45, 18, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 24px 50px rgba(124, 45, 18, 0.16);
  transform: translateY(-6px);
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(124, 45, 18, 0.94)),
    radial-gradient(circle at 70% 20%, rgba(250, 204, 21, 0.5), transparent 10rem);
}

.poster-frame::after {
  content: attr(data-fallback-title);
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.poster-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.is-missing {
  opacity: 0;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.hero-poster:hover img {
  transform: scale(1.06);
}

.movie-card > .poster-frame {
  aspect-ratio: 2 / 2.8;
}

.movie-card--compact > .poster-frame {
  aspect-ratio: auto;
  min-height: 142px;
}

.poster-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(8px);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-card__meta a {
  color: var(--accent-dark);
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.04rem;
  line-height: 1.28;
}

.movie-card h3 a:hover {
  color: var(--accent-dark);
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  color: #9a3412;
  background: var(--accent-soft);
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #c2410c);
  box-shadow: var(--shadow-soft);
}

.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 42px 0 8px;
  font-size: 1.38rem;
}

.category-tile p,
.category-tile__count {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-tile__count {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 800;
}

.category-tile__image {
  position: absolute;
  right: -20px;
  bottom: -32px;
  width: 120px;
  height: 168px;
  border-radius: 18px;
  transform: rotate(8deg);
  opacity: 0.54;
}

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

.split-section .content-section {
  width: auto;
  margin: 0;
}

.ranking-panel,
.ranking-list,
.filter-panel,
.category-block,
.prose-card,
.player-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

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

.rank-row__num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #c2410c);
  font-weight: 900;
}

.rank-row__title {
  font-weight: 800;
}

.rank-row__meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-hero {
  margin-top: 28px;
  margin-bottom: 34px;
  padding: 56px;
  border-radius: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(124, 45, 18, 0.96), rgba(249, 115, 22, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.44), transparent 22rem);
  box-shadow: var(--shadow);
}

.page-hero--simple {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.88)),
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.5), transparent 22rem);
}

.page-hero .eyebrow {
  color: #fed7aa;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.page-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.filter-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-block {
  padding: 24px;
  margin-top: 24px;
}

.category-block p {
  max-width: 660px;
  color: var(--muted);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78), rgba(124, 45, 18, 0.82)),
    radial-gradient(circle at 80% 25%, rgba(249, 115, 22, 0.35), transparent 20rem);
}

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

.detail-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px) saturate(1.2);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  padding-bottom: 64px;
}

.breadcrumb,
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb:hover {
  color: #ffffff;
}

.detail-main {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-top: 34px;
}

.detail-poster {
  min-height: 440px;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.detail-meta {
  color: rgba(255, 255, 255, 0.76);
}

.tag-row--detail span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  margin-top: 42px;
  padding: 24px;
}

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

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

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.44);
  cursor: pointer;
}

.player-trigger.is-hidden {
  display: none;
}

.player-trigger__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4);
  font-size: 1.6rem;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.prose-card {
  padding: 28px;
}

.prose-card p {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 1.02rem;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 34px;
  margin-bottom: 56px;
}

.ranking-list {
  padding: 20px;
}

.rank-row--large {
  grid-template-columns: 42px 62px minmax(0, 1fr);
  padding: 12px 0;
}

.rank-row__poster {
  width: 62px;
  height: 82px;
  border-radius: 12px;
}

.rank-row__content {
  display: grid;
  gap: 3px;
}

.rank-row__content small {
  color: var(--muted);
}

.site-footer {
  margin-top: 68px;
  padding: 54px 0 24px;
  color: #fed7aa;
  background: #431407;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 32px;
}

.brand--footer .brand__mark {
  box-shadow: none;
}

.site-footer p {
  max-width: 420px;
  color: rgba(255, 237, 213, 0.76);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

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

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

.footer-links a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 237, 213, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 237, 213, 0.66);
}

.is-hidden-by-filter {
  display: none !important;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid--compact,
  .category-grid,
  .ranking-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-dropdown__menu {
    position: static;
    width: auto;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .hero {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 30px;
  }

  .hero-poster {
    min-height: 260px;
    max-width: 220px;
  }

  .hero-controls {
    left: 30px;
    bottom: 30px;
  }

  .home-search,
  .filter-panel,
  .detail-main,
  .detail-content,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .home-search__box,
  .filter-controls,
  .section-heading,
  .category-block__head,
  .site-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .page-hero {
    padding: 34px;
    border-radius: 28px;
  }

  .detail-main {
    align-items: start;
  }

  .detail-poster {
    max-width: 240px;
    min-height: 340px;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.06em;
  }

  .movie-grid,
  .movie-grid--compact,
  .category-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

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

  .home-search__box {
    flex-direction: column;
  }

  .hero {
    width: min(100% - 20px, 1180px);
  }
}
