/* ============================================================
   MyMusic Admin Panel — Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-sidebar: #141620;
  --bg-input: #232636;
  --border: #2a2d3a;
  --text: #e4e6ed;
  --text-muted: #8b8fa3;
  --text-dim: #5a5e72;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: rgba(124, 58, 237, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --info: #3b82f6;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --sidebar-w: 240px;
  --header-h: 56px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { min-width: 1280px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }

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

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

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-logo img { width: 44px; height: 44px; border-radius: 10px; }
.auth-logo-text { font-size: 1.4rem; font-weight: 700; }
.auth-logo-badge {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .85rem;
  display: none;
}
.auth-error.show { display: block; margin-bottom: 4px; }

.auth-submit {
  width: 100%;
  padding: 11px;
  justify-content: center;
  font-size: .95rem;
  margin-top: 4px;
}

.auth-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-muted);
}
.auth-lang-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font);
  outline: none;
  transition: color .15s, border-color .15s;
}
.auth-lang-select:hover,
.auth-lang-select:focus {
  color: var(--text);
  border-bottom-color: var(--border);
}
.auth-lang-select option {
  background: var(--bg-card);
  color: var(--text);
}

/* ── Auth input controls (same as main app) ─────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--primary); }
.input::placeholder { color: var(--text-dim); }

/* ── Form controls ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.form-input, .form-select {
  width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: var(--font);
  transition: border-color .15s;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: var(--text-dim); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8fa3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-select option { background: var(--bg-card); color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: none; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  font-family: var(--font); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-secondary { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 6px 8px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-input); }
.btn-icon { padding: 6px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius); }
.btn-icon:hover { color: var(--text); background: var(--bg-input); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-full { width: 100%; justify-content: center; padding: 12px; }

/* ── Layout ─────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); background: var(--bg-sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 20;
}
.sidebar-logo { padding: 16px 20px; font-size: 18px; font-weight: 700; color: var(--primary); border-bottom: 1px solid var(--border); }
.sidebar-logo span { color: var(--text); font-weight: 400; font-size: 14px; }
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius); color: var(--text-muted); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: all .15s; margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-input); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 12px; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border); }

.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  height: var(--header-h); background: var(--bg-card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 10;
}
.header-search {
  flex: 1; max-width: 400px; position: relative;
}
.header-search input {
  width: 100%; padding: 8px 12px 8px 36px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: var(--font);
}
.header-search input:focus { outline: none; border-color: var(--primary); }
.header-search input::placeholder { color: var(--text-dim); }
.header-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-dim); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-user { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.header-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px;
}

/* Search dropdown */
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); max-height: 400px; overflow-y: auto; z-index: 100;
  display: none;
}
.search-results.open { display: block; }
.search-group-title { padding: 8px 12px; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.search-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  cursor: pointer; transition: background .1s; font-size: 13px;
}
.search-item:hover { background: var(--bg-input); }
.search-item .label { color: var(--text); }
.search-item .sub { color: var(--text-muted); font-size: 12px; }

/* ── Content ────────────────────────────────────────────────── */
.content { padding: 24px; flex: 1; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* ── Cards / Metrics ────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column;
}
.metric-card .metric-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.metric-card .metric-value { font-size: 28px; font-weight: 700; line-height: 1.2; }
.metric-card .metric-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.metric-card.accent-purple .metric-value { color: var(--primary); }
.metric-card.accent-green .metric-value { color: var(--success); }
.metric-card.accent-blue .metric-value { color: var(--info); }
.metric-card.accent-yellow .metric-value { color: var(--warning); }
.metric-card.accent-red .metric-value { color: var(--danger); }

/* ── Toolbar ────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-search { position: relative; }
.toolbar-search input {
  padding: 8px 12px 8px 34px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px; width: 260px; font-family: var(--font);
}
.toolbar-search input:focus { outline: none; border-color: var(--primary); }
.toolbar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-dim); }
.toolbar .spacer { flex: 1; }
.filter-group { display: flex; gap: 4px; }
.filter-btn {
  padding: 6px 12px; border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); border-radius: var(--radius); font-size: 12px;
  cursor: pointer; font-family: var(--font); transition: all .15s;
}
.filter-btn:hover { border-color: var(--text-muted); color: var(--text); }
.filter-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--bg-sidebar); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text-muted); }
th.sorted { color: var(--primary); }

.cell-avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg-input); }
.cell-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px;
}
.cell-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg-input); }
.cell-cover-placeholder {
  width: 40px; height: 40px; border-radius: 6px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
}

/* Status badge */
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.badge-success { background: rgba(16,185,129,.15); color: var(--success); }
.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,.15); color: var(--info); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-muted { background: var(--bg-input); color: var(--text-muted); }

