/* PANDA RECORD — VIDEO page: a theatre — one big screen, a numbered playlist beside it (below it on phones), the channel at the end.
   Markup: build.py (video page), behaviour: assets/video.js */
.vt{padding:18px 0 110px}
.vt-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:40px;align-items:start}

/* screen */
.vt-screen{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;
  box-shadow:0 40px 90px -40px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.07)}
.vt-screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vt-stage{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer}
.vt-stage img{width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.8,.2,1),filter .4s}
.vt-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.5),transparent 42%);pointer-events:none}
.vt-stage:hover img,.vt-stage:focus-visible img{transform:scale(1.03);filter:brightness(.82)}
.vt-play{position:absolute;left:50%;top:50%;z-index:1;width:88px;height:88px;margin:-44px 0 0 -44px;border-radius:50%;
  background:var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50%/32px no-repeat;
  animation:vt-pulse 2.4s cubic-bezier(.2,.8,.2,1) infinite;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.vt-stage:hover .vt-play{transform:scale(1.08)}
@keyframes vt-pulse{0%{box-shadow:0 0 0 0 rgba(215,27,29,.5)}70%,100%{box-shadow:0 0 0 24px rgba(215,27,29,0)}}
.vt-screen.swap .vt-stage img{animation:vt-in .5s cubic-bezier(.2,.8,.2,1)}
@keyframes vt-in{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}

/* what is on screen */
.vt-info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 28px;align-items:end;padding:26px 4px 0}
.vt-kick{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:0 0 4px;font:500 11px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.22em;color:var(--muted)}
.vt-tag{padding:5px 9px;border-radius:999px;background:var(--red);color:#fff;letter-spacing:.18em}
.vt-tag.mv{background:#fff;color:#000}
.vt-idx{margin-left:auto;font-variant-numeric:tabular-nums}
.vt-title{margin:0;font-family:var(--font-display);font-size:clamp(24px,2.5vw,36px);font-weight:400;line-height:1.22;letter-spacing:.01em}
.vt-sub{grid-column:1;margin:0;color:#c4bdb2;font-size:14px;line-height:1.6}
.vt-yt{grid-column:2;grid-row:2/4;align-self:center;white-space:nowrap}

/* playlist */
.vt-tabs{display:flex;gap:4px;width:max-content;max-width:100%;margin:0 0 14px;padding:4px;border:1px solid rgba(255,255,255,.12);border-radius:999px}
.vt-tab{padding:9px 15px;border:0;border-radius:999px;background:none;color:var(--muted);font:500 12px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.14em;cursor:pointer;transition:background .2s,color .2s}
.vt-tab i{margin-left:6px;font-style:normal;opacity:.55}
.vt-tab:hover{color:#fff}
.vt-tab[aria-selected=true]{background:#fff;color:#000}
.vt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.vt-list li[hidden]{display:none}
.vt-item{display:grid;grid-template-columns:24px 132px minmax(0,1fr);gap:14px;align-items:center;width:100%;padding:10px;border:0;border-radius:10px;
  background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background .2s,box-shadow .2s}
.vt-item:hover{background:rgba(255,255,255,.05)}
.vt-item[aria-pressed=true]{background:rgba(215,27,29,.12);box-shadow:inset 0 0 0 1px rgba(215,27,29,.5)}
.vt-n{font:500 11px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.08em;color:var(--muted);font-variant-numeric:tabular-nums}
.vt-item[aria-pressed=true] .vt-n{color:var(--red)}
.vt-th{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#141414}
.vt-th img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.vt-item:hover .vt-th img{transform:scale(1.06)}
.vt-item[aria-pressed=true] .vt-th::after{content:"NOW";position:absolute;left:6px;bottom:6px;padding:4px 6px;border-radius:4px;background:var(--red);color:#fff;
  font:600 9px/1 var(--font-label,Poppins,sans-serif);letter-spacing:.18em}
.vt-tx{min-width:0}
.vt-tx b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:500;line-height:1.4}
.vt-tx small{display:block;margin-top:5px;overflow:hidden;color:var(--muted);font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.vt-tx em{font-style:normal;letter-spacing:.12em;font-size:10px;margin-right:6px;color:#e6e0d6}

/* channel */
.vt-channel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center;margin-top:80px;padding:26px 30px;border:1px solid rgba(255,255,255,.1);border-radius:16px;
  background:linear-gradient(115deg,rgba(215,27,29,.24),rgba(255,255,255,.025) 58%);color:inherit;text-decoration:none;transition:border-color .3s}
.vt-channel:hover{border-color:rgba(215,27,29,.65)}
.vt-yi{width:58px;height:41px;border-radius:11px;background:var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 54% 50%/20px no-repeat}
.vt-channel b{display:block;font-family:var(--font-display);font-size:20px;font-weight:500;line-height:1.3}
.vt-channel small{display:block;margin-top:4px;color:#c4bdb2;font-size:13px;line-height:1.6}

@media(max-width:1100px) and (min-width:861px){.vt-item{grid-template-columns:20px 104px minmax(0,1fr);gap:12px}}
@media(max-width:860px){
  .vt{padding:4px 0 80px}
  .vt-layout{grid-template-columns:1fr;gap:30px}
  .vt-screen{border-radius:12px}
  .vt-play{width:64px;height:64px;margin:-32px 0 0 -32px;background-size:24px}
  .vt-info{grid-template-columns:1fr;padding-top:18px}
  .vt-title{font-size:24px}
  .vt-yt{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}
  .vt-tabs{width:100%}
  .vt-tab{flex:1;padding:10px 8px}
  .vt-item{grid-template-columns:42% minmax(0,1fr);gap:14px;padding:8px}
  .vt-n{display:none}
  .vt-tx b{font-size:14px;-webkit-line-clamp:3}
  .vt-channel{grid-template-columns:auto minmax(0,1fr);gap:16px;margin-top:52px;padding:20px}
  .vt-channel .pill{grid-column:1/-1;justify-self:start}
}
/* the whole channel (39 videos): on desktop the playlist scrolls inside its column, beside the screen */
@media(min-width:861px){
  .vt-side{position:sticky;top:92px}
  .vt-tab{padding:9px 9px;font-size:11.5px;letter-spacing:.06em}
  .vt-tab i{margin-left:4px}
  .vt-list{max-height:calc(100vh - 190px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent;
    -webkit-mask-image:linear-gradient(#000 calc(100% - 48px),transparent);mask-image:linear-gradient(#000 calc(100% - 48px),transparent);padding-bottom:40px}
  .vt-list::-webkit-scrollbar{width:6px}
  .vt-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:3px}
}
.vt-main,.vt-side{min-width:0}   /* grid items: never let the tab row widen the page */
.vt-tabs{overflow-x:auto;scrollbar-width:none}
.vt-tabs::-webkit-scrollbar{display:none}
.vt-list li.vt-cut{display:none}
.vt-more{display:block;margin:16px auto 0}
.vt-more[hidden]{display:none}
@media(max-width:860px){
  .vt-tabs{width:auto;max-width:none;overflow-x:auto;scrollbar-width:none;border-radius:999px}
  .vt-tabs::-webkit-scrollbar{display:none}
  .vt-tab{flex:none;padding:10px 13px}
}
/* previous / next beside the counter, share beside "Watch on YouTube" */
.vt-pn{display:inline-flex;gap:6px;margin-left:4px}
.vt-pv{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:none;color:var(--text);cursor:pointer;transition:background .2s,border-color .2s}
.vt-pv:hover{background:#fff;border-color:#fff;color:#000}
.vt-pv .ico{width:11px;height:11px}
.vt-acts{grid-column:2;grid-row:2/4;align-self:center;display:flex;gap:10px}
.vt-acts .vt-yt{grid-column:auto;grid-row:auto}
.vt-share{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.vt-share.ok{background:#fff;color:#000;border-color:#fff}
.sh-i{width:13px;height:13px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M7 8l5-5 5 5M5 14v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M7 8l5-5 5 5M5 14v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:860px){.vt-acts{grid-column:1;grid-row:auto;margin-top:12px;flex-wrap:wrap}.vt-acts .vt-yt{margin-top:0}}
@media(prefers-reduced-motion:reduce){.vt-play{animation:none}.vt-screen.swap .vt-stage img{animation:none}}
