/* Vegas Jaded · vegasjaded.studio
   Palette: neon pink, neon purple, black, white. Nothing else.
   Type: Permanent Marker (matches the SPILLED INK cover lettering) + Inter. */
:root {
  --pink: #ff2bd6;
  --purple: #a43bff;
  --black: #000;
  --white: #fff;
  --text-2: rgba(255, 255, 255, .66);
  --text-3: rgba(255, 255, 255, .42);
  --glass: rgba(14, 4, 20, .72);
  --line: rgba(255, 255, 255, .12);
  --marker: 'Permanent Marker', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --glow-pink: 0 0 18px rgba(255, 43, 214, .55);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--black); }
body {
  margin: 0; color: var(--white); font: 400 15px/1.5 var(--body);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(164, 59, 255, .18), transparent 70%),
    radial-gradient(700px 500px at 15% 70%, rgba(255, 43, 214, .07), transparent 70%),
    radial-gradient(700px 500px at 85% 80%, rgba(164, 59, 255, .08), transparent 70%),
    var(--black);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- header / wordmark ---------- */
.top { display: flex; justify-content: center; padding: max(18px, env(safe-area-inset-top)) 16px 4px; }
.wordmark { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45em; text-decoration: none; font-family: var(--marker); font-size: clamp(22px, 3.2vw, 34px); line-height: 1.15; text-align: center; }
.wm-name { color: var(--pink); text-shadow: 0 0 14px rgba(255, 43, 214, .7), 0 0 2px #000; -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.wm-rest { white-space: nowrap; }
.wm-aka { color: var(--white); font-size: .72em; letter-spacing: .04em; }
.flipk { display: inline-block; transform: rotate(180deg); }
.wm-alias { color: var(--white); text-shadow: 0 0 12px rgba(164, 59, 255, .8); }
.wm-xo { color: var(--pink); font-size: .8em; text-shadow: var(--glow-pink); }

/* ---------- player ---------- */
/* the stage runs edge to edge so the side glow panels hug the screen edges */
.player { position: relative; margin: 0; padding: 0; }
.stage { position: relative; width: 100%; height: min(68vh, 640px); min-height: 360px; cursor: pointer; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; font: 600 11px var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); pointer-events: none; transition: opacity .4s; }
.stage-hint.gone { opacity: 0; }

.bar { position: relative; z-index: 2; width: min(760px, calc(100% - 32px)); margin: 6px auto 0; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 50px rgba(164, 59, 255, .14); transition: opacity .35s ease; }
.bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.now { min-width: 0; flex: 1; }
.np-title { margin: 0; font: 800 17px/1.25 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
#np-album { color: var(--pink); }
.styles { display: flex; gap: 6px; }
.chip { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 600 12px var(--body); cursor: pointer; min-height: 34px; }
.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #000; box-shadow: var(--glow-pink); }

.seek { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.t { font: 600 11px var(--body); color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 34px; }
.t:last-child { text-align: right; }
.prog { flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.prog i { position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.prog b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 0 10px rgba(255, 43, 214, .6); }
.prog b::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--pink); opacity: 0; transition: opacity .2s; }
.prog:hover b::after, .prog:focus-visible b::after { opacity: 1; }

.controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.spacer { flex: 1; display: flex; }
.spacer.end { justify-content: flex-end; }
.ctl { background: none; border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; opacity: .85; }
.ctl:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
.ctl svg, .play svg { width: 22px; height: 22px; fill: currentColor; }
.play { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 0 26px rgba(255, 43, 214, .6); }
.play svg { width: 26px; height: 26px; }
.play .i-pause, .playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.play.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 44px rgba(255, 43, 214, .95); } }
#fs .i-exit, .is-full #fs .i-enter { display: none; }
.is-full #fs .i-exit { display: block; }

