/* ═══════════════════════════════════════════════════════════
   TIDES MUSIC  -  music.tides.cx
   web remote for the tides music bot. nothing plays here.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* depth ramp, deepest first */
  --d0: #05080e;
  --d1: #070a10;
  --d2: #0a0f18;
  --d3: #0d1220;
  --d4: #111826;
  --d5: #17203210;

  --surface-1: rgba(255,255,255,.026);
  --surface-2: rgba(255,255,255,.045);
  --surface-3: rgba(255,255,255,.07);
  --surface-4: rgba(255,255,255,.1);

  --line-1: rgba(255,255,255,.06);
  --line-2: rgba(255,255,255,.1);
  --line-3: #1a2a3e;

  --text:      #e4edf7;
  --text-2:    rgba(228,237,247,.62);
  --text-3:    rgba(228,237,247,.38);

  --teal:      #24a0a0;
  --teal-2:    #2ec4c4;
  --teal-dim:  rgba(36,160,160,.12);
  --teal-glow: rgba(36,160,160,.28);
  --blurple:   #5865f2;
  --green:     #23a559;
  --red:       #ed4245;
  --amber:     #faa61a;

  --grad-brand: linear-gradient(135deg, #2ec4c4 0%, #1a7878 100%);
  --grad-live:  linear-gradient(120deg, #24a0a0 0%, #5865f2 100%);

  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --topbar-h: 60px;
  --player-h: 88px;
  --sidebar-w: 210px;
  --rail-w: 300px;

  --ease: cubic-bezier(.16,1,.3,1);
  --fast: .16s ease;
  --norm: .28s var(--ease);

  --shadow-1: 0 2px 12px rgba(0,0,0,.35);
  --shadow-2: 0 12px 40px rgba(0,0,0,.5);
  --shadow-pop: 0 24px 70px rgba(0,0,0,.65);
}

* { box-sizing: border-box; }
/* .app sets display, which out-specifies the UA [hidden] rule */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--d1);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); background-clip: content-box; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 2px; border-radius: 4px; }

/* ── app shell ─────────────────────────────────────────────── */

.app {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--rail-w);
  grid-template-rows: var(--topbar-h) 1fr var(--player-h);
  grid-template-areas:
    "top top top"
    "side main rail"
    "player player player";
  background: var(--d1);
}
.app.no-rail { grid-template-columns: var(--sidebar-w) 1fr 0; }
.app.collapsed { --sidebar-w: 64px; }

/* ── topbar ────────────────────────────────────────────────── */

/* three columns so the search sits dead centre in the viewport instead of
   floating in whatever space the two side groups happen to leave */
