/* ============================================================
   music.artzenmedia.com, the Music Library

   Two languages on one page:
   - the page is the guides / artzenmedia.com look: near-black, 18px grid,
     film grain, ghost wordmark, mono uppercase labels, colour only inside
     small glyphs, every action a dark tile or pill (never a bright slab);
   - each song is the Music preset's Now Playing card from the reels
     (Artzen 2027): dark glass over the blurred cover, his diagonal rim,
     SF Pro, the #34DD60 check, the progress bar and the three controls.
   ============================================================ */

:root{
  --bg:#0C0C0C; --tile:#141414; --tile-hi:#181818; --field:#0F0F0F; --card:#171717;
  --white:#FFFFFF; --secondary:#8C8C8C; --tertiary:#737373; --faint:#4A4A4A;
  --hairline:rgba(255,255,255,.07); --edge:rgba(255,255,255,.14);
  --blue:#1FB7F9; --danger:#FF6B5A; --green:#34DD60;
  --ease:cubic-bezier(.22,.68,.16,1);
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --sf:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Segoe UI",Roboto,sans-serif;
  --max-w:520px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--white);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px; line-height:24px;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
h1,h2,.tile__title{font-variation-settings:'opsz' 32}
[hidden]{display:none !important}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0}

/* grid + grain + glow, same as the guides */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.016) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.016) 1px,transparent 1px);
  background-size:18px 18px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 30%,transparent 80%); mask-image:linear-gradient(180deg,#000 0%,#000 30%,transparent 80%);
}
body::after{
  content:""; position:fixed; top:-50%; left:-50%; width:200%; height:200%;
  z-index:40; pointer-events:none; opacity:.04;
  background-image: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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1.2s steps(4) infinite;
}
@keyframes grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-2%)}100%{transform:translate(0,0)}}
.glow{
  position:absolute; top:-180px; left:50%; width:900px; height:640px; transform:translateX(-50%);
  background:radial-gradient(ellipse at center, rgba(30,100,255,.16) 0%, rgba(31,183,249,.05) 40%, transparent 68%);
  pointer-events:none; z-index:-1;
}

.wrap{
  position:relative; z-index:1; width:100%; max-width:var(--max-w); margin:0 auto;
  padding:0 16px calc(64px + env(safe-area-inset-bottom));
}

