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

:root {
  --bg: #09090f;
  --bg2: #0f0f1a;
  --bg3: #141422;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --purple: #a855f7;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --text: #f0f0ff;
  --text2: #8888aa;
  --text3: #55556a;
  --player-h: 160px;
  --sidebar-w: 220px;
  --radius: 14px;
  --grad: linear-gradient(135deg, var(--purple), var(--cyan));
}

html { font-size: 15px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  margin-bottom: 28px; padding: 0 2px;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo-img {
  width: 140px;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
}
/* 닫기 버튼 — 모바일에서만 보임 */
.sidebar-close-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text2); padding: 6px; border-radius: 8px;
  transition: background 0.15s;
}
.sidebar-close-btn:hover { background: var(--surface2); color: var(--text); }
/* 오버레이 — 사이드바 열릴 때 배경 어둡게 */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  border: none; background: transparent; color: var(--text2);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  text-align: left; width: 100%;
}
.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: var(--surface2); color: var(--text); }
.nav-btn.active svg { color: var(--purple); }

.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border); }
.track-count { font-size: 0.78rem; color: var(--text3); padding: 0 6px; }

/* ── MAIN ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  margin-bottom: var(--player-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOP BAR ── */
.top-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
  background: rgba(9,9,15,0.8); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text2); cursor: pointer; padding: 4px; }
.search-bar-inline {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 14px;
  transition: border-color 0.2s;
}
.search-bar-inline:focus-within { border-color: var(--purple); }
.search-bar-inline input { background: none; border: none; outline: none; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.9rem; flex: 1; }
.search-bar-inline input::placeholder { color: var(--text3); }
.search-bar-inline svg { color: var(--text3); flex-shrink: 0; }

.upload-quick-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px;
  background: var(--grad); border: none; color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.upload-quick-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── VIEWS ── */
.view { padding: 36px 32px; display: flex; flex-direction: column; gap: 28px; }
.view.hidden { display: none; }

.section-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { color: var(--text2); font-size: 0.9rem; margin-top: 4px; }
.hero-badge {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px; font-size: 0.82rem; color: var(--text2);
  white-space: nowrap;
}

/* ── FILTER TABS ── */
.filter-tabs { display: flex; gap: 8px; }
.filter-tab {
  padding: 8px 20px; border-radius: 20px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text2); font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.filter-tab:hover { border-color: var(--purple); color: var(--text); background: rgba(168,85,247,0.07); }
.filter-tab.active {
  background: var(--grad); border-color: transparent;
  color: #fff; box-shadow: 0 2px 12px rgba(168,85,247,0.3);
}

/* ── TRACK GRID ── */
.track-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.track-card:hover { border-color: rgba(168,85,247,0.35); background: rgba(255,255,255,0.03); }
.track-card.playing { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), 0 4px 16px rgba(168,85,247,0.15); }

/* card row layout */
.card-main { display: flex; align-items: center; gap: 14px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.card-info { flex: 1; min-width: 0; }
.card-play-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); border: none; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity 0.18s, transform 0.15s;
}
.track-card:hover .card-play-btn { opacity: 1; }
.track-card.playing .card-play-btn { opacity: 1; }
.card-play-btn:hover { transform: scale(1.08); }

.track-name { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.track-name-text { display: inline-block; }
.track-card.playing .track-name { text-overflow: clip; }
.track-card.playing .track-name-text.scrolling {
  animation: track-marquee 9s ease-in-out infinite;
}
@keyframes track-marquee {
  0%, 15%  { transform: translateX(0); }
  70%, 85% { transform: translateX(var(--marquee-dist, 0px)); }
  100% { transform: translateX(0); }
}
.track-meta { display: flex; align-items: center; gap: 10px; }
.track-genre-tag {
  font-size: 0.72rem; font-weight: 500; color: var(--purple);
  background: rgba(168,85,247,0.12); border-radius: 6px; padding: 3px 8px;
}
.track-duration { font-size: 0.75rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; }

.track-actions {
  display: flex; gap: 6px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  opacity: 0; transition: opacity 0.2s; height: 0; overflow: hidden;
  margin-top: 0; padding-top: 0; border-top: none;
}
.track-card:hover .track-actions {
  opacity: 1; height: auto;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}
.action-btn {
  flex: 1; padding: 7px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2);
  font-size: 0.75rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.action-btn:hover { border-color: var(--purple); color: var(--purple); background: rgba(168,85,247,0.08); }
.action-btn.danger { color: #ef4444; border-color: rgba(239,68,68,0.2); }
.action-btn.danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.08); }
.action-btn.edit { color: #06b6d4; border-color: rgba(6,182,212,0.2); }
.action-btn.edit:hover { border-color: #06b6d4; color: #06b6d4; background: rgba(6,182,212,0.08); }

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-icon { width: 100px; height: 100px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; }
.empty-state p { color: var(--text2); font-size: 0.9rem; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  background: var(--grad); border: none; color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text2);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text3); color: var(--text); }

