.pl-root { position: relative; overflow: hidden; isolation: isolate; }

.pl-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pl-bg-img { position: absolute; inset: -40px; background-size: cover; background-position: center; }
.pl-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim, 0)); pointer-events: none; }

.pl-fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.pl-scroll { position: absolute; inset: 0; z-index: 2; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pl-scroll.pl-static { overflow: hidden; }
.pl-scroll:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.pl-frame { position: relative; margin: 0 auto; }
.pl-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.pl-el { position: absolute; box-sizing: border-box; display: block; transform-origin: center; text-decoration: none; }
.pl-el[hidden] { display: none; }
.pl-anim, .pl-rx, .pl-in { width: 100%; height: 100%; }
.pl-rx { transform-origin: center; will-change: auto; }
.pl-rx[data-react] { will-change: transform, filter; }
.pl-grad-text { -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.pl-spotify .pl-in, .pl-youtube .pl-in, .pl-soundcloud .pl-in { overflow: hidden; }
.pl-el iframe { display: block; width: 100%; height: 100%; border: 0; }

.pl-lastfm .pl-in, .pl-discord .pl-in, .pl-invite .pl-in, .pl-github .pl-in, .pl-twitch .pl-in, .pl-steam .pl-in {
  display: flex; align-items: center; gap: 14px; padding: 14px; overflow: hidden; box-sizing: border-box;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pl-card-art { width: 68px; height: 68px; flex: none; border-radius: 10px; object-fit: cover; }
.pl-card-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pl-card-title { font-weight: 700; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pl-card-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pl-card-status.live { color: var(--accent); }
.pl-card-status[hidden], .pl-card-sub[hidden], .pl-card-art[hidden] { display: none; }
.pl-card-status.live::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pl-card-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pl-card-progress[hidden] { display: none; }
.pl-card-bar { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pl-card-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.pl-card-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pl-card-msg { width: 100%; color: var(--muted); font-size: 13px; text-align: center; }
.pl-dc-avatar { position: relative; width: 60px; height: 60px; flex: none; }
.pl-dc-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.pl-dc-dot { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #1b1210; }
.pl-dc-act { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.pl-dc-act[hidden] { display: none; }
.pl-dc-act img { width: 22px; height: 22px; border-radius: 4px; flex: none; }
.pl-dc-act img[hidden] { display: none; }
.pl-dc-act-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-join { flex: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
a.pl-el:is(.pl-invite, .pl-github, .pl-twitch, .pl-steam) .pl-in { transition: filter .2s ease, transform .2s ease; }
a.pl-el:is(.pl-invite, .pl-github, .pl-twitch, .pl-steam):hover .pl-in { filter: brightness(1.15); transform: translateY(-2px); }

.pl-socials .pl-in { display: flex; flex-wrap: wrap; align-items: center; align-content: center; }
.pl-soc { display: inline-flex; flex: none; box-sizing: content-box; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.pl-soc img, .pl-soc svg { display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
a.pl-soc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #000; }
a.pl-soc.pl-h-lift:hover { transform: translateY(-3px); }
a.pl-soc.pl-h-glow:hover { box-shadow: 0 0 20px var(--glow); }
a.pl-soc.pl-h-invert:hover { filter: invert(1); }

.pl-countdown .pl-in { display: flex; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-typing::after { content: ''; display: inline-block; width: .08em; height: 1em; margin-left: .06em; vertical-align: -.12em; background: currentColor; animation: pl-blink 1s steps(1) infinite; }
.pl-typing.done::after { display: none; }
.pl-grad-text .pl-typing::after { background: #fff; }
.pl-paused .pl-typing::after { animation: none; }
@keyframes pl-blink { 50% { opacity: 0; } }

.pl-badges .pl-in { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 6px; }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; }
.pl-badge.with-label { padding: 5px 12px 5px 6px; font-weight: 700; }
.pl-empty { color: rgba(255, 255, 255, .6); font: 600 13px/1 system-ui, sans-serif; }

.pl-flash { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.pl-in { position: relative; box-sizing: border-box; }

.pl-text .pl-in { white-space: pre-wrap; overflow-wrap: anywhere; }

.pl-image .pl-in { overflow: hidden; }
.pl-image img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.pl-tint img { mix-blend-mode: luminosity; }
.pl-ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: rgba(40, 40, 40, 0.85); border: 1px dashed rgba(200, 200, 200, 0.8);
  color: #fff; font: 600 14px/1 system-ui, sans-serif; box-sizing: border-box;
}

.pl-button .pl-in {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; overflow: hidden; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pl-button img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.pl-button span { overflow: hidden; text-overflow: ellipsis; }
a.pl-el:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #000; border-radius: 4px; }
a.pl-h-lift:hover .pl-in { transform: translateY(-2px); }
a.pl-h-glow:hover .pl-in { box-shadow: 0 0 24px var(--glow); }
a.pl-h-invert:hover .pl-in { filter: invert(1); }

.pl-stage:not(.pl-go) .pl-anim:not([data-anim="none"]) { opacity: 0; }
.pl-go .pl-anim[data-anim="fade"] { animation: pl-fade .7s ease both; animation-delay: var(--d); }
.pl-go .pl-anim[data-anim="rise"] { animation: pl-rise .8s cubic-bezier(.19, 1, .22, 1) both; animation-delay: var(--d); }
.pl-go .pl-anim[data-anim="zoom"] { animation: pl-zoom .7s cubic-bezier(.19, 1, .22, 1) both; animation-delay: var(--d); }
.pl-in[data-loop="float"] { animation: pl-float 4s ease-in-out infinite; }
.pl-in[data-loop="pulse"] { animation: pl-pulse 2.4s ease-in-out infinite; }
.pl-in[data-loop="spin"] { animation: pl-spin 8s linear infinite; }

@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pl-zoom { from { opacity: 0; transform: scale(.85); } }
@keyframes pl-float { 50% { transform: translateY(-8px); } }
@keyframes pl-pulse { 50% { transform: scale(1.05); } }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.pl-enter {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center;
  width: 100%; border: 0; padding: 24px; cursor: pointer; font-size: 18px; letter-spacing: .12em;
  transition: opacity .6s ease;
}
.pl-enter:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; }
.pl-enter.out { opacity: 0; pointer-events: none; }

.pl-controls {
  position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  max-width: calc(100% - 32px);
}
.pl-mute, .pl-motion {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 260px; padding: 0 14px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .7); color: #fff;
  font: 600 13px/1 system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pl-motion:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pl-paused .pl-anim, .pl-paused .pl-in { animation-play-state: paused !important; }
.pl-mute span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-mute .pl-x, .pl-mute.muted .pl-wave { display: none; }
.pl-mute.muted .pl-x { display: inline; }
.pl-mute:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pl-anim, .pl-in { animation: none !important; opacity: 1 !important; }
  .pl-card-fill { transition: none; }
  .pl-typing::after { animation: none; }
  .pl-enter { transition: none; }
}
