/* The smart link hub. Mobile first: this page is nearly always opened
   from a phone, from a bio link or a story swipe-up. */

.hub{
  min-height:100svh; position:relative;
  display:flex; flex-direction:column; align-items:center;
  padding:2.6rem 1.25rem 3rem;
}
.hub{overflow-x:clip}
.hub > *{position:relative; z-index:1; width:100%; max-width:30rem}
/* Must come after the rule above. It matches the canvas too, and used to turn
   the fixed background into an in-flow box, which is how the centre dot ended
   up sitting on top of the text. */
.hub > .hub-field{position:fixed; inset:0; z-index:0; width:100%; max-width:none; height:100%; pointer-events:none}

.hub-head{text-align:center; margin-bottom:2.2rem}
.hub-head img{width:96px; margin:0 auto 1.5rem; display:block}
.hub-head h1{
  font-family:var(--display); font-weight:400; letter-spacing:.1em;
  font-size:clamp(1rem,4.6vw,1.22rem); line-height:1.6; margin:0 0 .7rem;
}
.hub-head p{color:var(--mist); font-size:.95rem; font-weight:200; margin:0; max-width:26ch; margin-inline:auto}

/* the now-playing card, the thing people came for */
.now{
  border:1px solid rgba(155,107,255,.28); border-radius:16px;
  background:linear-gradient(165deg,rgba(74,29,176,.22),rgba(20,11,51,.55));
  padding:1.4rem; margin-bottom:1.8rem;
  display:grid; grid-template-columns:auto 1fr; gap:1.1rem; align-items:center;
}
.now .art{
  width:84px; height:84px; border-radius:11px; flex:none; overflow:hidden;
  background:var(--nebula);
  border:1px solid rgba(155,107,255,.22);
  box-shadow:0 8px 26px rgba(0,0,0,.6);
}
.now .art img{width:100%; height:100%; object-fit:cover; display:block}
.now h2{font-family:var(--body); font-weight:400; font-size:1.1rem; margin:0 0 .2rem}
.now .sub{font-family:var(--data); font-size:.72rem; color:var(--uv-light); letter-spacing:.1em; margin:0}
.now .tag{font-family:var(--data); font-size:.66rem; letter-spacing:.14em; color:var(--gold); margin:.5rem 0 0}

/* platform rows: big enough to hit with a thumb */
.plats{display:grid; gap:.6rem; margin:0 0 1.6rem; padding:0; list-style:none}
.plat-row{
  display:flex; align-items:center; gap:.9rem;
  padding:1rem 1.15rem; border-radius:12px; text-decoration:none;
  border:1px solid rgba(150,140,186,.2); background:rgba(20,11,51,.45);
  min-height:56px; transition:border-color .25s, background .25s, transform .2s;
}
.plat-row:hover,.plat-row:focus-visible{border-color:var(--uv); background:rgba(74,29,176,.3); transform:translateY(-1px)}
.plat-row .glyph{
  width:34px; height:34px; flex:none; border-radius:9px;
  display:grid; place-items:center; padding:7px;
  font-family:var(--data); font-size:.78rem; font-weight:500;
  background:rgba(155,107,255,.14); color:var(--uv-light);
  transition:background .25s, color .25s;
}
.plat-row .glyph svg{display:block; width:100%; height:100%}
.plat-row:hover .glyph,.plat-row:focus-visible .glyph{
  background:rgba(92,242,168,.16); color:var(--uv-green);
}
.plat-row .name{flex:1; font-size:.98rem}
.plat-row .go{font-family:var(--data); font-size:.68rem; letter-spacing:.14em; color:var(--mist)}
.plat-row:hover .go{color:var(--gold)}

/* remembered choice */
.remember{
  display:flex; gap:.65rem; align-items:flex-start;
  font-size:.82rem; color:var(--mist); line-height:1.55; margin:0 0 2rem;
}
.remember input{margin-top:.25rem; accent-color:var(--uv-deep)}
.pref{
  display:none; align-items:center; gap:.8rem; flex-wrap:wrap;
  font-size:.84rem; color:var(--mist); margin:0 0 1.6rem;
  padding:.85rem 1rem; border-radius:10px;
  border:1px dashed rgba(240,207,138,.35); background:rgba(201,154,78,.07);
}
.pref.on{display:flex}
.pref button{
  font-family:var(--data); font-size:.68rem; letter-spacing:.1em;
  background:none; border:0; color:var(--gold); cursor:pointer;
  border-bottom:1px solid rgba(240,207,138,.5); padding:0;
}

.hub-sec{margin-bottom:2rem}
.hub-sec h3{
  font-family:var(--data); font-size:.7rem; letter-spacing:.18em;
  color:var(--uv-light); font-weight:500; margin:0 0 .9rem;
}
.hub .form{max-width:none; margin-top:0}
.hub .form-row{gap:.6rem}
.hub input[type=email]{flex:1 1 11rem}

.hub-foot{text-align:center; margin-top:auto; padding-top:2.4rem}
.hub-foot a{color:var(--mist); text-decoration:none; font-size:.8rem}
.hub-foot a:hover{color:var(--ash)}
.hub-foot .legal{display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; margin-bottom:1rem}

@media (min-width:640px){
  .hub{padding-top:4rem}
}
