/* Культроверт — живая афиша недели в подборе приложения. Логика — fix/app-live.js.
   Экран сборки перенесён из «Собрать вечер» (vecher.css, блок .b): vecher.css в
   приложении не подключён, поэтому правила скопированы сюда под префиксом cvl-. */

/* ───── пока идёт сборка: страница и шапка чёрные, как в «Собрать вечер» */
body.cvl-busy{background:#000}
body.cvl-busy #view{padding:0 !important;min-height:0}
body.cvl-busy .ah{background:#000;border-bottom-color:rgba(255,254,247,.1);color:var(--bone)}
body.cvl-busy .ah-logo img{filter:invert(1)}
body.cvl-busy .ah-x{border-color:rgba(255,254,247,.55);color:var(--bone)}
@media (hover:hover){body.cvl-busy .ah-x:hover{background:var(--bone);color:#000}}
.ah,.ah-logo img{transition:background-color .4s cubic-bezier(.2,0,0,1),border-color .4s cubic-bezier(.2,0,0,1),color .4s cubic-bezier(.2,0,0,1),filter .4s cubic-bezier(.2,0,0,1)}

.cvl-vh{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* знак во всю высоту у левого края, в нём кадр; текст по центру */
.cvl-b{position:relative;overflow:hidden;min-height:calc(100svh - var(--hh,64px));display:flex;align-items:flex-start;justify-content:center;padding:clamp(56px,12vh,140px) var(--g,32px) 64px;text-align:center;background:#000;color:var(--bone,#fffef7)}
.cvl-b-stage{position:absolute;inset:0;pointer-events:none}
.cvl-b-mask{position:absolute;inset:0;-webkit-mask:url(/assets/mark-mask.svg) no-repeat;mask:url(/assets/mark-mask.svg) no-repeat}
.cvl-b-photo,.cvl-b-full{position:absolute;inset:0;background:#000 center 30%/cover no-repeat}
.cvl-b-photo{inset:auto;background-position:center}
.cvl-b-full{opacity:0}
.cvl-b-in{position:relative;z-index:2;width:100%;max-width:880px;margin:0 auto;transition:opacity .45s}
.cvl-b-done .cvl-b-in{opacity:0}
.cvl-b-k{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:rgba(255,254,247,.7)}
.cvl-b-now{margin:24px auto 0;height:3.06em;display:flex;align-items:center;justify-content:center;font-family:var(--serif,'Cormorant',serif);font-weight:400;font-size:clamp(40px,4.4vw,64px);line-height:1;letter-spacing:-0.025em;text-wrap:balance}
.cvl-b-now .w{display:inline-block;animation:cvl-word .55s cubic-bezier(.2,0,0,1) both}
@keyframes cvl-word{from{opacity:0;translate:0 .2em;filter:blur(8px)}}
.cvl-b-stages{list-style:none;margin:48px auto 0;padding:0;max-width:560px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:left}
.cvl-b-stages li{display:flex;flex-direction:column;gap:10px;color:rgba(255,254,247,.4);transition:color .5s}
.cvl-b-stages .t{font-size:13px;line-height:1.3}
.cvl-b-stages i{display:block;order:-1;height:2px;background:rgba(255,254,247,.16);position:relative;overflow:hidden}
.cvl-b-stages i::after{content:"";position:absolute;inset:0;width:0;background:var(--bone,#fffef7);transition:width .3s cubic-bezier(.2,0,0,1)}
.cvl-b-stages li.on{color:var(--bone,#fffef7)}
.cvl-b-stages li.on i::after{animation:cvl-fill .7s cubic-bezier(.1,.6,.3,1) forwards}
.cvl-b-stages li.done{color:rgba(255,254,247,.7)}
.cvl-b-stages li.done i::after{width:100%}
@keyframes cvl-fill{from{width:4%}to{width:92%}}
.cvl-b-foot{margin-top:20px;font-size:13px;color:rgba(255,254,247,.55)}
@media (max-width:767px){
  .cvl-b{padding:40px var(--g,16px) 40px}
  .cvl-b-now{font-size:40px;height:3.06em}
  .cvl-b-stages{margin-top:36px}
  .cvl-b-stages .t{font-size:12px}
}
@media (max-width:360px){.cvl-b-now{font-size:36px}}
@media (prefers-reduced-motion:reduce){
  .cvl-b-now .w,.cvl-b-stages li.on i::after{animation:none}
  .cvl-b-stages li.on i::after{width:92%}
  .ah,.ah-logo img{transition:none}
}

/* ───── выдача: карточки приложения (.pk), только то, чего у демо-сценариев не бывает */
body.cvl-hold #view .pk-count,body.cvl-hold #view .picks,body.cvl-hold #view .pk-more{visibility:hidden}
.cvl-pk .pk-ph{cursor:pointer}
.cvl-pk .cvl-badge{right:12px;max-width:calc(100% - 24px);min-height:28px;padding:5px 12px;line-height:1.3;white-space:normal;text-transform:none;letter-spacing:0;font-size:12px;width:fit-content}
.cvl-pk .meta{white-space:normal;max-width:100%;padding-block:4px;line-height:1.25}
.cvl-pk .cvl-clamp4{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.cvl-pk .cvl-clamp5{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.cvl-pk .pk-p.cvl-clamp4{padding-bottom:0}
.cvl-src{min-height:36px}

/* ───── демо-блоки вне подбора («Сценарий недели» на главной, «Вам подойдёт», «По вашим словам»,
   «Профиль собран»): пока fix/app-live.js не заменил их вечерами недели, их не видно. Если скрипт
   не загрузится, через 4 с они покажутся как есть — страница не останется с дырой */
.hm-strip a.hm-cell[href^="#/r/"]:not([data-cvl-live]),a.wkk[href^="#/r/"]:not([data-cvl-live]),.pf-recs:not([data-cvl-live]){animation:cvl-late 0s 4s both}
@keyframes cvl-late{from{visibility:hidden}to{visibility:visible}}
.cvl-nx .dir-tag{flex-wrap:wrap}
.cvl-cell-pl{font-size:13px;line-height:1.3;color:rgba(255,254,247,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cvl-wk-pl{font-size:14px;color:var(--graphite)}

/* ───── главная и «Сходить или нет?»: фото первого экрана заходит под шапку, шапка над ним прозрачная, как на сайте.
   Всё на CSS, без ожидания скриптов, чтобы при загрузке шапка не мигала белым. Пока экран не отрисован
   (ah-boot ставит скрипт в <head> app.html по адресу), страница чёрная, как фото. Когда текст первого экрана
   уходит под шапку, fix/app-live.js ставит ah-solid и шапка снова белая; белая она и при открытом меню */
body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first{margin-top:calc(-1 * var(--hh));min-height:100vh;min-height:100svh}
body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage{padding-top:var(--hh)}
:root.ah-boot:not(:has(#view > *)) body{background:#000}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah,
:root.ah-boot:not(:has(#view > *)) .ah{background:transparent;border-bottom-color:transparent;color:var(--bone)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-logo img,
:root.ah-boot:not(:has(#view > *)) .ah-logo img{filter:invert(1)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah .cv-beta,
:root.ah-boot:not(:has(#view > *)) .ah .cv-beta{color:var(--bone)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav a,
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav button,
:root.ah-boot:not(:has(#view > *)) .ah-nav a,
:root.ah-boot:not(:has(#view > *)) .ah-nav button{color:rgba(255,254,247,.74)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav [aria-current="page"],
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav a:focus-visible,
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav button:focus-visible,
:root.ah-boot:not(:has(#view > *)) .ah-nav [aria-current="page"],
:root.ah-boot:not(:has(#view > *)) .ah-nav a:focus-visible,
:root.ah-boot:not(:has(#view > *)) .ah-nav button:focus-visible{color:var(--bone)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-me,
:root.ah-boot:not(:has(#view > *)) .ah-me{background:var(--bone);color:var(--ink)}
@media (hover:hover){
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav a:hover,
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah-nav button:hover,
:root.ah-boot:not(:has(#view > *)) .ah-nav a:hover,
:root.ah-boot:not(:has(#view > *)) .ah-nav button:hover{color:var(--bone)}
:root:has(body:not(.flow-on):not(.cvl-busy) #view > .ag-full:first-child > .ag-first > .ag-stage):not(.ah-solid):not(:has(#amenu[data-open])) .ah .pill:hover,
:root.ah-boot:not(:has(#view > *)) .ah .pill:hover{background:var(--bone);color:var(--ink);border-color:var(--bone)}
}
.ah .pill,.ah-nav a,.ah-nav button,.ah .cv-beta{transition:color .4s cubic-bezier(.2,0,0,1),background-color .2s ease-out,border-color .4s cubic-bezier(.2,0,0,1)}