/* ── UPLOAD ── */
.upload-container { max-width: 640px; }
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 60px 20px; text-align: center; cursor: pointer;
  transition: all 0.25s; background: var(--surface);
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--purple); background: rgba(168,85,247,0.06);
}
.drop-icon { margin-bottom: 20px; }
.drop-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.drop-sub { color: var(--text2); font-size: 0.85rem; }

.upload-form { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-album-art { width: 64px; height: 64px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; flex-shrink: 0; }
.form-file-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.form-filename { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-filesize { font-size: 0.8rem; color: var(--text2); }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-input:focus { border-color: var(--purple); }
.form-input::placeholder { color: var(--text3); }
.form-select option { background: var(--bg2); }
.form-textarea { resize: vertical; min-height: 80px; }

/* category toggle buttons */
.category-btn-group { display: flex; gap: 12px; }
.category-btn {
  flex: 1; padding: 13px 0; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text2); font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.category-btn:hover { border-color: var(--purple); color: var(--text); background: rgba(168,85,247,0.07); }
.category-btn.selected { border-color: var(--purple); color: var(--text); background: rgba(168,85,247,0.15); box-shadow: 0 0 0 1px var(--purple); }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.progress-bar-wrap { margin-top: 16px; position: relative; }
.progress-bar { height: 4px; background: var(--grad); border-radius: 4px; width: 0%; transition: width 0.1s; }
.progress-label { display: block; text-align: center; margin-top: 8px; font-size: 0.82rem; color: var(--text2); }

/* ── SEARCH ── */
.search-big-wrap { display: flex; justify-content: center; }
.search-big-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 20px; width: 100%; max-width: 560px;
  transition: border-color 0.2s;
}
.search-big-bar:focus-within { border-color: var(--purple); }
.search-big-input { background: none; border: none; outline: none; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1.05rem; flex: 1; }
.search-big-input::placeholder { color: var(--text3); }
.search-placeholder { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px; color: var(--text3); }

/* ── PLAYER BAR ── */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: rgba(15,15,26,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 28px 14px;
  z-index: 200; gap: 0;
}

/* 상단 행: 아이콘+제목 (왼쪽) + 볼륨 (오른쪽) */
.player-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}

.player-track-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.player-thumb {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface2); display: grid; place-items: center; overflow: hidden;
}
.player-thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.player-title { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.78rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 중앙 행: 컨트롤 5개 정중앙 */
.player-progress-wrap { margin-bottom: 8px; }
.player-center-row {
  display: flex; justify-content: center; align-items: center;
}
.player-controls { display: flex; align-items: center; gap: 16px; }
.ctrl-btn { background: none; border: none; color: var(--text2); cursor: pointer; padding: 10px; border-radius: 10px; transition: all 0.15s; display: grid; place-items: center; }
.ctrl-btn:hover { color: var(--text); background: var(--surface2); }
.ctrl-btn.active { color: var(--purple); }
.play-pause-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad) !important; color: #fff !important;
  box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}
.play-pause-btn:hover { transform: scale(1.07); background: var(--grad) !important; }

