:root {
  --accent: #a855f7;
  --text: #ffffff;
  --icon: #ffffff;
  --card: rgba(18, 12, 26, .55);
  --blur: 12px;
  --radius: 22px;
  --bw: 1px;
  --font: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { overflow-x: hidden; }
body { margin: 0; background: #0b0710; color: var(--text); font-family: var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* background */
.bg { position: fixed; inset: -20px; z-index: 0; background-size: cover; background-position: center; }
.bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-dim { position: fixed; inset: 0; z-index: 1; background: #000; pointer-events: none; }
#fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
.oldtv::after { content: ''; position: fixed; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); animation: flicker .15s infinite; mix-blend-mode: multiply; }
.oldtv::before { content: ''; position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65)); }
@keyframes flicker { 50% { opacity: .85; } }

/* enter overlay */
.enter { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); cursor: pointer; transition: opacity .6s ease, visibility .6s; }
.enter span { font-size: clamp(18px, 3vw, 24px); letter-spacing: .02em; opacity: .9; animation: breathe 2.4s ease-in-out infinite; text-shadow: 0 0 18px var(--accent); padding: 0 24px; text-align: center; }
.enter.gone { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { opacity: .45; } }

/* stage + card */
.stage { position: relative; z-index: 10; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 72px 16px 56px; perspective: 1200px; grid-template-columns: minmax(0, 1fr)}
.card { position: relative; width: min(560px, 100%); min-width: 0; justify-self: center; padding: 66px 28px 26px; border-radius: var(--radius); background: var(--card); border: var(--bw) solid rgba(255, 255, 255, .12); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); text-align: center; transform-style: preserve-3d; transition: transform .25s ease-out, opacity .8s ease; will-change: transform; }
.card.hide { opacity: 0; transform: translateY(16px) scale(.98); }
.layout-minimal .card { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.avatar-wrap { position: absolute; top: -54px; left: 50%; transform: translateX(-50%); }
.avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .14); background: linear-gradient(135deg, #6a00ff, #d43bff); display: grid; place-items: center; font-size: 44px; font-weight: 700; box-shadow: 0 10px 40px -10px var(--ring, var(--accent)); }
.avatar-wrap .status { position: absolute; right: 4px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid #120c1a; background: #747f8d; }
.status.online { background: #23a55a !important; } .status.idle { background: #f0b232 !important; } .status.dnd { background: #f23f43 !important; }

.layout-split .card { width: min(680px, 100%); text-align: left; padding-top: 28px; }
.layout-split .head { display: flex; align-items: center; gap: 22px; }
.layout-split .avatar-wrap { position: relative; top: 0; left: 0; transform: none; flex: 0 0 auto; }
.layout-split .badges, .layout-split .socials, .layout-split .meta { justify-content: flex-start; }

.name { margin: 0; font-size: clamp(30px, 6vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; display: inline-block; position: relative; word-break: break-word; }
.glow-name .name { text-shadow: 0 0 12px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.fx-glow .name { animation: pulse-glow 2.6s ease-in-out infinite; }
@keyframes pulse-glow { 50% { text-shadow: 0 0 22px var(--accent), 0 0 50px var(--accent); } }
.fx-rainbow .name { background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f9ff4d, #4dff88, #4dc3ff, #a64dff, #ff4dd2, #ff4d4d); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 4s linear infinite; text-shadow: none; filter: drop-shadow(0 0 8px rgba(255,255,255,.25)); }
.fx-gradient .name { background: linear-gradient(90deg, var(--accent), #fff, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 5s linear infinite; text-shadow: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent)); }
@keyframes slide { to { background-position: 200% center; } }
.fx-sparkle .name::before, .fx-sparkle .name::after { content: '✦'; position: absolute; font-size: .45em; color: #fff; text-shadow: 0 0 8px var(--accent); animation: twinkle 1.8s ease-in-out infinite; }
.fx-sparkle .name::before { top: -4px; left: -16px; }
.fx-sparkle .name::after { bottom: 0; right: -18px; animation-delay: .9s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
.fx-glitch .name { animation: glitch-skew 3s infinite; }
.fx-glitch .name::before, .fx-glitch .name::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; }
.fx-glitch .name::before { color: #0ff; left: 2px; clip-path: inset(0 0 60% 0); animation: glitch 2.2s infinite linear alternate-reverse; mix-blend-mode: screen; }
.fx-glitch .name::after { color: #f0f; left: -2px; clip-path: inset(55% 0 0 0); animation: glitch 1.7s infinite linear alternate-reverse; mix-blend-mode: screen; }
@keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, 2px); } 80% { transform: translate(1px, -2px); } 100% { transform: translate(0); } }
@keyframes glitch-skew { 0%, 92%, 100% { transform: none; } 94% { transform: skewX(8deg); } 96% { transform: skewX(-6deg); } }
.caret::after { content: '|'; margin-left: 2px; animation: blink 1s steps(1) infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 2px; }
.badge { position: relative; width: 30px; height: 30px; display: grid; place-items: center; font-size: 17px; border-radius: 8px; cursor: default; }
.glow-badges .badge i { filter: drop-shadow(0 0 6px currentColor); }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(10, 6, 14, .92); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); z-index: 20; pointer-events: none; font-weight: 500; font-family: 'Outfit', system-ui, sans-serif; }

.desc { margin: 10px auto 0; max-width: 460px; font-size: 16px; line-height: 1.55; opacity: .85; white-space: pre-line; word-break: break-word; min-height: 1.5em; }
.layout-split .desc { margin-left: 0; }
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; opacity: .65; }
.meta i { margin-right: 6px; }

.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 20px; }
.social { position: relative; width: 46px; height: 46px; display: grid; place-items: center; font-size: 27px; border-radius: 12px; transition: transform .2s ease; cursor: pointer; background: none; border: 0; padding: 0; }
.social:hover { transform: translateY(-3px) scale(1.08); }
.glow-socials .social i { filter: drop-shadow(0 0 8px currentColor); }

.buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.lbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: calc(var(--radius) * .6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); text-align: left; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.lbtn:hover { background: rgba(255, 255, 255, .1); border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.lbtn i:first-child { font-size: 20px; width: 26px; text-align: center; }
.lbtn span { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbtn .go { opacity: .5; font-size: 13px; }

/* discord presence */
.presence { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px; border-radius: calc(var(--radius) * .6); background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.presence .pav { position: relative; flex: 0 0 auto; }
.presence .pav img { width: 52px; height: 52px; border-radius: 50%; }
.presence .pav .status { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #17111f; background: #747f8d; }
.presence .pinfo { min-width: 0; flex: 1; }
.presence .pname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence .pact { font-size: 13px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence .art { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }

/* music player */

.views { position: fixed; left: 18px; bottom: 16px; z-index: 11; font-size: 14px; opacity: .75; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(8px); }
.made { position: fixed; right: 18px; bottom: 16px; z-index: 11; display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .55; transition: opacity .2s; background: rgba(0,0,0,.25); padding: 6px 12px 6px 8px; border-radius: 99px; backdrop-filter: blur(8px); }
.made:hover { opacity: 1; }
.made img { width: 26px; }

.ptoast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(20px); z-index: 60; background: rgba(10, 6, 14, .92); border: 1px solid rgba(255, 255, 255, .12); padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; }
.ptoast.show { opacity: 1; transform: translateX(-50%); }

.trail-dot { position: fixed; z-index: 100; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }

.notfound { position: relative; z-index: 10; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }


/* =====================================================================
   Entrance + hover animations
   ===================================================================== */
@keyframes pfUp { from { opacity: 0; translate: 0 8px; } }
@keyframes spin { to { rotate: 360deg; } }

/* Default entrance: card rises once, content follows with a short stagger */
.card.intro { animation: pfUp .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.card.intro :is(.avatar-wrap, .name-wrap, .badges, .desc, .meta, .socials, .presence, .buttons, .player) { animation: pfUp .4s cubic-bezier(.22, 1, .36, 1) .08s backwards; }
.name-wrap { display: inline-block; max-width: 100%; }
.views, .made { animation: pfUp .4s cubic-bezier(.22, 1, .36, 1) .3s backwards; }

/* Accent ring behind the avatar (static) */
.avatar-wrap { isolation: isolate; }
.avatar-wrap::before { content: ''; position: absolute; inset: calc(var(--ringw, 3px) * -1 - 1px); border-radius: 50%; z-index: -1; opacity: .7; filter: blur(4px);
  background: conic-gradient(from 210deg, var(--ring, var(--accent)), transparent 40%, var(--ring, var(--accent)) 70%, transparent 90%, var(--ring, var(--accent))); }
/* Avatar ring styles (Wygląd → Avatar): none / soft glow / solid line / two-colour gradient */
.ring-none .avatar-wrap::before { display: none; }
.ring-solid .avatar-wrap::before, .ring-gradient .avatar-wrap::before { inset: calc(var(--ringw, 3px) * -1); opacity: 1; filter: none; background: var(--ring); }
.ring-gradient .avatar-wrap::before { background: conic-gradient(from 210deg, var(--ring), var(--ring2), var(--ring)); }
.ring-none .avatar, .ring-solid .avatar, .ring-gradient .avatar { border: 0; background-clip: padding-box; }
.no-av-shadow .avatar { box-shadow: none; }

/* Hover details */
.social i, .badge i { transition: transform .15s cubic-bezier(.22, 1, .36, 1); }
.social:hover i { transform: translateY(-2px); }

/* Enter overlay fades away */
.enter { transition: opacity .35s cubic-bezier(.22, 1, .36, 1), visibility .35s; }
.enter span { display: inline-block; }


/* Purple scrollbars in the profile's accent colour */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; border: 2px solid rgba(0, 0, 0, .4); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--accent) transparent; scrollbar-width: thin; } }

/* Gold "Owner" badge */
.badge[data-key="owner"] i {
  background: linear-gradient(110deg, #b8860b 0%, #ffd700 22%, #fff6c2 38%, #ffc800 52%, #b8860b 75%, #ffd700 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 7px rgba(255, 200, 0, .8)) !important; animation: goldShine 3s linear infinite;
}
.badge[data-key="owner"] { order: -1; }
@keyframes goldShine { to { background-position: 250% center; } }


/* =====================================================================
   Extra profile styles: banner, avatar shapes, decoration, card gradient/glow,
   icon styles & sizes, name effects (shine, neon, wave, sparkles), night sky, playlist
   ===================================================================== */
.card.has-banner { padding-top: 0; }
.banner { height: 150px; margin: 0 -28px 64px; border-radius: var(--radius) var(--radius) 0 0; background: #1b1424 center/cover no-repeat; position: relative; }
.banner::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35)); }
.card.has-banner .avatar-wrap { top: 96px; }
.layout-split .card.has-banner { padding-top: 0; }
.layout-split .card.has-banner .banner { margin-bottom: 22px; }
.layout-split .card.has-banner .avatar-wrap { top: 0; }
.layout-minimal .banner { border-radius: var(--radius); margin-left: 0; margin-right: 0; }

.av-rounded .avatar, .av-rounded .avatar-wrap::before { border-radius: 26%; }
.av-square .avatar, .av-square .avatar-wrap::before { border-radius: 10px; }
.avatar-wrap .deco { position: absolute; inset: -18%; width: 136%; height: 136%; pointer-events: none; z-index: 2; }
.av-rounded .avatar-wrap .status, .av-square .avatar-wrap .status { right: -4px; bottom: -4px; }

.card-glow .card { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 46px -8px var(--accent), 0 30px 80px -30px rgba(0, 0, 0, .8); animation: cardGlow 4s ease-in-out infinite; }
@keyframes cardGlow { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 70px -6px var(--accent), 0 30px 80px -30px rgba(0, 0, 0, .8); } }

.ics-sm .social { width: 38px; height: 38px; font-size: 21px; }
.ics-lg .social { width: 56px; height: 56px; font-size: 33px; }
.ic-filled .social { border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); width: 50px; height: 50px; font-size: 22px; }
.ic-filled.ics-sm .social { width: 42px; height: 42px; font-size: 18px; }
.ic-filled.ics-lg .social { width: 60px; height: 60px; font-size: 27px; }
.ic-filled .social:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.ic-outline .social { border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .22); width: 50px; height: 50px; font-size: 22px; }
.ic-outline.ics-sm .social { width: 42px; height: 42px; font-size: 18px; }
.ic-outline.ics-lg .social { width: 60px; height: 60px; font-size: 27px; }
.ic-outline .social:hover { border-color: var(--accent); }

.fx-shine .name { background: linear-gradient(110deg, var(--text) 35%, #fff 48%, var(--accent) 52%, var(--text) 65%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nameShine 3.2s linear infinite; }
@keyframes nameShine { from { background-position: 150% center; } to { background-position: -100% center; } }
.fx-neon .name { color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px var(--accent), 0 0 22px var(--accent), 0 0 42px var(--accent); animation: neon 3.5s infinite; }
@keyframes neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; text-shadow: none; } }
.fx-wave .name .wl { display: inline-block; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } }
.fx-sparkle .name .spk { position: absolute; pointer-events: none; color: var(--sparkle); font-style: normal; font-weight: 400; text-shadow: 0 0 6px var(--sparkle), 0 0 12px var(--sparkle); animation: spk 1.3s ease-out forwards; }
@keyframes spk { 0% { opacity: 0; transform: translateY(0) scale(.3) rotate(0deg); } 25% { opacity: 1; transform: translateY(4px) scale(1) rotate(60deg); } 100% { opacity: 0; transform: translateY(28px) scale(.4) rotate(160deg); } }
.fx-sparkle .name::before, .fx-sparkle .name::after { color: var(--sparkle); text-shadow: 0 0 8px var(--sparkle); }

.night .bg-dim { opacity: 1 !important; background: radial-gradient(ellipse at 50% 120%, rgba(30, 41, 99, .35), transparent 60%), linear-gradient(180deg, rgba(3, 7, 30, .72), rgba(10, 6, 30, .55)); }



/* =====================================================================
   Music player: card / compact / vinyl / floating, covers, YouTube & SoundCloud, volume slider
   ===================================================================== */
.player { margin-top: 18px; padding: 12px; border-radius: calc(var(--radius) * .6); background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.player .prow { display: flex; align-items: center; gap: 12px; }
.player .pcover { position: relative; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--accent) 22%, #111); display: grid; place-items: center; }
.player .pcover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .pcover:not(.has-img) .pcover-img { display: none; }
.player .pcover.has-img .pcover-ic { display: none; }
.player .pcover-ic { font-size: 20px; color: #fff; opacity: .9; }
.player .pcover .hole { display: none; }
.player .pmid { flex: 1; min-width: 0; }
.player .ptitle { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .tcount { font-style: normal; font-weight: 400; opacity: .55; font-size: 12px; }
.player .bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); margin-top: 9px; cursor: pointer; touch-action: none; }
.player .bar::before { content: ''; position: absolute; inset: -8px 0; }
.player .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); width: 0; }
.player .bar b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; transition: opacity .15s; }
.player .bar:hover b, .player .bar:active b { opacity: 1; }
.player .time { font-size: 11px; opacity: .6; margin-top: 5px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.player .pctrl { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.player .pp { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px; transition: transform .15s ease, filter .15s ease; }
.player .pp:hover { filter: brightness(1.1); }
.player .pp:active { transform: scale(.94); }
.player .pbtn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .8; transition: background .15s, opacity .15s; }
.player .pbtn:hover { opacity: 1; background: rgba(255, 255, 255, .08); }

/* volume: icon + slider that fills with the accent */
.player .pvol { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.player .vol-wrap { width: 84px; display: flex; align-items: center; }
.player .vol { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; outline: none; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, var(--accent) 0 var(--v, 50%), rgba(255, 255, 255, .18) var(--v, 50%) 100%); }
.player .vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .15s; }
.player .vol::-webkit-slider-thumb:hover { transform: scale(1.15); }
.player .vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.player .vol::-moz-range-track { background: transparent; }
.player .vol:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.no-volume .player .pvol { display: none; }