/* fullscreen: the player alone fills the screen; controls float and auto-hide */
.player.is-full { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; background: #000; }
.player.is-full .stage { height: 100%; min-height: 0; }
.player.is-full .bar { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(760px, calc(100% - 32px)); margin: 0; }
.player.is-full .stage-hint { display: none; }
.player.is-full.idle .bar { opacity: 0; pointer-events: none; }
.player.is-full.idle { cursor: none; }
.player.immersive { position: fixed; inset: 0; z-index: 100; height: 100dvh; }

/* ---------- albums ---------- */
.albums { max-width: 1200px; margin: 0 auto; padding: 72px 16px 24px; }
.sec-title { margin: 0 0 28px; text-align: center; font: 400 clamp(34px, 5vw, 52px)/1.1 var(--marker); color: var(--white); text-shadow: 0 0 22px rgba(164, 59, 255, .7); }
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; align-items: start; }
.album-head { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.cover { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; aspect-ratio: 1; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 0 34px rgba(255, 43, 214, .35); transition: transform .3s, box-shadow .3s; }
@media (hover: hover) {
  .cover:hover img { transform: scale(1.02); box-shadow: 0 0 0 1px var(--pink), 0 0 48px rgba(255, 43, 214, .6); }
  .cover:hover .cover-play { opacity: 1; }
}
.cover-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.cover-play span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 0 30px rgba(255, 43, 214, .8); }
.cover-play svg { width: 28px; height: 28px; fill: #fff; }
.cover:focus-visible .cover-play { opacity: 1; }
.eyebrow { margin: 0; font: 700 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.album-title { margin: 6px 0 2px; font: 400 clamp(26px, 3vw, 36px)/1.05 var(--marker); color: var(--pink); -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 0 16px rgba(255, 43, 214, .65); }
.album-sub { margin: 0 0 4px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.meta { margin: 6px 0 14px; color: var(--text-2); font-size: 13px; }
.album-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: 800 12px var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-pink { background: var(--pink); color: #000; box-shadow: var(--glow-pink); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; }

.tracks { list-style: none; margin: 0; padding: 8px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 30px 1fr auto 44px; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; text-align: left; }
.track:hover { background: rgba(255, 43, 214, .07); }
.track .n { font: 600 12px var(--body); color: var(--text-3); font-variant-numeric: tabular-nums; }
.track .tt { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .e { font: 800 9px/1 var(--body); padding: 3px 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); color: var(--text-2); }
.track .d { font: 600 12px var(--body); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.track.current { background: rgba(255, 43, 214, .14); border-color: rgba(255, 43, 214, .55); box-shadow: inset 0 0 18px rgba(255, 43, 214, .15); }
.track.current .tt, .track.current .d { color: var(--pink); font-weight: 700; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--pink); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.track.current .n-num { display: none; }
.track.current .eq { display: flex; }
.paused .track.current .eq i { animation-play-state: paused; }

/* phones: covers side by side, the tapped album's songs underneath */
@media (max-width: 760px) {
  .album-grid { gap: 12px; }
  .album-head { grid-template-columns: 1fr; gap: 10px; padding: 10px; text-align: center; border-color: var(--line); cursor: pointer; }
  .album-head.sel { border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 43, 214, .3); }
  .album-title { font-size: 21px; }
  .album-sub, .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .meta { margin: 4px 0 8px; font-size: 11px; }
  .album-actions { justify-content: center; }
  .album-actions .btn-ghost { display: none; }
  .btn { min-height: 36px; padding: 0 14px; font-size: 11px; }
  .stage { height: min(64vh, 112vw); min-height: 320px; }
  .tracks { grid-column: 1 / -1; }
  .tracks:not(.sel) { display: none; }
  .bar { padding: 14px 14px 10px; }
  .styles { display: none; }
  .controls { gap: 10px; }
}

/* ---------- coming soon ---------- */
.soon { padding: 64px 16px 40px; text-align: center; }
.soon-title { margin: 0; font: 400 clamp(38px, 7vw, 86px)/1.05 var(--marker); color: var(--pink); -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 0 20px rgba(255, 43, 214, .75), 0 0 60px rgba(255, 43, 214, .35); transform: rotate(-2deg); }
.drips { display: block; width: min(640px, 92%); height: auto; margin: 6px auto 0; filter: drop-shadow(0 0 8px rgba(255, 43, 214, .6)); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 28px 16px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--pink); }

/* ---------- customize panel (lives inside the player, so it works in fullscreen) ---------- */
.custom-panel { position: absolute; top: 16px; right: 16px; z-index: 5; width: 320px; max-height: min(72vh, 600px); overflow: auto; background: rgba(10, 2, 16, .86); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 60px rgba(0, 0, 0, .6), 0 0 30px rgba(164, 59, 255, .18); }
.custom-panel[hidden] { display: none; }
.cp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cp-head h3 { margin: 0; font: 400 22px var(--marker); color: var(--pink); text-shadow: var(--glow-pink); }
.cp-close { width: 36px; height: 36px; }
.custom-panel h4 { margin: 0 0 7px; font: 700 10px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.custom-panel .grp { margin-bottom: 14px; }
.custom-panel .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.custom-panel .chip { padding: 6px 11px; min-height: 32px; }
.custom-panel .chip.font { font-size: 15px; font-weight: 400; }
.custom-panel .row { display: flex; justify-content: space-between; font: 600 12px var(--body); color: var(--text-2); margin-bottom: 4px; }
.custom-panel input[type=range] { width: 100%; accent-color: var(--pink); }
.cp-reset { margin-top: 4px; }
#custom[aria-expanded="true"] { color: var(--pink); opacity: 1; }
@media (max-width: 760px) {
  .custom-panel { left: 12px; right: 12px; top: 12px; width: auto; max-height: 62vh; }
}

@media (prefers-reduced-motion: reduce) {
  .play.pulse, .eq i { animation: none; }
}
