/* Videos page in the My media design language: wide 16:9 tiles, slim player
   top bar, framed player and the shared .pv-info popup. Vault grid sizing too. */

/* ---------- Videos grid: 2–6 equal columns, My media card look ---------- */
.sh-grid:not(.mu-grid):not(.sh-grid-sm){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:26px 16px;align-content:start;padding:14px 24px 32px}
@media(min-width:641px){.sh-grid:not(.mu-grid):not(.sh-grid-sm){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){.sh-grid:not(.mu-grid):not(.sh-grid-sm){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1180px){.sh-grid:not(.mu-grid):not(.sh-grid-sm){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1500px){.sh-grid:not(.mu-grid):not(.sh-grid-sm){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:440px){.sh-grid:not(.mu-grid):not(.sh-grid-sm){grid-template-columns:minmax(0,1fr);padding:10px 14px 24px}}
.sh-grid:not(.mu-grid) > .sh-ad,.sh-grid:not(.mu-grid) > .sh-more,.sh-grid:not(.mu-grid) > .sh-loading,.sh-grid:not(.mu-grid) > .sh-empty,.sh-grid:not(.mu-grid) > .mu-empty{grid-column:1 / -1}

.sh-grid .sh-card:not(.mu-card){max-width:none;min-width:0;width:100%;flex:none;background:none;border-radius:0;box-shadow:none;overflow:visible;transition:none}
.sh-grid .sh-card:not(.mu-card):hover{transform:none;box-shadow:none}
.sh-grid .sh-card:not(.mu-card) .sh-cover{padding-bottom:56.25%;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 14px 28px -18px rgba(0,0,0,.9);transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .2s ease-out}
.sh-grid .sh-card:not(.mu-card) .sh-info{padding:9px 2px 0;background:none}
.sh-grid .sh-card:not(.mu-card) .sh-t{font-size:14px;font-weight:700;line-height:1.35;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-grid .sh-card:not(.mu-card) .sh-meta{margin-top:3px;font-size:12px;color:#b8a6cd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(hover:hover){
  .sh-grid .sh-card:not(.mu-card):hover .sh-cover{transform:translateY(-3px);box-shadow:0 0 0 2px #c1ff72,0 18px 30px -16px rgba(0,0,0,.95)}
}
.sh-grid .sh-card:not(.mu-card):focus-visible{outline:none}
.sh-grid .sh-card:not(.mu-card):focus-visible .sh-cover{box-shadow:0 0 0 2px #c1ff72}
/* Shimmer tiles keep the same 16:9 shape so nothing jumps when data lands. */
.sh-grid .sh-card.sh-sk .sh-cover{padding-bottom:56.25%}

/* ---------- Detail page (landscape): My media player layout ---------- */
.sh-ls.sh-pvd{position:relative;display:flex;flex-direction:column;gap:10px;height:100%;min-width:0;padding:12px 18px 10px;background:radial-gradient(120% 80% at 50% 0%,#2b1452 0%,#160b29 55%,#0e0719 100%);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4b3368 transparent}
.sh-pvbar{flex:none;display:flex;align-items:center;gap:10px;min-width:0;padding:7px 10px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(24,12,44,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.sh-pvbar .sh-backbtn{position:static;flex:none;width:36px;height:36px;border-radius:10px;background:transparent;color:#efe4fb;box-shadow:none}
.sh-pvbar .sh-backbtn:hover{background:rgba(255,255,255,.08)}
.sh-pvbar-mark{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#c1ff72;color:#2a1555;font-size:14px}
.sh-pvbar-cov{flex:none;width:30px;height:30px;border-radius:8px;object-fit:cover}
.sh-pvbar-t{flex:0 1 auto;min-width:0;margin:0;font-size:15px;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-pvbar-chip{flex:none;padding:3px 10px;border:1px solid rgba(193,255,114,.35);border-radius:999px;font-size:11.5px;font-weight:700;color:#e6f9cf;white-space:nowrap}
.sh-pvbar-sp{flex:1}
.sh-pvbar .sh-ls-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:2px;margin:0;max-width:none;overflow-x:auto;scrollbar-width:none}
.sh-pvbar .sh-ls-actions::-webkit-scrollbar{display:none}
.sh-pvbar .sh-lsa{flex:none;display:inline-flex;align-items:center;gap:5px;height:36px;min-width:36px;padding:0 9px;border:0;border-radius:10px;background:transparent;color:#e7dcf6;font-size:14px;cursor:pointer;transition:background-color .15s ease-out,color .15s ease-out}
.sh-pvbar .sh-lsa span{display:none}
.sh-pvbar .sh-lsa.sh-lsa-ct span{display:inline;font-size:12px;font-weight:700}
.sh-pvbar .sh-lsa:hover{background:rgba(255,255,255,.08);color:#fff}
.sh-pvbar .sh-lsa.on{color:#c1ff72}
.sh-pvbar .sh-lsa:focus-visible{outline:2px solid #c1ff72;outline-offset:1px}
.sh-pvbar .sh-info-btn{color:#c1ff72}
.sh-pvbar .sh-policy-detail{position:static;flex:none;margin-left:4px}

.sh-pvd .sh-ls-player{flex:none;align-self:center;width:min(100%,calc((100vh - 236px) * 16 / 9));aspect-ratio:16/9;min-height:0;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 40px 80px -40px rgba(0,0,0,.95)}
.sh-pvd .sh-ls-player .sh-stage{border-radius:0}
.sh-pvd-rail{flex:none;width:min(100%,1280px);align-self:center;min-width:0}
.sh-pvd-rail .sh-lc-eps{margin:0}

/* Info popup: shared .pv-info-pop look; poster carries the subscribe bell. */
.sh-info-pop{z-index:60}
.sh-info-poster{position:relative;flex:none}
.sh-info-poster .sh-sub-ico{position:absolute;right:-8px;bottom:-8px}
.sh-info-noposter{display:none}
.sh-info-chan{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px}
.sh-info-pop .sh-desc-wrap{margin:0 0 10px}
.sh-info-pop .sh-hero-desc{max-width:72ch;color:#ddd0ee;font-size:15px;line-height:1.7}
.sh-info-pop .sh-ls-cast{margin-top:6px}
.sh-info-pop .sh-tags{margin:0 0 14px}

@media(max-width:760px){
  .sh-ls.sh-pvd{padding:8px 8px 12px;gap:10px}
  .sh-pvbar-chip,.sh-pvbar-mark,.sh-pvbar .sh-policy-detail{display:none}
  .sh-pvd .sh-ls-player{width:100%;border-radius:12px}
}
.shell.theater .sh-ls.sh-pvd{background:#000}
.shell.theater .sh-pvd .sh-ls-player{width:min(100%,calc((100vh - 90px) * 16 / 9))}

/* ---------- Vault: 5–6 full-width columns, 3.5 rows (tile height from JS) ---------- */
@media(min-width:641px){
  .pv-page-library .pv-grid.pv-vault-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pv-page-library .pv-grid.pv-vault-grid .pv-card-loading{min-width:0}
  .pv-page-library .pv-grid.pv-vault-grid .pv-card-loading .pv-poster{height:calc(var(--pv-vrow,220px) - 34px);aspect-ratio:auto;border-radius:14px}
}
@media(min-width:1100px){.pv-page-library .pv-grid.pv-vault-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1500px){.pv-page-library .pv-grid.pv-vault-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.sh-grid .sh-card:not(.mu-card) .sh-cover{transition:none}}

/* ---------- Detail: 16:9 info still, wide "More" rail, room art, idle dim ---------- */
.sh-info-pop .pv-info-poster{width:300px;height:auto;aspect-ratio:16/9;rotate:0deg}
@media(max-width:760px){.sh-info-pop .pv-info-poster{width:100%;max-width:340px}}
.sh-pvd .sh-lc-rel-h{font-size:13px;margin-bottom:6px}
.sh-pvd .sh-rel-rail{padding-bottom:0}
.sh-pvd .sh-rel-c{flex:0 0 160px;max-width:160px}
.sh-pvd .sh-rel-th{width:160px;height:90px;border-radius:10px;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 14px 28px -18px rgba(0,0,0,.9);transition:box-shadow .2s ease-out,transform .35s cubic-bezier(.16,1,.3,1)}
.sh-pvd .sh-rel-t{font-size:12px;font-weight:700;color:#fff;margin-top:5px;-webkit-line-clamp:1}
@media(hover:hover){.sh-pvd .sh-rel-c:hover .sh-rel-th{transform:translateY(-3px);box-shadow:0 0 0 2px #c1ff72,0 18px 30px -16px rgba(0,0,0,.95)}}
.sh-pvd .sh-rel-c:focus-visible{outline:none}.sh-pvd .sh-rel-c:focus-visible .sh-rel-th{box-shadow:0 0 0 2px #c1ff72}
/* Edge arrows: soft see-through fade, solid round button on top. */
.sh-pvd .sh-rel-nav{height:90px;width:80px}
.sh-pvd .sh-rel-next{background:linear-gradient(to right,rgba(14,7,25,0),rgba(14,7,25,.78) 60%)}
.sh-pvd .sh-rel-prev{background:linear-gradient(to left,rgba(14,7,25,0),rgba(14,7,25,.78) 60%)}
.sh-pvd .sh-rel-nav-c{width:36px;height:36px;background:#1f1238;border:1px solid rgba(193,255,114,.45);color:#c1ff72;font-size:15px;box-shadow:0 10px 24px -10px rgba(0,0,0,.9)}
.sh-pvd .sh-rel-nav:hover .sh-rel-nav-c{background:#c1ff72;color:#2a1555}
@media(max-width:760px){.sh-pvd .sh-rel-c{flex-basis:140px;max-width:140px}.sh-pvd .sh-rel-th{width:140px;height:79px}.sh-pvd .sh-rel-nav{height:79px}}
/* Room backdrop sits behind everything; content stays above it. */
.sh-ls.sh-pvd{isolation:isolate}
.sh-pvd>.pv-room-art{position:absolute;inset:0;z-index:-1}
.sh-pvbar,.sh-pvd-rail{transition:opacity .25s ease-out,transform .25s ease-out}
@media (min-width:761px) and (hover:hover){
  .sh-pvd.sh-dim .sh-pvbar{opacity:0;transform:translateY(-10px);transition-duration:.7s}
  .sh-pvd.sh-dim .sh-pvd-rail{opacity:0;transform:translateY(10px);transition-duration:.7s}
  .sh-pvd.sh-dim{cursor:none}
}
@media(prefers-reduced-motion:reduce){.sh-pvbar,.sh-pvd-rail,.sh-pvd .sh-rel-th{transition:none}}
/* Pinggr wordmark bottom-right of the player, same size and tint as My media. */
.sh-pvd .sh-ls-player{position:relative}
.sh-pv-logo{position:absolute;right:48px;bottom:64px;z-index:8;width:auto;height:53px;opacity:.42;filter:brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.75));pointer-events:none}
@media(max-width:760px){.sh-pv-logo{right:24px;bottom:46px;height:39px}}
/* Bullet comment button on the left; its input opens to the right. */
.sh-pvd .sh-dm-fabwrap{left:14px;right:auto;flex-direction:row-reverse}
