/* =====================================================================
   ТО КИНО! — стили (тёмная редакторская афиша)
   ===================================================================== */
:root{
  --cream:#ece7db;        /* основной светлый текст */
  --paper:#e9e5db;        /* кремовый фон вокруг экрана */
  --ink:#0a0a0b;          /* чёрный экран */
  --ink2:#101011;
  --muted:#8a877e;        /* приглушённый серый */
  --muted2:#5f5d57;
  --line:#26262a;         /* тонкие разделители */
  --gold:#f5c518;         /* акцент (как жёлтый бейдж) */
  --radius:6px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{
  background:var(--ink);
  color:var(--cream);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:15px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.site-icon{
  display:inline-block; width:18px; height:18px; flex:none;
  background:currentColor;
  -webkit-mask:var(--site-icon) center / contain no-repeat;
  mask:var(--site-icon) center / contain no-repeat;
}
.icon-location{--site-icon:url("icons/location.svg")}
.icon-arrow-down{--site-icon:url("icons/arrow-down.svg")}
.icon-play-video{--site-icon:url("icons/play-video.svg")}
.icon-ticket{--site-icon:url("icons/ticket.svg")}

/* чёрный «экран» — на всю ширину, без кремовых полей */
.screen{
  width:100%; min-height:100vh; background:var(--ink);
  margin:0; padding:40px clamp(24px,8vw,156px) 70px;
}

/* ---------------- Шапка ---------------- */
.nav{display:flex; align-items:center; justify-content:space-between; padding:6px 0 40px}
.nav-left{display:flex; align-items:center; gap:18px}
.logo{
  display:block; width:142px; line-height:0; text-decoration:none;
  transform-origin:left center;
  animation:logo-enter 1.05s cubic-bezier(.16,1,.3,1) .1s both;
  transition:transform .2s cubic-bezier(.16,1,.3,1);
  will-change:transform,opacity;
}
.logo img{display:block; width:100%; height:auto}
.logo:hover{transform:translateY(-2px) rotate(-1.5deg) scale(1.035)}
@keyframes logo-enter{
  0%{opacity:0; transform:translateX(-24px) translateY(-10px) scale(.72) rotate(-8deg); filter:blur(5px)}
  42%{opacity:1; transform:translateX(5px) translateY(1px) scale(1.1) rotate(2deg); filter:blur(0)}
  66%{transform:translateX(-3px) scale(.965) rotate(-1deg)}
  84%{transform:translateX(1px) scale(1.025) rotate(.35deg)}
  100%{opacity:1; transform:translateX(0) translateY(0) scale(1) rotate(0); filter:blur(0)}
}
@media (prefers-reduced-motion:reduce){
  .logo{animation:none; will-change:auto}
}
.menu{
  display:inline-flex; align-items:center; gap:9px; background:none;
  border:1px solid transparent; color:var(--cream); font:inherit; font-size:14px; font-weight:500;
  cursor:pointer; padding:8px 14px 8px 12px; border-radius:999px; transition:border-color .2s, background .2s;
}
.menu:hover{border-color:var(--line); background:rgba(255,255,255,.03)}
.burger{width:18px; height:13px}
.burger line{transition:transform .2s}

.nav-right{display:flex; align-items:center; gap:8px}
.nav-main .nav-right{flex:1; justify-content:flex-end}
.nav-search{
  display:flex; align-items:center; width:clamp(190px,22vw,310px); min-height:42px;
  border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.025);
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-search:focus-within{border-color:#5b5b62; background:rgba(255,255,255,.045); box-shadow:0 0 0 3px rgba(245,197,24,.06)}
.nav-search input{
  width:100%; min-width:0; border:0; outline:0; padding:0 4px 0 16px;
  background:transparent; color:var(--cream); font:inherit; font-size:12px;
}
.nav-search input::placeholder{color:var(--muted2)}
.nav-search input::-webkit-search-cancel-button{display:none}
.search-submit{
  display:grid; width:40px; height:40px; flex:none; padding:0; border:0; border-radius:50%;
  background:transparent; color:var(--cream); cursor:pointer; place-items:center;
  transition:color .2s ease, transform .15s ease;
}
.search-submit:hover{color:var(--gold)}
.search-submit:active{transform:scale(.9)}
.search-submit svg{width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9}
.saved-link{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; min-height:42px; padding:0;
  border:1px solid transparent; border-radius:999px; color:#77777d; text-decoration:none;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.saved-link:hover{border-color:var(--line); background:rgba(255,255,255,.04); color:var(--cream)}
.saved-link.has-saved{color:var(--gold)}
.saved-link.has-saved:hover{color:#ffdd38}
.saved-link svg{width:18px; height:18px}
.saved-link svg path{fill:currentColor; stroke:none}
.btn-register{
  min-height:42px; padding:0 16px; border:1px solid var(--gold); border-radius:999px;
  background:var(--gold); color:#17150c; font-size:11px; font-weight:700; text-decoration:none;
}
.btn-register:hover{background:#ffdd38; color:#111}
.pill{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; padding:0 14px; white-space:nowrap;
  border:1px solid var(--line); background:transparent; color:var(--cream);
  font:inherit; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  border-radius:999px; cursor:pointer; transition:border-color .2s, background .2s, color .2s, transform .15s;
}
.pill:hover{border-color:#5b5b62; background:rgba(255,255,255,.045); color:#fff}
.pill:active{transform:scale(.97)}
.pill-icon{width:17px; height:17px; transition:transform .2s}
.pill-ticket{width:16px; height:16px; color:var(--gold)}
.pill:hover .pill-icon{transform:translateY(1px)}
.ic{
  background:none; border:1px solid transparent; color:var(--cream); cursor:pointer;
  width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  transition:border-color .2s, background .2s, color .2s, transform .15s;
}
.ic:hover{border-color:var(--line); background:rgba(255,255,255,.05); color:#fff}
.ic:active{transform:scale(.92)}
.ic svg{width:20px; height:20px; stroke-width:1.9}
.ic svg path{fill:currentColor; stroke:none}   /* закладка — заливка */
.ic[aria-label="Поиск"] svg{fill:none; stroke:currentColor}

.link{
  background:none; border:none; color:var(--cream); font:inherit; font-size:14px; font-weight:500;
  cursor:pointer; display:inline-flex; align-items:center; gap:7px; padding:6px 8px; border-radius:8px;
  transition:color .2s, background .2s;
}
.link:hover{color:#fff}
.link.btn-register{
  min-height:42px; padding:0 16px; border:1px solid var(--gold); border-radius:999px;
  background:var(--gold); color:#17150c; font-size:11px; font-weight:700; text-decoration:none;
}
.link.btn-register:hover{background:#ffdd38; color:#111}
.btn-signin{
  min-height:42px; border:1px solid var(--line); padding:0 18px; border-radius:999px; margin-left:0;
  font-size:11px; font-weight:700; text-decoration:none;
  transition:border-color .2s, background .2s, color .2s;
}
.btn-signin:hover{border-color:var(--cream); background:var(--cream); color:#111}
.ic:focus-visible,.link:focus-visible,.menu:focus-visible,.pill:focus-visible,.saved-link:focus-visible,.search-submit:focus-visible,
.buy:focus-visible,.more-btn:focus-visible,.showtimes .t:focus-visible,.trailer:focus-visible{
  outline:2px solid var(--gold); outline-offset:3px;
}
.visually-hidden{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* ---------------- Заголовок ---------------- */
.hero{
  height:clamp(300px,30vw,430px); padding:30px 0 44px; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  position:relative; isolation:isolate; background:#111114;
}
.hero-media,.hero-scrim{position:absolute; inset:0; pointer-events:none}
.hero-media{
  z-index:-2; overflow:hidden; opacity:1;
  background:
    radial-gradient(ellipse at 50% 15%,rgba(245,197,24,.12),transparent 46%),
    linear-gradient(120deg,#151516,#080809);
  transition:opacity .36s ease;
}
.hero-media.is-changing{opacity:0}
.hero-video{
  position:absolute; inset:0; width:100%; height:100%; border:0;
  object-fit:cover; object-position:center; transform:scale(1.045);
  filter:brightness(.58) saturate(.78) contrast(1.06);
}
.hero-scrim{
  z-index:-1;
  background:
    radial-gradient(ellipse 78% 96% at 50% 47%,rgba(10,10,11,.16) 8%,rgba(10,10,11,.36) 56%,rgba(10,10,11,.9) 100%),
    linear-gradient(180deg,rgba(10,10,11,.68) 0%,rgba(10,10,11,.18) 42%,rgba(10,10,11,.72) 100%);
}
.hero-content{position:relative; z-index:1; width:100%; padding-inline:8px}
.hero::after{
  content:""; position:absolute; z-index:0; left:0; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(245,197,24,.38),transparent);
}
.hero-brand{display:block; width:96px; height:auto; margin:0 auto 18px}
.hero h1{
  font-family:'Unbounded',sans-serif; font-weight:800;
  font-size:clamp(28px,4.2vw,58px); line-height:1.08; letter-spacing:-.05em;
  width:max-content; max-width:none; margin:0 auto; color:#f3efe6;
  white-space:nowrap;
  text-shadow:0 3px 20px rgba(0,0,0,.86),0 10px 42px rgba(0,0,0,.55);
  transition:opacity .34s ease, transform .34s cubic-bezier(.16,1,.3,1);
}
.hero-phrase.is-changing{opacity:0; transform:translateY(-9px)}

/* ---------------- Список фильмов ---------------- */
.movies{border-top:1px solid var(--line)}
.loading{padding:60px 0; text-align:center; color:var(--muted); font-size:14px}

.film{
  display:grid;
  grid-template-columns:150px 210px 1fr;
  gap:clamp(20px,3.4vw,54px);
  padding:44px 0;
  border-bottom:1px solid var(--line);
  animation:fadeUp .5s ease both;
}
@keyframes fadeUp{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}

/* левая колонка: жанры / режиссёр / в ролях */
.film-meta{font-size:12.5px}
.genres{margin:0 0 26px}
.genres div{color:var(--cream); font-weight:500; letter-spacing:.01em; padding:2px 0}
.meta-block{margin-bottom:18px}
.meta-label{color:var(--muted2); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; margin-bottom:7px}
.meta-block .val{color:var(--muted); line-height:1.5}
.meta-block .val div{padding:1px 0}

/* постер */
.film-poster{display:flex; flex-direction:column; gap:16px}
.poster{
  position:relative; width:100%; aspect-ratio:2/3; border-radius:5px; overflow:hidden;
  background:linear-gradient(150deg, var(--g1,#2a2a2e), var(--g2,#4a4a52));
  box-shadow:0 18px 42px rgba(0,0,0,.55); transition:transform .28s, box-shadow .28s;
}
.poster:hover{transform:translateY(-4px); box-shadow:0 26px 54px rgba(0,0,0,.6)}
.poster-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:5px;
  transition:opacity .3s;
}
.poster-img.missing{opacity:0}                 /* нет файла — показываем подложку */
.poster-fallback{
  position:absolute; inset:0; display:flex; align-items:flex-end; padding:16px;
  font-family:'Unbounded',sans-serif; font-weight:700; font-size:17px; line-height:1.15;
  color:rgba(255,255,255,.92); text-shadow:0 2px 10px rgba(0,0,0,.5);
}
.trailer{
  display:inline-flex; align-items:center; gap:9px; background:none; border:none;
  color:var(--cream); font:inherit; font-size:10.5px; font-weight:600; letter-spacing:.13em;
  text-transform:uppercase; cursor:pointer; padding:2px; text-decoration:none;
}
.trailer:hover{color:#fff}
.tri{
  width:22px; height:22px; border:1px solid var(--line); border-radius:50%;
  display:grid; place-items:center; flex:none; transition:background .2s, border-color .2s, color .2s;
}
.trailer:hover .tri{background:var(--gold); border-color:var(--gold); color:#111}
.tri .site-icon{width:13px; height:13px; margin-left:1px}

/* правая колонка: детали */
.film-body{max-width:700px; min-width:0}
.film-heading{display:flex; align-items:flex-start; justify-content:space-between; gap:22px}
.film-heading__copy{min-width:0}
.film-title{
  font-family:'Unbounded',sans-serif; font-weight:700;
  font-size:clamp(26px,3.4vw,40px); line-height:1.02; letter-spacing:-.015em;
  margin:2px 0 0; color:#f3efe6; overflow-wrap:anywhere;
}
.save-film{
  flex:none; display:inline-flex; align-items:center; gap:8px; min-height:38px;
  margin-top:1px; padding:0 13px; border:1px solid var(--line); border-radius:999px;
  background:rgba(255,255,255,.015); color:var(--muted); cursor:pointer;
  font:inherit; font-size:10px; font-weight:650; letter-spacing:.06em; text-transform:uppercase;
  transition:color .2s, border-color .2s, background .2s, transform .2s;
}
.save-film svg{width:16px; height:16px}
.save-film path{fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round}
.save-film:hover{color:#fff; border-color:#56565c; background:rgba(255,255,255,.045); transform:translateY(-1px)}
.save-film.is-saved{color:#15130a; border-color:var(--gold); background:var(--gold)}
.save-film.is-saved path{fill:currentColor; stroke:currentColor}
.save-film:focus-visible{outline:2px solid var(--gold); outline-offset:3px}
.film-row{display:flex; gap:38px; align-items:flex-start; margin:22px 0}
.film-desc{color:var(--muted); font-size:14px; line-height:1.6; flex:1; margin:0}
.film-facts{display:grid; gap:9px; min-width:120px}
.fact{display:flex; justify-content:space-between; gap:14px; font-size:12px; border-bottom:1px solid var(--line); padding-bottom:6px}
.fact .k{color:var(--muted2); letter-spacing:.02em}
.fact .v{color:var(--cream); font-weight:600; white-space:nowrap}

.showtimes{display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 24px}
.showtimes .t{
  font-size:12.5px; font-weight:600; color:var(--cream); background:none;
  border:1px solid var(--line); border-radius:6px; padding:7px 12px;
  cursor:pointer; text-decoration:none; transition:border-color .2s, background .2s, color .2s;
}
.showtimes .t:hover{border-color:var(--gold); background:rgba(245,197,24,.12); color:#fff; transform:translateY(-1px)}
.showtimes .t:active{transform:translateY(0) scale(.96)}

.buy{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--cream); color:#111; border:none; border-radius:6px;
  font:inherit; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:14px 24px; cursor:pointer; text-decoration:none; transition:transform .15s, background .2s, box-shadow .25s;
}
.buy:hover{background:#fff; transform:translateY(-2px); box-shadow:0 12px 26px rgba(236,231,219,.18)}
.buy:active{transform:translateY(0) scale(.98)}
.buy .site-icon{width:18px; height:18px}

/* ---------------- Показать ещё ---------------- */
.more{display:flex; flex-direction:column; align-items:center; gap:14px; padding:52px 0 8px}
.more-btn{
  width:54px; height:54px; padding:0; border:0; border-radius:50%;
  background:none; color:var(--cream); cursor:pointer; display:grid; place-items:center;
  transition:color .35s ease, transform .2s ease;
}
.more-btn:hover{color:var(--gold)}
.more-btn:active{transform:scale(.94)}
.more-arrow{width:54px; height:54px; overflow:visible; stroke:currentColor; stroke-width:1.5}
.more-arrow use{stroke:currentColor}
.more-arrow use:first-child{transition:stroke-width .35s ease, opacity .35s ease}
.more-arrow__motion{transform-box:fill-box; transform-origin:center}
.more-btn:hover .more-arrow__motion,.more-btn:focus-visible .more-arrow__motion{
  animation:arrow-descend 1.55s cubic-bezier(.45,0,.2,1) infinite;
}
@keyframes arrow-descend{
  0%,12%{transform:translateY(0); opacity:1}
  55%{transform:translateY(3px); opacity:1}
  72%{transform:translateY(6px); opacity:0}
  73%{transform:translateY(-5px); opacity:0}
  100%{transform:translateY(0); opacity:1}
}
.more-label{font-size:10.5px; font-weight:600; letter-spacing:.16em; color:var(--muted)}

/* дата премьеры (eyebrow над названием) */
.premiere{
  display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gold); margin-bottom:12px;
}

/* тост */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(8px);
  background:var(--cream); color:#111; padding:12px 20px; border-radius:9px;
  font-size:13px; font-weight:600; box-shadow:0 12px 34px rgba(0,0,0,.45);
  z-index:99; opacity:0; pointer-events:none; transition:opacity .3s, transform .3s;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}
.catalog-empty{
  min-height:290px; display:grid; place-content:center; justify-items:center; text-align:center;
  border-block:1px solid var(--line); color:var(--cream);
}
.catalog-empty span{font-family:'Unbounded',sans-serif; font-size:clamp(22px,3vw,34px); font-weight:700}
.catalog-empty p{margin:12px 0 0; color:var(--muted); font-size:13px}

.foot{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--line); margin-top:46px; padding-top:22px;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted2);
}
.foot span:first-child{font-family:'Unbounded',sans-serif; font-weight:700; color:var(--muted)}

/* ---------------- Адаптив ---------------- */
@media (max-width:820px){
  .screen{padding-inline:clamp(20px,5vw,48px)}
  .nav-main{flex-wrap:wrap; gap:16px}
  .nav-main .nav-right{display:grid; grid-template-columns:minmax(120px,1fr) auto auto auto; width:100%}
  .nav-search{width:100%}
  .saved-link{width:42px; padding:0; justify-content:center}
  .btn-register,.btn-signin{justify-content:center; padding-inline:13px}
  .film{grid-template-columns:120px 1fr; gap:22px}
  .film-poster{grid-row:span 1}
  .film-meta{grid-column:1; grid-row:1}
  .film-poster{grid-column:1; grid-row:2}
  .film-body{grid-column:2; grid-row:1 / span 2}
  .film-row{flex-direction:column; gap:18px}
  .film-facts{min-width:0; grid-template-columns:repeat(3,1fr)}
  .fact{flex-direction:column; gap:2px; border:none}
  .film-heading{align-items:center}
  .save-film span{display:none}
  .save-film{width:38px; padding:0; justify-content:center}
}
@media (max-width:560px){
  .screen{padding:28px 20px 54px}
  .nav{padding-bottom:28px}
  .nav-left{gap:6px}
  .logo{width:108px}
  .nav-right{gap:3px}
  .nav-main .nav-right{gap:7px}
  .btn-register,.btn-signin{min-height:40px; font-size:9px; padding-inline:10px}
  .film{grid-template-columns:1fr; }
  .film-meta,.film-poster,.film-body{grid-column:1}
  .film-poster{max-width:230px}
  .film-heading{align-items:flex-start}
  .hero{height:280px; padding:24px 0 30px}
  .hero-video{transform:scale(1.16)}
  .hero-scrim{background:
    radial-gradient(ellipse 100% 104% at 50% 47%,rgba(10,10,11,.2) 6%,rgba(10,10,11,.4) 57%,rgba(10,10,11,.9) 100%),
    linear-gradient(180deg,rgba(10,10,11,.7) 0%,rgba(10,10,11,.2) 42%,rgba(10,10,11,.76) 100%)}
  .hero h1{font-size:clamp(27px,8.6vw,40px); line-height:1.12; letter-spacing:-.055em}
  .hero-brand{width:78px; margin-bottom:14px}
}
@media (max-width:390px){
  .nav-main .nav-right{grid-template-columns:1fr auto auto}
  .nav-search{grid-column:1 / -1}
  .saved-link{grid-column:1}
  .btn-register{grid-column:2}
  .btn-signin{grid-column:3}
}
@media (prefers-reduced-motion:reduce){
  .hero-media{display:none}
  .hero h1{transition:none}
  .more-btn:hover .more-arrow__motion,.more-btn:focus-visible .more-arrow__motion{animation:none}
}
