/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f0f11;
  --surface:  #1a1a1f;
  --border:   #2a2a32;
  --accent:   #7c6aff;
  --accent2:  #ff6a8e;
  --text:     #e8e8f0;
  --muted:    #888899;
  --radius:   10px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Light mode ── */
[data-theme="light"] {
  --bg:      #f4f4f7;
  --surface: #ffffff;
  --border:  #d8d8e0;
  --text:    #1a1a2e;
  --muted:   #6e6e88;
}

[data-theme="light"] header {
  background: rgba(244,244,247,.94);
}

[data-theme="light"] #now-playing {
  background: rgba(255,255,255,.97);
}

/* ── Orange light theme ── */
[data-theme="light-orange"] {
  --bg:      #fff8f3;
  --surface: #ffffff;
  --border:  #f0ddd0;
  --accent:  #e07a30;
  --accent2: #f9a825;
  --text:    #2d1a0e;
  --muted:   #8a6048;
}

[data-theme="light-orange"] header {
  background: rgba(255,248,243,.94);
}

[data-theme="light-orange"] #now-playing {
  background: rgba(255,255,255,.97);
}

/* ── Blue light theme ── */
[data-theme="light-blue"] {
  --bg:      #f3f6ff;
  --surface: #ffffff;
  --border:  #d0d9f0;
  --accent:  #3b6de8;
  --accent2: #06b6d4;
  --text:    #0e1a2d;
  --muted:   #4a5a88;
}

[data-theme="light-blue"] header {
  background: rgba(243,246,255,.94);
}

[data-theme="light-blue"] #now-playing {
  background: rgba(255,255,255,.97);
}

/* ── Yellow light theme ── */
[data-theme="light-yellow"] {
  --bg:      #fffdf0;
  --surface: #ffffff;
  --border:  #e8e0c0;
  --accent:  #b8860b;
  --accent2: #e67e22;
  --text:    #1a1500;
  --muted:   #7a6a30;
}

[data-theme="light-yellow"] header {
  background: rgba(255,253,240,.94);
}

[data-theme="light-yellow"] #now-playing {
  background: rgba(255,255,255,.97);
}

/* ── Font sizes ── */
[data-fontsize="small"]  { font-size: 15px; }
[data-fontsize="medium"] { font-size: 17px; }
[data-fontsize="large"]  { font-size: 19px; }

/* ── Theme toggle button ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 5px 10px;
  line-height: 1;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* ── Site banner ── */
.site-banner {
  background: linear-gradient(135deg, rgba(124,106,255,.15), rgba(255,106,142,.1));
  border: 1px solid rgba(124,106,255,.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0 4px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text);
  display: none;
}
.site-banner.visible { display: block; }

/* ── Share button ── */
.share-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color .12s;
  flex-shrink: 0;
}
.share-btn:hover { color: var(--accent); }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Layout ── */
.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,17,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 680px;
  margin: 0 auto;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

.logo span { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}

.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary  { background: var(--accent);  color: #fff; }
.btn-danger   { background: #e03; color: #fff; }
.btn-ghost    { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-sm       { padding: 6px 12px; font-size: .8rem; }
.btn-icon     { padding: 8px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }

/* ── Record button ── */
#rec-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--accent2);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center;
}

#rec-btn.recording {
  background: #e03;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(238,0,51,.5); }
  50%       { box-shadow: 0 0 0 14px rgba(238,0,51,0); }
}

/* ── Recorder card ── */
.recorder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin: 20px 0;
}

.recorder-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

select {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .9rem;
  -webkit-appearance: none;
}

.timer {
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}

.timer.recording { color: #ff6a8e; }

.rec-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ── Level meter ── */
#waveform {
  width: 100%;
  height: 54px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ── Pitch selector ── */
.pitch-row {
  margin-top: 14px;
}

.pitch-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}

.pitch-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pitch-btn {
  flex: 1;
  min-width: 60px;
  padding: 7px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: .78rem;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  line-height: 1.3;
}

.pitch-btn:hover { border-color: var(--accent); color: var(--text); }
.pitch-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,106,255,.08); font-weight: 600; }
.pitch-btn.processing { opacity: .5; cursor: wait; }

/* ── Preview ── */
.preview-section {
  margin-top: 16px;
  display: none;
}

.preview-section.visible { display: block; }

.mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.play-pause-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.progress-wrap {
  flex: 1;
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
  width: 0%;
}

.time-display { font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* ── Post form ── */
.post-form {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.post-form.visible { display: flex; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 600; }

input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .95rem;
  width: 100%;
}

input[type="text"]:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--accent); }

textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .95rem;
  width: 100%;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-height: 42px;
  cursor: text;
}

.tag-input-wrap:focus-within { border-color: var(--accent); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--border);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: .78rem;
}

.tag-chip button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: .85rem;
  line-height: 1;
}

.tag-input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: .88rem;
  min-width: 80px;
  flex: 1;
  outline: none;
}

.visibility-toggle {
  display: flex;
  gap: 10px;
}

.visibility-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: all .15s;
}

.visibility-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124,106,255,.08);
}

.hint { font-size: .75rem; color: var(--muted); }

/* ── Playlist ── */
.section-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin: 28px 0 12px;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 6px;
}

.track:last-child { margin-bottom: 0; }

.track:hover { background: var(--bg); border-color: var(--muted); }

.track.active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: var(--accent);
}

/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .track.active { background: var(--surface); border-color: var(--accent); }
}

.track-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  transition: background .12s;
}