/* ---------------- masthead ---------------- */
.mast{position:relative; display:flex; flex-direction:column; align-items:center; padding:40px 0 0}
.mast__mark{
  position:absolute; top:22px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center;
  font-size:clamp(52px,16vw,74px); line-height:.94; font-weight:600; letter-spacing:-.045em;
  font-variation-settings:'opsz' 32; color:rgba(255,255,255,.055);
  white-space:nowrap; user-select:none; pointer-events:none; will-change:transform;
}
.mast__mark i{font-style:normal; display:block}
.mast__mark i:first-child{transform:translateX(-.2em)}
.mast__mark i:last-child{transform:translateX(.12em)}
.pf{position:relative; display:block; width:64px; height:64px; margin-top:32px; text-decoration:none; transition:transform .35s var(--ease)}
.pf__glow{position:absolute; inset:-20px; border-radius:50%; background:radial-gradient(circle, rgba(30,100,255,.2) 0%, rgba(31,183,249,.06) 50%, transparent 70%); filter:blur(13px); pointer-events:none}
.pf__circle{display:block; position:relative; z-index:1; width:100%; height:100%; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,#0A0A20,#101030)}
.pf__circle img{width:100%; height:100%; object-fit:cover; display:block}
.pf__badge{position:absolute; z-index:2; right:0; bottom:0; width:33%; height:33%}
.pf__badge::before{content:""; position:absolute; inset:11%; border-radius:50%; background:var(--bg)}
.pf__badge svg{position:relative; display:block; width:100%; height:100%}
.pf:hover{transform:translateY(-2px)}

/* ---------------- hero ---------------- */
.hero{padding:44px 0 0; text-align:center}
.eyebrow,.tag,.ep__n,.ep__date,.get__label{
  font-family:var(--mono); font-size:11px; font-weight:500; line-height:16px;
  letter-spacing:-.01em; text-transform:uppercase; color:var(--faint);
}
.eyebrow{margin:0 0 14px}
h1{margin:0; font-size:clamp(32px,9vw,42px); line-height:1.04; font-weight:600; letter-spacing:-.04em}
h1 .emo{font-size:.74em; margin-left:.12em; display:inline-block; transform-origin:60% 80%; animation:tilt 4.6s var(--ease) infinite}
@keyframes tilt{0%,72%,100%{transform:rotate(0)}78%{transform:rotate(-11deg)}84%{transform:rotate(8deg)}90%{transform:rotate(-4deg)}}
.lede{margin:16px auto 0; max-width:380px; color:var(--secondary); font-size:16px; line-height:25px}

h2{margin:0; font-size:22px; line-height:28px; font-weight:600; letter-spacing:-.032em}
.sub{margin:8px 0 0; color:var(--secondary); font-size:15px; line-height:23px}
.sub b{color:var(--white); font-weight:500; word-break:break-all}

/* ---------------- gate ---------------- */
.gate{position:relative; margin:36px 0 0; padding:0 0 4px}
.ghosts{
  position:absolute; inset:-6px 0 auto; display:flex; flex-direction:column; gap:12px;
  -webkit-mask-image:linear-gradient(180deg,#000 10%,transparent 92%); mask-image:linear-gradient(180deg,#000 10%,transparent 92%);
  filter:blur(5px); opacity:.55; pointer-events:none;
}
.ghosts .np{transform:scale(.96)}
.gate__card{
  position:relative; margin:56px 6px 0; padding:22px 20px 20px;
  background:rgba(20,20,20,.82);
  -webkit-backdrop-filter:blur(22px) saturate(1.2); backdrop-filter:blur(22px) saturate(1.2);
  border:1px solid var(--hairline); border-radius:24px;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.9);
}
.gate__top{display:flex; align-items:center; justify-content:space-between; margin:0 0 26px}
.gate__glyph{width:19px; height:19px; color:var(--blue)}
.step form{margin:20px 0 0}

/* email / code pill, the join page's field */
.pill{
  position:relative; display:flex; align-items:center; height:50px;
  background:var(--field); border:1px solid transparent; border-radius:36px; padding:0 6px 0 16px;
  transition:border-color .22s var(--ease), background .22s var(--ease);
}
.pill:focus-within{border-color:var(--edge); background:#0B0B0B}
.pill.err{border-color:rgba(255,107,90,.55); animation:shake .4s var(--ease)}
@keyframes shake{0%,100%{transform:translateX(0)}22%{transform:translateX(-6px)}44%{transform:translateX(5px)}68%{transform:translateX(-3px)}86%{transform:translateX(2px)}}
.pill__icon{width:18px; height:18px; flex:none; color:var(--tertiary)}
.pill input{
  flex:1 1 auto; min-width:0; height:100%; margin:0 8px 0 10px; padding:0; border:0; outline:0;
  background:transparent; color:var(--white); font-family:inherit; font-size:16px; line-height:20px;
}
.pill input::placeholder,.area textarea::placeholder{color:var(--tertiary); opacity:1}
.pill input:-webkit-autofill{-webkit-text-fill-color:var(--white); -webkit-box-shadow:0 0 0 1000px var(--field) inset; transition:background-color 9999s}
.pill--code input{margin-left:2px; font-family:var(--mono); font-size:22px; letter-spacing:.18em}
.pill--plain{padding-right:16px}
.pill--plain input{margin:0}
.go{
  flex:none; width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:50%;
  background:var(--card); box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.35);
  color:var(--secondary); cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.go:hover{background:#1F1F1F; color:var(--white)}
.go:active{transform:scale(.93)}
.go svg{width:18px; height:18px}
.spinner{width:16px; height:16px; border:2px solid rgba(255,255,255,.16); border-top-color:var(--white); border-radius:50%; animation:spin .62s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.hint{margin:13px 4px 0; min-height:18px; font-size:13px; line-height:19px; color:var(--tertiary)}
.hint.err{color:var(--danger)}
.hint.ok{color:var(--white)}
.hint--sub{margin-top:4px}
.linkish{
  padding:0; border:0; background:none; font:inherit; color:var(--secondary);
  text-decoration:underline; text-decoration-color:rgba(255,255,255,.2); text-underline-offset:3px; cursor:pointer;
}
.linkish:hover{color:var(--white)}
.linkish:disabled{cursor:default; opacity:.5}

/* ---------------- tiles (artzenmedia.com) ---------------- */
.tile{
  position:relative; display:block; background:var(--tile); border:1px solid var(--hairline); border-radius:18px;
  padding:18px 20px 20px; color:inherit; text-decoration:none; overflow:hidden; -webkit-tap-highlight-color:transparent;
  transition:background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tile__top{display:flex; align-items:center; justify-content:space-between; margin:0 0 30px}
.tile__glyph{width:19px; height:19px; display:block; color:var(--white)}
.tile__glyph--blue{color:var(--blue)}
.tile__arrow{width:15px; height:15px; color:var(--tertiary); transition:transform .3s var(--ease), color .3s var(--ease)}
.tile__title{display:block; font-size:16px; line-height:22px; font-weight:600; letter-spacing:-.026em}
.tile__sub{display:block; margin-top:3px; font-size:14px; line-height:20px; color:var(--secondary)}
.tile__wash{position:absolute; right:-30%; top:-70%; width:80%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(31,183,249,.13) 0%, transparent 68%); pointer-events:none; opacity:.75; transition:opacity .45s var(--ease), transform .45s var(--ease)}
a.tile:hover{background:var(--tile-hi); border-color:var(--edge); transform:translateY(-2px)}
a.tile:hover .tile__arrow{transform:translate(2px,-2px); color:var(--white)}
a.tile--suggest:hover .tile__arrow{transform:translateY(2px)}
a.tile:hover .tile__wash{opacity:1; transform:scale(1.12)}

/* ---------------- library ---------------- */
.library{margin:22px 0 0}
.chips{display:flex; justify-content:center}
.chip{
  display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 15px 0 12px;
  border:1px solid #292929; border-radius:999px; background:#171717;
  font-family:var(--mono); font-size:11px; font-weight:500; line-height:1; letter-spacing:-.02em; text-transform:uppercase;
  color:var(--secondary); text-decoration:none; -webkit-tap-highlight-color:transparent;
  transition:background .15s, border-color .15s, color .15s;
}
.chip svg{width:14px; height:14px; color:var(--blue)}
.chip:hover{background:#1f1f1f; border-color:#494949; color:var(--white)}
.ep{margin:40px 0 0}
.ep__head{display:flex; align-items:center; gap:10px; margin:0 0 10px}
.ep__n{color:var(--tertiary)}
.ep__date{margin-left:auto}
.ep__title{margin:0 0 6px}
.ep__reel{display:inline-flex; align-items:center; gap:5px; font-size:13px; color:var(--secondary); text-decoration:none}
.ep__reel svg{width:12px; height:12px}
.ep__reel:hover{color:var(--white)}
.songs{display:grid; grid-template-columns:1fr; gap:14px; margin:18px 0 0}

/* ---------------- the Now Playing card (Music preset) ----------------
   Video: 840 x 535 card in a 1080 frame, 76 px corners, 248 px cover with
   40 px corners, 56 px bold title, 40 px artist, 28 px times, 10 px bar,
   54 px controls, check r 25. Here at ~0.42 scale for a phone. */
.np{
  position:relative; isolation:isolate; overflow:hidden;
  border-radius:30px; padding:18px 18px 16px; background:#101010;
  clip-path:inset(0 round 30px);          /* Chrome lets a filtered child escape overflow + radius */
  font-family:var(--sf); color:#fff;
  opacity:0; transform:translateY(14px);
  animation:rise .7s var(--ease) forwards; animation-delay:calc(var(--i,0) * 70ms);
}
@keyframes rise{to{opacity:1; transform:none}}
.np__art{
  position:absolute; inset:-35%; z-index:-3;
  background:var(--art) center/cover no-repeat;
  filter:blur(34px) saturate(1.35); opacity:.75; transform:scale(1.05);
}
/* glass: radial black 46 % (centre) -> 24 % (edge) + white sheen 10 % -> 0 over the top 45 % */
.np::before{
  content:""; position:absolute; inset:0; z-index:-2; border-radius:inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 45%),
    radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0,0,0,.46) 0%, rgba(0,0,0,.24) 100%);
}
/* his rim: 1 px white, lit along the left side through the top-left corner and the right side through the bottom-right */
.np::after{
  content:""; position:absolute; inset:0; z-index:2; border-radius:inherit; padding:1px; pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.16) 22%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.16) 78%, rgba(255,255,255,.62) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.np__row{display:flex; gap:15px; align-items:flex-start}
.np__cover{
  position:relative; flex:none; width:104px; height:104px; padding:0; border:0; border-radius:17px; overflow:hidden;
  background:#222; cursor:pointer; -webkit-tap-highlight-color:transparent;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.7);
}
.np__cover img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease)}
.np__cover:hover img{transform:scale(1.04)}
.np__info{flex:1 1 auto; min-width:0; padding-top:4px}
.np__title{
  margin:0; padding-right:30px; font-size:23px; line-height:25px; font-weight:700; letter-spacing:-.035em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-wrap:balance;
}
.np__artist{margin:4px 0 0; font-size:16.5px; line-height:21px; color:rgba(255,255,255,.64); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.np__check{position:absolute; top:24px; right:18px; width:22px; height:22px}
.np__check svg{display:block; width:100%; height:100%}

.np__bar{position:relative; height:4px; margin:18px 0 0; border-radius:4px; background:rgba(255,255,255,.22); overflow:hidden; cursor:pointer}
.np__bar i{position:absolute; inset:0 auto 0 0; width:0; background:#fff; border-radius:inherit}
.np__times{display:flex; justify-content:space-between; margin:7px 0 0; font-size:12px; line-height:15px; font-weight:600; color:rgba(255,255,255,.64); font-variant-numeric:tabular-nums}
.np__ctrl{display:flex; justify-content:center; align-items:center; gap:42px; margin:6px 0 0}
.np__btn{
  display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%;
  background:none; color:#fff; cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:transform .15s var(--ease), background .2s var(--ease);
}
.np__btn:hover{background:rgba(255,255,255,.07)}
.np__btn:active{transform:scale(.9)}
.np__btn svg{width:28px; height:22px}
.np__btn--play svg{width:26px; height:26px}
.np__btn:disabled{opacity:.3; cursor:default}
.np.is-playing .i-play,.np:not(.is-playing) .i-pause{display:none}

/* get the song: small tiles, colour only in the glyph */
.get{margin:12px 0 0; padding:13px 0 0; border-top:1px solid rgba(255,255,255,.08)}
.get__label{display:block; margin:0 0 9px; color:rgba(255,255,255,.46)}
.get__row{display:flex; flex-wrap:wrap; gap:7px}
.get__a{
  display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 11px 0 9px;
  border-radius:999px; background:rgba(255,255,255,.07); box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
  font-family:var(--sf); font-size:13px; font-weight:600; letter-spacing:-.01em; color:#fff; text-decoration:none;
  -webkit-tap-highlight-color:transparent; transition:background .2s var(--ease), transform .2s var(--ease);
}
.get__a:hover{background:rgba(255,255,255,.13)}
.get__a:active{transform:scale(.97)}
.get__a svg{width:16px; height:16px; flex:none}
.get__a .ne{width:11px; height:11px; color:rgba(255,255,255,.5)}
.get__a small{font-size:12px; font-weight:500; color:rgba(255,255,255,.55)}

/* ghost cards behind the gate: same card, no text */
.np--ghost .np__title,.np--ghost .np__artist{height:14px; border-radius:7px; background:rgba(255,255,255,.18)}
.np--ghost .np__title{width:70%; margin-top:6px}
.np--ghost .np__artist{width:45%; margin-top:10px}

/* ---------------- suggest ---------------- */
.suggest{margin:56px 0 0; scroll-margin-top:24px}
.form{display:flex; flex-direction:column; gap:10px; margin:20px 0 0}
.area{background:var(--field); border:1px solid transparent; border-radius:22px; padding:13px 16px; transition:border-color .22s var(--ease)}
.area:focus-within{border-color:var(--edge)}
.area textarea{display:block; width:100%; resize:none; min-height:64px; border:0; outline:0; background:transparent; color:#fff; font:inherit; font-size:16px; line-height:23px}
.btn{
  display:flex; align-items:center; justify-content:center; gap:9px; height:50px; margin-top:4px;
  border:0; border-radius:36px; background:var(--card); color:#fff; font:inherit; font-size:15px; font-weight:600; letter-spacing:-.01em;
  box-shadow:0 0 0 1px rgba(255,255,255,.09), 0 1px 2px rgba(0,0,0,.35); cursor:pointer;
  transition:background .2s var(--ease), transform .2s var(--ease);
}
.btn svg{width:16px; height:16px; color:var(--secondary)}
.btn:hover{background:#1F1F1F}
.btn:active{transform:scale(.985)}
.btn:disabled{opacity:.6; cursor:default}

/* ---------------- footer ---------------- */
.foot{margin:56px 0 0}
.fine{margin:20px 4px 0; font-size:12.5px; line-height:19px; color:var(--faint); text-align:center}
.fine--me{margin-top:8px; word-break:break-all}
.fine--me a{color:var(--secondary)}

/* ---------------- toast ---------------- */
.toast{
  position:fixed; left:50%; bottom:calc(22px + env(safe-area-inset-bottom)); z-index:50; transform:translate(-50%,20px);
  display:flex; align-items:center; gap:9px; padding:11px 16px 11px 12px; border-radius:999px;
  background:rgba(23,23,23,.92); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  box-shadow:0 0 0 1px rgba(255,255,255,.1), 0 16px 40px -12px rgba(0,0,0,.8);
  font-size:14px; font-weight:500; white-space:nowrap; opacity:0; transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.on{opacity:1; transform:translate(-50%,0)}
.toast svg{width:18px; height:18px}

/* ---------------- loading ---------------- */
body.is-loading .hero{opacity:.001}
.hero,.gate,.library{transition:opacity .4s var(--ease)}

/* ---------------- wider screens: two cards a row ---------------- */
@media (min-width:1000px){
  .library{width:min(980px, calc(100vw - 48px)); margin-left:50%; transform:translateX(-50%)}
  .songs{grid-template-columns:1fr 1fr; gap:16px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important}
  body::after{display:none}
}
