/* YZY-inspired: stark type + heavy negative space + product-first grid
   with a soft sky-blue glow background */

/* Default: LIGHT */
:root{
  --bg0:#f6f7fb;
  --bg1:#b2c9ff;
  --ink:#0b0d12;
  --muted:rgba(11,13,18,.55);
  --line:rgba(11,13,18,.12);

  --glow0:rgba(180,150,255,.20);
  --glow1:rgba(180,150,255,.10);
  --glow2:rgba(180,150,255,.05);

  --card: rgba(255,255,255,.75);
  --shadow: rgba(0,0,0,.06);
  --player-bg: transparent;
  --player-border: rgba(11,13,18,.08);
}

/* DARK (toggled) */
html[data-theme="dark"]{
  --bg0:#010203;
  --bg1:#07111c;
  --ink:#f4f7ff;
  --muted:rgba(244,247,255,.65);
  --line:rgba(244,247,255,.14);

  --glow0:rgba(180,150,255,.22);
  --glow1:rgba(180,150,255,.12);
  --glow2:rgba(180,150,255,.08);

  --card: rgba(10,14,22,.55);
  --shadow: rgba(0,0,0,.35);
  --player-bg: rgba(10,14,22,.55);
  --player-border: rgba(244,247,255,.14);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(900px 600px at 20% 10%, var(--glow0), transparent 60%),
    radial-gradient(900px 600px at 80% 0%,  var(--glow1), transparent 60%),
    radial-gradient(900px 700px at 50% 85%, var(--glow2), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.02em;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.85}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

.nav{
  display:flex;
  gap:14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.h1{
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
}

.sub{
  margin: 0 auto 26px;
  color: var(--muted);
  max-width: 60ch;
  text-align: center;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px var(--shadow);
}

@media (min-width: 860px){
  .card.span6{grid-column: span 6;}
  .card.span4{grid-column: span 4;}
}

.meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.title{
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}

.btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.btn.primary{
  background: rgba(120,190,255,.22);
  border-color: rgba(120,190,255,.35);
}

audio{
  width:100%;
  max-width:520px;
  margin:14px auto 0;
  display:block;
}
.hr{
  height: 80px;
  margin: 30px 0;
  background: linear-gradient(
    to bottom,
    rgba(120,160,255,0) 0%,
    rgba(120,160,255,0.15) 50%,
    rgba(120,160,255,0) 100%
  );
  border: none;
}
.small{color:var(--muted); font-size:12px}
/* Centered hero layout */
.center {
  min-height: 100vh;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
}

.hero {
  width: 100%;
  text-align: center;
}

.logo {
  height: 44px;
  width: auto;
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(120,190,255,.35));
  opacity: .95;
}

.iconbtn {
  color: var(--ink);
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}
.iconbtn:hover { opacity: .85; }

.icon{
  width:18px;
  height:18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Track metadata like streaming services */
.trackmeta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.tracktitle {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}
/* Subtle grain + softer card edge */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.35;
}
.card{ box-shadow: 0 0 0 1px rgba(120,190,255,.06), 0 18px 60px rgba(0,0,0,.35); }
.center-block { max-width: 680px; margin: 0 auto; }
.center-grid { display: grid; place-items: center; }
.player{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:640px;
  margin:0 auto;
  padding:14px;
  border-radius:14px;
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  box-shadow: none;
}
.pbtn{
  width:42px; height:42px; border-radius: 999px;
  border:1px solid rgba(120,190,255,.35);
  background: rgba(120,190,255,.18);
  display:grid; place-items:center;
}
.pbtn:hover{opacity:.9}
.picon{width:18px;height:18px;fill:rgba(244,247,255,.92)}
.pmid{flex:1; min-width: 180px;}
.pbar{
  height:6px;
  border-radius:999px;
  background: var(--line);
  overflow:hidden;
  cursor:pointer;
}
.pfill{height:100%; width:0%; background: rgba(120,190,255,.55)}
.ptimes{display:flex; justify-content:space-between; margin-top:8px}
.ptimes span{font-size:12px; color: var(--muted); letter-spacing:.10em}
/* Glow pulse while playing */
/* Glow pulse while playing (purple) */
.player.is-playing{
  animation: pulseGlow 1.6s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%,100% {
    box-shadow:
      0 0 0 1px rgba(180,150,255,.10),
      0 18px 60px rgba(0,0,0,.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(180,150,255,.22),
      0 0 34px rgba(180,150,255,.22),
      0 18px 60px rgba(0,0,0,.35);
  }
}
.player.is-playing .pbtn{
  box-shadow: 0 0 18px rgba(180,150,255,.28);
}
/* Fixed icon bar (left/center/right) */
.iconbar{
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  z-index: 20;
}
.iconbar .iconbtn{ pointer-events: auto; position: static; }

.iconcenter{
  display:flex;
  gap:12px;
  align-items:center;
}

/* Logo always centered, slightly below the icon row */
.brandblock{
  padding-top: 76px;
  text-align: center;
}
.brandblock .logo{
  margin: 0 auto 18px;
  display: inline-block;
}
/* Fix checkout/vault layout stability */
.pagecenter{ max-width:720px; margin: 0 auto; }
.pagecenter .card{ width:100%; }
.btnrow{ justify-content:center; }
.vaultitem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.vaultitem:last-child{ border-bottom:none; }

.vaulttitle{
  font-weight:600;
  letter-spacing:.03em;
}

.vaultmeta{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}.vaultitem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.vaultitem:last-child{ border-bottom:none; }

.vaulttitle{
  font-weight:600;
  letter-spacing:.03em;
}

.vaultmeta{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}
.vaultitem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.vaultitem:last-child{ border-bottom:none; }

.vaultart{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:6px;
  flex-shrink:0;
}

.vaultinfo{
  flex:1;
}
.chip{
  display:inline-block;
  font-size:10px;
  letter-spacing:.14em;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  margin-left:10px;
  transform: translateY(-1px);
}
.chip.owned{
  background: rgba(180,150,255,.14);
}
.vaultnote{
  margin-top:16px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

/* Keep original header layout; fix release-row alignment + long titles */
.vaultitem{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.vaultitem > div{
  text-align:left;   /* prevents the “centered releases” problem */
  min-width:0;       /* enables ellipsis inside a flex row */
}

/* Keep buttons/locks from being pushed */
.vaultitem .btn,
.vaultitem .lock{
  flex-shrink:0;
}

/* Only truncate the LAST meta line (the song title), not "Single • 1 Track" */
.vaultitem .vaultmeta:last-child{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Kill any hard section banding and keep background continuous */
.wrap, .center {
  background: transparent !important;
}

/* Ensure body/html own the gradient continuously */
html, body {
  min-height: 100%;
  background: radial-gradient(1200px 600px at 50% 0%,
      var(--glow0), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
}
/* Bottom center signature */
.footer-mark{
  text-align:center;
  font-weight:600;
  font-size:12px;
  letter-spacing:.18em;
  opacity:.55;
  margin-top:80px;
  margin-bottom:40px;
}