.track.active .track-play,
.track:hover  .track-play { background: var(--accent); color: #fff; }

.track-info { min-width: 0; }

.track-title {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.track-tag {
  background: var(--border);
  padding: 1px 7px;
  border-radius: 20px;
  font-size: .7rem;
}

.track-dur { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ── Now-playing bar ── */
#now-playing {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(26,26,31,.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
  display: none;
  z-index: 200;
}

#now-playing.visible { display: block; }

.np-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.np-title {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.np-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.np-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

/* ── Message page ── */
.message-page { padding: 24px 0 80px; }

.message-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.message-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }

.message-player {
  margin: 16px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Reactions ── */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: .9rem;
  transition: all .15s;
  color: var(--text);
}

.reaction-btn:hover  { border-color: var(--accent); }
.reaction-btn.voted  { background: rgba(124,106,255,.12); border-color: var(--accent); }

.reaction-count { font-size: .8rem; color: var(--muted); }

/* ── Admin ── */
.admin-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
}

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h1 { font-size: 1rem; font-weight: 700; }

.admin-main { padding: 20px; max-width: 1100px; margin: 0 auto; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
}

.filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,106,255,.08); }

.search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .9rem;
  width: 240px;
}

.message-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.message-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.message-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.message-table tr:hover td { background: var(--surface); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}

.badge-green  { background: rgba(0,200,100,.15); color: #0c8; }
.badge-yellow { background: rgba(255,200,0,.15);  color: #fc0; }
.badge-gray   { background: var(--border); color: var(--muted); }
.badge-purple { background: rgba(124,106,255,.15); color: var(--accent); }

.action-group { display: flex; gap: 6px; flex-wrap: wrap; }

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  justify-content: center;
}

/* ── Login ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 340px;
}

.login-card h2 { font-size: 1.1rem; margin-bottom: 20px; }

.login-card input[type="password"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .95rem;
  width: 100%;
  margin-bottom: 12px;
}

/* ── Edit modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  display: none;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  margin: 16px;
}

.modal h3 { font-size: 1rem; margin-bottom: 16px; }

/* ── Utilities ── */
.flex { display: flex; }
.gap-8 { gap: 8px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .8rem; }
.bold { font-weight: 700; }
.w-full { width: 100%; }

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.empty-state p { margin-top: 8px; font-size: .9rem; }

/* ── Auth (register / login) ── */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
}

.auth-card h2 { font-size: 1.1rem; margin-bottom: 22px; }

.auth-error {
  background: rgba(238,0,51,.1);
  border: 1px solid rgba(238,0,51,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  color: #e03;
  margin-bottom: 14px;
}

.text-center { text-align: center; }

input[type="email"],
input[type="password"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .95rem;
  width: 100%;
}

input[type="email"]:focus,
input[type="password"]:focus { outline: none; border-color: var(--accent); }

/* ── Dashboard ── */
.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.dash-tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .12s;
}

.dash-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.dash-tab:hover  { color: var(--text); }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.dash-msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-msg-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.dash-msg-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.dash-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sender-note {
  margin-top: 5px;
  font-size: .78rem;
  color: var(--muted);
  background: var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.sender-note-label {
  font-weight: 600;
  color: var(--text);
}

/* ── Profile page ── */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-bio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text);
}

/* ── Track profile link ── */
.track-profile-link {
  color: var(--accent);
  font-size: .72rem;
  text-decoration: none;
}
.track-profile-link:hover { text-decoration: underline; }

/* ── Track on own profile page (logged-in owner viewing their wall) ── */
.track-owner {
  background: var(--track-owner-bg, rgba(124,106,255,.13));
  border-right: 3px solid var(--profile-accent, var(--accent));
}

/* ── Track from a user profile (main feed) ── */
.track-profile {
  border-right: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(124,106,255,.06) 0%, transparent 60%);
}
[data-theme="light-orange"] .track-profile {
  background: linear-gradient(135deg, rgba(224,122,48,.08) 0%, transparent 60%);
}
[data-theme="light-blue"] .track-profile {
  background: linear-gradient(135deg, rgba(59,109,232,.08) 0%, transparent 60%);
}
[data-theme="light-yellow"] .track-profile {
  background: linear-gradient(135deg, rgba(184,134,11,.08) 0%, transparent 60%);
}
[data-theme="light"] .track-profile {
  background: linear-gradient(135deg, rgba(124,106,255,.06) 0%, transparent 60%);
}

/* ── Mobile specific ── */
@media (max-width: 500px) {
  .visibility-toggle { flex-direction: column; }
  .message-table { font-size: .78rem; }
  .message-table th, .message-table td { padding: 8px 8px; }
  .search-box { width: 100%; }
}

/* ── Profile color picker ── */
.color-picker {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.color-opt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  outline: none;
}

.color-opt:hover    { transform: scale(1.15); }
.color-opt.active   { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }

/* ── Dashboard play button (larger) ── */
.dash-play-btn {
  width: 44px !important;
  height: 44px !important;
  font-size: 1rem !important;
  flex-shrink: 0;
}

/* ── Font size toggle ── */
.fontsize-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 5px 10px;
  line-height: 1;
  transition: color .15s, border-color .15s;
  font-weight: 700;
}
.fontsize-toggle:hover { color: var(--text); border-color: var(--muted); }

/* ── Theme color dots selector ── */
.theme-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  outline: none;
  flex-shrink: 0;
}

.theme-dot:hover  { transform: scale(1.2); }
.theme-dot.active { border-color: var(--text); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .85rem;
  z-index: 999;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show { opacity: 1; }