/* YouTube video / SoundCloud widget inside the player */
.player .pvideo { display: none; }
.player.has-video .pvideo { display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: calc(var(--radius) * .45); overflow: hidden; margin-bottom: 12px; background: #000; }
.player.has-video .pvideo iframe { width: 100%; height: 100%; border: 0; display: block; }
.player.has-video .pcover { display: none; }
.player.has-sc .pvideo { display: block; height: 20px; margin-bottom: 10px; }
.player.has-sc .pvideo iframe { width: 100%; height: 20px; border: 0; }
.pvideo.offscreen { position: fixed; left: -9999px; top: 0; width: 320px; height: 180px; }

/* style: compact (one slim row) */
.player.ps-compact { padding: 8px 10px 8px 8px; border-radius: 999px; }
.player.ps-compact .pcover { width: 36px; height: 36px; border-radius: 50%; }
.player.ps-compact .time { display: none; }
.player.ps-compact .bar { margin-top: 6px; height: 3px; }
.player.ps-compact .pp { width: 36px; height: 36px; font-size: 13px; }
.player.ps-compact .vol-wrap { width: 64px; }
.player.ps-compact.has-video { border-radius: calc(var(--radius) * .6); }

/* style: vinyl (the cover spins like a record while playing) */
.player.ps-vinyl .pcover { width: 72px; height: 72px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px); box-shadow: 0 0 0 2px rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .5); }
.player.ps-vinyl .pcover-img { inset: 22%; width: 56%; height: 56%; border-radius: 50%; }
.player.ps-vinyl .pcover .hole { display: block; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #0b0710; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); z-index: 1; }
.player.ps-vinyl .pcover::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%); }
.player.ps-vinyl.playing .pcover { animation: spinRec 3.2s linear infinite; }
@keyframes spinRec { to { rotate: 360deg; } }