.topbar {
  grid-area: top;
  display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center; gap: 16px;
  padding: 0 16px;
  background: var(--d0);
  border-bottom: 1px solid var(--line-1);
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.brand-name { font-weight: 800; letter-spacing: -.02em; font-size: 16px; }
.app.collapsed .brand-name { display: none; }

.brand-wave { display: flex; align-items: flex-end; gap: 2.5px; height: 20px; }
.brand-wave i {
  width: 3px; border-radius: 2px; background: var(--teal-2);
  animation: wave 1.15s ease-in-out infinite;
}
.brand-wave i:nth-child(1) { height: 8px;  animation-delay: -.5s; }
.brand-wave i:nth-child(2) { height: 15px; animation-delay: -.3s; }
.brand-wave i:nth-child(3) { height: 20px; animation-delay: -.1s; }
.brand-wave i:nth-child(4) { height: 13px; animation-delay: -.4s; }
.brand-wave i:nth-child(5) { height: 7px;  animation-delay: -.2s; }
.brand-wave.big { height: 44px; gap: 5px; }
.brand-wave.big i { width: 6px; }
.brand-wave.big i:nth-child(1) { height: 18px; }
.brand-wave.big i:nth-child(2) { height: 33px; }
.brand-wave.big i:nth-child(3) { height: 44px; }
.brand-wave.big i:nth-child(4) { height: 28px; }
.brand-wave.big i:nth-child(5) { height: 15px; }
@keyframes wave { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .brand-wave i { animation: none; } }

.icon-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  color: var(--text-2); transition: background var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.nav-arrows { display: flex; gap: 2px; }

.searchbox {
  width: 440px; max-width: 100%; position: relative;
  display: flex; align-items: center;
}
.searchbox .search-icon {
  position: absolute; left: 14px; width: 17px; height: 17px;
  color: var(--text-3); pointer-events: none;
}
.searchbox input {
  width: 100%; height: 40px; padding: 0 16px 0 40px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid transparent; border-radius: var(--r-full);
  transition: background var(--fast), border-color var(--fast);
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input:focus { background: var(--d3); border-color: var(--line-2); outline: none; }
.searchbox input::-webkit-search-cancel-button { display: none; }

.topbar-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.ghost-btn {
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line-2); transition: all var(--fast);
  white-space: nowrap;
}
.ghost-btn:hover { color: var(--text); border-color: var(--line-3); background: var(--surface-1); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.account-btn { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: var(--r-full); }
.account-btn:hover { background: var(--surface-2); }

/* ── sidebar ───────────────────────────────────────────────── */

.sidebar {
  grid-area: side;
  padding: 12px 10px;
  background: var(--d0);
  border-right: 1px solid var(--line-1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px; border-radius: var(--r);
  color: var(--text-2); font-weight: 500;
  transition: background var(--fast), color var(--fast);
  white-space: nowrap;
}
.nav-item svg { flex: none; width: 19px; height: 19px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.app.collapsed .nav-item span { display: none; }
.app.collapsed .nav-item { justify-content: center; padding: 11px 0; }

/* ── content ───────────────────────────────────────────────── */

.content { grid-area: main; overflow-y: auto; overflow-x: hidden; padding: 24px 30px 40px; }
.page { max-width: 1180px; margin: 0 auto; animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { margin-bottom: 42px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.section-head .show-all {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-3);
  transition: color var(--fast);
}
.section-head .show-all:hover { color: var(--text); }
.section-sub {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 16px; font-size: 12px; color: var(--text-3);
}
.section-sub svg { width: 14px; height: 14px; }

.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.page-lede { color: var(--text-2); margin: 0 0 28px; }

/* ── track rows ────────────────────────────────────────────── */

.track-list { display: flex; flex-direction: column; gap: 3px; }
.track {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px; border-radius: var(--r);
  background: var(--surface-1);
  transition: background var(--fast);
  position: relative;
}
.track:hover { background: var(--surface-3); }
.track.is-current { background: var(--teal-dim); box-shadow: inset 0 0 0 1px rgba(36,160,160,.25); }
.track-art {
  width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover;
  background: var(--d3); flex: none;
}
.track-main { min-width: 0; flex: 1; }
.track-title {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-2); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.track-actions .icon-btn { opacity: 0; transition: opacity var(--fast), background var(--fast), color var(--fast); }
.track:hover .icon-btn, .track:focus-within .icon-btn { opacity: 1; }
.track-actions .icon-btn.always { opacity: 1; }
.track-dur { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.track-index { width: 22px; text-align: right; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
.liked { color: var(--teal-2) !important; opacity: 1 !important; }
.liked svg { fill: var(--teal-2); }

.badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-2);
  flex: none;
}
.badge.src-spotify  { background: rgba(30,215,96,.14);  color: #1ed760; }
.badge.src-youtube  { background: rgba(255,60,60,.14);  color: #ff5c5c; }
.badge.src-soundcloud { background: rgba(255,136,0,.14); color: #ff8800; }
.badge.autoplay { background: var(--teal-dim); color: var(--teal-2); }

/* ── cards + rails ─────────────────────────────────────────── */

.card-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px;
  gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.card-rail::-webkit-scrollbar { height: 8px; }
.card {
  background: var(--surface-1); border-radius: var(--r-md); padding: 12px;
  transition: background var(--fast), transform var(--norm);
  scroll-snap-align: start; cursor: pointer; position: relative;
}
.card:hover { background: var(--surface-3); transform: translateY(-2px); }
.card-art {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); object-fit: cover;
  background: var(--d3); display: block; margin-bottom: 10px;
}
.card-art.round { border-radius: 50%; }
.card-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-chip {
  position: absolute; top: 18px; right: 18px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: var(--r-full);
  display: flex; align-items: center; gap: 4px;
}
.card-chip svg { width: 11px; height: 11px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }

/* ── hero ──────────────────────────────────────────────────── */

.hero {
  display: flex; align-items: flex-end; gap: 24px;
  padding: 28px; border-radius: var(--r-lg); margin-bottom: 30px;
  background: linear-gradient(160deg, var(--hero-tint, #1a2a3e) 0%, var(--d2) 100%);
  position: relative; overflow: hidden;
}
.hero-art { width: 168px; height: 168px; border-radius: var(--r-md); object-fit: cover; box-shadow: var(--shadow-2); flex: none; }
.hero-art.round { border-radius: 50%; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { margin: 6px 0 10px; font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero-meta { color: var(--text-2); font-size: 13px; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-full);
  font-weight: 700; font-size: 14px;
  background: var(--grad-brand); color: #04141a;
  box-shadow: 0 4px 20px rgba(36,160,160,.3);
  transition: transform var(--fast), filter var(--fast);
}
.btn:hover { transform: scale(1.03); filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.secondary { background: var(--surface-3); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-4); }
.btn-round {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); transition: all var(--fast);
}
.btn-round:hover { background: var(--surface-4); color: var(--text); }

/* ── pills ─────────────────────────────────────────────────── */

.pills { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.pill {
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); transition: all var(--fast);
}
.pill:hover { background: var(--surface-3); color: var(--text); }
.pill.active { background: var(--text); color: var(--d0); }

/* ── empty states ──────────────────────────────────────────── */

.empty {
  text-align: center; padding: 64px 30px;
  background: var(--surface-1); border-radius: var(--r-lg);
}
.empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.empty p { margin: 0 auto; max-width: 380px; color: var(--text-2); line-height: 1.6; }
.empty .btn { margin-top: 20px; }
.empty-icon { width: 46px; height: 46px; color: var(--text-3); margin-bottom: 14px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-3) 50%, var(--surface-1) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── right rail (the bot panel) ────────────────────────────── */

.rail {
  grid-area: rail;
  background: var(--d0);
  border-left: 1px solid var(--line-1);
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 14px;
}
.app.no-rail .rail { display: none; }

.server-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; border-radius: var(--r-md);
  background: var(--grad-live);
  box-shadow: 0 6px 22px rgba(36,160,160,.22);
  width: 100%; text-align: left;
}
.server-card.idle { background: var(--surface-2); box-shadow: none; }
.server-icon {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex: none;
  background: rgba(0,0,0,.3); display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
.server-meta { min-width: 0; flex: 1; }
.server-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-sub { font-size: 11.5px; opacity: .9; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.rail-label {
  font-size: 10px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-3); margin: 4px 0 2px;
}
.rail-now { display: flex; gap: 12px; align-items: center; padding: 4px 2px; }
.rail-now img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--d3); flex: none; }
.rail-now-title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-now-artist { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-empty { font-size: 12.5px; color: var(--text-3); background: var(--surface-1); padding: 12px; border-radius: var(--r); }

.queue-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm);
  transition: background var(--fast);
}
.queue-row:hover { background: var(--surface-2); }
.queue-row img { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; background: var(--d3); flex: none; }
.queue-row .qmeta { min-width: 0; flex: 1; }
.queue-row .qtitle { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-row .qartist { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── player bar ────────────────────────────────────────────── */

.player {
  grid-area: player;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; padding: 0 18px;
  background: var(--d0); border-top: 1px solid var(--line-1);
  z-index: 30;
}
.player-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.player-left img { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; background: var(--d3); flex: none; }
.player-meta { min-width: 0; }
.player-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 420px; }
.player-buttons { display: flex; align-items: center; gap: 6px; }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: var(--d0);
  transition: transform var(--fast);
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:disabled { opacity: .35; transform: none; }
.play-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.icon-btn.on { color: var(--teal-2); }
.icon-btn.on::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--teal-2);
}
.icon-btn { position: relative; }

.scrub { display: flex; align-items: center; gap: 10px; width: 100%; }
.scrub-time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 36px; }
.scrub-time.right { text-align: right; }
.bar { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal-2); border-radius: 99px; transition: width .95s linear; }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.status-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-full);
  background: var(--surface-2); font-size: 12px; color: var(--text-2);
  max-width: 260px;
}
.status-chip svg { width: 14px; height: 14px; flex: none; }
.status-chip b { color: var(--text); font-weight: 600; }
.status-chip.live { background: var(--teal-dim); color: var(--teal-2); }
.vol { display: flex; align-items: center; gap: 8px; }
.vol input {
  width: 84px; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--surface-3); border-radius: 99px; cursor: pointer;
}
.vol input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--text); cursor: pointer;
}
.vol input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }

