/* TEMA Clips player (/video/), variant 1 «Как TikTok», 20.11.2026 */
html:has(.tc-body),body.tc-body{margin:0;height:100%;background:#000;overflow:hidden;overscroll-behavior:none}
.tc-body #tema-to-top,.tc-body .tpu-pop,.tc-body .gtranslate_wrapper{display:none!important}
.tc{position:fixed;inset:0;background:#000;color:#fff;font-family:Arial,Helvetica,sans-serif;-webkit-tap-highlight-color:transparent}
.tc *{box-sizing:border-box}
.tc svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tc svg .f{fill:currentColor;stroke:none}
.tc button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.tc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.tc-top{position:absolute;z-index:5;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:calc(12px + env(safe-area-inset-top)) 14px 12px 16px;pointer-events:none}
.tc-top>*{pointer-events:auto}
.tc-logo{display:inline-flex;align-items:center;gap:7px;color:#fff!important;text-decoration:none!important;font-weight:700;font-size:19px;letter-spacing:-.5px;text-shadow:0 1px 6px #0007}
.tc-logo b{color:#df7411}
.tc-logo .tc-mark{width:34px;height:34px;flex:none;filter:drop-shadow(0 1px 4px #0006)}
.tc-close{width:42px;height:42px;border-radius:50%;background:#0006!important;display:grid;place-items:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tc-close:hover{background:#0009!important}

.tc-feed{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.tc-feed::-webkit-scrollbar{display:none}
.tc-s{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.tc-box{position:absolute;inset:0;background:#000;overflow:hidden}
.tc-poster,.tc-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tc-v{z-index:1;opacity:0;transition:opacity .2s}.tc-shade,.tc-pp,.tc-spin,.tc-cap{z-index:2}.tc-v.ok{opacity:1}
.tc-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0007 0,#0000 16%,#0000 52%,#000c 100%)}
.tc-pp{position:absolute;top:50%;left:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:#0006;display:grid;place-items:center;opacity:0;transform:scale(.8);transition:opacity .15s,transform .15s;pointer-events:none}
.tc-pp svg{width:36px;height:36px;margin-left:4px}
.tc-s.is-paused .tc-pp{opacity:1;transform:none}
.tc-spin{position:absolute;top:50%;left:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #ffffff40;border-top-color:#fff;opacity:0;pointer-events:none;animation:tc-spin .8s linear infinite}
.tc-s.is-wait .tc-spin{opacity:1;transition:opacity .2s .4s}
@keyframes tc-spin{to{transform:rotate(360deg)}}

.tc-cap{position:absolute;z-index:2;left:16px;right:84px;bottom:calc(30px + env(safe-area-inset-bottom));text-shadow:0 1px 4px #0008}
.tc-cap small{display:block;font-size:12px;opacity:.85;margin-bottom:6px}
.tc-cap h2{margin:0;font-size:16px;line-height:1.3;font-weight:700;color:#fff}
.tc-cap h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc .tc-more{display:inline-flex;align-items:center;gap:3px;margin-top:6px;padding:4px 0;font-size:13.5px;font-weight:700;color:#ffffffd9}
.tc .tc-more svg{width:16px;height:16px;transition:transform .2s}
.tc-cap.is-open .tc-more svg{transform:rotate(180deg)}
.tc-txt{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:#ffffffe6;max-height:34vh;overflow-y:auto;cursor:pointer;overscroll-behavior:contain}
.tc-shade{transition:background .25s}
.tc-s:has(.tc-cap.is-open) .tc-shade{background:linear-gradient(180deg,#0007 0,#0000 16%,#0006 35%,#000d 100%)}
/* full-width progress bar at the bottom: tap or drag to jump to a moment */
.tc-bar{position:absolute;z-index:3;left:0;right:0;bottom:env(safe-area-inset-bottom);height:28px;cursor:pointer;display:flex;align-items:flex-end;padding-bottom:6px;touch-action:none}
.tc-bar:before{content:"";position:absolute;left:0;right:0;bottom:6px;height:3px;background:#ffffff40;transition:height .15s}
.tc-bar i{position:relative;display:block;height:3px;width:0;background:#df7411;transition:height .15s}
.tc-bar i:after{content:"";position:absolute;right:-7px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0006;transform:scale(0);transition:transform .15s}
.tc-s.is-scrub .tc-bar:before,.tc-s.is-scrub .tc-bar i,.tc-bar:hover:before,.tc-bar:hover i{height:6px}
.tc-s.is-scrub .tc-bar i:after,.tc-bar:hover i:after{transform:scale(1)}
.tc-time{position:absolute;z-index:3;left:50%;bottom:calc(130px + env(safe-area-inset-bottom));transform:translateX(-50%);font-size:30px;font-weight:700;letter-spacing:.5px;text-shadow:0 2px 10px #000a;white-space:nowrap;opacity:0;transition:opacity .15s;pointer-events:none;font-variant-numeric:tabular-nums}
.tc-time span{color:#ffffffa6}
.tc-s.is-scrub .tc-time{opacity:1}

.tc-rail{position:absolute;z-index:3;right:10px;bottom:calc(36px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;align-items:center}
.tc-rail>*{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#fff!important;text-decoration:none!important;text-shadow:0 1px 3px #0009;min-width:56px}
.tc-rail span{width:48px;height:48px;border-radius:50%;background:#ffffff2e;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center;transition:background .15s,transform .15s}
.tc-rail>*:hover span{background:#ffffff47}
.tc-rail>*:active span{transform:scale(.92)}
.tc-rail em{font-style:normal;min-height:13px}
.tc-art span{background:#df7411}.tc-art:hover span{background:#ef8020!important}
.tc-like.is-on svg{fill:#ff3d57;stroke:#ff3d57}
.tc-like.pop span{animation:tc-pop .35s ease}
@keyframes tc-pop{40%{transform:scale(1.25)}}
.tc-snd .i-on{display:none}.tc:not(.is-muted) .tc-snd .i-on{display:block}.tc:not(.is-muted) .tc-snd .i-off{display:none}

.tc-hint{position:absolute;z-index:6;top:calc(76px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;padding:8px 18px 8px 8px;border-radius:999px;background:#df7411!important;color:#fff;font-size:15px!important;font-weight:700;box-shadow:0 8px 24px #0006,0 0 0 0 #df741199;animation:tc-hint 2s ease-out infinite}
.tc-hint-i{width:32px;height:32px;border-radius:50%;background:#ffffff33;display:grid;place-items:center;flex:none}
.tc .tc-hint svg{width:18px;height:18px}
@keyframes tc-hint{0%{box-shadow:0 8px 24px #0006,0 0 0 0 #df7411aa}70%,100%{box-shadow:0 8px 24px #0006,0 0 0 14px #df741100}}
.tc .tc-hint{padding:6px 16px 6px 6px;font-size:14px!important;max-width:calc(100% - 24px)}
@media(max-width:360px){.tc .tc-hint{font-size:12.5px!important;gap:7px}}
@media(prefers-reduced-motion:reduce){.tc-hint{animation:none}}
.tc-hint[hidden]{display:none}

.tc-end{display:grid;place-items:center;background:#141513;text-align:center;padding:24px}
.tc-endbox p{margin:0 0 8px;font-size:26px;font-weight:700;letter-spacing:-.5px}.tc-endbox p b{color:#df7411}
.tc-endbox>span{display:block;color:#9a9a92;font-size:14px;margin-bottom:24px}
.tc-again{display:inline-flex!important;align-items:center;gap:8px;padding:14px 24px!important;border-radius:999px;background:#df7411!important;font-weight:700!important;font-size:15px}
.tc-endbox a{display:block;margin-top:16px;color:#c9c9c2!important;font-size:14px}

.tc-nav{display:none}
.tc-toast{position:absolute;z-index:7;left:50%;bottom:calc(40px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#fff;color:#20211f;font-weight:700;font-size:14px;padding:10px 18px;border-radius:999px;transition:opacity .2s,transform .2s}
.tc-toast.is-in{opacity:1;transform:translate(-50%,0)}

/* computers: the clip stands in the middle on a blurred copy of itself, buttons beside it, arrows on the right */
@media(min-width:900px){
  .tc-s{display:flex;align-items:center;justify-content:center;background:#111}
  .tc-s:before{content:"";position:absolute;inset:-60px;background:var(--bg,none) center/cover;filter:blur(44px) brightness(.38) saturate(1.2)}
  .tc-box{position:relative;inset:auto;height:calc(100% - 40px);aspect-ratio:9/16;border-radius:16px;box-shadow:0 30px 80px #0008}
  .tc-cap{right:16px;bottom:30px}
  .tc-rail{right:auto;left:calc(50% + (100vh - 40px) * 9 / 32 + 16px);bottom:26px}
  .tc-top{padding:18px 26px}
  .tc-nav{display:flex;flex-direction:column;gap:12px;position:absolute;z-index:4;right:28px;top:50%;transform:translateY(-50%)}
  .tc-nav button{width:50px;height:50px;border-radius:50%;background:#ffffff1f;display:grid;place-items:center;transition:background .15s}
  .tc-nav button:hover{background:#ffffff38}
  .tc-hint{top:80px}
  .tc-box{cursor:pointer}
}
@media(prefers-reduced-motion:reduce){.tc-v,.tc-pp,.tc-toast{transition:none}.tc-like.pop span{animation:none}}

/* hold = 1.5× speed and a clean screen (20.11.2026) */
.tc-box{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.tc-fast{position:absolute;z-index:3;top:calc(14px + env(safe-area-inset-top));left:50%;display:flex;align-items:center;gap:5px;padding:6px 12px;border-radius:999px;background:#0008;font-size:13px!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:14px;font-weight:700;white-space:nowrap;opacity:0;transform:translate(-50%,-6px);transition:opacity .15s,transform .15s;pointer-events:none}
.tc-fast b{color:#df7411;font-size:15px}
.tc .tc-fast svg{width:16px;height:16px;animation:tc-ff .8s ease-in-out infinite}
.tc-s.is-fast .tc-fast{opacity:1;transform:translate(-50%,0)}
.tc-s.is-fast .tc-bar i{background:#fff}
@keyframes tc-ff{50%{transform:translateX(3px);opacity:.6}}
@media(min-width:900px){.tc-fast{top:14px}}
@media(prefers-reduced-motion:reduce){.tc .tc-fast svg{animation:none}}
.tc-top,.tc-hint,.tc-rail,.tc-cap,.tc-shade,.tc-nav{transition:opacity .2s}
.tc.is-clean .tc-top,.tc.is-clean .tc-hint,.tc.is-clean .tc-rail,.tc.is-clean .tc-cap,.tc.is-clean .tc-shade,.tc.is-clean .tc-nav{opacity:0;pointer-events:none}
.tc.is-clean .tc-feed{overflow:hidden;touch-action:none}
/* icons only, no captions under them (names stay for screen readers) */
.tc-rail em{display:none}
.tc-rail{gap:14px}
.tc-cap:has(.tc-more) h2{cursor:pointer}

/* PC: volume slider next to the sound button, shown on hover */
.tc-sndw{position:relative}
.tc-vol{position:absolute;left:100%;top:50%;transform:translate(-6px,-50%);padding-left:10px;opacity:0;visibility:hidden;transition:opacity .15s,transform .15s,visibility 0s .15s}
.tc-sndw:hover .tc-vol,.tc-sndw:has(:focus-visible) .tc-vol{opacity:1;visibility:visible;transform:translate(0,-50%);transition:opacity .15s,transform .15s}
.tc-vol-in{display:flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;background:#00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.tc-vol input{-webkit-appearance:none;appearance:none;width:110px;height:4px;margin:0;border-radius:2px;cursor:pointer;background:linear-gradient(90deg,#fff var(--p,100%),#ffffff4d var(--p,100%))}
.tc-vol input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0006}
.tc-vol input::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0006}
.tc-vol input:focus-visible{outline:2px solid #df7411;outline-offset:6px}

/* «Поделиться»: bottom sheet on phones, a card in the middle on computers */
.tc-sh{position:fixed;inset:0;z-index:20}
.tc-sh[hidden]{display:none}
.tc-sh-dim{position:absolute;inset:0;background:#0009;opacity:0;transition:opacity .2s}
.tc-sh-box{position:absolute;left:0;right:0;bottom:0;background:#fff;color:#20211f;border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .25s cubic-bezier(.2,.8,.2,1);max-height:85vh;overflow:auto}
.tc-sh.is-in .tc-sh-dim{opacity:1}.tc-sh.is-in .tc-sh-box{transform:none}
.tc-sh-top{display:flex;align-items:center;justify-content:space-between}
.tc-sh-top b{font-size:18px}
.tc .tc-sh-x{width:36px;height:36px;border-radius:50%;background:#f1efea;display:grid;place-items:center}
.tc-sh-t{margin:4px 0 14px;font-size:13px;color:#6b6b6b;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc-sh-g{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 6px}
.tc-sh-g>*{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px!important;font-weight:700;line-height:1.2;text-align:center;color:#20211f!important;text-decoration:none!important;min-width:0}
.tc-sh-g i{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;transition:transform .15s}
.tc-sh-g i.is-plain{background:#f1efea;color:#20211f}
.tc-sh-g svg{width:26px;height:26px;fill:#fff}
.tc-sh svg.st{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tc-sh-g i:not(.is-plain) svg.st{stroke:#fff}
.tc-sh-g>*:hover i{transform:translateY(-2px)}.tc-sh-g>*:active i{transform:scale(.94)}
.tc-sh-g>*:focus-visible{outline:2px solid #df7411;outline-offset:3px;border-radius:12px}
@media(min-width:900px){
  .tc-sh-box{left:50%;right:auto;bottom:auto;top:50%;width:420px;border-radius:22px;padding:20px 22px 22px;transform:translate(-50%,-46%);opacity:0;transition:transform .2s,opacity .2s}
  .tc-sh.is-in .tc-sh-box{transform:translate(-50%,-50%);opacity:1}
}
@media(prefers-reduced-motion:reduce){.tc-sh-box,.tc-sh-dim{transition:none}}
.tc .tc-sh-g svg:not(.st),.tc .tc-sh-g svg:not(.st) path{stroke:none!important;fill:#fff}

/* first visit: a two-step demo on the real clip — swipe (the next clip peeks) and hold (the clip plays at 1.5×) */
.tc-tips{position:absolute;inset:0;z-index:15;background:radial-gradient(ellipse at 50% 45%,#0000004d,#000000a6 75%);opacity:0;transition:opacity .25s;cursor:pointer;-webkit-user-select:none;user-select:none}
.tc-tips.is-in{opacity:1}
.tc.is-tips .tc-hint,.tc.is-tips .tc-rail,.tc.is-tips .tc-cap,.tc.is-tips .tc-nav{opacity:0;pointer-events:none}
.tc-tips-hand{position:absolute;left:50%;top:44%;width:0;height:0}
.tc .tc-tips-hand svg{position:absolute;left:-44px;top:-30px;width:96px;height:96px;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 4px 12px #000c)}
.tc .tc-tips-hand .tc-mouse{display:none}
.tc-tips-trail{position:absolute;left:-7px;width:14px;border-radius:7px;background:linear-gradient(180deg,#ffffffcc,#fff0);opacity:0}
.tc-tips-ring{position:absolute;left:-40px;top:-40px;width:80px;height:80px;border-radius:50%;border:3px solid #fff;opacity:0}
.tc-tips-x{position:absolute;left:50%;top:-118px;transform:translateX(-50%);font-size:28px;font-weight:800;color:#fff;background:#df7411;border-radius:12px;padding:6px 14px;box-shadow:0 6px 20px #df741166;opacity:0}
.tc-tips-txt{position:absolute;left:24px;right:24px;top:calc(44% + 110px);text-align:center;text-shadow:0 2px 10px #000c}
.tc-tips-t{display:block;font-size:26px;line-height:1.15;color:#fff}
.tc-tips-d{margin:8px auto 0;max-width:300px;font-size:15px;line-height:1.4;color:#ffffffd9}
.tc-tips-bot{position:absolute;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:16px}
.tc-tips-dots{display:flex;gap:8px}.tc-tips-dots i{width:8px;height:8px;border-radius:50%;background:#ffffff59;transition:width .2s,background .2s}.tc-tips-dots i.on{width:22px;border-radius:4px;background:#fff}
.tc .tc-tips-ok{height:48px;min-width:170px;padding:0 30px;border-radius:999px;background:#df7411;color:#fff;font-weight:700;font-size:16px;box-shadow:0 6px 18px #df741155}
.tc .tc-tips-ok:hover{background:#ec7c18}
.tc .tc-tips-ok:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* step 1: the hand swipes up, the feed peeks the next clip in the same rhythm */
.tc-tips.is-step1 svg.tc-hand{animation:tc-t-swipe 2.4s cubic-bezier(.45,0,.25,1) infinite}
.tc-tips.is-step1 .tc-tips-trail{animation:tc-t-trail 2.4s cubic-bezier(.45,0,.25,1) infinite}
@keyframes tc-t-swipe{0%{transform:translateY(120px);opacity:0}12%{transform:translateY(120px);opacity:1}55%{transform:translateY(-110px);opacity:1}70%,100%{transform:translateY(-130px);opacity:0}}
@keyframes tc-t-trail{0%,12%{top:90px;height:0;opacity:0}55%{top:-110px;height:200px;opacity:.9}70%,100%{top:-130px;height:60px;opacity:0}}
.tc-feed.is-peek .tc-s{animation:tc-t-peek 2.4s cubic-bezier(.45,0,.25,1) infinite}
@keyframes tc-t-peek{0%,18%{transform:none}55%,70%{transform:translateY(-22%)}92%,100%{transform:none}}
/* step 2: the hand presses and holds; rings and the 1,5× badge while it is held */
.tc-tips.is-step2 svg.tc-hand{animation:tc-t-press 2.4s ease infinite}
.tc-tips.is-step2 .tc-tips-ring{animation:tc-t-ring 2.4s ease-out infinite}
.tc-tips.is-step2 .tc-tips-x{animation:tc-t-x 2.4s ease infinite}
@keyframes tc-t-press{0%,15%{transform:scale(1)}22%,78%{transform:scale(.86)}88%,100%{transform:scale(1)}}
@keyframes tc-t-ring{0%,20%{transform:scale(.4);opacity:0}25%{opacity:.9}55%{transform:scale(1.6);opacity:0}56%{transform:scale(.4);opacity:0}60%{opacity:.7}80%,100%{transform:scale(1.5);opacity:0}}
@keyframes tc-t-x{0%,20%{opacity:0;transform:translate(-50%,10px) scale(.8)}28%,78%{opacity:1;transform:translate(-50%,0) scale(1)}88%,100%{opacity:0;transform:translate(-50%,0) scale(.9)}}
/* computer: a mouse with a rolling wheel instead of the swiping hand */
.tc .tc-tips.is-pc.is-step1 svg.tc-hand,.tc-tips.is-pc.is-step1 .tc-tips-trail{display:none}
.tc .tc-tips.is-pc.is-step1 .tc-mouse{display:block;animation:tc-t-wheel 1.2s ease-in-out infinite}
@keyframes tc-t-wheel{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
@media(prefers-reduced-motion:reduce){.tc-tips *,.tc-feed.is-peek .tc-s{animation:none!important}.tc-tips.is-step2 .tc-tips-x{opacity:1}}
.tc.is-tips .tc-fast{opacity:0!important}
.tc-feed.is-peek{scroll-snap-type:none}