/* style: floating (fixed at the bottom of the screen, outside the card) */
.float-player { position: fixed; z-index: 13; left: 50%; bottom: 16px; translate: -50% 0; width: min(440px, calc(100% - 24px)); transition: opacity .6s ease, translate .6s ease; }
.float-player.hide { opacity: 0; translate: -50% 20px; pointer-events: none; }
.float-player .player { margin: 0; background: color-mix(in srgb, var(--card-solid, #120c1a) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.has-floating .views, .has-floating .made { bottom: 96px; }
.has-floating .stage { padding-bottom: 140px; }

@media (max-width: 560px) {
  .card { padding: 62px 18px 20px; }
  .layout-split .card { text-align: center; padding-top: 62px; }
  .layout-split .head { display: block; }
  .layout-split .avatar-wrap { position: absolute; top: -54px; left: 50%; transform: translateX(-50%); }
  .layout-split .badges, .layout-split .socials, .layout-split .meta { justify-content: center; }
  .layout-split .desc { margin-left: auto; }
  .social { width: 42px; height: 42px; font-size: 25px; }
  .banner { height: 120px; margin: 0 -18px 60px; }
  .player .vol-wrap { display: none; }
  .player .prow { gap: 10px; }
  .player.ps-vinyl .pcover { width: 56px; height: 56px; }
  .card.has-banner .avatar-wrap, .layout-split .card.has-banner .avatar-wrap { top: 66px; }
  .layout-split .card.has-banner .banner { margin-bottom: 60px; }
  .views { left: 12px; bottom: 12px; }
  .made { right: 12px; bottom: 12px; }
}
/* Reduced motion is not forced off here: the profile owner chose these effects deliberately. */

/* Own link icons (uploaded image instead of the platform icon) */
/* --cis: size of own icons (1 = same as the platform icons; slider in Wygląd → Ikony) */
.licon { width: calc(1em * var(--cis, 1)); height: calc(1em * var(--cis, 1)); object-fit: contain; border-radius: 6px; flex: 0 0 auto; display: block; }
.lbtn .licon { width: calc(24px * var(--cis, 1)); height: calc(24px * var(--cis, 1)); }
.licon.tint { border-radius: 0; background-color: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.glow-socials .social .licon { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); }

/* Premium name effects */
.fx-fire .name { color: #fff4dc; text-shadow: 0 0 4px #fff, 0 -2px 8px #ffb347, 0 -6px 16px #ff7a00, 0 -12px 28px #ff3d00; animation: nameFire 1.4s ease-in-out infinite alternate; }
@keyframes nameFire { to { text-shadow: 0 0 5px #fff, 0 -3px 10px #ffd166, 0 -8px 20px #ff9f1c, 0 -15px 34px #ff5400; } }
.fx-ice .name { background: linear-gradient(180deg, #ffffff 10%, #cdeeff 45%, #74c9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 8px rgba(120, 200, 255, .65)); }
.fx-chrome .name { background: linear-gradient(180deg, #ffffff 0%, #d4d4dc 38%, #5f5f6e 50%, #ececf2 62%, #9d9dab 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 10px rgba(255, 255, 255, .18)); }
.fx-holo .name { background: linear-gradient(110deg, #ff9ce6, #9cf0ff, #c7a2ff, #9cffb8, #ffe29c, #ff9ce6); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: slide 6s linear infinite; filter: drop-shadow(0 0 10px rgba(200, 160, 255, .45)); }
.fx-gold .name { background: linear-gradient(110deg, #a8740b 0%, #ffd700 28%, #fff6c2 42%, #ffc800 58%, #a8740b 100%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: nameShine 3.5s linear infinite; filter: drop-shadow(0 0 8px rgba(255, 200, 0, .45)); }


/* Badges in one colour (Wygląd → Odznaki); also overrides the gold owner badge */
.badges-mono .badge i, .badges-mono .badge [data-key] i, .badges-mono .badge[data-key] i { color: var(--badge) !important; background: none !important; -webkit-text-fill-color: currentColor !important; animation: none !important; filter: none !important; }
.badges-mono.glow-badges .badge i { filter: drop-shadow(0 0 6px var(--badge)) !important; }

/* Widgets */
.widgets { display: grid; gap: 10px; margin-top: 16px; text-align: left; }
.widget { margin: 0; padding: 14px 16px; border-radius: calc(var(--radius) * .6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; overflow: hidden; }
.widget .w-title { font-size: 12px; text-transform: none; letter-spacing: 0; opacity: .65; margin-bottom: 6px; }
.widget .w-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.widget .w-big { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.w-quote blockquote { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.w-quote figcaption, .w-image figcaption { margin-top: 6px; font-size: 13px; opacity: .65; }
.w-image img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; }
.w-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.w-spotify iframe { height: 152px; }
.w-youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.w-discord iframe { height: 300px; }


.fzc-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px dashed rgba(255, 255, 255, .15); font-size: 13px; }
.fzc-block button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--accent); color: #fff; font: 600 13px inherit; cursor: pointer; }

/* Profile without an avatar (config showAvatar: false): no room kept for it */
.card.no-avatar { padding-top: 30px; }
.card.no-avatar.has-banner { padding-top: 0; }
.card.no-avatar .banner { margin-bottom: 22px; }
.layout-split .card.no-avatar { padding-top: 28px; }
@media (max-width: 640px) {
  .card.no-avatar { padding-top: 24px; }
  .card.no-avatar.has-banner { padding-top: 0; }
  .card.no-avatar .banner, .layout-split .card.no-avatar.has-banner .banner { margin-bottom: 20px; }
}

/* ===================== Portfolio layout (layout 'portfolio') =====================
   Full-screen sections (the profile, "O mnie", music, projects) with scroll snapping and dots,
   in the clean dark style of guns.lol's portfolio profiles. Built by buildPortfolio() in profile.js. */
.layout-portfolio .stage { position: fixed; inset: 0; display: block; place-items: normal; padding: 0; perspective: none; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.layout-portfolio .stage::-webkit-scrollbar { display: none; }
.pf { transition: opacity .8s ease; }
.pf.hide { opacity: 0; pointer-events: none; }
.pf-sec { min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 72px 28px 84px; position: relative; }
.pf-in { width: min(1150px, 100%); min-width: 0; }
.pf-hero .pf-in { width: min(620px, 100%); }
/* each section's content rises in once it is on screen */
.pf-sec .pf-in > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.pf-sec.in .pf-in > * { opacity: 1; transform: none; }
.pf-sec.in .pf-in > :nth-child(2) { transition-delay: .08s; }
.pf-sec.in .pf-in > :nth-child(3) { transition-delay: .16s; }
.pf-sec.in .pf-in > :nth-child(4) { transition-delay: .24s; }
.pf-sec.in .pf-in > :nth-child(n+5) { transition-delay: .32s; }

/* hero: the profile without a box, big avatar with a soft glow */
.layout-portfolio .card { width: 100%; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; transform: none !important; }
.layout-portfolio .card-glow .card, .layout-portfolio.card-glow .card { animation: none; box-shadow: none; }
.layout-portfolio .avatar-wrap { position: relative; top: 0; left: 0; transform: none; display: inline-block; margin-bottom: 20px; }
.layout-portfolio .avatar { width: 168px; height: 168px; font-size: 64px; border-width: 4px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .03), 0 0 80px -10px color-mix(in srgb, var(--ring, var(--accent)) 55%, transparent); }
.layout-portfolio .avatar-wrap .status { width: 28px; height: 28px; right: 10px; bottom: 10px; }
.layout-portfolio .name { font-size: clamp(38px, 8vw, 58px); }
.layout-portfolio .badges { display: flex; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.badges:first-child { margin: 0 0 10px; }
.layout-portfolio .badges:first-child { margin: 0 auto 14px; }
.layout-portfolio .desc { font-size: 18px; margin-top: 16px; }
.layout-portfolio .socials { margin-top: 30px; gap: 8px 16px; }
.layout-portfolio .social { width: 54px; height: 54px; font-size: 34px; }
.layout-portfolio .buttons { max-width: 460px; margin-left: auto; margin-right: auto; }
.layout-portfolio .card.has-banner .banner { border-radius: var(--radius); margin: 0 0 24px; }
.pf-more { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; font-size: 13px; opacity: .7; cursor: pointer; transition: opacity .4s; }
.pf-more i { animation: pfBob 1.8s ease-in-out infinite; }
.pf-more.gone { opacity: 0; pointer-events: none; }
@keyframes pfBob { 50% { transform: translateY(5px); } }

/* dots on the right */
.pf-dots { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 12; display: flex; flex-direction: column; gap: 10px; }
.pf-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .28); cursor: pointer; transition: background .3s, transform .3s; }
.pf-dots button.on { background: #fff; transform: scale(1.35); box-shadow: 0 0 10px var(--accent); }
.pf-dots button:hover { background: rgba(255, 255, 255, .7); }

/* cards and headings */
.pf-h { margin: 0 0 22px; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.glow-name .pf-h { text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.pf-card { position: relative; border-radius: calc(var(--radius) * 1.1); background: var(--card); border: var(--bw) solid rgba(255, 255, 255, .08); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); min-width: 0; }
.card-glow .pf-card { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 36px -14px var(--accent); }
.pf-bio { padding: 26px 30px; font-size: 17px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pf-grid.one { grid-template-columns: minmax(0, 1fr); }
.pf-bio .presence, .pf-grid .presence { margin: 0; }
.pf-sec .presence.pf-card { margin: 0; padding: 20px; gap: 16px; background: var(--card); border-radius: calc(var(--radius) * 1.1); }
.pf-sec .presence .pav img { width: 72px; height: 72px; }
.pf-sec .presence .pname { font-size: 19px; }
.pf-sec .presence .pact { font-size: 14px; font-style: italic; }
.pf-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pf-skill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--card); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.pf-skill i { font-size: 15px; }
.sk-tag { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 4px; background: #fff; color: #111; font-size: 9px; font-weight: 800; letter-spacing: -.02em; }
.pf-bio ~ .widgets, .pf-skills ~ .widgets, .pf-grid ~ .widgets { margin-top: 18px; }

/* clock card */
.pf-clock { display: flex; align-items: center; gap: 18px; padding: 20px; }
.ck-face { position: relative; width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .12); }
.ck-tick { position: absolute; left: 50%; top: 4px; width: 2px; height: 6px; margin-left: -1px; background: rgba(255, 255, 255, .45); transform-origin: 1px 32px; transform: rotate(var(--r)); }
.ck-h { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; background: #fff; }
.ck-hr { width: 4px; height: 18px; margin-left: -2px; }
.ck-min { width: 3px; height: 26px; margin-left: -1.5px; }
.ck-sec { width: 1.5px; height: 29px; margin-left: -.75px; background: #ef4444; }
.ck-dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; }
.ck-time { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-date { font-size: 14px; opacity: .7; font-weight: 600; margin-top: 2px; }
.ck-mine { font-size: 12px; opacity: .45; margin-top: 4px; }
.ck-zone { position: absolute; top: 14px; right: 16px; font-size: 12px; opacity: .45; display: flex; gap: 5px; align-items: center; }

/* music: the player large, on its own blurred cover */
.pf-music .pf-in { width: min(1020px, 100%); }
.pf-music .player { position: relative; overflow: hidden; isolation: isolate; margin: 0; padding: 22px; border-radius: calc(var(--radius) * 1.6); min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.pf-music .player::before { content: ''; position: absolute; inset: -60px; z-index: -1; background: var(--pcover, none) center / cover, var(--card-solid); filter: blur(60px) saturate(1.4) brightness(.75); opacity: .9; }
.pf-music .player .pcover { width: 92px; height: 92px; border-radius: 50%; }
.pf-music .player.playing .pcover { animation: pfSpin 12s linear infinite; }
.pf-music .player .ptitle { font-size: 20px; }
@keyframes pfSpin { to { transform: rotate(360deg); } }

/* projects */
.pf-projects { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pf-projects.n1 { grid-template-columns: minmax(0, 1fr); }
.pj { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 260px; transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s; }
.pf-projects.n1 .pj { min-height: min(56vh, 520px); }
.pj-art { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .4s; }
.pj-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 35%, rgba(0, 0, 0, .85) 100%); }
.pj-art-txt { display: grid; place-items: center; background: radial-gradient(600px 300px at 50% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent), rgba(0, 0, 0, .35); }
.pj-art-txt span { font-size: clamp(40px, 9vw, 110px); font-weight: 700; letter-spacing: -.03em; opacity: .22; text-align: center; padding: 0 20px; overflow-wrap: anywhere; }
.pj-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.pj-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pj-tags .sk-tag { min-width: 14px; height: 14px; font-size: 7px; }
.pj-info { position: relative; z-index: 1; padding: 22px 26px; }
.pj-info h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.pj-info p { margin: 6px 0 0; opacity: .7; font-size: 15px; line-height: 1.5; }
.pj-visit { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; grid-auto-flow: column; gap: 8px; align-items: center; font-weight: 600; font-size: 17px; opacity: 0; background: rgba(0, 0, 0, .35); transition: opacity .3s; }
.pj.has-link:hover, .pj.has-link:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pj.has-link:hover .pj-art { transform: scale(1.04); filter: blur(3px); }
.pj.has-link:hover .pj-visit, .pj.has-link:focus-visible .pj-visit { opacity: 1; }

/* bottom bar: views + location */
.views .vsep { width: 1px; height: 14px; background: currentColor; opacity: .35; margin: 0 2px; }
.layout-portfolio .views { background: none; backdrop-filter: none; padding: 0; left: 26px; bottom: 22px; }
.layout-portfolio .made { bottom: 18px; }

@media (max-width: 700px) {
  .pf-sec { padding: 64px 16px 88px; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-bio { padding: 20px; font-size: 16px; }
  .layout-portfolio .avatar { width: 136px; height: 136px; }
  .layout-portfolio .social { width: 46px; height: 46px; font-size: 29px; }
  .pf-dots { right: 8px; }
  .pf-music .player .pcover { width: 64px; height: 64px; }
  .pj { min-height: 220px; }
  .pf-projects.n1 .pj { min-height: 300px; }
  .layout-portfolio .views { left: 16px; bottom: 18px; }
}

/* badges beside the name: one row, both centred vertically (badgesPosition 'beside') */
.name-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.name-row .name-wrap { min-width: 0; }
.name-row .badges { margin: 0; flex-wrap: nowrap; }
.name-row .name { display: block; }
.layout-portfolio .name-row .badges { margin: 0; }
.layout-split .name-row { justify-content: flex-start; }
@media (max-width: 640px) { .layout-split .name-row { justify-content: center; } }

/* Discord server card (widget "Serwer Discord"), like Discord's invite embed */
.w-dsc { padding: 0; background: none; border: 0; }
.w-dsc .w-title { padding: 0 2px 8px; }
.dsc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: calc(var(--radius) * .6); background: rgba(17, 18, 20, .72); border: 1px solid rgba(255, 255, 255, .08); text-align: left; min-width: 0; }
.dsc-icon { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #5865f2; color: #fff; font-weight: 700; font-size: 22px; }
.dsc-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dsc-mid { flex: 1; min-width: 0; }
.dsc-name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsc-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.dsc-stats span { display: inline-flex; align-items: center; gap: 6px; }
.dsc-stats i { width: 8px; height: 8px; border-radius: 50%; background: #80848e; }
.dsc-on i { background: #23a55a; }
.dsc-stats b { font-weight: 500; }
.dsc-join { flex: 0 0 auto; padding: 9px 18px; border-radius: 8px; background: #248046; color: #fff; font-weight: 600; font-size: 14px; transition: background .15s; }
.dsc-join:hover { background: #1a6334; }
.dsc.loading .dsc-icon, .dsc.loading .dsc-name, .dsc.loading .dsc-stats b { animation: dscPulse 1.2s ease-in-out infinite; }
.dsc.loading .dsc-icon { background: rgba(255, 255, 255, .08); }
.dsc.bad .dsc-stats { color: #f87171; }
@keyframes dscPulse { 50% { opacity: .45; } }
@media (max-width: 380px) { .dsc { gap: 10px; padding: 12px; } .dsc-icon { width: 44px; height: 44px; border-radius: 14px; } .dsc-join { padding: 8px 12px; } }

/* Cloudflare Turnstile box: invisible unless Cloudflare asks for a click, then shown bottom-centre */
.cf-ts { position: fixed; left: 50%; bottom: 64px; translate: -50% 0; z-index: 60; }
