:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #17171d;
  --panel-soft: #1d1d24;
  --text: #f4f2f0;
  --muted: #92919b;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #d7fa70;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f2;
  --panel: #ffffff;
  --panel-soft: #ecece8;
  --text: #20211c;
  --muted: #6d6e67;
  --line: rgba(25, 27, 20, 0.14);
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.theme-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon, :root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.topbar {
  height: 76px;
  padding: 0 clamp(22px, 6.25vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(16, 16, 20, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: 150px;
  height: 55px;
  border-radius: 5px;
  object-fit: contain;
  object-position: center;
}
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(18px, 3vw, 42px); }
.nav-link { font-size: 13px; color: #aaa9b0; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active { position: relative; }
.nav-link.is-active::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  bottom: -12px;
  left: calc(50% - 2px);
}
.header-actions { gap: 17px; }
.search-box {
  width: 220px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}
.search-box svg, .profile-button svg, .button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-box input {
  width: 100%;
  min-width: 0;
  outline: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.search-box input::placeholder { color: #777780; }
.search-box kbd {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  color: #777780;
  font-size: 10px;
}
.profile-button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #c5c4c8;
  cursor: pointer;
}

.hero {
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 56px clamp(22px, 9vw, 144px) 66px;
}
.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, #101014 1%, rgba(16,16,20,.95) 22%, rgba(16,16,20,.55) 53%, rgba(16,16,20,.08) 100%),
    linear-gradient(0deg, #101014 0%, transparent 28%, rgba(16,16,20,.1) 100%),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=2000&q=85") center 46%/cover;
  opacity: .85;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 78% 40%, rgba(215, 250, 112, .08), transparent 36%);
  pointer-events: none;
}
.hero-content { max-width: 530px; }
.hero-kicker, .section-eyebrow, .promo-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 29px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero-eyebrow { color: #c0bec2; font-size: 10px; letter-spacing: 2px; margin: 0 0 8px; }
.hero-eyebrow span { color: var(--accent); padding: 0 5px; }
.hero h1 {
  margin: 0;
  font: 800 clamp(42px, 6vw, 68px)/1.02 var(--font-display);
  letter-spacing: -3.7px;
}
.hero-meta { margin-top: 20px; display: flex; align-items: center; gap: 16px; color: #d1d0d2; font-size: 12px; }
.rating { color: var(--accent); font-weight: 700; }
.rating span { margin-right: 4px; }
.quality-badge { border: 1px solid rgba(255,255,255,.32); border-radius: 3px; padding: 2px 4px; font-size: 9px; font-weight: 700; }
.hero-description { max-width: 440px; margin: 17px 0 23px; color: #b3b1b7; font-size: 13px; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; }
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #161914; }
.button-primary:hover { background: #e2ff91; }
.button-primary svg { fill: currentColor; stroke: currentColor; }
.button-secondary { background: rgba(255,255,255,.11); color: white; backdrop-filter: blur(10px); }
.button-secondary:hover { background: rgba(255,255,255,.19); }
.hero-index { position: absolute; bottom: 31px; right: clamp(22px, 9vw, 144px); color: #8e8d94; font: 11px var(--font-display); }
.hero-index span { color: var(--accent); }
.hero-next {
  position: absolute; right: clamp(22px, 6.25vw, 100px); top: 50%;
  width: 43px; height: 43px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
  background: rgba(10,10,14,.25); cursor: pointer; transition: background .2s;
}
.hero-next:hover { background: rgba(255,255,255,.16); }
.hero-next svg { width: 20px; fill: none; stroke: white; stroke-width: 1.5; }

.catalog-section { padding: 47px clamp(22px, 6.25vw, 100px) 62px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.catalog-heading-actions { display: flex; align-items: center; gap: 18px; }
.catalog-back-link { color: var(--muted); font-size: 11px; }
.catalog-back-link:hover { color: var(--accent); }
.section-eyebrow { margin: 0 0 9px; font-size: 9px; letter-spacing: 1.4px; }
.section-heading h2, .promo-copy h2 {
  margin: 0;
  font: 700 26px/1.2 var(--font-display);
  letter-spacing: -1px;
}
.text-link { color: #adabb1; font-size: 11px; transition: color .2s; }
.text-link:hover { color: var(--accent); }
.text-link span { color: var(--accent); margin-left: 4px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 23px 0 21px; }
.filter-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-list::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 13px;
  background: transparent;
  color: #aaa9b0;
  font-size: 11px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-chip:hover { color: white; border-color: rgba(255,255,255,.26); }
.filter-chip.is-selected { background: var(--accent); border-color: var(--accent); color: #171914; font-weight: 700; }
.sort-control { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.sort-control select { border: 0; outline: 0; background: transparent; color: #e8e7e8; font-size: 11px; cursor: pointer; }
.sort-control option { background: #1b1b21; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.movie-card { min-width: 0; animation: card-in .35s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 2.88;
  overflow: hidden;
  border-radius: 6px;
  background: #24242b;
  cursor: pointer;
}
.poster-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.movie-card:hover .poster-wrap img { transform: scale(1.055); }
.poster-wrap::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.58)); pointer-events: none; }
.poster-score, .poster-tag { position: absolute; z-index: 1; top: 9px; border-radius: 4px; padding: 5px 7px; font-size: 10px; font-weight: 700; }
.poster-score { left: 9px; background: rgba(12,12,15,.74); color: var(--accent); backdrop-filter: blur(7px); }
.poster-tag { right: 9px; background: var(--accent); color: #171914; font-size: 8px; letter-spacing: .4px; }
.poster-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.8); border-radius: 50%;
  background: rgba(10,10,14,.38); opacity: 0; transform: translate(-50%, -43%);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.poster-play svg { width: 15px; fill: white; stroke: white; }
.movie-card:hover .poster-play, .poster-wrap:focus-visible .poster-play { opacity: 1; transform: translate(-50%, -50%); }
.movie-title-row { display: flex; align-items: start; justify-content: space-between; gap: 6px; margin-top: 10px; }
.movie-title { margin: 0; overflow: hidden; color: #e6e5e7; font: 600 12px/1.4 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.save-button { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #8c8b93; font-size: 18px; line-height: 1; cursor: pointer; }
.save-button:hover, .save-button.is-saved { color: var(--accent); }
.movie-subtitle { margin: 4px 0 0; color: #85848c; font-size: 10px; }
.empty-state { padding: 45px 10px; color: var(--muted); text-align: center; font-size: 13px; }
.catalog-collection { padding-top: 24px; }
.collection-empty { margin: 20px 0 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-align: center; font-size: 12px; }
.load-more {
  display: block; margin: 31px auto 0; padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 5px;
  background: transparent; color: #c6c4ca; font-size: 11px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.load-more:hover { border-color: var(--accent); color: var(--accent); }
.load-more span { padding-left: 7px; color: var(--accent); }

body.catalog-page-mode .hero,
body.catalog-page-mode .catalog-collection,
body.catalog-page-mode .promo-banner { display: none; }
body.catalog-page-mode #catalog { min-height: calc(100vh - 155px); padding-top: 40px; }
body.catalog-page-mode #catalog .section-heading { align-items: center; }
body.catalog-page-mode #catalog-title { font-size: clamp(25px, 4vw, 34px); }

.promo-banner {
  min-height: 255px; margin: 0 clamp(22px, 6.25vw, 100px) 65px;
  position: relative; display: flex; align-items: center; overflow: hidden;
  border: 1px solid rgba(215,250,112,.13); border-radius: 10px;
  background: linear-gradient(105deg, #1b2017 0%, #191c17 48%, #171820 100%);
}
.promo-copy { z-index: 1; padding: 34px clamp(25px, 5vw, 72px); max-width: 500px; }
.promo-label { display: inline-block; margin-bottom: 12px; font-size: 9px; }
.promo-copy h2 { font-size: 27px; }
.promo-copy p { max-width: 370px; margin: 11px 0 17px; color: #a5a6a0; font-size: 11px; line-height: 1.7; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 10px; }
.promo-art { position: absolute; inset: 0 0 0 50%; overflow: hidden; }
.promo-orbit { position: absolute; border: 1px solid rgba(215,250,112,.19); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 380px; height: 235px; top: 5px; right: 4%; }
.orbit-two { width: 470px; height: 290px; top: -22px; right: -5%; }
.promo-disc {
  position: absolute; width: 154px; height: 154px; top: 50%; right: 25%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d7fa70, #a8ca48 43%, #344125 44%, #141711 70%);
  box-shadow: 0 0 65px rgba(215,250,112,.15); transform: translateY(-50%);
}
.promo-disc::before { content: ""; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: #171914; }
.promo-disc span { position: absolute; color: #f3f5e9; font: 800 16px var(--font-display); }
.promo-star { position: absolute; color: var(--accent); opacity: .75; }
.star-one { top: 43px; right: 14%; font-size: 24px; }
.star-two { bottom: 39px; right: 44%; font-size: 14px; }
.footer {
  min-height: 79px; padding: 18px clamp(22px, 6.25vw, 100px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); color: #77767f; font-size: 10px;
}
.footer-brand .brand-logo { width: 126px; height: 47px; }
.footer p { margin: 0; }
.footer-contact-link { padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.footer-contact-link:hover { color: var(--accent); }
.footer-contact-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.contact-dialog {
  width: min(500px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 760px);
  padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  background: #17171d; color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.65);
}
.contact-dialog::backdrop { background: rgba(5,5,8,.78); backdrop-filter: blur(8px); }
.contact-content { padding: 30px; }
.contact-content h2 { margin: 0; font: 700 23px/1.3 var(--font-display); }
.contact-description { margin: 9px 0 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.contact-field { display: grid; gap: 7px; margin-bottom: 14px; color: var(--text); font-size: 11px; }
.contact-field > span { display: inline; color: var(--muted); }
.contact-field input, .contact-field select, .contact-field textarea {
  width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 5px;
  outline: 0; background: #111116; color: var(--text); font: 12px var(--font-body);
}
.contact-field textarea { resize: vertical; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: rgba(215,250,112,.65); }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #777780; }
.contact-field select option { background: #17171d; }
.contact-submit { width: 100%; margin-top: 2px; }
.contact-status { min-height: 0; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.contact-status:empty { display: none; }
.contact-direct-link { display: inline-block; margin-top: 15px; color: var(--accent); font-size: 11px; }

.movie-dialog {
  width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 700px);
  padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  background: #17171d; color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.65);
}
.movie-dialog::backdrop { background: rgba(5,5,8,.78); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 14px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(0,0,0,.45); color: white; font-size: 24px; cursor: pointer; }
.dialog-art { height: 260px; background-position: center 35%; background-size: cover; }
.dialog-content { padding: 25px 30px 30px; }
.dialog-content h2 { margin: 0; font: 700 28px var(--font-display); }
.dialog-meta { margin: 10px 0; color: var(--accent); font-size: 12px; }
.dialog-description { color: #b5b3bb; font-size: 13px; line-height: 1.7; }
.movie-credits { display: grid; gap: 18px; margin: 20px 0; }
.movie-credits h3 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.credit-person-link { padding: 0; border: 0; background: transparent; color: var(--text); font: 13px var(--font-body); text-align: left; cursor: pointer; }
.credit-person-link:hover { color: var(--accent); text-decoration: underline; }
.director-credit { display: flex; flex-direction: column; align-items: flex-start; }
.director-photo { display: block; width: 60px; height: 60px; margin: 0 0 9px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-soft); object-fit: cover; }
.actor-list { display: flex; flex-wrap: wrap; gap: 10px; }
.actor-card { width: 86px; display: grid; justify-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: center; font: 10px/1.35 var(--font-body); cursor: pointer; }
.actor-card img, .actor-dialog-photo { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-soft); object-fit: cover; }
.actor-card:hover span { color: var(--accent); }
.actor-card-static { cursor: default; }
.actor-dialog { width: min(460px, calc(100% - 32px)); max-width: none; max-height: min(80vh, 620px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: #17171d; color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.65); }
.actor-dialog::backdrop { background: rgba(5,5,8,.78); backdrop-filter: blur(8px); }
.actor-dialog-content { padding: 35px 28px 28px; }
.actor-dialog-photo { display: block; width: 86px; height: 86px; margin-bottom: 16px; }
.actor-dialog h2 { margin: 0 0 20px; font: 700 23px var(--font-display); }
.actor-movies { display: grid; gap: 8px; }
.actor-movies-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.actor-movie-link { padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-soft); color: var(--text); text-align: left; font: 12px var(--font-body); cursor: pointer; }
.actor-movie-link:hover { border-color: var(--accent); color: var(--accent); }
.dialog-note { margin: 16px 0; border-left: 2px solid var(--accent); padding: 8px 11px; background: rgba(215,250,112,.06); color: #aaa9af; font-size: 11px; line-height: 1.6; }
.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 17px 0; overflow: hidden; border-radius: 6px; background: #08080b; }
.video-player[hidden] { display: none; }
.video-player video, .video-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #08080b; }
.midroll-overlay { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 18px; background: linear-gradient(135deg, rgba(10,11,13,.92), rgba(22,25,17,.88)); backdrop-filter: blur(8px); }
.midroll-overlay[hidden] { display: none; }
.midroll-card { width: min(390px, 100%); padding: 27px 24px; border: 1px solid rgba(215,250,112,.25); border-radius: 12px; background: linear-gradient(145deg, rgba(34,37,29,.97), rgba(22,23,22,.98)); box-shadow: 0 20px 70px rgba(0,0,0,.45); text-align: center; }
.midroll-label { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.midroll-card h3 { margin: 0; color: #f4f3ef; font: 700 clamp(18px, 3vw, 23px)/1.3 var(--font-display); }
.midroll-card p { margin: 9px 0 19px; color: #b7b7ae; font-size: 12px; line-height: 1.6; }
.midroll-resume { min-height: 42px; }
.midroll-resume:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-dialog { width: min(410px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: #17171d; color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.65); }
.auth-dialog::backdrop { background: rgba(5,5,8,.78); backdrop-filter: blur(8px); }
.auth-content { padding: 36px 30px 30px; text-align: center; }
.auth-logo { width: 172px; height: 64px; margin: 0 auto 12px; }
.auth-content .section-eyebrow { margin-bottom: 8px; }
.auth-content h2 { margin: 0; font: 700 24px var(--font-display); }
.auth-description, .auth-user, .auth-notice { color: #aaa9b0; font-size: 12px; line-height: 1.6; }
.auth-description { margin: 10px 0 20px; }
.auth-user { color: var(--accent); }
.google-button, .auth-sign-out { width: 100%; }
.admin-entry { display: inline-block; margin-top: 18px; color: var(--accent); font-size: 12px; }
.auth-notice { margin: 15px 0 0; font-size: 10px; }
.auth-notice:empty { display: none; }
.toast {
  position: fixed; z-index: 10; bottom: 23px; left: 50%; padding: 11px 16px;
  border: 1px solid rgba(215,250,112,.25); border-radius: 6px; background: #20221b; color: #e6e9d8;
  font-size: 12px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] .topbar { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); }
:root[data-theme="light"] .nav-link { color: #65665f; }
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.is-active { color: var(--text); }
:root[data-theme="light"] .search-box { background: #f0f0ec; }
:root[data-theme="light"] .search-box input { color: var(--text); }
:root[data-theme="light"] .search-box input::placeholder,
:root[data-theme="light"] .search-box kbd { color: #777870; }
:root[data-theme="light"] .search-box kbd { border-color: rgba(25, 27, 20, .18); }
:root[data-theme="light"] .profile-button { color: #55564f; }
:root[data-theme="light"] .hero { color: #f4f2f0; }
:root[data-theme="light"] .hero-backdrop {
  background:
    linear-gradient(90deg, #101014 1%, rgba(16,16,20,.95) 22%, rgba(16,16,20,.55) 53%, rgba(16,16,20,.08) 100%),
    linear-gradient(0deg, #101014 0%, transparent 28%, rgba(16,16,20,.1) 100%),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=2000&q=85") center 46%/cover;
}
:root[data-theme="light"] .filter-chip { color: #5f6059; }
:root[data-theme="light"] .filter-chip:hover { color: #20211c; border-color: rgba(25,27,20,.3); }
:root[data-theme="light"] .filter-chip.is-selected { color: #171914; }
:root[data-theme="light"] .sort-control select { color: #34352f; }
:root[data-theme="light"] .sort-control option { background: #fff; color: #20211c; }
:root[data-theme="light"] .movie-title { color: #292a25; }
:root[data-theme="light"] .movie-subtitle { color: #70716a; }
:root[data-theme="light"] .load-more { border-color: rgba(25,27,20,.18); color: #55564f; }
:root[data-theme="light"] .promo-banner { background: linear-gradient(105deg, #f0f4e7 0%, #f1f2eb 48%, #ececf0 100%); }
:root[data-theme="light"] .promo-copy p { color: #64665e; }
:root[data-theme="light"] .promo-disc { border-color: rgba(25,27,20,.3); }
:root[data-theme="light"] .promo-disc::before { background: #f5f5f2; }
:root[data-theme="light"] .promo-disc span { color: #20211c; }
:root[data-theme="light"] .footer { color: #686961; }
:root[data-theme="light"] .movie-dialog,
:root[data-theme="light"] .actor-dialog,
:root[data-theme="light"] .auth-dialog { background: #fff; color: var(--text); border-color: rgba(25,27,20,.16); }
:root[data-theme="light"] .dialog-close { border-color: rgba(25,27,20,.2); background: rgba(255,255,255,.88); color: #20211c; }
:root[data-theme="light"] .dialog-description { color: #55564f; }
:root[data-theme="light"] .actor-movie-link { background: #f7f7f4; }
:root[data-theme="light"] .dialog-note { color: #5d5e57; }
:root[data-theme="light"] .auth-description,
:root[data-theme="light"] .auth-user,
:root[data-theme="light"] .auth-notice { color: #5f6059; }
:root[data-theme="light"] .toast { background: #f3f5e9; color: #303226; }
:root[data-theme="light"] .contact-dialog { background: #fff; color: var(--text); border-color: rgba(25,27,20,.16); }
:root[data-theme="light"] .contact-field input,
:root[data-theme="light"] .contact-field select,
:root[data-theme="light"] .contact-field textarea { background: #f7f7f4; color: var(--text); }
:root[data-theme="light"] .contact-field select option { background: #fff; color: var(--text); }
:root[data-theme="light"] .contact-field input::placeholder,
:root[data-theme="light"] .contact-field textarea::placeholder { color: #85867e; }

@media (max-width: 1050px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topbar { padding-inline: 4vw; }
  .hero { padding-inline: 7vw; }
  .hero-next { right: 4vw; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; gap: 14px; }
  .main-nav { display: none; }
  .brand-logo { width: 133px; height: 51px; }
  .search-box { width: clamp(135px, 36vw, 220px); }
  .search-box kbd { display: none; }
  .hero { min-height: 485px; padding: 56px 7vw 65px; }
  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(16,16,20,.95), rgba(16,16,20,.55)),
      linear-gradient(0deg, #101014 0%, transparent 54%),
      url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1100&q=80") 58% center/cover;
  }
  .hero-next { top: auto; bottom: 24px; right: 7vw; width: 36px; height: 36px; }
  .hero-index { right: 18vw; bottom: 36px; }
  .hero-description { max-width: 400px; }
  .catalog-section { padding-top: 35px; }
  body.catalog-page-mode #catalog { padding-top: 28px; }
  .catalog-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 12px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-control { align-self: flex-end; }
  .promo-art { left: 43%; opacity: .75; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .topbar { padding-inline: 17px; }
  .brand-logo { width: 112px; height: 44px; }
  .header-actions { gap: 9px; }
  .search-box { width: min(38vw, 150px); height: 35px; padding-inline: 8px; }
  .search-box input { font-size: 11px; }
  .profile-button { width: 33px; height: 33px; }
  .hero { min-height: 455px; padding-inline: 22px; }
  .hero h1 { font-size: 46px; letter-spacing: -2.6px; }
  .hero-kicker { margin-bottom: 24px; }
  .hero-meta { gap: 10px; font-size: 10px; }
  .hero-description { font-size: 12px; }
  .hero-next { right: 22px; }
  .hero-index { right: 70px; }
  .catalog-section { padding: 34px 17px 48px; }
  .section-heading h2 { font-size: 23px; }
  .text-link { font-size: 10px; }
  .filter-chip { padding: 7px 10px; font-size: 10px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 13px; }
  .movie-title { font-size: 11px; }
  .promo-banner { min-height: 300px; margin: 0 17px 45px; }
  .promo-copy { padding: 30px 23px; }
  .promo-copy h2 { font-size: 24px; }
  .promo-art { left: 38%; opacity: .35; }
  .promo-disc { right: 8%; width: 135px; height: 135px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 19px 17px; }
  .footer-brand .brand-logo { width: 116px; height: 44px; }
  .contact-content { padding: 25px 20px; }
  .dialog-art { height: 190px; }
  .dialog-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
