/* ══════════════════════════════════════════════════════
   Luís Da Mídia — Estilos Globais
   ══════════════════════════════════════════════════════ */

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

:root {
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #ede9fe;
  --indigo: #4f46e5;
  --green: #16a34a;
  --green-dark: #15803d;
  --bg: #f5f3ff;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --player-bg: #1e1b4b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(124,58,237,.12);
  --shadow-hover: 0 8px 32px rgba(124,58,237,.22);
  --header-h: 68px;
  --player-h: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--player-h) + 20px);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--indigo) 100%);
  height: var(--header-h);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-weight: 800; font-size: 1.1rem; color: #fff; white-space: nowrap; }
.search-wrapper { flex: 1; position: relative; max-width: 480px; margin: 0 auto; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #a78bfa; }
.search-input {
  width: 100%; padding: 10px 16px 10px 40px;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50px; color: #fff; font-size: .9rem; outline: none;
  transition: background .2s, border-color .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.6); }
.search-input:focus { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-admin {
  background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.3);
  padding: 8px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600;
  transition: background .2s;
}
.btn-admin:hover { background: rgba(255,255,255,.3); }
.btn-admin.logged-in { background: rgba(22,163,74,.3); border-color: rgba(22,163,74,.5); }

/* ── MAIN ────────────────────────────────────────────── */
.main { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.section { margin-bottom: 48px; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--purple-dark); }
.section-count { background: var(--purple-light); color: var(--purple); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 50px; }

