/* Attune (EMPATHY study app): dark "night studio" theme */
:root {
  color-scheme: dark;
  --bg: #120f24; --bg2: #17132e; --panel: #1f1a3b; --panel2: #29224d; --line: #352d62;
  --ink: #f3f0ff; --muted: #a9a1cf; --dim: #7c74a8;
  --pink: #ff4fa3; --violet: #8b5cf6; --blue: #4f8cff; --cyan: #3ad7ff; --ok: #3ddc97; --warn: #ff7a7a;
  --grad: linear-gradient(120deg, #ff4fa3 0%, #a855f7 50%, #4f8cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(255, 79, 163, .18), rgba(79, 140, 255, .18));
  --r: 20px; --r-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-bottom: 7rem; }   /* keep focused/scrolled-to items clear of the sticky bars */
body {
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); min-height: 100vh;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(255, 79, 163, .12), transparent 60%), var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: .85rem; }
.ic { width: 20px; height: 20px; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.6rem;
  padding: 1.4rem 1rem; background: rgba(23, 19, 46, .85); border-right: 1px solid var(--line); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; padding: 0 .5rem; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); box-shadow: 0 6px 18px -6px var(--pink); flex: none; }
.logo-mark img { width: 24px; height: 24px; display: block; }
.brand-row { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.hero .logo-mark { background: rgba(255, 255, 255, .2); box-shadow: none; }
.id-card .brand-row { justify-content: center; margin-bottom: 1.2rem; }
.nav { display: grid; gap: .3rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; text-align: left; font-weight: 550; }
.nav-item:hover:not(.locked) { background: var(--panel); color: var(--ink); }
.nav-item.active { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px var(--pink); }
.nav-item.locked { opacity: .45; cursor: not-allowed; }
.nav-item .lock { width: 14px; height: 14px; margin-left: auto; }
.side-foot { margin-top: auto; }
.side-note { display: flex; gap: .5rem; font-size: .8rem; color: var(--dim); padding: .8rem; border: 1px dashed var(--line); border-radius: 12px; }
.side-note .ic { width: 16px; height: 16px; }
.shell.no-nav { grid-template-columns: 1fr; }
.shell.no-nav .sidebar { display: none; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 2rem .4rem; }
.topbar-title { font-weight: 700; font-size: 1.05rem; }
.mobile-logo { display: none; }
.pid-chip { margin-left: auto; display: flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .85rem; }
.pid-chip[hidden] { display: none; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); font-weight: 800; color: #fff; }
main { padding: 1rem 2rem 3rem; width: 100%; max-width: 1180px; }
.shell.no-nav main { margin: 0 auto; max-width: 980px; }
/* "backwards" (not "both"): no transform may remain on .view, or position:fixed children (check-in sheet) break */
.view { display: grid; gap: 1.2rem; animation: rise .35s ease backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar { display: none; }

/* ---------------------------------------------------------------- building blocks */
.card { background: linear-gradient(180deg, rgba(41, 34, 77, .55), rgba(31, 26, 59, .9)); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.card-h h3 { display: flex; align-items: center; gap: .5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.center { text-align: center; }

.hero { position: relative; overflow: hidden; border-radius: var(--r); padding: 2.2rem; color: #fff; background: var(--grad); box-shadow: 0 24px 50px -24px rgba(168, 85, 247, .8); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(6px); opacity: .55; pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -60px; top: -120px; background: radial-gradient(circle, #ffd1ec, transparent 65%); }
.hero::after { width: 260px; height: 260px; right: 18%; bottom: -150px; background: radial-gradient(circle, #7ee8ff, transparent 65%); }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; opacity: .85; }
.hero h1 { margin: .4rem 0 .5rem; max-width: 16ch; }
.hero p { max-width: 52ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.hero-art { position: absolute !important; right: 2.2rem; top: 50%; transform: translateY(-50%) rotate(-6deg); display: flex; }
.hero-art .art { width: 120px; height: 120px; border-radius: 22px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55); border: 3px solid rgba(255, 255, 255, .25); }
.hero-art .art + .art { margin-left: -46px; transform: translateY(26px) rotate(12deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); border-radius: 999px; padding: .65rem 1.25rem; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--violet); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px var(--pink); }
.btn.white { border: 0; background: #fff; color: #2a1458; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn.block { width: 100%; padding: .9rem; font-size: 1rem; }
.btn.small { padding: .4rem .8rem; font-size: .88rem; }
.btn.on { background: var(--grad-soft); border-color: var(--pink); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; padding: .3rem; }
.link:hover { color: var(--ink); }
input:not([type]), input[type=text], textarea, select { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; width: 100%; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .va-grid:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
textarea { resize: vertical; }
.row { display: flex; gap: .6rem; margin-top: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 650; background: rgba(255, 255, 255, .16); }
.pill.warn { background: rgba(255, 190, 80, .18); color: #ffd28a; }

.error { display: flex; gap: .8rem; align-items: center; justify-content: space-between; background: rgba(255, 92, 122, .12); border: 1px solid rgba(255, 92, 122, .4); color: #ffb3c1; border-radius: 14px; padding: .8rem 1rem; }
.error-inline { color: #ffb3c1; }
.note { display: flex; gap: .6rem; align-items: center; background: var(--grad-soft); border: 1px solid rgba(168, 85, 247, .45); border-radius: 14px; padding: .75rem 1rem; }
.toast { position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 50; background: #fff; color: #23104d; font-weight: 600; padding: .7rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); animation: toast-in .25s ease both; pointer-events: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.has-tabbar .toast { bottom: 5.5rem; }

/* ---------------------------------------------------------------- consent / ID */
.split { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; padding: 0; }
.split .hero { border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; }
.split .hero .stack { display: flex; margin: 1.4rem 0 auto; }
.split .hero .stack .art { width: 86px; height: 86px; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .22); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.split .hero .stack .art:nth-child(2) { margin: 26px 0 0 -18px; transform: rotate(8deg); }
.split .hero .stack .art:nth-child(3) { margin: 6px 0 0 -14px; transform: rotate(-6deg); }
.split .hero .pill { align-self: flex-start; margin-top: .6rem; }
.split .pane { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.consent { max-height: 38vh; overflow: auto; padding: .2rem 1rem; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); font-size: .92rem; color: #d8d2f5; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--pink); }
details.returning { color: var(--muted); }
details.returning summary { cursor: pointer; }
.pid-big { font: 800 2.6rem/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; margin: 1rem 0; }
.id-card { max-width: 520px; margin: 4vh auto 0; padding: 2.2rem; }

/* ---------------------------------------------------------------- progress / steps */
.progress { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.progress > div { height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .4s ease; }
.sess-card { display: flex; gap: .9rem; align-items: center; padding: 1.1rem; }
.sess-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--panel2); font-weight: 800; font-size: 1.1rem; flex: none; }
.sess-card.done .sess-num { background: rgba(61, 220, 151, .16); color: var(--ok); }
.sess-card.next { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), var(--shadow); }
.sess-card.next .sess-num { background: var(--grad); color: #fff; }
.sess-card.later { opacity: .55; }
.tip { display: flex; gap: .8rem; align-items: flex-start; }
.tip .ic-box { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); color: var(--pink); flex: none; }
.pilot-card { border-style: dashed; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pilot-card select { width: auto; }

/* ---------------------------------------------------------------- track tiles (onboarding, your music) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: .7rem; display: flex; flex-direction: column; gap: .55rem; transition: border-color .2s, transform .2s; }
.tile:hover { transform: translateY(-2px); }
.tile.rated-like { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.tile.rated-dislike { opacity: .6; }
.tile .art-wrap { position: relative; }
.art { aspect-ratio: 1; width: 100%; border-radius: 14px; }
.play-fab { position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #2a1458; cursor: pointer; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); transition: transform .15s; }
.play-fab:hover { transform: scale(1.08); }
.play-fab.playing { background: var(--pink); color: #fff; }
.tile .title { font-weight: 650; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .sub { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .lic { color: var(--dim); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.rate-btns .btn { padding: .45rem; font-size: .8rem; }
.rate-btns .like.on { background: var(--grad); border-color: transparent; color: #fff; }
.rate-btns .dislike.on { background: rgba(255, 255, 255, .1); border-color: var(--muted); }
.sticky-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; gap: 1rem; padding: .8rem .8rem .8rem 1.2rem; border-radius: 999px; background: rgba(31, 26, 59, .92); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.sticky-bar .progress { flex: 1; }
.has-tabbar .sticky-bar { bottom: 5.4rem; }

/* ---------------------------------------------------------------- questionnaires */
.q-section { display: grid; gap: .7rem; }
.q-section + .q-section { margin-top: 1.6rem; }
.q-label { display: flex; align-items: center; gap: .6rem; }
.q-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.need-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.need-tile { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: all .15s; }
.need-tile .emo { font-size: 1.6rem; }
.need-tile b { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.choice input:checked + .need-tile { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 26px -12px var(--pink); }
.choice input:focus-visible + .need-tile, .choice input:focus-visible + .chip-l { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-l, .chip { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: .9rem; font-weight: 550; transition: all .15s; }
.choice input:checked + .chip-l, .chip.on { background: var(--grad); border-color: transparent; color: #fff; }

.va { display: flex; flex-direction: column; align-items: center; gap: .35rem; user-select: none; }
.va-row { display: flex; align-items: center; gap: .6rem; }
.va-label { font-size: .78rem; color: var(--muted); font-weight: 550; }
.va-label.side { width: 4.6rem; text-align: center; }
.va-grid { position: relative; width: min(58vw, 260px); aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--line); cursor: crosshair; touch-action: none; overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(255, 92, 122, .45), transparent 58%), radial-gradient(circle at 100% 0, rgba(255, 200, 87, .4), transparent 58%),
              radial-gradient(circle at 0 100%, rgba(79, 140, 255, .42), transparent 58%), radial-gradient(circle at 100% 100%, rgba(61, 220, 151, .38), transparent 58%), var(--bg2); }
.va-axis { position: absolute; background: rgba(255, 255, 255, .14); }
.va-axis.h { left: 0; right: 0; top: 50%; height: 1px; }
.va-axis.v { top: 0; bottom: 0; left: 50%; width: 1px; }
.va-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 79, 163, .55), 0 0 22px var(--pink); transition: left .12s, top .12s; }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; margin-top: .5rem; }
.lk, .lk-radio span { display: block; text-align: center; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: .6rem 0; cursor: pointer; font-weight: 650; transition: all .15s; }
.lk:hover, .lk-radio span:hover { border-color: var(--violet); }
.lk-radio { position: relative; }
.lk-radio input { position: absolute; opacity: 0; pointer-events: none; }
.lk-radio input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.lk-radio input:focus-visible + span { outline: 2px solid var(--cyan); }
.likert-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--dim); margin-top: .3rem; }
.item { border: 0; padding: 1rem; margin: 0; border-radius: 16px; background: rgba(18, 15, 36, .45); }
.item legend { float: left; width: 100%; padding: 0; font-weight: 550; }
.items { display: grid; gap: .7rem; }

/* ---------------------------------------------------------------- player */
.player-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.side-stack { display: grid; gap: 1.2rem; }
#probe:empty, #banner:empty { display: none; }
.now-card { position: relative; overflow: hidden; padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.now-bg { position: absolute; inset: -40px; filter: blur(60px) saturate(1.4); opacity: .45; z-index: 0; transition: background .6s; }
.now-card > *:not(.now-bg) { position: relative; z-index: 1; }
.now-art { width: min(300px, 70vw); aspect-ratio: 1; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); display: grid; place-items: center; font-size: 3rem; color: rgba(255, 255, 255, .7); transition: background .6s; }
.now-art.spin { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02); } }
.now-art[hidden], .now-video[hidden] { display: none; }
/* YouTube embed: must stay visible and at least 200x200 px (YouTube API terms) */
.now-video { width: min(360px, 100%); min-width: 200px; aspect-ratio: 16 / 10; min-height: 200px; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.now-video iframe, .yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-preview { position: fixed; right: 1rem; bottom: 5.6rem; z-index: 60; width: 256px; padding: .5rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.yt-preview .yt-frame { width: 100%; height: 200px; border-radius: 12px; overflow: hidden; background: #000; }
.yt-preview .yt-cap { font-size: .78rem; color: var(--muted); padding: .45rem .2rem .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-tabbar .yt-preview { bottom: calc(10rem + env(safe-area-inset-bottom)); }
.now-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.now-artist { color: var(--muted); font-weight: 550; }
.license { font-size: .74rem; color: var(--dim); }
.seek-wrap { width: 100%; }
.seek { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); cursor: pointer; position: relative; }
.seek > div { height: 100%; width: 0; border-radius: 99px; background: var(--grad); position: relative; }
.seek > div::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px var(--pink); }
.times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; }
.ctl { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); cursor: pointer; transition: all .15s; }
.ctl:hover { background: rgba(255, 255, 255, .12); transform: scale(1.05); }
.ctl.big { width: 76px; height: 76px; border: 0; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -10px var(--pink); }
.ctl.big .ic { width: 30px; height: 30px; }
.ctl.small { width: 40px; height: 40px; }
.volume { display: flex; align-items: center; gap: .7rem; width: min(320px, 100%); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--violet)) 0 / var(--fill, 80%) 100% no-repeat, rgba(255, 255, 255, .14); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--pink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }

.ring-card { display: flex; align-items: center; gap: 1.2rem; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, .1); }
.ring .bar { stroke: url(#ringGrad); transition: stroke-dashoffset .6s ease; }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.ring-info { display: grid; gap: .2rem; }
.ring-info .big { font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.upnext { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.upnext li { display: flex; align-items: center; gap: .8rem; padding: .45rem; border-radius: 14px; }
.upnext li:hover { background: rgba(255, 255, 255, .04); }
.upnext .art { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.upnext .n { width: 1.2rem; color: var(--dim); font-size: .8rem; text-align: right; flex: none; }
.upnext .meta { min-width: 0; }
.upnext .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upnext .sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mood-chips { display: flex; flex-wrap: wrap; gap: .45rem; }

.probe { border: 0; padding: 1.3rem; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 2px solid transparent; animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.end-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------------------------------------------------------------- responsive: phone = bottom tab bar */
@media (max-width: 920px) {
  .player-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .need-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split .hero { min-height: 260px; }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-logo { display: block; }
  .topbar { padding: .9rem 1rem .2rem; }
  main { padding: .6rem 1rem 6.5rem; }
  .hero { padding: 1.6rem; }
  h1 { font-size: 1.55rem; }
  .card { padding: 1.1rem; }
  .now-card { padding: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .topbar-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .98rem; }
  .pid-chip { padding: .2rem; }
  .pid-chip .pid-text { display: none; }
  /* check-in as a bottom sheet over the player, so the page doesn't jump */
  #probe .probe { position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 45; box-shadow: 0 -10px 40px rgba(0, 0, 0, .55); }
  .has-tabbar .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 40;
    padding: .4rem; border-radius: 22px; background: rgba(31, 26, 59, .92); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
  .tabbar .nav-item { flex-direction: column; gap: .2rem; padding: .5rem .2rem; font-size: .7rem; justify-content: center; align-items: center; text-align: center; }
  .tabbar .nav-item .lock { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