/* 하단 행: 프로그레스 바 */
.player-progress-wrap { display: flex; align-items: center; gap: 10px; }
.time-label { font-size: 0.72rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.progress-track {
  flex: 1; height: 6px; background: var(--surface2); border-radius: 6px;
  cursor: pointer; position: relative; min-width: 60px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
/* 터치 클릭 영역 확장 */
.progress-track::before {
  content: ''; position: absolute;
  top: -12px; left: 0; right: 0; bottom: -12px;
}
.progress-fill { height: 100%; background: var(--grad); border-radius: 6px; width: 0%; position: relative; }
.progress-track.dragging .progress-fill { transition: none; }
.progress-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--purple);
  position: absolute; top: 50%; right: -8px; transform: translateY(-50%);
  opacity: 1; transition: transform 0.1s; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.3);
}
.progress-track:hover .progress-thumb { transform: translateY(-50%) scale(1.2); }
.progress-track.dragging .progress-thumb { transform: translateY(-50%) scale(1.3); }
.seek-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  transform: translateX(-50%);
  background: rgba(20,20,35,0.95); color: #fff;
  font-size: 0.72rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(168,85,247,0.3);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.1s;
}
.seek-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: rgba(20,20,35,0.95);
}
.progress-track:hover .seek-tooltip,
.progress-track.dragging .seek-tooltip { opacity: 1; }

.player-right { display: flex; align-items: center; gap: 8px; }
.volume-slider {
  -webkit-appearance: none; width: 80px; height: 4px; border-radius: 4px;
  background: var(--surface2); outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); cursor: pointer; }

/* ── QUEUE PANEL ── */
.queue-panel {
  position: fixed; right: 0; bottom: var(--player-h);
  width: 300px; max-height: 60vh;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 0;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.28s ease;
  z-index: 150; overflow: hidden;
}
.queue-panel.open { transform: translateX(0); }
.queue-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.queue-header h3 { font-size: 0.95rem; font-weight: 700; }
.queue-list { overflow-y: auto; flex: 1; padding: 8px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
.queue-item:hover { background: var(--surface2); }
.queue-item.active { background: rgba(168,85,247,0.1); }
.queue-num { font-size: 0.72rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; width: 20px; flex-shrink: 0; }
.queue-item-meta { flex: 1; min-width: 0; }
.queue-item-title { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-artist { font-size: 0.75rem; color: var(--text2); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: calc(var(--player-h) + 16px); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 22px; font-size: 0.88rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 500;
  white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: #22c55e; color: #22c55e; }
.toast.error { border-color: #ef4444; color: #ef4444; }

/* ── WAVEFORM ── */
@keyframes wave { 0%,100%{transform:scaleY(0.4)} 50%{transform:scaleY(1)} }
.wave-bars { display: flex; align-items: center; gap: 2px; height: 20px; }
.wave-bar { width: 3px; border-radius: 2px; background: var(--purple); animation: wave 1s ease-in-out infinite; }
.wave-bar:nth-child(2){animation-delay:0.1s}
.wave-bar:nth-child(3){animation-delay:0.2s}
.wave-bar:nth-child(4){animation-delay:0.3s}
.wave-bar:nth-child(5){animation-delay:0.15s}

/* ── ADMIN VISIBILITY ── */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: flex !important; }
/* track-actions is a div, use block for it */
body.is-admin .track-actions.admin-only { display: flex !important; }

/* ── LOGIN BUTTON ── */
.login-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.login-btn:hover { border-color: var(--purple); color: var(--text); background: rgba(168,85,247,0.08); }
body.is-admin .login-btn { border-color: var(--purple); color: var(--purple); background: rgba(168,85,247,0.1); }

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px); z-index: 800;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -54%);
  width: 420px; max-width: calc(100vw - 32px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; z-index: 900; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%); }
.modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 24px 0;
}
.modal-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(168,85,247,0.12); display: grid; place-items: center; flex-shrink: 0;
}
.modal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.modal-sub { font-size: 0.8rem; color: var(--text2); }
.modal-body { padding: 20px 24px 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-error { display: block; font-size: 0.8rem; color: #ef4444; margin-top: 6px; min-height: 18px; }
.modal-logged-in { font-size: 0.92rem; color: var(--text2); padding: 8px 0; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #ef4444;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); border-color: #ef4444; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; align-items: center; justify-content: center; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .player-right { display: none; }
  --player-h: 160px;
  .view { padding: 24px 16px; }
  .top-bar { padding: 12px 16px; }
  .form-row { grid-template-columns: 1fr; }
}