/* ── CD GRID ─────────────────────────────────────────── */
.cds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cd-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.cd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cd-cover-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--purple-light); }
.cd-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cd-card:hover .cd-cover { transform: scale(1.05); }
.cd-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ede9fe, #ddd6fe); font-size: 3rem; }
.cd-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; opacity: 1; transition: background .25s; }
.cd-card:hover .cd-play-overlay { background: rgba(0,0,0,.42); }
.cd-play-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 14px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.cd-play-btn:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.cd-info { padding: 12px 14px; }
.cd-title { font-weight: 700; font-size: .9rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-artist { font-size: .8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-footer { padding: 0 14px 12px; display: flex; gap: 8px; }
.btn-card-play { flex: 1; padding: 7px; background: var(--purple); color: #fff; border-radius: 8px; font-size: .8rem; font-weight: 600; transition: background .2s; }
.btn-card-play:hover { background: var(--purple-dark); }
.btn-card-download { flex: 1; padding: 7px; background: #f1f5f9; color: var(--text); border-radius: 8px; font-size: .8rem; font-weight: 600; transition: background .2s; }
.btn-card-download:hover { background: #e2e8f0; }
.skeleton-card { background: #e9e5ff; border-radius: var(--radius); aspect-ratio: .85; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 1rem; }

/* ── SOBRE ───────────────────────────────────────────── */
.section-about { background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%); border-radius: 24px; padding: 36px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photo { aspect-ratio: 1; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,.12); transition: transform .3s; }
.about-photo:hover { transform: scale(1.03); }
.photo-placeholder { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, #ddd6fe, #c7d2fe); animation: pulse 1.5s ease-in-out infinite; }
.about-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.about-text { color: var(--text); line-height: 1.7; font-size: .9rem; white-space: pre-line; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat-box { border-radius: 12px; padding: 12px; text-align: center; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; }
.stat-label { font-size: .75rem; opacity: .8; }
.stat-purple { background: #f3e8ff; color: var(--purple); }
.stat-pink { background: #fce7f3; color: #be185d; }
.stat-orange { background: #fff7ed; color: #c2410c; }
.stat-red { background: #fee2e2; color: #dc2626; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 50px; font-size: .85rem; font-weight: 600; color: #fff; transition: transform .2s, box-shadow .2s; }
.social-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.tiktok { background: #000; }
.youtube { background: #dc2626; }
.kwai { background: #f97316; }

/* ── PIX SEÇÃO ───────────────────────────────────────── */
.section-pix { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-radius: 24px; padding: 36px; text-align: center; }
.pix-icon { font-size: 3rem; margin-bottom: 12px; }
.pix-title { font-size: 1.8rem; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
.pix-subtitle { color: #166534; font-size: .95rem; line-height: 1.6; max-width: 480px; margin: 0 auto 28px; }
.pix-content { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pix-qr-wrapper { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.pix-qr { width: 200px; height: 200px; border-radius: 8px; }
.pix-details { text-align: left; }
.pix-label { font-size: .85rem; color: #166534; font-weight: 600; margin-bottom: 8px; }
.pix-key-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pix-key-value { background: #fff; border: 1.5px solid #86efac; border-radius: 8px; padding: 10px 14px; font-size: .9rem; font-weight: 600; color: var(--green-dark); }
.btn-copy-pix { background: var(--green); color: #fff; border-radius: 8px; padding: 10px 16px; font-size: .85rem; font-weight: 600; transition: background .2s; }
.btn-copy-pix:hover { background: var(--green-dark); }
.btn-copy-pix-full { width: 100%; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: 8px; padding: 12px; font-size: .9rem; font-weight: 700; transition: opacity .2s; }
.btn-copy-pix-full:hover { opacity: .9; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { text-align: center; padding: 24px 20px; color: var(--text-muted); font-size: .8rem; }

/* ── PLAYER ──────────────────────────────────────────── */
.player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--player-bg); height: var(--player-h);
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.player-inner { max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.player-info { display: flex; align-items: center; gap: 12px; min-width: 180px; flex: 1; overflow: hidden; }
.player-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #3730a3; }
.player-meta { overflow: hidden; }
.player-title { font-size: .85rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { font-size: .75rem; color: #a5b4fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn { background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: background .2s; }
.ctrl-btn:hover { background: rgba(255,255,255,.25); }
.ctrl-play { background: var(--purple); width: 46px; height: 46px; font-size: 1.1rem; }
.ctrl-play:hover { background: var(--purple-dark); }
.player-progress-wrap { display: flex; align-items: center; gap: 8px; flex: 2; }
.time { font-size: .72rem; color: #a5b4fc; min-width: 36px; text-align: center; }
.progress-bar { flex: 1; -webkit-appearance: none; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); cursor: pointer; }
.progress-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); cursor: pointer; }
.volume-bar { width: 80px; -webkit-appearance: none; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); cursor: pointer; }
.volume-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #a5b4fc; cursor: pointer; }
.player-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.volume-wrap { display: flex; align-items: center; gap: 6px; color: #a5b4fc; font-size: .85rem; }

/* ── MODAIS ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: #fff; border-radius: 24px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; padding: 32px; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: slideUp .25s ease;
}
.modal-xl { max-width: 780px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; }
.modal-form { max-width: 520px; }
.modal-sm { max-width: 440px; }
.modal-cd-inner { max-width: 680px; padding: 0; }
@keyframes slideUp { from{transform:translateY(24px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 10;
}
.modal-close.static { position: static; }
.modal-close:hover { background: #e2e8f0; }
.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

/* ── MODAL CD ────────────────────────────────────────── */
.cd-modal-top {
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 260px;
}
.cd-modal-cover-wrap { overflow: hidden; background: var(--purple-light); }
.cd-modal-cover { width: 100%; height: 100%; object-fit: cover; }
.cd-modal-cover-placeholder { width: 100%; height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.cd-modal-header-info { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.cd-modal-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.cd-modal-artist { font-size: .9rem; color: var(--text-muted); }
.cd-modal-main-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-modal-main-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.btn-action { padding: 10px 16px; border-radius: 10px; font-size: .85rem; font-weight: 700; transition: opacity .2s, transform .1s; }
.btn-action:hover { opacity: .9; transform: scale(1.02); }
.btn-play-all { background: var(--purple); color: #fff; text-align: start; }
.btn-download-modal { background: #0ea5e9; color: #fff; display: flex; gap: 4px; }
.btn-download-modal > svg { width: 14px; }
.btn-share-modal { background: #f1f5f9; color: var(--text); }
#btn-download-player > svg { width: 17px; }

/* PIX no modal CD */
.cd-modal-pix {
  display: flex; gap: 12px; align-items: center;
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 12px;
  flex-shrink: 0;
}
.cd-pix-qr { width: 72px; height: 72px; border-radius: 6px; flex-shrink: 0; }
.cd-pix-info { flex: 1; }
.cd-pix-label { font-size: .78rem; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }
.cd-pix-key { display: block; font-size: .72rem; color: #166534; margin-bottom: 6px; }
.cd-pix-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-copy-pix.small { padding: 5px 10px; font-size: .72rem; border-radius: 6px; }
.btn-copy-pix-full.small { padding: 5px 10px; font-size: .72rem; border-radius: 6px; background: #0d9488; color: #fff; font-weight: 600; }

/* Tracks */
.tracks-section { border-top: 1px solid var(--border); padding: 16px 24px 20px; max-height: 320px; }
.tracks-title { font-size: .95rem; font-weight: 700; color: var(--purple-dark); margin-bottom: 10px; }
.track-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; transition: background .15s; }
.track-row:hover { background: #f5f3ff; }
.track-num { font-size: .72rem; color: var(--text-muted); min-width: 24px; text-align: right; flex-shrink: 0; }
.track-name { flex: 1; font-size: .85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-track-play {
  background: var(--purple); color: #fff; border: none; border-radius: 6px;
  padding: 5px 10px; font-size: .78rem; cursor: pointer; flex-shrink: 0; transition: background .2s;
  white-space: nowrap;
}
.btn-track-play:hover { background: var(--purple-dark); }
.btn-track-play.playing { background: #ea580c; }
.btn-track-dl {
  background: #0ea5e9; color: #FFF; border: none; border-radius: 6px; min-width: 33px;
  padding: 5px 8px; font-size: .78rem; cursor: pointer; flex-shrink: 0; transition: background .2s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-track-dl:hover { background: #016fee; }

/* ── FORMS ───────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input[type=text], .field input[type=url], .field input[type=email], .field input[type=password], .field textarea, .field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .9rem; outline: none; transition: border-color .2s;
  background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); }
.field textarea { resize: vertical; }
.field-hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.btn-submit {
  width: 100%; padding: 13px; background: var(--purple); color: #fff;
  border-radius: 12px; font-size: 1rem; font-weight: 700; margin-top: 4px;
  transition: background .2s;
}
.btn-submit:hover { background: var(--purple-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.login-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: #dc2626; margin-bottom: 12px; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: .85rem; color: #dc2626; margin-bottom: 12px; }

/* ── COVER UPLOAD ────────────────────────────────────── */
.cover-upload-box { display: flex; gap: 16px; align-items: flex-start; }
.cover-preview-wrap {
  width: 90px; height: 90px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.cover-preview-img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.cover-upload-actions { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.btn-cover-file {
  display: inline-block; padding: 8px 14px; background: var(--purple-light); color: var(--purple-dark);
  border-radius: 8px; font-size: .82rem; font-weight: 700; cursor: pointer; text-align: center;
  border: 1.5px solid var(--purple); transition: background .2s;
}
.btn-cover-file:hover { background: #ddd6fe; }
.cover-or { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* ── ZIP UPLOAD ──────────────────────────────────────── */
.field-zip { background: #faf5ff; border: 1.5px dashed var(--purple); border-radius: 12px; padding: 14px; }
.btn-zip-file {
  display: inline-block; padding: 9px 18px; background: var(--purple); color: #fff;
  border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; margin-bottom: 6px;
  transition: background .2s;
}
.btn-zip-file:hover { background: var(--purple-dark); }

/* Progress bars */
.upload-progress-wrap { margin-top: 10px; }
.upload-progress-bar { background: #e2e8f0; border-radius: 50px; height: 8px; overflow: hidden; }
.upload-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--indigo)); border-radius: 50px; width: 0%; transition: width .3s; }
.upload-progress-text { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.upload-status {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px;
  padding: 12px 14px; font-size: .82rem; color: var(--green-dark);
  margin-top: 10px; line-height: 1.6;
}
.upload-status code {
  background: #dcfce7; padding: 2px 6px; border-radius: 4px;
  font-family: monospace; font-size: .78rem; word-break: break-all;
}

/* ── ADMIN PANEL ─────────────────────────────────────── */
.admin-header {
  background: linear-gradient(135deg, var(--purple-dark), var(--indigo));
  padding: 24px 28px; border-radius: 24px 24px 0 0;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.admin-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.admin-sub { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.admin-header-actions { display: flex; align-items: center; gap: 8px; }
.btn-logout {
  background: rgba(255,255,255,.15); color: #fff; border-radius: 8px;
  padding: 7px 14px; font-size: .8rem; font-weight: 600; transition: background .2s;
}
.btn-logout:hover { background: rgba(255,255,255,.3); }
.admin-tabs { display: flex; border-bottom: 1px solid var(--border); background: #fafafa; flex-shrink: 0; }
.tab { flex: 1; padding: 14px; font-size: .9rem; font-weight: 600; background: none; color: var(--text-muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.tab:hover { color: var(--purple); }
.admin-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.tab-toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.btn-add-cd { background: var(--purple); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: .9rem; font-weight: 700; transition: background .2s; }
.btn-add-cd:hover { background: var(--purple-dark); }
.btn-refresh { background: #f1f5f9; color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: .85rem; font-weight: 600; transition: background .2s; }
.btn-refresh:hover { background: #e2e8f0; }
#tab-bio .bio-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
#tab-bio .bio-photos-grid .photo-placeholder {
  align-items: center;
  display: flex;
  justify-content: center;
}
#tab-bio .bio-photos-grid .photo-placeholder img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.admin-cd-item { display: flex; align-items: center; gap: 12px; background: #fafafa; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.admin-cd-cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--purple-light); flex-shrink: 0; }
.admin-cd-cover-empty { width: 52px; height: 52px; border-radius: 8px; background: var(--purple-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.admin-cd-info { flex: 1; overflow: hidden; }
.admin-cd-title { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-cd-artist { font-size: .78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.admin-cd-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-edit { background: #eff6ff; color: #1d4ed8; border-radius: 8px; padding: 6px 12px; font-size: .8rem; font-weight: 600; transition: background .2s; }
.btn-edit:hover { background: #dbeafe; }
.btn-delete { background: #fef2f2; color: #dc2626; border-radius: 8px; padding: 6px 12px; font-size: .8rem; font-weight: 600; transition: background .2s; }
.btn-delete:hover { background: #fee2e2; }

.loading-msg { color: var(--text-muted); font-size: .85rem; padding: 12px 0; }
.empty-msg { color: var(--text-muted); font-size: .85rem; padding: 12px 0; }
.error-msg { color: #dc2626; font-size: .85rem; background: #fef2f2; border-radius: 8px; padding: 10px 14px; }

/* Toggle */
.toggle-field { display: flex; align-items: center; justify-content: space-between; }
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 26px; transition: .3s; cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.toggle input:checked + .toggle-slider { background: var(--purple); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff; padding: 12px 24px; border-radius: 50px;
  font-size: .9rem; font-weight: 600; z-index: 9999; opacity: 0;
  transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── WIDGET PIX FLUTUANTE ────────────────────────────── */
.pix-widget {
  position: fixed; bottom: 96px; right: 20px; z-index: 850;
  width: 196px; background: #fff; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(22,163,74,.28); border: 2px solid #86efac;
  overflow: hidden;
}
.pix-widget-header {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.pix-widget-header span:first-child { color: #fff; font-size: .8rem; font-weight: 700; }
.pix-widget-toggle { color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.pix-widget-body { padding: 12px; text-align: center; }
.pix-qr-widget { width: 160px; height: 160px; border-radius: 8px; margin: 0 auto 8px; display: block; }
.pix-widget-key { font-size: .7rem; color: var(--green-dark); font-weight: 700; margin-bottom: 8px; word-break: break-all; }
.pix-widget-copy {
  width: 100%; padding: 7px; background: var(--green); color: #fff;
  border: none; border-radius: 7px; font-size: .72rem; font-weight: 700;
  cursor: pointer; margin-bottom: 5px; transition: background .2s;
}
.pix-widget-copy:hover { background: var(--green-dark); }
.pix-widget-payload { background: #0d9488; }
.pix-widget-payload:hover { background: #0f766e; }
.pix-widget.collapsed .pix-widget-body { display: none; }

/* ── BANNER TOPO ─────────────────────────────────────── */
.banner-top {
  position: relative; width: 100%; height: 260px; overflow: hidden;
  background: #1e1b4b; margin-bottom: 0;
}
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.banner-slide.active { opacity: 1; }
.banner-slide-inner {
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  width: 100%; padding: 20px 32px;
}
.banner-slide-title { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.banner-slide-sub { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0 0 10px; }
.banner-slide-link {
  display: inline-block; padding: 8px 20px; background: var(--purple);
  color: #fff; border-radius: 50px; font-size: .85rem; font-weight: 700; text-decoration: none;
}
.banner-dots {
  position: absolute; bottom: 12px; right: 20px;
  display: flex; gap: 6px; z-index: 2;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0; transition: background .2s;
}
.banner-dot.active { background: #fff; }

/* ── SEÇÕES HORIZONTAIS ──────────────────────────────── */
.hscroll-section { margin-bottom: 36px; }
.hscroll-title { font-size: 1.25rem; font-weight: 700; color: var(--purple-dark); margin-bottom: 14px; padding: 0 0 0 0; }
.hscroll-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.hscroll-row::-webkit-scrollbar { height: 4px; }
.hscroll-row::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 2px; }
.hscroll-card {
  flex-shrink: 0; width: 160px; cursor: pointer;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .2s, box-shadow .2s; scroll-snap-align: start;
}
.hscroll-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.hscroll-cover { position: relative; width: 160px; height: 160px; background: var(--purple-light); overflow: hidden; }
.hscroll-cover img { width: 100%; height: 100%; object-fit: cover; }
.hscroll-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.hscroll-cover-play {
  position: absolute; inset: 0; background: rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
}
.hscroll-play-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: #fff;
  border: none; font-size: 1.1rem; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
}
.hscroll-badge {
  position: absolute; top: 7px; right: 7px; background: var(--purple); color: #fff;
  border-radius: 20px; padding: 2px 9px; font-size: .68rem; font-weight: 800;
}
.hscroll-info { padding: 9px 11px 11px; }
.hscroll-info-title { font-weight: 700; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.hscroll-info-artist { font-size: .75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── RESPONSIVO ──────────────────────────────────────── */
@media (max-width: 768px) {
  .logo-text { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .player-progress-wrap { display: none; }
  .volume-wrap { display: none; }
  .cds-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  .section-about { padding: 24px 16px; }
  .section-pix { padding: 24px 16px; }
  .cd-modal-top { grid-template-columns: 1fr; }
  .cd-modal-cover-wrap { max-height: 200px; }
  .pix-widget { width: 170px; right: 10px; bottom: 88px; }
  .pix-qr-widget { width: 140px; height: 140px; }
  .admin-body { padding: 16px; }
}
@media (max-width: 480px) {
  .cds-grid { grid-template-columns: 1fr 1fr; }
  .pix-content { flex-direction: column; }
  .cd-modal-main-actions { flex-direction: column; }
  .cover-upload-box { flex-direction: column; }
  .admin-cd-actions { flex-direction: column; }
}

.hidden {
  display: none;
  visibility: hidden;
}


/***
TEMPORÁRIO
***/
@media (max-width: 480px) {
    #player {
        display: flex;
        min-height: 140px;
        padding: 20px 0;
    }
    .player-inner {
        display: grid;
        grid-template-areas: 'a a'
            'b c';
    }
    .player-info {
        grid-area: a;
    }
    .player-controls {
        grid-area: b;
    }
    .player-right {
        grid-area: c;
    }
}