/* CinemaArchive — кинематографичная тёмная тема */
:root{
  --bg:#07080C;--bg-2:#0D0F15;--surface:#141720;--surface-2:#1C2030;--line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.16);
  --text:#F4F1EA;--text-2:#B9B4A8;--muted:#7E7A70;
  --gold:#D4AF6A;--gold-2:#EAC98A;--gold-ink:#1B1406;
  --red:#B8323A;
  --display:"Playfair Display",Georgia,"Times New Roman",serif;
  --body:"Source Sans 3","Source Sans Pro","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"JetBrains Mono",Consolas,monospace;
  --shadow:0 20px 50px rgba(0,0,0,.55);
  --header-h:68px;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{height:100%;scroll-behavior:smooth}
body{min-height:100%;background:var(--bg);color:var(--text);font:16px/1.5 var(--body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img,video,svg{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
ul{list-style:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
svg.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- шапка ---------- */
.top{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--header-h);display:flex;align-items:center;gap:28px;padding:0 clamp(16px,4vw,56px);transition:background .3s,backdrop-filter .3s;background:linear-gradient(to bottom,rgba(7,8,12,.9),transparent)}
.top.solid{background:rgba(7,8,12,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{font:700 24px/1 var(--display);letter-spacing:.02em;display:flex;align-items:center;gap:10px;white-space:nowrap}
.brand i{width:28px;height:28px;border:2px solid var(--gold);border-radius:50%;display:inline-grid;place-items:center;position:relative}
.brand i::after{content:"";width:0;height:0;border-style:solid;border-width:5px 0 5px 9px;border-color:transparent transparent transparent var(--gold);margin-left:2px}
.brand em{font-style:italic;color:var(--gold);font-weight:400}
.top nav{display:flex;gap:4px}
.top nav a{padding:8px 12px;border-radius:6px;color:var(--text-2);font-weight:500;font-size:15px;transition:color .15s}
.top nav a:hover,.top nav a[aria-current="page"]{color:var(--text)}
.top nav a[aria-current="page"]{position:relative}
.top nav a[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;background:var(--gold)}
.top .grow{flex:1}
.tsearch{display:flex;align-items:center;height:40px;border:1px solid var(--line-2);border-radius:8px;background:rgba(255,255,255,.04);padding:0 6px 0 12px;width:0;overflow:hidden;opacity:0;transition:width .3s,opacity .2s}
.tsearch.open{width:min(320px,45vw);opacity:1}
.tsearch input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--text)}
.tsearch input::placeholder{color:var(--muted)}
.ibtn{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;color:var(--text-2);transition:background .15s,color .15s}
.ibtn:hover{background:rgba(255,255,255,.08);color:var(--text)}
.profile{width:34px;height:34px;border-radius:7px;background:linear-gradient(135deg,var(--gold),#8E6A2E);display:grid;place-items:center;font-weight:700;color:var(--gold-ink);font-size:14px}
@media (max-width:860px){.top{gap:12px}.top nav{display:none}.brand span{display:none}}

/* ---------- hero ---------- */
.hero{position:relative;min-height:min(86vh,820px);display:flex;align-items:flex-end;padding:calc(var(--header-h) + 40px) clamp(16px,4vw,56px) 90px;isolation:isolate;overflow:hidden}
.hero .bg{position:absolute;inset:0;z-index:-2;background:#000}
.hero .bg img,.hero .bg video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .bg img{animation:kb 28s ease-in-out infinite alternate;transform-origin:60% 40%}
.hero .bg video{opacity:0;transition:opacity 1.2s}
.hero .bg video.on{opacity:1}
@keyframes kb{from{transform:scale(1.02)}to{transform:scale(1.14) translate(-1.5%,1%)}}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to right,rgba(7,8,12,.95) 0%,rgba(7,8,12,.75) 35%,rgba(7,8,12,.15) 70%,rgba(7,8,12,.2)),linear-gradient(to top,var(--bg) 0%,rgba(7,8,12,.6) 25%,transparent 55%)}
.hero .grain{position:absolute;inset:0;z-index:-1;opacity:.14;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E")}
.hero-c{max-width:720px;animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.kicker{display:flex;align-items:center;gap:10px;font-size:12.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:600}
.kicker::before{content:"";width:28px;height:1px;background:var(--gold)}
.hero h1{font:700 clamp(36px,6vw,78px)/1.02 var(--display);letter-spacing:-.01em;margin:16px 0 18px;text-wrap:balance;text-shadow:0 2px 24px rgba(0,0,0,.5)}
.hero .meta{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:14.5px;color:var(--text-2);margin-bottom:18px}
.hero .meta b{color:var(--text);font-weight:600}
.badge{display:inline-block;padding:3px 8px;border:1px solid var(--line-2);border-radius:4px;font-size:12px;letter-spacing:.08em;font-weight:600;color:var(--text)}
.badge.gold{border-color:var(--gold);color:var(--gold)}
.hero p{font-size:17px;line-height:1.55;color:var(--text-2);max-width:60ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 24px;border-radius:6px;font-weight:600;font-size:16px;transition:transform .12s,background .15s,color .15s;white-space:nowrap}
.btn:active{transform:scale(.98)}
.btn.gold{background:var(--gold);color:var(--gold-ink)}
.btn.gold:hover{background:var(--gold-2)}
.btn.glass{background:rgba(255,255,255,.12);color:var(--text);backdrop-filter:blur(8px)}
.btn.glass:hover{background:rgba(255,255,255,.2)}
.btn.ghost{border:1px solid var(--line-2);color:var(--text)}
.btn.ghost:hover{border-color:var(--gold);color:var(--gold)}
.btn.sm{height:38px;padding:0 16px;font-size:14px}
.btn svg{width:22px;height:22px;fill:currentColor}
.btn.outline-svg svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero .dots{position:absolute;right:clamp(16px,4vw,56px);bottom:40px;display:flex;gap:8px}
.hero .dots button{width:30px;height:4px;border-radius:2px;background:rgba(255,255,255,.3);transition:background .2s,width .2s}
.hero .dots button[aria-current="true"]{background:var(--gold);width:48px}
.hero .mute{position:absolute;right:clamp(16px,4vw,56px);bottom:70px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line-2);display:grid;place-items:center;color:var(--text);background:rgba(0,0,0,.3)}
@media (max-width:720px){.hero{min-height:72vh;padding-bottom:70px}.hero .dots{left:16px;right:auto}.hero .mute{bottom:16px}}

/* ---------- ряды / карусели ---------- */
.rows{display:flex;flex-direction:column;gap:46px;padding:10px 0 80px;margin-top:-30px;position:relative;z-index:1}
.row{position:relative}
.row-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0 clamp(16px,4vw,56px);margin-bottom:14px}
.row-h h2{font:600 clamp(20px,2.2vw,26px)/1.2 var(--display);letter-spacing:.005em}
.row-h h2 small{font:400 14px var(--body);color:var(--muted);margin-left:12px;letter-spacing:0}
.row-h a{font-size:14px;color:var(--gold);font-weight:600;display:inline-flex;align-items:center;gap:6px;opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s}
.row:hover .row-h a,.row-h a:focus-visible{opacity:1;transform:none}
.row-h a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2}
.track-wrap{position:relative}
.track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:14px clamp(16px,4vw,56px) 26px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.track::-webkit-scrollbar{display:none}
.arrow{position:absolute;top:14px;bottom:26px;width:clamp(40px,4vw,56px);z-index:3;display:grid;place-items:center;background:linear-gradient(to right,rgba(7,8,12,.9),rgba(7,8,12,.2));color:#fff;opacity:0;transition:opacity .2s}
.arrow.r{right:0;background:linear-gradient(to left,rgba(7,8,12,.9),rgba(7,8,12,.2))}
.arrow.l{left:0}
.track-wrap:hover .arrow:not([disabled]),.arrow:focus-visible{opacity:1}
.arrow[disabled]{opacity:0;pointer-events:none}
.arrow svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.arrow:hover svg{transform:scale(1.2)}
.tile{position:relative;flex:0 0 clamp(220px,22vw,320px);aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--surface);scroll-snap-align:start;cursor:pointer;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s;isolation:isolate;outline-offset:-2px}
.tile img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s;background:#000}
.tile.pv video{opacity:1}
.tile .ov{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.92) 0%,rgba(0,0,0,.35) 45%,transparent 75%);opacity:0;transition:opacity .25s;display:flex;flex-direction:column;justify-content:flex-end;padding:12px 14px;gap:6px;z-index:2}
.tile .ov h3{font:600 15px/1.25 var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tile .ov .m{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--text-2);flex-wrap:wrap}
.tile .ov .m b{color:#8BD17C;font-weight:600}
.tile .ov .acts{display:flex;gap:6px;margin-top:4px}
.tile .ov .acts button{width:32px;height:32px;border-radius:50%;border:1.5px solid rgba(255,255,255,.6);display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.4);transition:background .15s,border-color .15s}
.tile .ov .acts button:hover{background:#fff;color:#000;border-color:#fff}
.tile .ov .acts button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tile .ov .acts button[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.tile .ov .acts button.play svg{fill:currentColor;stroke:none}
.tile .dur{position:absolute;right:8px;top:8px;padding:2px 6px;border-radius:4px;background:rgba(0,0,0,.75);font:500 11.5px/1.5 var(--mono);z-index:2}
.tile .q{position:absolute;left:8px;top:8px;padding:2px 7px;border-radius:4px;background:rgba(0,0,0,.7);font:600 10.5px/1.6 var(--body);letter-spacing:.08em;z-index:2}
.tile .q.hd{background:var(--gold);color:var(--gold-ink)}
.tile .prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.25);z-index:3}
.tile .prog i{display:block;height:100%;background:var(--gold)}
@media (hover:hover){.tile:hover{transform:scale(1.08);box-shadow:var(--shadow);z-index:5}.tile:hover .ov{opacity:1}.tile:hover img{transform:scale(1.05)}.track:hover .tile:not(:hover){filter:brightness(.7)}}
.tile:focus-visible .ov{opacity:1}
.tile.rank{flex-basis:clamp(280px,28vw,400px);display:flex;align-items:flex-end;background:transparent;overflow:visible}
.tile.rank .num{font:700 clamp(110px,14vw,170px)/0.8 var(--display);color:transparent;-webkit-text-stroke:2px rgba(255,255,255,.35);margin-right:-18px;flex:none;letter-spacing:-.06em;position:relative;z-index:1;transition:color .3s}
.tile.rank:hover .num{color:var(--gold);-webkit-text-stroke-color:var(--gold)}
.tile.rank .inner{position:relative;flex:1;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--surface)}
.tile.rank .inner img{height:100%}
.chan{flex:0 0 200px;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;transition:transform .3s,border-color .3s}
.chan:hover{transform:translateY(-4px);border-color:var(--gold)}
.chan .av{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font:700 22px var(--display);color:#fff}
.chan b{font-size:15px;line-height:1.3}
.chan span{font-size:12.5px;color:var(--muted)}
.chan .tg{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.chan .tg i{font-style:normal;font-size:11px;padding:2px 7px;border:1px solid var(--line-2);border-radius:999px;color:var(--text-2)}
.genre{flex:0 0 240px;aspect-ratio:2.4;border-radius:8px;overflow:hidden;position:relative;scroll-snap-align:start;display:flex;align-items:flex-end;padding:14px;font:600 18px var(--display);isolation:zoom}
.genre img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.55) saturate(1.1);transition:transform .5s,filter .3s;z-index:-1}
.genre:hover img{transform:scale(1.07);filter:brightness(.75) saturate(1.2)}
.genre small{display:block;font:400 12px var(--body);color:var(--text-2)}

/* ---------- информационная полоса ---------- */
.strip{margin:10px clamp(16px,4vw,56px) 0;padding:28px clamp(18px,3vw,40px);border:1px solid var(--line);border-radius:12px;background:linear-gradient(135deg,rgba(212,175,106,.08),transparent 60%),var(--bg-2);display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:22px}
.strip div b{display:block;font:600 34px/1 var(--display);color:var(--gold);font-variant-numeric:tabular-nums}
.strip div span{display:block;margin-top:6px;font-size:13.5px;color:var(--text-2);letter-spacing:.04em}

/* ---------- страница категории ---------- */
.page{padding:calc(var(--header-h) + 36px) clamp(16px,4vw,56px) 90px}
.page-h{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}
.page-h h1{font:700 clamp(32px,4.5vw,56px)/1.05 var(--display);letter-spacing:-.01em;text-wrap:balance}
.page-h .sub{color:var(--muted);margin-top:8px;font-size:15px}
.cat-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:36px;align-items:start}
@media (max-width:900px){.cat-layout{grid-template-columns:1fr}}
.filters{position:sticky;top:calc(var(--header-h) + 16px);display:flex;flex-direction:column;gap:22px;max-height:calc(100vh - var(--header-h) - 32px);overflow:auto;padding-right:6px;scrollbar-width:thin}
@media (max-width:900px){.filters{position:static;max-height:none}}
.fgroup h4{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px;display:flex;justify-content:space-between}
.fgroup h4 button{font-size:11px;letter-spacing:.04em;text-transform:none;color:var(--gold)}
.fgroup .opts{display:flex;flex-direction:column;gap:2px}
.opt{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:15px;color:var(--text-2);transition:background .12s,color .12s}
.opt:hover{background:var(--surface);color:var(--text)}
.opt input{accent-color:var(--gold);width:16px;height:16px;flex:none}
.opt .n{margin-left:auto;font:500 12px var(--mono);color:var(--muted)}
.opt.on{color:var(--text)}
.tagcloud{display:flex;flex-wrap:wrap;gap:6px}
.tagcloud button{padding:6px 12px;border-radius:999px;border:1px solid var(--line-2);font-size:13.5px;color:var(--text-2);transition:all .15s}
.tagcloud button:hover{border-color:var(--gold);color:var(--text)}
.tagcloud button[aria-pressed="true"]{background:var(--gold);border-color:var(--gold);color:var(--gold-ink);font-weight:600}
.range{display:flex;flex-direction:column;gap:6px}
.range input{accent-color:var(--gold)}
.range .lbl{display:flex;justify-content:space-between;font:500 12.5px var(--mono);color:var(--text-2)}
.results-h{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.results-h .count{color:var(--muted);font-size:14.5px}
.results-h .count b{color:var(--text);font-weight:600}
.sel{height:40px;padding:0 36px 0 14px;border-radius:6px;border:1px solid var(--line-2);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;appearance:none;color:var(--text);font-size:14.5px}
.active-f{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.active-f button{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:var(--surface-2);font-size:13px;color:var(--text)}
.active-f button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4}
.active-f .clear{background:transparent;color:var(--gold)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px 14px}
.grid .tile{flex:none;aspect-ratio:16/9;width:100%}
.gcard{display:flex;flex-direction:column;gap:9px}
.gcard .t{font:600 15.5px/1.3 var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gcard .s{font-size:13px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.gcard .s span+span::before{content:"·";margin-right:8px}
.grid.list{grid-template-columns:1fr;gap:14px}
.grid.list .gcard{flex-direction:row;gap:18px}
.grid.list .gcard .tile{width:min(320px,40vw);flex:none}
.grid.list .gcard .t{font-size:18px;-webkit-line-clamp:2}
.grid.list .gcard p{color:var(--text-2);font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:6px}
.view-sw{display:inline-flex;border:1px solid var(--line-2);border-radius:6px;overflow:hidden}
.view-sw button{width:40px;height:40px;display:grid;place-items:center;color:var(--muted)}
.view-sw button[aria-pressed="true"]{background:var(--surface-2);color:var(--text)}
.view-sw svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.more-wrap{display:flex;justify-content:center;padding:36px 0 0}
.empty{padding:60px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line-2);border-radius:12px}
.empty h3{font:600 24px var(--display);color:var(--text);margin-bottom:8px}

/* ---------- модальный плеер ---------- */
.pm{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;animation:fade .25s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.pm .box{width:min(1280px,100%);max-height:100%;display:flex;flex-direction:column;background:var(--bg-2);border-radius:10px;overflow:hidden;box-shadow:var(--shadow);animation:pop .3s cubic-bezier(.2,.7,.2,1)}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
@media (max-width:900px){.pm{align-items:stretch}.pm .box{border-radius:0;overflow:auto}}
.pm .close{position:absolute;top:14px;right:14px;z-index:5;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center;color:#fff}
.pm .close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ap{position:relative;aspect-ratio:16/9;background:#000;max-height:76vh;outline:0;user-select:none}
.ap video{width:100%;height:100%;object-fit:contain}
.ap .ctl{position:absolute;left:0;right:0;bottom:0;padding:0 16px 10px;background:linear-gradient(to top,rgba(0,0,0,.85),transparent);color:#fff;transition:opacity .25s}
.ap.idle .ctl{opacity:0;pointer-events:none}
.ap.idle{cursor:none}
.ap .seek{height:20px;display:flex;align-items:center;cursor:pointer;position:relative}
.ap .seek .tr{position:relative;width:100%;height:4px;background:rgba(255,255,255,.3);border-radius:2px;transition:height .12s}
.ap .seek:hover .tr{height:6px}
.ap .seek .bf,.ap .seek .fl{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
.ap .seek .bf{background:rgba(255,255,255,.45)}
.ap .seek .fl{background:var(--gold)}
.ap .seek .kn{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:var(--gold);transform:translate(-50%,-50%) scale(0);transition:transform .12s}
.ap .seek:hover .kn{transform:translate(-50%,-50%) scale(1)}
.ap .seek .tip{position:absolute;bottom:22px;transform:translateX(-50%);background:rgba(0,0,0,.9);padding:3px 7px;border-radius:4px;font:500 12px var(--mono);opacity:0;pointer-events:none;white-space:nowrap}
.ap .seek:hover .tip{opacity:1}
.ap .btns{display:flex;align-items:center;gap:4px}
.ap .b{width:42px;height:42px;display:grid;place-items:center;border-radius:6px;color:#fff;transition:background .12s}
.ap .b:hover{background:rgba(255,255,255,.14)}
.ap .b svg{width:24px;height:24px;fill:#fff}
.ap .b.o svg{fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ap .tm{font:500 13.5px var(--mono);padding:0 10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ap .tm span{color:rgba(255,255,255,.6)}
.ap .sp{flex:1}
.ap .vol{display:flex;align-items:center}
.ap .vol input{width:0;opacity:0;transition:width .2s,opacity .2s;accent-color:#fff;cursor:pointer}
.ap .vol:hover input,.ap .vol:focus-within input{width:80px;opacity:1}
.ap .title{position:absolute;left:16px;right:70px;top:14px;font:600 17px var(--body);text-shadow:0 1px 3px rgba(0,0,0,.7);transition:opacity .25s}
.ap.idle .title{opacity:0}
.ap .bigp{position:absolute;inset:0;margin:auto;width:92px;height:92px;border-radius:50%;background:rgba(0,0,0,.5);border:2px solid rgba(255,255,255,.75);display:grid;place-items:center;transition:transform .15s,opacity .2s}
.ap .bigp svg{width:40px;height:40px;fill:#fff;margin-left:5px}
.ap.playing .bigp{opacity:0;pointer-events:none}
.ap .spin{position:absolute;inset:0;margin:auto;width:54px;height:54px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;display:none}
.ap.waiting .spin{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
.ap .pop{position:absolute;right:16px;bottom:64px;min-width:190px;background:rgba(16,18,26,.97);border:1px solid var(--line-2);border-radius:8px;padding:6px;z-index:5}
.ap .pop h5{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:8px 10px 4px}
.ap .pop button{display:flex;justify-content:space-between;width:100%;padding:8px 10px;border-radius:5px;color:#fff;font-size:14px;text-align:left}
.ap .pop button:hover{background:rgba(255,255,255,.1)}
.ap .pop button[aria-checked="true"]::after{content:"✓";color:var(--gold)}
.ap .pop small{color:var(--muted);margin-left:10px}
.ap:fullscreen{aspect-ratio:auto;max-height:none;width:100vw;height:100vh}
.pm .info{padding:22px clamp(16px,3vw,32px) 28px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;overflow:auto}
@media (max-width:900px){.pm .info{grid-template-columns:1fr}}
.pm .info h2{font:700 clamp(22px,2.6vw,32px)/1.15 var(--display);text-wrap:balance}
.pm .info .meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:10px 0 14px;font-size:14px;color:var(--text-2)}
.pm .info .meta b{color:#8BD17C}
.pm .info p{color:var(--text-2);line-height:1.6;font-size:15px;white-space:pre-wrap;max-height:9.6em;overflow:hidden;position:relative}
.pm .info p.open{max-height:none}
.pm .info .more{margin-top:8px;color:var(--gold);font-weight:600;font-size:14px}
.pm .side{display:flex;flex-direction:column;gap:12px;font-size:14px}
.pm .side div{display:grid;grid-template-columns:110px 1fr;gap:10px}
.pm .side span{color:var(--muted)}
.pm .side a{color:var(--gold)}
.pm .acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.pm .acts .btn[aria-pressed="true"]{background:var(--gold);color:var(--gold-ink);border-color:var(--gold)}
.pm .related{grid-column:1/-1;margin-top:8px}
.pm .related h3{font:600 20px var(--display);margin-bottom:12px}
.pm .related .track{padding:10px 0 16px}

/* ---------- общее ---------- */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:300;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{padding:12px 20px;border-radius:8px;background:var(--text);color:var(--bg);font-weight:600;font-size:14px;box-shadow:var(--shadow);animation:rise .25s}
.footer{padding:40px clamp(16px,4vw,56px) 60px;border-top:1px solid var(--line);color:var(--muted);font-size:14px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px}
.footer .brand{font-size:20px}
.footer a{color:var(--text-2)}
.footer a:hover{color:var(--gold)}
.skl{background:linear-gradient(100deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%);background-size:300% 100%;animation:sh 1.3s infinite;border-radius:6px}
@keyframes sh{to{background-position-x:-300%}}