/* ── Progress bar ───────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; width: 100px; }
.progress-bar .fill { height: 100%; border-radius: 3px; transition: width .3s; }
.progress-bar .fill.green { background: var(--success); }
.progress-bar .fill.yellow { background: var(--warning); }
.progress-bar .fill.red { background: var(--danger); }
.quota-text { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
}
.pagination-info { font-size: 12px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 4px; }
.pagination-btns button {
  padding: 6px 10px; border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); border-radius: var(--radius); font-size: 12px; cursor: pointer; font-family: var(--font);
}
.pagination-btns button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination-btns button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-btns button:disabled { opacity: .3; cursor: not-allowed; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; width: 100%; max-width: 500px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: slideUp .2s;
}
.modal-lg { max-width: 700px; }
.modal h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius); font-size: 13px; color: #fff;
  animation: slideUp .2s; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); }

/* ── Detail page ────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.detail-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
}
.detail-card h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); font-size: 13px; }
.detail-row .value { color: var(--text); font-size: 13px; font-weight: 500; }
.detail-full { grid-column: 1 / -1; }

/* ── Chart placeholder ──────────────────────────────────────── */
.chart-container {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px;
}
.chart-container h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.chart-area { height: 240px; position: relative; }
.chart-bar-group { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding: 0 4px; }
.chart-bar {
  flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; min-width: 8px;
  transition: height .3s; position: relative; cursor: pointer;
}
.chart-bar:hover { background: var(--primary-hover); }
.chart-bar .chart-tooltip {
  display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 8px; font-size: 11px; white-space: nowrap; margin-bottom: 4px;
}
.chart-bar:hover .chart-tooltip { display: block; }
.chart-labels { display: flex; padding: 8px 4px 0; }
.chart-labels span { flex: 1; text-align: center; font-size: 10px; color: var(--text-dim); }

/* ── Upload area ────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px;
  text-align: center; cursor: pointer; transition: border-color .2s;
}
.upload-area:hover { border-color: var(--primary); }
.upload-area svg { width: 40px; height: 40px; color: var(--text-dim); margin-bottom: 12px; }
.upload-area p { color: var(--text-muted); font-size: 13px; }
.upload-area input[type="file"] { display: none; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Actions dropdown ───────────────────────────────────────── */
.actions-cell { display: flex; gap: 4px; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; color: var(--text-dim); margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); }

/* ── Inline edit ────────────────────────────────────────────── */
.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { flex: 1; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Loading spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: flex; align-items: center; justify-content: center; height: 200px; }

/* Role badges */
.role-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.role-super_admin { background: rgba(239,68,68,.15); color: var(--danger); }
.role-admin { background: rgba(124,58,237,.15); color: var(--primary); }
.role-moderator { background: rgba(59,130,246,.15); color: var(--info); }

/* ── Settings page ─────────────────────────────────────────── */
.settings-grid { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px;
}
.settings-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.settings-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.settings-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.settings-hint { font-size: 12px; margin-top: 8px; min-height: 18px; }
.settings-icon-preview { display: flex; align-items: center; gap: 20px; }
.settings-icon-sizes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.settings-size-badge {
  font-size: 11px; background: var(--bg-input); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px; color: var(--text-muted);
}
.settings-size-info { font-size: 11px; color: var(--text-dim); font-style: italic; }
.settings-file-name { font-size: 13px; color: var(--text-muted); }

/* ── API Keys ──────────────────────────────────────────────── */
.keys-list { display: flex; flex-direction: column; gap: 12px; }
.key-row {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
}
.key-info { min-width: 180px; flex-shrink: 0; }
.key-label { font-size: 13px; font-weight: 600; }
.key-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.key-input-wrap { flex: 1; display: flex; gap: 6px; align-items: center; }
.key-input { font-family: 'SF Mono', 'Fira Code', monospace, var(--font); font-size: 13px; }
.key-toggle { flex-shrink: 0; }

/* ── Play button ───────────────────────────────────────────── */
.btn-play {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--bg-input); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.btn-play:hover { background: var(--primary); color: #fff; }
.btn-play.playing { background: var(--primary); color: #fff; }
.btn-play svg { width: 18px; height: 18px; }

/* ── Mini Player ───────────────────────────────────────────── */
.mini-player {
  position: fixed; bottom: 0; left: 0; right: 0; height: 56px;
  background: var(--bg-card); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  z-index: 1000; box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}
.mp-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mp-btn:hover { background: var(--primary-hover); }
.mp-close { background: transparent; color: var(--text-muted); font-size: 16px; }
.mp-close:hover { background: var(--bg-input); color: var(--text); }
.mp-info { min-width: 0; flex-shrink: 0; max-width: 240px; }
.mp-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress {
  flex: 1; height: 4px; background: var(--bg-input); border-radius: 2px;
  overflow: hidden; cursor: pointer;
}
.mp-bar { height: 100%; background: var(--primary); border-radius: 2px; width: 0; transition: width .3s linear; }
.mp-time { font-size: 12px; color: var(--text-muted); min-width: 40px; text-align: right; }