/* ── context menu ──────────────────────────────────────────── */

.menu-layer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.menu {
  position: absolute; min-width: 250px; padding: 6px;
  background: #101724; border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop);
  animation: rise .14s var(--ease);
}
.menu-head { display: flex; align-items: center; gap: 11px; padding: 9px 10px 11px; border-bottom: 1px solid var(--line-1); margin-bottom: 6px; }
.menu-head img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--d3); }
.menu-head .mh-title { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .mh-artist { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 11px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; text-align: left;
  transition: background var(--fast);
}
.menu-item:hover { background: var(--surface-3); }
.menu-item:disabled { opacity: .35; cursor: default; }
.menu-item:disabled:hover { background: none; }
.menu-item svg { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.menu-sep { height: 1px; background: var(--line-1); margin: 6px 0; }
.menu-note { padding: 6px 11px 9px; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }

/* ── confirm dialog ────────────────────────────────────────── */

.confirm {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 40px));
  padding: 26px; text-align: center;
  background: #101724; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  animation: rise .16s var(--ease);
}
.confirm-art {
  width: 78px; height: 78px; border-radius: var(--r-sm);
  object-fit: cover; margin: 0 auto 14px; display: block; background: var(--d3);
}
.confirm h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.confirm p { margin: 0 0 22px; color: var(--text-2); line-height: 1.55; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ── toasts ────────────────────────────────────────────────── */

/* span the viewport and centre with flex - the left:50% + translate trick
   drifted off centre against the player controls */
.toasts {
  position: fixed; bottom: calc(var(--player-h) + 18px);
  left: 0; right: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 11px 18px; border-radius: var(--r-full);
  background: #101724; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); font-size: 13px; font-weight: 500;
  animation: rise .2s var(--ease); max-width: 460px;
}
.toast.err { border-color: rgba(237,66,69,.4); color: #ffb4b6; }
.toast.ok { border-color: rgba(36,160,160,.4); }

/* ── signed out ────────────────────────────────────────────── */

.signin-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: var(--r-full);
  background: var(--blurple); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 18px rgba(88,101,242,.3);
  transition: transform var(--fast), filter var(--fast);
  white-space: nowrap;
}
.signin-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.discord-mark { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.welcome {
  position: relative; overflow: hidden;
  padding: 46px 40px; margin-bottom: 42px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #10222e 0%, var(--d2) 62%);
  border: 1px solid var(--line-1);
}
.welcome::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -180px; top: -300px; pointer-events: none;
  background: radial-gradient(circle, rgba(36,160,160,.17) 0%, transparent 68%);
}
.welcome-inner { position: relative; max-width: 620px; }
.welcome h1 { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 0 0 14px; }
.welcome p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 26px; }
.welcome .signin-btn { padding: 13px 26px; font-size: 14.5px; }
.welcome-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--surface-2); font-size: 13px; font-weight: 500;
  color: var(--text-2); transition: all var(--fast);
}
.chip:hover { background: var(--surface-3); color: var(--text); }

