/* Structure for shared/yt-embed.js. Each design skins the card on top
   (.pkp, .pkp__cover, .pkp__img, .pkp__play, .pkp__icon, .pkp__label, .pkp__time, .pkp__frame).
   The pop-up player (.pkt*) is shared, so it looks the same in every design. */
.pkp { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.pkp__cover, .pkp__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; display: block; }
.pkp__cover { cursor: pointer; background: none; color: inherit; font: inherit; text-decoration: none; }
.pkp__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkp__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.pkp__icon { width: 28px; height: 28px; flex: none; }
.pkp__time { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* ---------- Pop-up player ---------- */
.pkt { position: fixed; inset: 0; z-index: 2000; }
.pkt__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 6, 22, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(0.9); backdrop-filter: blur(14px) saturate(0.9);
  cursor: zoom-out;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pkt__backdrop { background: rgba(10, 6, 22, 0.86); }
}
.pkt__stage {
  position: fixed; transform-origin: 0 0; overflow: hidden;
  border-radius: 16px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 60px -10px rgba(255, 30, 210, 0.35);
}
.pkt__poster, .pkt__stage .pkp__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.pkt__poster { object-fit: cover; }
.pkt__stage .pkp__frame { opacity: 0; transition: opacity 0.35s ease; }
.pkt__stage.is-loaded .pkp__frame { opacity: 1; }
.pkt__bar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  color: #fff; pointer-events: none;
}
.pkt__title {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 16px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.pkt__ep {
  display: inline-block; margin-right: 4px; padding: 3px 8px; border-radius: 999px;
  background: #ff1ed2; color: #fff; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; text-shadow: none;
}
.pkt__close {
  pointer-events: auto; flex: none;
  width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #140c26; cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, background 0.2s;
}
.pkt__close:hover { transform: scale(1.06); background: #fff; }
.pkt__close:focus-visible { outline: 3px solid #2ff3ff; outline-offset: 3px; }
.pkt__x { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .pkt__stage .pkp__frame, .pkt__close { transition: none; }
}