.gate {
  text-align: center; padding: 70px 30px;
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--line-1);
}
.gate .gate-icon { width: 42px; height: 42px; color: var(--teal-2); margin-bottom: 16px; }
.gate h2 { margin: 0 0 10px; font-size: 23px; font-weight: 700; }
.gate p { margin: 0 auto 24px; max-width: 400px; color: var(--text-2); line-height: 1.6; }

/* ── responsive ────────────────────────────────────────────── */

@media (max-width: 1240px) {
  .app { grid-template-columns: var(--sidebar-w) 1fr; grid-template-areas: "top top" "side main" "player player"; }
  .rail { display: none; }
  .player-center { min-width: 320px; }
}
@media (max-width: 900px) {
  .app { --sidebar-w: 64px; }
  .nav-item span { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .brand-name, .nav-arrows, .ghost-btn { display: none; }
  .content { padding: 18px 16px 30px; }
  .player { grid-template-columns: 1fr auto; }
  .player-right { display: none; }
  .player-center { min-width: 0; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-art { width: 128px; height: 128px; }
  .hero h1 { font-size: 30px; }
  .landing h1 { font-size: 30px; }
}

/* ── account panel ─────────────────────────────────────────── */

.acct-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 4px; border-radius: var(--r-sm);
}
.acct-card:hover { background: var(--surface-3); }
.acct-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-meta { min-width: 0; flex: 1; }
.acct-name { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-handle { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-arrow svg { width: 15px; height: 15px; color: var(--text-3); }

.menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding: 9px 11px 3px; border-top: 1px solid var(--line-1);
  font-size: 11.5px; color: var(--text-3);
}
.menu-status { display: flex; align-items: center; gap: 6px; }
.menu-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.menu-status.live i { background: var(--teal-2); box-shadow: 0 0 6px var(--teal-glow); }
.menu-build { font-variant-numeric: tabular-nums; }

/* ── settings ──────────────────────────────────────────────── */

.settings-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 34px; flex-wrap: wrap; }
.settings-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.settings-tab svg { width: 16px; height: 16px; }
.settings-tab:hover { color: var(--text); background: var(--surface-2); }
.settings-tab.active { background: var(--surface-3); color: var(--text); }

.settings-body { max-width: 820px; margin: 0 auto; }
.settings-group { margin-bottom: 34px; }
.settings-group > h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.panel { background: var(--surface-1); border: 1px solid var(--line-1); border-radius: var(--r-md); overflow: hidden; }
.panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-1);
}
.panel-row:last-child { border-bottom: 0; }
.panel-label { font-size: 13px; color: var(--text-2); }
.panel-value { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-note { padding: 0 18px 14px; font-size: 12px; color: var(--text-3); line-height: 1.55; }

.profile-card { display: flex; align-items: center; gap: 16px; padding: 18px; }
.profile-card img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-card .pc-name { font-size: 17px; font-weight: 700; }
.profile-card .pc-handle { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.profile-card .pc-since { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status-dot.connected { color: var(--green); }
.status-dot.connected i { background: var(--green); }
.status-dot.connecting { color: var(--amber); }
.status-dot.connecting i { background: var(--amber); }
.status-dot.idle { color: var(--text-3); }
