:root { 
    --bg-body: #F8FAFC; --bg-sidebar: #FFFFFF; --bg-card: #FFFFFF; 
    --text-main: #1E293B; --text-muted: #64748B; --text-sidebar: #475569; 
    --primary: #F59E0B; --primary-hover: #D97706; --border-color: #E2E8F0; 
    --chord-color: #ef4444; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); 
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1); 
    --hover-bg: rgba(0,0,0,0.05); --hover-text: #1E293B;
}

[data-theme="dark"] { 
    --bg-body: #0B1120; --bg-sidebar: #0F172A; --bg-card: #1E293B; 
    --text-main: #F8FAFC; --text-muted: #94A3B8; --text-sidebar: #94A3B8; 
    --primary: #FBBF24; --border-color: #334155; 
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4); 
    --chord-color: #ef4444; 
    --hover-bg: rgba(255,255,255,0.05); --hover-text: #ffffff;
}

html, body { width: 100%; max-width: 100%; height: 100%; overflow: hidden; margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; outline: none; background-color: var(--bg-body); color: var(--text-main); transition: background-color 0.3s, color 0.3s; }
* { box-sizing: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Z-INDEX MODAL (3000) */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 3000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-small { background: var(--bg-card); width: 100%; max-width: 400px; padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); text-align: center; }

#custom-alert-overlay { z-index: 4000; }
#custom-alert-input-container { margin-bottom: 20px; }
#custom-alert-input { width: 100%; padding: 12px; border-radius: 8px; border: 2px solid var(--primary); background: var(--bg-body); color: var(--text-main); outline: none; font-size: 15px; }

/* PORTAL DE ACESSO — NOVA IDENTIDADE */
#login-view {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.14), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(251, 191, 36, 0.08), transparent 28%),
        #070B13;
    color: #F8FAFC;
}

.auth-shell {
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    overflow: hidden;
    background: #0F172A;
    box-shadow: 0 35px 90px rgba(0,0,0,0.48), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 58px 62px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(245,158,11,0.16) 0%, rgba(15,23,42,0.35) 42%, rgba(2,6,23,0.94) 100%),
        #111827;
    border-right: 1px solid rgba(148,163,184,0.12);
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-brand-glow { position: absolute; border-radius: 999px; filter: blur(8px); pointer-events: none; }
.auth-glow-one { width: 340px; height: 340px; background: rgba(245,158,11,.16); top: -150px; right: -130px; }
.auth-glow-two { width: 220px; height: 220px; background: rgba(251,191,36,.08); bottom: 5%; left: -120px; }

.auth-brand-logo { position: relative; z-index: 2; width: 270px; max-width: 74%; margin: 0 0 16px; }
.auth-brand-logo img { width: 100%; height: auto; display: block; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0,0,0,.22)); }
.auth-brand-content { position: relative; z-index: 2; max-width: 560px; margin: 34px 0 45px; }
.auth-kicker { display:flex; align-items:center; gap:10px; color:#FBBF24; font-size:12px; font-weight:800; letter-spacing:2.4px; margin-bottom:22px; }
.auth-kicker span { width:34px; height:2px; background:#FBBF24; box-shadow:0 0 18px rgba(251,191,36,.7); }
.auth-brand-content h1 { margin:0; font-size:clamp(44px, 4.8vw, 72px); line-height:.98; letter-spacing:-3.2px; font-weight:900; color:#F8FAFC; }
.auth-brand-content h1 strong { color:#FBBF24; font-weight:900; text-shadow:0 0 35px rgba(251,191,36,.14); }
.auth-brand-content > p { margin:26px 0 30px; max-width:520px; color:#A8B4C7; font-size:16px; line-height:1.7; }
.auth-feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.auth-feature { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid rgba(148,163,184,.12); border-radius:12px; background:rgba(15,23,42,.42); color:#D7DFEA; font-size:13px; font-weight:600; backdrop-filter:blur(6px); }
.auth-feature i { color:#FBBF24; font-size:18px; }
.auth-brand-footer { position:relative; z-index:2; color:#64748B; font-size:12px; letter-spacing:.7px; text-transform:uppercase; }

.auth-form-panel { display:flex; align-items:center; justify-content:center; padding:54px 54px; background:linear-gradient(180deg, #101827 0%, #0B1220 100%); }
.auth-form-wrap { width:100%; max-width:430px; }
.auth-mobile-logo { display:none; }
.auth-panel { display:none; animation:authPanelIn .24s ease; }
.auth-panel.active { display:block; }
@keyframes authPanelIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.auth-panel-heading { margin-bottom:28px; }
.auth-eyebrow { display:block; color:#F59E0B; font-size:11px; font-weight:800; letter-spacing:1.9px; margin-bottom:10px; }
.auth-panel-heading h2 { margin:0 0 9px; font-size:31px; line-height:1.1; font-weight:900; letter-spacing:-1.1px; color:#F8FAFC; }
.auth-panel-heading p { margin:0; color:#8290A5; font-size:14px; line-height:1.55; }

.auth-field { margin-bottom:16px; }
.auth-field > label, .auth-label-row label { display:block; color:#CBD5E1; font-size:12px; font-weight:700; margin-bottom:7px; }
.auth-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.auth-inline-link { appearance:none; background:none; border:none; color:#F59E0B; padding:0; margin:0 0 7px; font-size:12px; font-weight:700; cursor:pointer; }
.auth-inline-link:hover { color:#FBBF24; text-decoration:underline; }

.auth-input-wrap { position:relative; display:flex; align-items:center; }
.auth-input-wrap > i:first-child { position:absolute; left:15px; z-index:2; color:#64748B; font-size:18px; pointer-events:none; }
.auth-input-wrap input { width:100%; height:50px; padding:0 45px 0 46px; border-radius:12px; border:1px solid #2B3950; background:#0A1220; color:#F8FAFC; font-size:14px; outline:none; transition:.2s ease; }
.auth-input-wrap input::placeholder { color:#526176; }
.auth-input-wrap input:focus { border-color:#F59E0B; box-shadow:0 0 0 3px rgba(245,158,11,.12), 0 8px 25px rgba(0,0,0,.12); background:#0C1525; }
.auth-input-wrap:focus-within > i:first-child { color:#FBBF24; }
.auth-password-toggle { position:absolute; right:8px; width:36px; height:36px; border:0; border-radius:9px; background:transparent; color:#718096; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; }
.auth-password-toggle:hover { background:rgba(255,255,255,.05); color:#F8FAFC; }
.auth-two-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.auth-primary-btn { width:100%; height:52px; margin-top:8px; border:0; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:9px; background:linear-gradient(135deg, #F59E0B, #FBBF24); color:#141414; font-size:14px; font-weight:900; cursor:pointer; box-shadow:0 14px 30px rgba(245,158,11,.16); transition:transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.auth-primary-btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 18px 34px rgba(245,158,11,.22); filter:saturate(1.08); }
.auth-primary-btn:disabled { cursor:wait; opacity:.72; }
.auth-primary-btn i { font-size:18px; }
.auth-spinner { animation:authSpin .8s linear infinite; }
@keyframes authSpin { to { transform:rotate(360deg); } }

.auth-switch-text { margin-top:22px; text-align:center; color:#718096; font-size:13px; }
.auth-switch-text button { border:0; background:none; color:#FBBF24; font:inherit; font-weight:800; cursor:pointer; padding:3px 5px; }
.auth-switch-text button:hover { text-decoration:underline; }
.auth-info-note { display:flex; gap:10px; align-items:flex-start; margin:4px 0 14px; padding:11px 12px; border:1px solid rgba(16,185,129,.16); border-radius:11px; background:rgba(16,185,129,.06); color:#9CB7AE; font-size:12px; line-height:1.45; }
.auth-info-note i { color:#34D399; font-size:17px; flex-shrink:0; margin-top:1px; }

.auth-message { margin-top:20px; min-height:48px; padding:12px 14px; border-radius:11px; align-items:center; font-size:12.5px; font-weight:650; line-height:1.45; border:1px solid transparent; }
.auth-message.info { display:flex; color:#BFDBFE; background:rgba(59,130,246,.08); border-color:rgba(59,130,246,.18); }
.auth-message.success { display:flex; color:#A7F3D0; background:rgba(16,185,129,.08); border-color:rgba(16,185,129,.20); }
.auth-message.warning { display:flex; color:#FDE68A; background:rgba(245,158,11,.08); border-color:rgba(245,158,11,.20); }
.auth-message.error { display:flex; color:#FECACA; background:rgba(239,68,68,.08); border-color:rgba(239,68,68,.20); }

.app-container { display: flex; width: 100%; height: 100%; overflow: hidden; }

#mobile-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 900; backdrop-filter: blur(2px); transition: 0.3s;}
#mobile-sidebar-overlay.active { display: block; }

/* Z-INDEX SIDEBAR DESKTOP (100) - Humilde, fica atrás de tudo */
.sidebar { width: 260px; background-color: var(--bg-sidebar); display: flex; flex-direction: column; padding: 20px; border-right: 1px solid var(--border-color); z-index: 100; transition: left 0.3s ease, background-color 0.3s; flex-shrink: 0;}
.brand { margin-bottom: 4px; display: flex; justify-content: center; width: 100%; cursor: pointer; } 
.brand-placeholder { width: 100%; display: flex; justify-content: center; align-items: center; border: none; padding: 10px 0 4px; margin-top: 0; }
.brand-placeholder img { width: 100%; max-width: 210px; height: auto; object-fit: contain; transform: none; }

.btn-nova-musica-side { position: relative; z-index: 10; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-md); transition: 0.2s; width: 100%; margin-top: 15px; margin-bottom: 20px;}
.btn-nova-musica-side:hover { background: var(--primary-hover); transform: translateY(-2px); }

.nav-menu { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto;}
.nav-item { color: var(--text-sidebar); text-decoration: none; padding: 12px 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; transition: 0.2s; font-weight: 500; cursor: pointer;}
.nav-item:hover { background-color: var(--hover-bg); color: var(--hover-text); }
.nav-item.active { background-color: rgba(245, 158, 11, 0.1); color: var(--primary); }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; width: 100%;}
.btn-mobile-close { display: none; background: transparent; border: none; color: var(--text-sidebar); font-size: 24px; cursor: pointer; padding: 4px; border-radius: 6px; }
.btn-mobile-close:hover { color: var(--hover-text); background: var(--hover-bg);}

.sidebar-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 5px; }
.btn-theme-side { background: transparent; color: var(--text-sidebar); border: none; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 12px 16px; border-radius: 8px; width: 100%; font-size: 16px; transition: 0.2s;}
.btn-theme-side:hover { background-color: var(--hover-bg); color: var(--hover-text); }

.mobile-header { display: none; background: var(--bg-card); padding: 15px 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); z-index: 10;}
.btn-mobile-menu { background: rgba(245, 158, 11, 0.05); border: 1px solid var(--border-color); color: var(--primary); width: 40px; height: 40px; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 22px; cursor: pointer;}

.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; max-width: 100%; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; }

.btn-primary { background: var(--primary); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); transition: 0.2s; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.page-container { padding: 40px; max-width: 1200px; width: 100%; margin: 0 auto; display: block; overflow-x: hidden;}

.dashboard-hero { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%); border: 1px solid var(--border-color); padding: 30px 40px; border-radius: 16px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 28px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.hero-text p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.hero-search-box { position: relative; max-width: 500px; width: 100%; }
.hero-search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; }
.hero-search-box input { width: 100%; padding: 14px 20px 14px 48px; border-radius: 50px; border: 2px solid var(--primary); background-color: var(--bg-card); color: var(--text-main); font-size: 16px; outline: none; box-shadow: var(--shadow-sm); transition: 0.2s; }
.hero-search-box input:focus { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
.hero-stats { display: flex; gap: 20px; }
.stat-box { background: var(--bg-body); padding: 15px 25px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

.acervo-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.view-toggles { display: flex; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.btn-view { background: transparent; border: none; padding: 8px 12px; color: var(--text-muted); cursor: pointer; transition: 0.2s; font-size: 18px; }
.btn-view.active { background: rgba(245, 158, 11, 0.1); color: var(--primary); }

.songs-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.songs-container.list-view { grid-template-columns: 1fr; gap: 10px; }
.songs-container.list-view .song-card { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 20px; }
.songs-container.list-view .song-header { width: 40%; margin-bottom: 0; }
.songs-container.list-view .tags-display { flex: 1; margin-top: 0; justify-content: flex-start; }

.song-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); transition: 0.2s; display: flex; flex-direction: column; cursor: pointer; }
.song-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.song-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;}
.song-header h4 { font-size: 16px; color: var(--text-main); margin-bottom: 4px; font-weight: 700; word-break: break-word;}
.song-artist { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.card-actions { display: flex; gap: 8px; flex-shrink: 0;}
.btn-action { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 6px; padding: 6px; font-size: 16px; cursor: pointer; transition: 0.2s; color: var(--text-muted); display: flex; align-items: center; justify-content: center;}
.btn-action:hover { background: var(--bg-card); }
.btn-edit { color: var(--text-muted); } 
.btn-edit:hover { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-delete:hover { color: #ef4444; border-color: #ef4444; }
.tags-display { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.badge-tag { background: rgba(245, 158, 11, 0.1); color: var(--primary); font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 600; text-transform: uppercase; }

.repertorios-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 20px; }
.rep-list-col { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); padding: 20px; box-shadow: var(--shadow-sm); min-height: 500px; display: flex; flex-direction: column; gap: 10px; }
.rep-item { padding: 16px; border-radius: 12px; border: 1px solid transparent; background: var(--bg-body); cursor: pointer; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; gap: 10px;}
.rep-item:hover { border-color: var(--border-color); transform: translateY(-1px); }
.rep-item.active { border-color: var(--primary); background: rgba(245, 158, 11, 0.05); }
.rep-item h4 { font-size: 15px; color: var(--text-main); margin-bottom: 4px; font-weight: 700; word-break: break-word;}
.rep-item p { font-size: 12px; color: var(--text-muted); }
.rep-detail-col { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-width: 0; overflow: hidden;}
.rep-detail-header { margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.rep-detail-title { font-size: 28px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; word-break: break-word;}
.rep-detail-meta { font-size: 14px; color: var(--text-muted); display: flex; gap: 16px; align-items: center; }

.rep-detail-col .btn-primary, .rep-detail-col .btn-theme-side { padding: 8px 12px; font-size: 14px; }

.rep-song-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 10px; transition: background 0.2s, border 0.2s; cursor: grab; gap: 10px;}
.rep-song-item:active { cursor: grabbing; }
.rep-song-item:hover { border-color: var(--primary); }
.drag-handle { color: var(--text-muted); font-size: 20px; padding-right: 5px; display: flex; align-items: center; cursor: inherit; }
.sortable-ghost { opacity: 0.4; background-color: rgba(245, 158, 11, 0.1) !important; border: 2px dashed var(--primary) !important; }

.rep-song-info { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; cursor: pointer;}
.rep-song-info div { flex: 1; min-width: 0; }
.rep-song-info h5 { font-size: 15px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.rep-song-info span { font-size: 13px; color: var(--text-muted); }

.btn-diretor { color: var(--text-muted); transition: 0.2s; }
.btn-diretor:hover { color: #8b5cf6 !important; border-color: #8b5cf6 !important; background: rgba(139, 92, 246, 0.1); }

.cat-layout, .config-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card, .config-panel { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); padding: 30px; box-shadow: var(--shadow-sm); }
.cat-input-group { display: flex; gap: 10px; margin-bottom: 20px; }
.cat-input-group input { flex: 1; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 14px; border-radius: 8px; outline: none; min-width: 0;}
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--bg-body); border-radius: 8px; border: 1px solid var(--border-color); word-break: break-all;}
.config-panel h3 { font-size: 18px; color: var(--text-main); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px;}
.profile-mock { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-avatar { width: 70px; height: 70px; background: rgba(245, 158, 11, 0.1); color: var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; font-weight: bold; flex-shrink: 0;}
.profile-info h4 { font-size: 20px; color: var(--text-main); margin-bottom: 4px; font-weight: 800; word-break: break-word;}
.btn-backup-action { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; border: 1px solid; margin-bottom: 10px; width: 100%;}
.btn-export { background: rgba(245, 158, 11, 0.1); color: var(--primary); border-color: rgba(245, 158, 11, 0.2); }
.btn-import { background: var(--bg-body); color: var(--text-main); border-color: var(--border-color); }

/* CONTA E ACESSO */
.account-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:18px; }
.account-panel-head h3 { flex:1; margin-bottom:0; }
.account-status-pill { display:inline-flex; align-items:center; padding:6px 9px; border-radius:999px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; white-space:nowrap; }
.account-status-pill.administrador { color:#FDE68A; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.25); }
.account-status-pill.aprovado { color:#A7F3D0; background:rgba(16,185,129,.10); border:1px solid rgba(16,185,129,.22); }
.account-status-pill.pendente { color:#FDE68A; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.22); }
.account-status-pill.bloqueado { color:#FECACA; background:rgba(239,68,68,.10); border:1px solid rgba(239,68,68,.22); }
.account-detail-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--border-color); }
.account-detail-row span { color:var(--text-muted); font-size:12px; }
.account-detail-row strong { color:var(--text-main); font-size:13px; text-align:right; word-break:break-word; }
.account-id-row code { max-width:62%; text-align:right; color:var(--text-muted); font-size:10px; word-break:break-all; }
.btn-account-security { width:100%; margin-top:18px; padding:13px 14px; border-radius:10px; border:1px solid var(--border-color); background:var(--bg-body); color:var(--text-main); display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; font-weight:700; transition:.2s; }
.btn-account-security span { display:flex; align-items:center; gap:9px; }
.btn-account-security:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-1px); }

.admin-user-loading, .admin-empty-state { padding:18px; border:1px dashed var(--border-color); border-radius:12px; color:var(--text-muted); text-align:center; font-size:13px; }
.admin-empty-state.error { color:#EF4444; }
.admin-user-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-body); }
.admin-user-info { display:flex; align-items:center; gap:12px; min-width:0; }
.admin-user-avatar { width:40px; height:40px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:rgba(245,158,11,.10); color:var(--primary); font-weight:900; }
.admin-user-name { color:var(--text-main); font-weight:800; font-size:14px; }
.admin-user-email { color:var(--text-muted); font-size:12px; margin-top:2px; word-break:break-all; }
.admin-user-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; color:var(--text-muted); font-size:10px; }
.user-status-badge { padding:3px 7px; border-radius:999px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.user-status-badge.pending { color:#D97706; background:rgba(245,158,11,.10); }
.user-status-badge.approved { color:#059669; background:rgba(16,185,129,.10); }
.user-status-badge.blocked { color:#DC2626; background:rgba(239,68,68,.10); }
.admin-user-actions { display:flex; gap:8px; flex-shrink:0; }
.btn-admin-approve, .btn-admin-block { border-radius:9px; padding:8px 11px; display:flex; align-items:center; gap:6px; font-size:12px; font-weight:800; cursor:pointer; transition:.2s; }
.btn-admin-approve { border:1px solid rgba(16,185,129,.26); background:rgba(16,185,129,.09); color:#10B981; }
.btn-admin-block { border:1px solid rgba(239,68,68,.26); background:rgba(239,68,68,.08); color:#EF4444; }
.btn-admin-approve:hover:not(:disabled), .btn-admin-block:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.1); }
.btn-admin-approve:disabled, .btn-admin-block:disabled { opacity:.35; cursor:default; }

/* Z-INDEX STAGE (2000) */
#stage-view { position: fixed; inset: 0; background-color: var(--bg-body); z-index: 2000; overflow-y: auto; scroll-behavior: smooth; display: none; overflow-x: hidden; width: 100%; height: 100%; transition: background-color 0.3s;}

/* Z-INDEX COVER (5000) */
#stage-cover { display: none; position: fixed; inset: 0; background-color: #0B1120; z-index: 5000; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
#cover-title { font-size: 6vw; font-weight: 900; color: #fff; margin-bottom: 20px; padding: 0 20px; line-height: 1.1; word-break: break-word;}
#cover-subtitle { font-size: 2vw; color: var(--primary); text-transform: uppercase; letter-spacing: 3px; font-weight: 600;}

.mobile-stage-toggle { display: none; }
.btn-close-stage-mobile { display: none; }

.stage-toolbar { position: fixed; top: 0; left: 0; display: flex; gap: 15px; align-items: center; justify-content: center; background-color: var(--bg-sidebar); padding: 12px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 2010; width: 100%; flex-wrap: wrap; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#stage-view.toolbar-hidden .stage-toolbar { transform: translateY(-100%); }

.tool-group { display: flex; align-items: center; gap: 8px; padding: 0 15px; border-right: 1px solid rgba(255,255,255,0.1); }
.tool-group:last-child { border-right: none; }
.tool-label { font-size: 12px; color: #94A3B8; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.tool-value { font-size: 18px; font-weight: 900; color: #fff; min-width: 40px; text-align: center; }
.btn-tool-circle { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; flex-shrink: 0; font-size: 18px;}
.btn-tool-circle:hover { background: rgba(255,255,255,0.1); color: var(--primary); border-color: var(--primary); }
.btn-close-stage { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0F172A; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 20px; flex-shrink: 0;}
.btn-close-stage:hover { background: var(--primary); }
.btn-pill { border-radius: 30px; padding: 10px 20px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.2s; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; white-space: nowrap;}
.btn-pill:hover { background: rgba(255,255,255,0.1); }
.btn-pill.active { background: rgba(255,255,255,0.15); }
.btn-pill-yellow { border-color: var(--primary); color: var(--primary); }
.btn-pill-yellow:hover { background: rgba(245, 158, 11, 0.1); }
.btn-pill-blue { border-color: #3b82f6; color: #3b82f6; }
.btn-pill-blue:hover { background: rgba(59, 130, 246, 0.1); }
.btn-pill-blue.active { background: #3b82f6; color: #fff; }

.stage-main-layout { display: flex; width: 100%; max-width: 1400px; margin: 0 auto; align-items: flex-start; gap: 20px; padding: 10px 20px 50vh 20px; margin-top: 75px; transition: margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-x: hidden;}
#stage-view.toolbar-hidden .stage-main-layout { margin-top: 10px; }

.stage-inner { flex: 1; width: 100%; min-width: 0; display: block; }

.stage-sidebar { width: 240px; flex-shrink: 0; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); padding: 20px; position: sticky; top: 100px; display: none; flex-direction: column; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: var(--shadow-sm); }
.stage-sidebar-header { display: flex; justify-content: space-between; align-items: center; color: var(--primary); margin-bottom: 20px; font-size: 18px; font-weight: 800;}
.fretboard { display: flex; justify-content: space-between; width: 90px; height: 100px; margin: 0 auto; position: relative; border-top: 4px solid var(--text-main); background: repeating-linear-gradient(to bottom, transparent, transparent 23px, #475569 23px, #475569 25px); margin-bottom: 10px;}
.fret-string { width: 2px; background: #475569; height: 100%; position: relative; display: inline-block; }
.finger-dot { width: 14px; height: 14px; background: var(--primary); border-radius: 50%; position: absolute; transform: translate(-50%, -50%); left: 50%; z-index: 2; }
.finger-muted, .finger-open { font-size: 12px; font-weight: 800; color: var(--text-muted); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); display: inline-block; }

.stage-header { text-align: center; margin-bottom: 10px; margin-top: 0; width: 100%; word-break: break-word;}
.stage-title { font-size: 20px; font-weight: 900; color: var(--text-main); margin-bottom: 2px; letter-spacing: -0.5px; }
.stage-artist { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.cifra-area-wrapper { width: 100%; overflow-x: auto; padding-bottom: 30px; -webkit-overflow-scrolling: touch; display: flex; justify-content: center;}
.cifra-content { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); margin: 0 auto; width: max-content; min-width: 100%; min-height: 50vh; text-align: left; padding: 20px; transition: background-color 0.3s; }
.cifra-text-wrapper { display: inline-block; text-align: left; position: relative; z-index: 1; line-height: 1.45; min-width: 100%; padding-right: 150px; }

.line-pair { break-inside: avoid; page-break-inside: avoid; display: block; margin-bottom: 2px; position: relative; z-index: 2; pointer-events: none;}
.chord-line, .lyric-line { white-space: pre !important; word-break: normal !important; overflow-wrap: normal !important; font-family: 'Roboto Mono', monospace; min-height: 1.45em; font-size: inherit; } 
.chord-line span.chord { color: var(--chord-color); font-weight: 700; font-size: inherit;} 
.lyric-line { color: var(--text-main); font-size: inherit;}
.lyrics-only-mode .chord-line span.chord { visibility: hidden; } 

#stage-view.avulsa-lyrics-center .cifra-content { width: 100%; text-align: center; }
#stage-view.avulsa-lyrics-center .cifra-text-wrapper { text-align: center; padding-right: 0; padding-left: 0; display: block;}
#stage-view.avulsa-lyrics-center .line-pair { text-align: center; }
#stage-view.avulsa-lyrics-center .lyric-line { text-align: center; display: inline-block; width: 100%; }

.stage-element { position: absolute; pointer-events: none; z-index: 10; } 
.stage-postit { background: #fef08a; color: #1e293b; padding: 0.8em; border-radius: 0.1em; box-shadow: 0.1em 0.2em 0.5em rgba(0,0,0,0.3); font-size: 0.8em; font-weight: 600; text-align: center; line-height: 1.3; transform: rotate(-2deg); border-top: 0.8em solid #fde047; min-width: 8em; }
.stage-highlight { border-radius: 4px; pointer-events: none; }
.hl-red { background-color: rgba(239, 68, 68, 0.3); border-left: 4px solid #ef4444; }
.hl-blue { background-color: rgba(59, 130, 246, 0.3); border-left: 4px solid #3b82f6; }
.hl-purple { background-color: rgba(139, 92, 246, 0.3); border-left: 4px solid #8b5cf6; }

/* DIRETOR DE PALCO (Z-INDEX 5000) */
#director-overlay { display: none; position: fixed; inset: 0; background: #0B1120; z-index: 5000; flex-direction: column; padding: 0;}
#director-overlay.active { display: flex; }
.director-topbar { background: #0F172A; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 10;}
.director-body { flex: 1; width: 100%; overflow: auto; display: flex; justify-content: center; padding: 50px 20px;}

.director-canvas { background: #1E293B; padding: 60px 80px; border-radius: 16px; border: 1px solid #334155; position: relative; min-width: 800px; width: max-content; height: max-content; min-height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.director-text-wrapper { display: inline-block; text-align: left; position: relative; color: #F8FAFC; z-index: 1; line-height: 1.45; min-width: max-content;}

.draggable-element { cursor: grab; user-select: none; position: absolute; pointer-events: auto;}
.draggable-element:active { cursor: grabbing; }
.btn-delete-el { position: absolute; top: -12px; right: -12px; background: #ef4444; color: #fff; border: none; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; cursor: pointer; align-items: center; justify-content: center; z-index: 20;}

/* ESTÚDIO */
.workspace { background: var(--bg-card); width: 90vw; max-width: 1200px; height: 90vh; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; }
.workspace-header { padding: 20px 30px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: #0F172A; }
.workspace-header h3 { color: #fff; font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 0;}
.workspace-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; flex: 1; overflow: hidden; }
.editor-col { display: flex; flex-direction: column; overflow-y: auto; padding-right: 10px; }
.preview-col { background: var(--bg-body); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); overflow-y: auto; overflow-x: auto;}
.compact-form-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; width: 100%; }
.compact-form-row .form-group { flex: 1; min-width: 120px; margin-bottom: 0; }
.textarea-group { display: flex; flex-direction: column; flex: 1; min-height: 300px; }

.editor-textarea { flex: 1; width: 100%; resize: none; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); font-family: 'Roboto Mono', monospace; font-size: 15px; line-height: 1.5; outline: none; transition: 0.2s; white-space: pre; overflow-x: auto; }
.editor-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.preview-cifra { font-family: 'Roboto Mono', monospace; font-size: 16px; line-height: 1.45; white-space: pre; padding-bottom: 15px; }
.preview-cifra .chord { color: var(--chord-color); font-weight: bold; }

/* MODAL DE ADICIONAR MÚSICAS NO REPERTÓRIO */
.modal-search { position: relative; margin-bottom: 15px; }
.modal-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.modal-search input { width: 100%; padding: 10px 10px 10px 35px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-body); color: var(--text-main); outline: none; }
.select-songs-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; text-align: left; }
.select-song-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-body); border-radius: 8px; cursor: pointer; border: 1px solid var(--border-color); transition: 0.2s; }
.select-song-row:not(.disabled-row):hover { border-color: var(--primary); }
.select-song-row input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer;}
.select-song-row p { font-size: 12px; color: var(--text-muted); }

/* RESPONSIVO MOBILE */
@media (max-width: 1024px) {
    #login-view { padding:0; align-items:stretch; }
    .auth-shell { min-height:100vh; width:100%; grid-template-columns:1fr; border:0; border-radius:0; }
    .auth-brand-panel { display:none; }
    .auth-form-panel { min-height:100vh; padding:34px 22px 42px; align-items:flex-start; }
    .auth-form-wrap { max-width:520px; margin:auto; }
    .auth-mobile-logo { display:flex; justify-content:center; width:100%; margin:4px auto 30px; }
    .auth-mobile-logo img { width:220px; max-height:86px; object-fit:contain; }
    .auth-panel-heading { text-align:center; }
    .auth-panel-heading h2 { font-size:28px; }
    .auth-two-columns { grid-template-columns:1fr; gap:0; }
    .admin-user-card { align-items:flex-start; flex-direction:column; }
    .admin-user-actions { width:100%; }
    .btn-admin-approve, .btn-admin-block { flex:1; justify-content:center; }

    .btn-diretor { display: none !important; } 
    /* Sidebar Z-INDEX no Mobile ajustado para 1000 */
    .sidebar { position: fixed; left: -320px; width: 280px; height: 100%; z-index: 1000; box-shadow: var(--shadow-md); border-right: none; transition: left 0.3s ease; }
    .sidebar.open { left: 0; }
    .sidebar-header { margin-bottom: 30px; }
    .btn-mobile-close { display: flex; } 
    
    .mobile-header { display: flex; }

    .page-container { padding: 20px; }
    .hero-text { min-width: 100%; } 
    .dashboard-hero { padding: 20px; flex-direction: column; text-align: center; gap: 15px; background: var(--bg-card); border-width: 2px;}
    .hero-search-box { width: 100%; max-width: 100%; margin: 0; }
    .hero-search-box input { width: 100% !important; max-width: 100% !important; min-width: 0;}
    .hero-stats { width: 100%; justify-content: center; gap: 10px; flex-wrap: wrap;}
    .songs-container { grid-template-columns: 1fr; }
    .repertorios-layout, .cat-layout, .config-layout, .workspace-body { grid-template-columns: 1fr; gap: 15px;}
    .rep-detail-col { padding: 20px;}
    .preview-col { display: none; }
    .workspace { width: 100vw; height: 100vh; border-radius: 0; }
    .workspace-body { grid-template-columns: 1fr; overflow-y: auto; padding: 20px;}
    .preview-col { display: block !important; min-height: 400px; margin-top: 20px;}

    .stage-main-layout { margin-top: 15px; padding-top: 50px; } 
    #stage-view.toolbar-hidden .stage-main-layout { margin-top: 15px; }

    .mobile-stage-toggle { display: flex; position: fixed; top: 15px; right: 15px; width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 23, 42, 0.8); color: #fff; border: 1px solid rgba(255,255,255,0.2); z-index: 2020; align-items: center; justify-content: center; font-size: 24px; backdrop-filter: blur(4px);}
    .btn-close-stage-mobile { display: flex; position: fixed; top: 15px; left: 15px; z-index: 2020; background: #ef4444; color: #fff; }
    .stage-toolbar .btn-close-stage { display: none; } 
    
    .stage-toolbar { position: fixed; top: auto; bottom: 0; left: 0; width: 100%; background: var(--bg-sidebar); padding: 20px 20px 40px 20px; border-radius: 24px 24px 0 0; flex-direction: column; transform: translateY(120%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2015; border-bottom: none;}
    .stage-toolbar.open { transform: translateY(0); }
    #stage-view.toolbar-hidden .stage-toolbar { transform: translateY(120%); } 

    .tool-group { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 0; width: 100%; justify-content: space-between; flex-shrink: 0;}
    .tool-group:last-child { border-bottom: none; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .cifra-area-wrapper { justify-content: flex-start; } 
    .cifra-content { padding: 15px 0; border-radius: 0; border: none; margin: 0;}
    .stage-sidebar { position: fixed; top: auto; bottom: 0; left: 0; width: 100%; max-height: 50vh; z-index: 2200; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 25px rgba(0,0,0,0.5); padding: 30px 20px; }
}

/* =========================================================
   CIFRAQUI V2A — PAINEL INICIAL / IDENTIDADE PREMIUM
   A tela de entrada passa a ser a referência visual interna.
   ========================================================= */

[data-theme="dark"] {
    --bg-body: #08101D;
    --bg-sidebar: #0A1424;
    --bg-card: #142137;
    --text-main: #F8FAFC;
    --text-muted: #8FA2BA;
    --text-sidebar: #A6B5C8;
    --border-color: rgba(120, 145, 178, .22);
    --hover-bg: rgba(255,255,255,.055);
    --hover-text: #FFFFFF;
    --shadow-sm: 0 12px 30px rgba(0,0,0,.12);
    --shadow-md: 0 18px 45px rgba(0,0,0,.26);
}

body[data-theme="dark"] {
    background:
        radial-gradient(circle at 72% -10%, rgba(245,158,11,.07), transparent 26%),
        radial-gradient(circle at 28% 110%, rgba(37,99,235,.07), transparent 30%),
        var(--bg-body);
}

.app-container {
    background:
        radial-gradient(circle at 72% -10%, rgba(245,158,11,.055), transparent 28%),
        var(--bg-body);
}

/* SIDEBAR */
.sidebar {
    position: relative;
    padding: 22px 18px 18px;
    background:
        linear-gradient(180deg, rgba(12,25,44,.98) 0%, rgba(7,17,31,.99) 100%);
    border-right: 1px solid rgba(148,163,184,.14);
    box-shadow: 16px 0 60px rgba(0,0,0,.12);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    background: radial-gradient(circle at 50% -25%, rgba(245,158,11,.13), transparent 65%);
    opacity: .72;
}

.sidebar-header,
.btn-nova-musica-side,
.nav-menu,
.sidebar-footer {
    position: relative;
    z-index: 2;
}

.brand {
    min-height: 68px;
    margin-bottom: 7px;
}

.brand-placeholder {
    padding: 5px 8px 3px;
}

.brand-placeholder img {
    max-width: 205px;
    max-height: 62px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.24));
}

.btn-nova-musica-side {
    min-height: 48px;
    border-radius: 13px;
    color: #111827;
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 12px 28px rgba(245,158,11,.18);
    border: 1px solid rgba(255,255,255,.12);
    margin-top: 12px;
    margin-bottom: 26px;
}

.btn-nova-musica-side:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245,158,11,.25);
}

.nav-menu {
    gap: 7px;
}

.nav-item {
    position: relative;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: -.1px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255,255,255,.045);
}

.nav-item.active {
    color: #FBBF24;
    background:
        linear-gradient(90deg, rgba(245,158,11,.15), rgba(245,158,11,.045));
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.10);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #FBBF24;
    box-shadow: 0 0 16px rgba(251,191,36,.45);
}

.sidebar-footer {
    border-top-color: rgba(148,163,184,.12);
}

/* CONTEÚDO PRINCIPAL */
.main-content {
    background:
        radial-gradient(circle at 82% 4%, rgba(245,158,11,.055), transparent 23%),
        radial-gradient(circle at 45% 90%, rgba(30,64,175,.045), transparent 28%);
}

#dashboard-view.page-container {
    max-width: 1260px;
    padding: 42px 46px 60px;
}

/* HERO */
.dashboard-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 228px;
    padding: 38px 42px;
    margin-bottom: 38px;
    gap: 34px;
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.19);
    background:
        linear-gradient(120deg, rgba(18,31,52,.96) 0%, rgba(10,19,34,.96) 58%, rgba(12,21,36,.98) 100%);
    box-shadow:
        0 28px 70px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: .20;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.8) 48%, transparent 88%);
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    top: -210px;
    z-index: -2;
    border-radius: 999px;
    background: rgba(245,158,11,.15);
    filter: blur(16px);
    pointer-events: none;
}

.dashboard-hero-glow {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(18px);
}

.dashboard-glow-one {
    width: 210px;
    height: 210px;
    left: -120px;
    bottom: -140px;
    background: rgba(37,99,235,.10);
}

.dashboard-glow-two {
    width: 150px;
    height: 150px;
    right: 24%;
    top: -120px;
    background: rgba(251,191,36,.055);
}

.hero-text {
    position: relative;
    z-index: 2;
    min-width: min(480px, 100%);
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #FBBF24;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2.1px;
}

.dashboard-eyebrow span {
    display: block;
    width: 34px;
    height: 2px;
    border-radius: 3px;
    background: #FBBF24;
    box-shadow: 0 0 16px rgba(251,191,36,.45);
}

.hero-text h1 {
    margin-bottom: 8px;
    font-size: clamp(29px, 3vw, 39px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    font-weight: 900;
}

.hero-text p {
    max-width: 610px;
    margin-bottom: 24px;
    color: #9FB0C5;
    font-size: 15px;
    line-height: 1.6;
}

.hero-search-box {
    max-width: 630px;
}

.hero-search-box input {
    min-height: 54px;
    padding: 14px 104px 14px 49px;
    border-radius: 15px;
    border: 1px solid rgba(245,158,11,.58);
    background: rgba(5,13,25,.62);
    color: #F8FAFC;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 10px 28px rgba(0,0,0,.11);
    backdrop-filter: blur(7px);
}

.hero-search-box input::placeholder {
    color: #6F829A;
}

.hero-search-box input:focus {
    border-color: #FBBF24;
    box-shadow:
        0 0 0 4px rgba(245,158,11,.10),
        0 12px 32px rgba(0,0,0,.16);
}

.hero-search-box i {
    left: 17px;
    color: #FBBF24;
}

.search-shortcut {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 8px;
    border-radius: 7px;
    border: 1px solid rgba(148,163,184,.15);
    background: rgba(255,255,255,.035);
    color: #73869E;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    pointer-events: none;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 278px;
}

.stat-box {
    min-width: 130px;
    min-height: 102px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border-radius: 17px;
    border: 1px solid rgba(148,163,184,.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 14px 32px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #FBBF24;
    background: rgba(245,158,11,.09);
    border: 1px solid rgba(245,158,11,.13);
}

.stat-icon i {
    font-size: 21px;
}

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

.stat-num {
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: .8px;
    color: #8799AF;
}

/* ACERVO */
.acervo-header-row {
    margin-bottom: 22px;
    gap: 20px;
}

.acervo-title-block {
    min-width: 0;
}

.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: #F59E0B;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
}

.acervo-title-block h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 27px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1px;
}

.acervo-title-block p {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.view-toggles {
    padding: 4px;
    gap: 3px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.15);
    background: rgba(20,33,55,.70);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.btn-view {
    width: 38px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.btn-view.active {
    background: rgba(245,158,11,.13);
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.10);
}

.songs-container {
    gap: 17px;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.song-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 140px;
    padding: 20px 20px 18px;
    border-radius: 17px;
    border: 1px solid rgba(148,163,184,.16);
    background:
        linear-gradient(145deg, rgba(28,45,72,.96) 0%, rgba(19,32,53,.98) 100%);
    box-shadow:
        0 11px 28px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.025);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.song-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 64%;
    height: 2px;
    opacity: .55;
    background: linear-gradient(90deg, #F59E0B, rgba(245,158,11,0));
    transition: width .22s ease, opacity .22s ease;
}

.song-card::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    right: -70px;
    bottom: -70px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(245,158,11,.035);
    filter: blur(8px);
    transition: transform .3s ease, background .3s ease;
}

.song-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,158,11,.48);
    background:
        linear-gradient(145deg, rgba(31,49,78,.98) 0%, rgba(18,31,51,.99) 100%);
    box-shadow:
        0 20px 45px rgba(0,0,0,.22),
        0 0 0 1px rgba(245,158,11,.035) inset;
}

.song-card:hover::before {
    width: 88%;
    opacity: .95;
}

.song-card:hover::after {
    transform: scale(1.35);
    background: rgba(245,158,11,.065);
}

.song-header {
    gap: 14px;
}

.song-header h4 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.25px;
}

.song-artist {
    margin-bottom: 14px;
    color: #8EA3BB;
    font-size: 13px;
}

.card-actions {
    opacity: .78;
    transition: opacity .2s ease;
}

.song-card:hover .card-actions {
    opacity: 1;
}

.btn-action {
    width: 31px;
    height: 31px;
    padding: 0;
    border-radius: 9px;
    color: #91A5BE;
    background: rgba(5,13,25,.50);
    border-color: rgba(148,163,184,.15);
}

.btn-action:hover {
    background: rgba(7,16,29,.88);
}

.badge-tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.08);
    font-size: 9px;
    letter-spacing: .25px;
}

.dashboard-empty-state {
    margin-top: 16px;
    padding: 68px 24px;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(148,163,184,.20);
    background: rgba(20,33,55,.42);
    color: var(--text-muted);
}

.empty-icon-wrap {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: rgba(245,158,11,.09);
    color: #FBBF24;
    border: 1px solid rgba(245,158,11,.12);
}

.empty-icon-wrap i {
    font-size: 28px;
}

.dashboard-empty-state h3 {
    margin: 0 0 7px;
    color: var(--text-main);
    font-size: 19px;
}

.dashboard-empty-state p {
    margin: 0 0 20px;
    font-size: 13px;
}

.empty-cta {
    margin: 0 auto;
}

/* LISTA mantém leitura compacta sem perder identidade */
.songs-container.list-view .song-card {
    min-height: 64px;
    padding: 13px 16px;
    border-radius: 13px;
}

.songs-container.list-view .song-card::before {
    width: 3px;
    height: 70%;
    top: 15%;
    background: #F59E0B;
}

/* Light mode continua funcional, mas sem a profundidade excessiva do dark */
body[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    box-shadow: 12px 0 36px rgba(15,23,42,.05);
}

body[data-theme="light"] .dashboard-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9ED 100%);
    box-shadow: 0 20px 55px rgba(15,23,42,.08);
}

body[data-theme="light"] .hero-text p,
body[data-theme="light"] .song-artist {
    color: #64748B;
}

body[data-theme="light"] .hero-search-box input {
    background: rgba(255,255,255,.88);
    color: #1E293B;
}

body[data-theme="light"] .stat-box,
body[data-theme="light"] .view-toggles {
    background: rgba(255,255,255,.84);
}

body[data-theme="light"] .song-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
}

@media (max-width: 1024px) {
    #dashboard-view.page-container {
        padding: 28px 20px 46px;
    }

    .dashboard-hero {
        padding: 28px 24px;
        text-align: left;
        align-items: stretch;
        background:
            linear-gradient(145deg, rgba(18,31,52,.98), rgba(10,19,34,.99));
        border-width: 1px;
    }

    .dashboard-eyebrow {
        justify-content: flex-start;
    }

    .hero-text {
        min-width: 0;
        width: 100%;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-stats {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

    .stat-box {
        min-width: 0;
    }

    .acervo-header-row {
        align-items: flex-end;
    }
}

@media (max-width: 640px) {
    #dashboard-view.page-container {
        padding: 22px 15px 40px;
    }

    .dashboard-hero {
        min-height: 0;
        padding: 24px 18px;
        border-radius: 20px;
        gap: 22px;
    }

    .dashboard-eyebrow {
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .hero-text h1 {
        font-size: 29px;
    }

    .hero-search-box input {
        min-height: 52px;
        padding-right: 48px;
    }

    .search-shortcut {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-box {
        min-height: 82px;
        padding: 12px;
    }

    .stat-icon {
        display: none;
    }

    .stat-num {
        font-size: 24px;
    }

    .acervo-header-row {
        align-items: center;
    }

    .acervo-title-block p {
        display: none;
    }

    .songs-container {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .song-card {
        min-height: 126px;
    }
}


/* V2A.1 HOTFIX — isolamento correto entre tema escuro e claro */
body[data-theme="dark"] .sidebar {
    background:
        linear-gradient(180deg, rgba(12,25,44,.98) 0%, rgba(7,17,31,.99) 100%);
    color: var(--text-sidebar);
}

body[data-theme="dark"] .dashboard-hero {
    background:
        linear-gradient(120deg, rgba(18,31,52,.96) 0%, rgba(10,19,34,.96) 58%, rgba(12,21,36,.98) 100%);
    color: var(--text-main);
}

body[data-theme="dark"] .song-card {
    background:
        linear-gradient(145deg, rgba(28,45,72,.96) 0%, rgba(19,32,53,.98) 100%);
    color: var(--text-main);
}

body[data-theme="dark"] .stat-box,
body[data-theme="dark"] .view-toggles {
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

body[data-theme="dark"] .hero-search-box input {
    background: rgba(5,13,25,.62);
    color: #F8FAFC;
}

body[data-theme="dark"] .hero-text p,
body[data-theme="dark"] .song-artist {
    color: #9FB0C5;
}


/* V2A.2 HOTFIX — centralização do bloco principal no Painel Inicial */
body[data-theme="dark"] .main-content,
body[data-theme="light"] .main-content {
    display: block;
}

#dashboard-view.page-container {
    width: min(1180px, calc(100% - 72px));
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 1280px) {
    #dashboard-view.page-container {
        width: min(1120px, calc(100% - 52px));
    }
}

@media (max-width: 1024px) {
    #dashboard-view.page-container {
        width: calc(100% - 32px);
        max-width: none;
        padding-top: 28px !important;
        padding-bottom: 46px !important;
    }
}

@media (max-width: 640px) {
    #dashboard-view.page-container {
        width: calc(100% - 22px);
        padding-top: 22px !important;
        padding-bottom: 40px !important;
    }
}


/* =========================================================
   CIFRAQUI V2B — PAINEL INICIAL "OPÇÃO B"
   Lista profissional + grade opcional + painel lateral.
   ========================================================= */

#dashboard-view.dashboard-option-b {
    width: min(1380px, calc(100% - 54px));
    max-width: 1380px;
    margin: 0 auto !important;
    padding: 28px 0 56px !important;
    overflow: visible;
}

.dashboard-option-b .dashboard-hero-b {
    min-height: 198px;
    padding: 30px 34px;
    margin-bottom: 18px;
    border-radius: 20px;
}

.dashboard-option-b .dashboard-hero-b .hero-text h1 {
    font-size: clamp(29px, 2.6vw, 38px);
}

.dashboard-option-b .dashboard-hero-b .hero-text p {
    margin-bottom: 18px;
}

.dashboard-option-b .dashboard-hero-b .hero-search-box {
    max-width: 720px;
}

.dashboard-option-b .dashboard-hero-b .hero-stats {
    min-width: 280px;
}

/* Duas colunas do painel B */
.dashboard-b-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.library-panel-b,
.rail-card {
    border: 1px solid rgba(148,163,184,.15);
    background:
        linear-gradient(180deg, rgba(15,27,46,.90), rgba(9,19,33,.94));
    box-shadow:
        0 18px 45px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.library-panel-b {
    overflow: hidden;
    border-radius: 20px;
}

.library-toolbar-b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
}

.library-heading-b {
    min-width: 0;
}

.library-heading-b .section-kicker {
    margin-bottom: 6px;
}

.library-heading-b h2 {
    margin: 0;
    color: #F8FAFC;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.8px;
}

.library-heading-b p {
    margin: 6px 0 0;
    color: #8193AA;
    font-size: 12px;
    line-height: 1.5;
}

.library-actions-b {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.view-toggles-b {
    border-radius: 11px;
    overflow: hidden;
    background: rgba(4,12,23,.48);
}

.view-toggles-b .btn-view {
    width: auto;
    min-width: 76px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
}

.view-toggles-b .btn-view i {
    font-size: 17px;
}

.view-toggles-b .btn-view.active {
    color: #FBBF24;
    background: rgba(245,158,11,.12);
}

.btn-add-dashboard {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: 0 10px 24px rgba(245,158,11,.14);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: .2s ease;
}

.btn-add-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(245,158,11,.22);
}

.library-filterbar-b {
    min-height: 63px;
    padding: 11px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148,163,184,.09);
    border-bottom: 1px solid rgba(148,163,184,.10);
    background: rgba(4,12,23,.22);
}

.dashboard-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-filter-chip {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 10px;
    color: #91A3B8;
    background: rgba(16,30,50,.66);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: .18s ease;
}

.dashboard-filter-chip span {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    font-size: 9px;
}

.dashboard-filter-chip:hover {
    color: #DDE6F1;
    border-color: rgba(148,163,184,.28);
}

.dashboard-filter-chip.active {
    color: #FBBF24;
    border-color: rgba(245,158,11,.45);
    background: rgba(245,158,11,.10);
}

.dashboard-filter-chip.liturgia.active {
    color: #34D399;
    border-color: rgba(16,185,129,.32);
    background: rgba(16,185,129,.09);
}

.dashboard-filter-chip.favorites.active {
    color: #FBBF24;
}

.dashboard-sort-wrap {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px 0 10px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 10px;
    background: rgba(4,12,23,.48);
    color: #7F93AB;
    flex-shrink: 0;
}

.dashboard-sort-wrap select {
    border: 0;
    outline: 0;
    color: #AFC0D3;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-sort-wrap select option {
    color: #E2E8F0;
    background: #0F1B2E;
}

/* Cabeçalho da tabela */
.songs-table-head {
    grid-template-columns: 34px minmax(190px, 1.5fr) minmax(135px, .9fr) minmax(190px, 1.15fr) 118px;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: #7890A9;
    border-bottom: 1px solid rgba(148,163,184,.10);
    background: rgba(15,30,50,.45);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .65px;
    text-transform: uppercase;
}

/* LISTA */
.dashboard-songs-b.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-songs-b.list-view .song-row-b {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(190px, 1.5fr) minmax(135px, .9fr) minmax(190px, 1.15fr) 118px;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(148,163,184,.09);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.dashboard-songs-b.list-view .song-row-b::before,
.dashboard-songs-b.list-view .song-row-b::after {
    display: none;
}

.dashboard-songs-b.list-view .song-row-b:hover {
    transform: none;
    background: rgba(31,50,80,.38);
    border-color: rgba(148,163,184,.10);
    box-shadow: inset 3px 0 0 rgba(245,158,11,.75);
}

.song-favorite-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #60758D;
    background: transparent;
    cursor: pointer;
    transition: .18s ease;
}

.song-favorite-btn:hover {
    color: #FBBF24;
    background: rgba(245,158,11,.08);
}

.song-favorite-btn.active {
    color: #FBBF24;
}

.song-main-b {
    min-width: 0;
}

.song-main-b h4,
.dashboard-songs-b.list-view .song-row-b h4 {
    margin: 0;
    overflow: hidden;
    color: #F8FAFC;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-songs-b.list-view .song-row-b .song-artist {
    margin: 0;
    overflow: hidden;
    color: #89A0B9;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-songs-b.list-view .song-row-b .tags-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.badge-tag.category,
.badge-tag.tag,
.badge-tag.neutral {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-tag.category {
    color: #34D399;
    border-color: rgba(16,185,129,.10);
    background: rgba(16,185,129,.12);
}

.badge-tag.neutral {
    color: #A3B2C5;
    border-color: rgba(148,163,184,.10);
    background: rgba(148,163,184,.10);
}

.dashboard-row-actions {
    justify-content: flex-end;
    gap: 5px;
}

.dashboard-row-actions .btn-action {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}

.dashboard-play-btn {
    color: #E2E8F0;
}

/* GRADE */
.dashboard-songs-b.grid-view {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-songs-b.grid-view .song-grid-b {
    position: relative;
    min-height: 150px;
    padding: 14px 15px 15px;
    border-radius: 15px;
}

.song-grid-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.song-grid-content {
    padding: 17px 4px 4px;
}

.song-grid-content h4 {
    margin: 0 0 6px;
    color: #F8FAFC;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 850;
}

.song-grid-content .song-artist {
    margin: 0 0 14px;
}

.song-grid-play {
    position: absolute;
    right: 15px;
    bottom: 14px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 999px;
    color: #FBBF24;
    background: rgba(5,13,25,.74);
    cursor: pointer;
}

/* paginação */
.dashboard-pagination {
    min-height: 60px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(148,163,184,.10);
    color: #8193AA;
}

.pagination-summary {
    font-size: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-page,
.pagination-nav {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 8px;
    color: #8FA2B9;
    background: rgba(8,18,31,.62);
    cursor: pointer;
}

.pagination-page.active {
    color: #FBBF24;
    border-color: rgba(245,158,11,.55);
    background: rgba(245,158,11,.08);
}

.pagination-nav:disabled {
    opacity: .35;
    cursor: default;
}

.pagination-ellipsis {
    color: #586E86;
    font-size: 11px;
}

/* Estados vazios */
.dashboard-empty-state-b,
.dashboard-no-results {
    margin: 20px;
}

.dashboard-no-results {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: #8296AD;
}

.dashboard-no-results i {
    margin-bottom: 7px;
    color: #FBBF24;
    font-size: 28px;
}

.dashboard-no-results strong {
    color: #E5EDF6;
    font-size: 14px;
}

.dashboard-no-results span {
    font-size: 11px;
}

/* Right rail */
.dashboard-right-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rail-card {
    overflow: hidden;
    border-radius: 17px;
}

.rail-card-header {
    min-height: 53px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

.rail-card-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rail-card-header > div > i {
    color: #FBBF24;
    font-size: 18px;
}

.rail-card:nth-child(2) .rail-card-header > div > i {
    color: #FB7185;
}

.rail-card-header h3 {
    margin: 0;
    color: #F8FAFC;
    font-size: 14px;
    font-weight: 850;
}

.rail-card-header button {
    padding: 5px 0;
    border: 0;
    color: #FBBF24;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.rail-list {
    padding: 6px 10px 10px;
}

.rail-song-item,
.rail-repertoire-item {
    width: 100%;
    min-height: 54px;
    padding: 8px 7px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-bottom: 1px solid rgba(148,163,184,.075);
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.rail-song-item:last-child,
.rail-repertoire-item:last-child {
    border-bottom: 0;
}

.rail-song-item:hover,
.rail-repertoire-item:hover {
    background: rgba(255,255,255,.025);
}

.rail-song-icon,
.rail-repertoire-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #9FB3CA;
    background: rgba(54,77,108,.30);
}

.rail-song-icon.favorite {
    color: #FBBF24;
}

.rail-repertoire-icon {
    color: #C084FC;
    background: rgba(139,92,246,.10);
}

.rail-song-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rail-song-copy strong {
    overflow: hidden;
    color: #EAF1F8;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-song-copy small {
    overflow: hidden;
    color: #7690AA;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-mini-badge {
    max-width: 73px;
    padding: 4px 6px;
    overflow: hidden;
    border-radius: 999px;
    color: #34D399;
    background: rgba(16,185,129,.12);
    font-size: 7.5px;
    font-weight: 800;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-remove-favorite {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #688099;
    background: transparent;
    cursor: pointer;
}

.rail-remove-favorite:hover {
    color: #FB7185;
    background: rgba(251,113,133,.08);
}

.rail-repertoire-item > i:last-child {
    color: #5F738A;
}

.rail-empty {
    min-height: 95px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #6F859D;
    text-align: center;
    font-size: 9.5px;
    line-height: 1.45;
}

.rail-empty i {
    color: #526B86;
    font-size: 22px;
}

/* Tema claro */
body[data-theme="light"] .library-panel-b,
body[data-theme="light"] .rail-card {
    border-color: rgba(100,116,139,.18);
    background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
    box-shadow: 0 15px 38px rgba(15,23,42,.06);
}

body[data-theme="light"] .library-heading-b h2,
body[data-theme="light"] .rail-card-header h3,
body[data-theme="light"] .song-main-b h4,
body[data-theme="light"] .dashboard-songs-b.grid-view .song-grid-content h4,
body[data-theme="light"] .rail-song-copy strong {
    color: #172033;
}

body[data-theme="light"] .library-filterbar-b,
body[data-theme="light"] .songs-table-head {
    background: #F8FAFC;
}

body[data-theme="light"] .dashboard-songs-b.list-view .song-row-b:hover {
    background: #FFF8E8;
}

body[data-theme="light"] .dashboard-sort-wrap,
body[data-theme="light"] .view-toggles-b,
body[data-theme="light"] .dashboard-filter-chip {
    background: #FFFFFF;
}

body[data-theme="light"] .dashboard-sort-wrap select {
    color: #475569;
}

/* Responsivo */
@media (max-width: 1260px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 36px);
    }

    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 275px;
        gap: 14px;
    }

    .songs-table-head,
    .dashboard-songs-b.list-view .song-row-b {
        grid-template-columns: 32px minmax(180px, 1.4fr) minmax(120px, .8fr) minmax(145px, 1fr) 110px;
    }
}

@media (max-width: 1040px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 28px);
        padding-top: 20px !important;
    }

    .dashboard-b-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-right-rail {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 820px) {
    .library-toolbar-b,
    .library-filterbar-b {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-actions-b {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-sort-wrap {
        align-self: flex-end;
    }

    .songs-table-head {
        display: none !important;
    }

    .dashboard-songs-b.list-view {
        padding: 12px;
        gap: 8px;
    }

    .dashboard-songs-b.list-view .song-row-b {
        min-height: 76px;
        grid-template-columns: 32px minmax(0, 1fr) 96px;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(148,163,184,.12);
        border-radius: 12px;
        background: rgba(19,34,56,.74);
    }

    .dashboard-songs-b.list-view .song-row-b .song-artist,
    .dashboard-songs-b.list-view .song-row-b .tags-display {
        display: none;
    }

    .dashboard-row-actions {
        grid-column: 3;
    }

    .dashboard-songs-b.grid-view {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .dashboard-right-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 20px);
        padding-bottom: 40px !important;
    }

    .dashboard-option-b .dashboard-hero-b {
        padding: 23px 17px;
    }

    .library-panel-b {
        border-radius: 16px;
    }

    .library-toolbar-b {
        padding: 18px 15px 14px;
    }

    .library-filterbar-b {
        padding: 10px 15px 12px;
    }

    .library-actions-b {
        align-items: stretch;
        flex-direction: column;
    }

    .view-toggles-b,
    .btn-add-dashboard {
        width: 100%;
    }

    .view-toggles-b .btn-view {
        flex: 1;
    }

    .dashboard-filter-chips {
        gap: 6px;
    }

    .dashboard-filter-chip {
        padding: 0 9px;
    }

    .dashboard-sort-wrap {
        width: 100%;
        justify-content: flex-end;
    }

    .dashboard-songs-b.grid-view {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .dashboard-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   CIFRAQUI V2B.1 — HOTFIX FULL WIDTH DESKTOP
   Objetivo: o painel inicial deve ocupar praticamente toda a largura
   útil do notebook/desktop, deixando apenas respiros laterais discretos.
   ========================================================= */

#dashboard-view.dashboard-option-b {
    width: calc(100% - 22px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 18px 0 56px !important;
}

.dashboard-option-b .dashboard-hero-b {
    margin-bottom: 18px;
}

.dashboard-b-grid {
    grid-template-columns: minmax(0, 1fr) 292px !important;
    gap: 16px !important;
}

/* Mantém o painel cheio em telas de notebook e desktop */
@media (min-width: 1281px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 18px) !important;
    }

    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }
}

@media (max-width: 1260px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 16px) !important;
    }

    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 282px !important;
        gap: 14px !important;
    }
}

@media (max-width: 1040px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 28px) !important;
    }

    .dashboard-b-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 560px) {
    #dashboard-view.dashboard-option-b {
        width: calc(100% - 20px) !important;
    }
}


/* =========================================================
   CIFRAQUI V2B.3 — AJUSTES GERAIS DE REFINO
   - favorita amarela/preenchida
   - botão play visível
   - lista alinhada por colunas
   - sidebar esquerda um pouco maior
   - coluna direita um pouco maior
   - grade com 4 cards no desktop
   ========================================================= */

/* Sidebar esquerda um pouco maior no desktop */
.sidebar {
    width: 286px !important;
    padding: 22px 20px 18px !important;
}

.brand-placeholder img {
    max-width: 220px;
}

.btn-nova-musica-side {
    min-height: 50px;
}

.nav-item {
    min-height: 48px;
    padding: 12px 15px;
}

/* Aproveitamento horizontal geral */
#dashboard-view.dashboard-option-b {
    width: calc(100% - 14px) !important;
}

.dashboard-b-grid {
    grid-template-columns: minmax(0, 1fr) 336px !important;
    gap: 18px !important;
}

/* Coluna direita ligeiramente maior e mais confortável */
.dashboard-right-rail {
    gap: 16px;
}

.rail-card {
    border-radius: 18px;
}

.rail-card-header {
    min-height: 56px;
    padding: 0 16px;
}

.rail-card-header h3 {
    font-size: 16px;
}

.rail-card-header button {
    font-size: 10px;
}

.rail-list {
    padding: 8px 12px 12px;
}

.rail-song-item,
.rail-repertoire-item {
    min-height: 58px;
    padding: 9px 8px;
}

.rail-song-copy strong {
    font-size: 11.5px;
}

.rail-song-copy small {
    font-size: 9.5px;
}

.rail-mini-badge {
    max-width: 84px;
    font-size: 8px;
}

.rail-empty {
    min-height: 108px;
    font-size: 10px;
}

/* Lista: cabeçalho e linhas com o mesmo grid */
.songs-table-head,
.dashboard-songs-b.list-view .song-row-b {
    grid-template-columns: 34px minmax(260px, 1.7fr) minmax(190px, 1fr) minmax(190px, 1fr) 116px !important;
}

.songs-table-head {
    padding: 12px 18px;
}

.dashboard-songs-b.list-view .song-row-b {
    min-height: 60px;
    padding: 8px 18px;
    text-align: left !important;
}

.dashboard-songs-b.list-view .song-row-b > * {
    justify-self: start;
    align-self: center;
    text-align: left !important;
}

.dashboard-songs-b.list-view .song-row-b .song-favorite-btn {
    justify-self: center;
}

.dashboard-songs-b.list-view .song-row-b .song-main-b,
.dashboard-songs-b.list-view .song-row-b .song-artist,
.dashboard-songs-b.list-view .song-row-b .tags-display {
    width: 100%;
    min-width: 0;
}

.dashboard-songs-b.list-view .song-row-b .song-main-b h4,
.dashboard-songs-b.list-view .song-row-b h4 {
    text-align: left !important;
    margin: 0;
}

.dashboard-songs-b.list-view .song-row-b .song-artist {
    display: block;
    text-align: left !important;
}

.dashboard-songs-b.list-view .song-row-b .tags-display {
    justify-content: flex-start;
}

.dashboard-row-actions {
    justify-self: end !important;
    width: 100%;
    justify-content: flex-end;
}

/* Favoritos visíveis */
.song-favorite-btn {
    border: 0;
}

.song-favorite-btn i {
    font-size: 16px;
    line-height: 1;
}

.song-favorite-btn.active {
    color: #FBBF24 !important;
    background: rgba(245,158,11,.10) !important;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.14);
}

.song-favorite-btn.active i {
    color: #FBBF24 !important;
}

.song-favorite-btn:hover {
    color: #FBBF24 !important;
}

/* Botão de abrir/play */
.dashboard-play-btn,
.song-grid-play {
    border-color: rgba(245,158,11,.28);
}

.dashboard-play-btn i,
.song-grid-play i {
    display: block;
    color: #FBBF24 !important;
    font-size: 15px;
    line-height: 1;
}

.dashboard-play-btn:hover,
.song-grid-play:hover {
    background: rgba(245,158,11,.10);
    border-color: rgba(245,158,11,.62);
}

/* Grade com 4 cards por linha no desktop */
.dashboard-songs-b.grid-view {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 14px !important;
}

.dashboard-songs-b.grid-view .song-grid-b {
    min-height: 136px;
    padding: 12px 13px 13px;
    border-radius: 14px;
}

.song-grid-content {
    padding: 13px 2px 2px;
}

.song-grid-content h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.song-grid-content .song-artist {
    margin-bottom: 11px;
    font-size: 10px;
}

.song-grid-play {
    right: 13px;
    bottom: 13px;
    width: 34px;
    height: 34px;
}

/* Ajustes de largura por breakpoint */
@media (min-width: 1440px) {
    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 348px !important;
    }
}

@media (max-width: 1360px) {
    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 320px !important;
    }

    .songs-table-head,
    .dashboard-songs-b.list-view .song-row-b {
        grid-template-columns: 34px minmax(220px, 1.5fr) minmax(170px, .95fr) minmax(170px, .95fr) 112px !important;
    }

    .dashboard-songs-b.grid-view {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1260px) {
    .sidebar {
        width: 276px !important;
    }

    #dashboard-view.dashboard-option-b {
        width: calc(100% - 12px) !important;
    }

    .dashboard-b-grid {
        grid-template-columns: minmax(0, 1fr) 302px !important;
        gap: 14px !important;
    }
}

@media (max-width: 1040px) {
    .dashboard-b-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-right-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .sidebar {
        width: 280px !important;
    }

    .dashboard-right-rail {
        grid-template-columns: 1fr;
    }

    .dashboard-songs-b.grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dashboard-songs-b.list-view .song-row-b {
        grid-template-columns: 32px minmax(0,1fr) 96px !important;
    }
}

@media (max-width: 560px) {
    .dashboard-songs-b.grid-view {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   CIFRAQUI V2B.3.1 — HOTFIX LISTA
   Corrige o desaparecimento de título/artista/categoria
   e fixa cada bloco explicitamente na sua coluna.
   ========================================================= */

.dashboard-songs-b.list-view .song-row-b {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 38px minmax(320px, 2fr) minmax(210px, 1.05fr) minmax(220px, 1.1fr) 120px !important;
    align-items: center !important;
    column-gap: 16px !important;
}

.songs-table-head {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 38px minmax(320px, 2fr) minmax(210px, 1.05fr) minmax(220px, 1.1fr) 120px !important;
    align-items: center !important;
    column-gap: 16px !important;
}

.dashboard-songs-b.list-view .song-row-b > .song-favorite-btn { 
    grid-column: 1 !important; 
}

.dashboard-songs-b.list-view .song-row-b > .song-main-b {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}

.dashboard-songs-b.list-view .song-row-b > .song-main-b h4 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #F8FAFC !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dashboard-songs-b.list-view .song-row-b > .song-artist {
    grid-column: 3 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #89A0B9 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dashboard-songs-b.list-view .song-row-b > .tags-display {
    grid-column: 4 !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
}

.dashboard-songs-b.list-view .song-row-b > .card-actions,
.dashboard-songs-b.list-view .song-row-b > .dashboard-row-actions {
    grid-column: 5 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
}

.songs-table-head > div:nth-child(2) { grid-column: 2 !important; }
.songs-table-head > div:nth-child(3) { grid-column: 3 !important; }
.songs-table-head > div:nth-child(4) { grid-column: 4 !important; }
.songs-table-head > div:nth-child(5) { grid-column: 5 !important; text-align: right !important; }

@media (max-width: 1360px) {
    .dashboard-songs-b.list-view .song-row-b,
    .songs-table-head {
        grid-template-columns: 36px minmax(260px, 1.8fr) minmax(180px, 1fr) minmax(190px, 1fr) 116px !important;
    }
}


/* =========================================================
   CIFRAQUI V2B.3.2 — HOTFIX DEFINITIVO DA LISTA
   ========================================================= */

#songs-container.dashboard-songs-b.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b {
    display: grid !important;
    width: 100% !important;
    grid-template-columns:
        38px
        minmax(280px, 2fr)
        minmax(180px, 1fr)
        minmax(200px, 1.05fr)
        120px !important;
    align-items: center !important;
    column-gap: 16px !important;
    min-height: 60px !important;
    padding: 8px 18px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    justify-content: initial !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .song-favorite-btn {
    grid-column: 1 !important;
    justify-self: center !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .song-main-b {
    grid-column: 2 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .song-main-b > h4 {
    display: block !important;
    margin: 0 !important;
    color: #F8FAFC !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > p.song-artist {
    grid-column: 3 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #89A0B9 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 10.5px !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .tags-display {
    grid-column: 4 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
}

#songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .dashboard-row-actions {
    grid-column: 5 !important;
    display: flex !important;
    width: auto !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
}

@media (max-width: 1360px) {
    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b,
    .songs-table-head {
        grid-template-columns:
            36px
            minmax(230px, 1.75fr)
            minmax(160px, .95fr)
            minmax(180px, 1fr)
            116px !important;
    }
}

@media (max-width: 820px) {
    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b {
        grid-template-columns: 32px minmax(0, 1fr) 96px !important;
        min-height: 76px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .song-main-b {
        grid-column: 2 !important;
    }

    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > p.song-artist,
    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .tags-display {
        display: none !important;
    }

    #songs-container.dashboard-songs-b.list-view > .song-card.song-row-b > .dashboard-row-actions {
        grid-column: 3 !important;
    }
}


/* =========================================================
   CIFRAQUI V2C — PADRONIZAÇÃO VISUAL INTERNA
   Repertórios, Categorias/Tags, Configurações e Estúdio
   ========================================================= */

.internal-page {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 28px 0 56px !important;
    overflow: visible !important;
}

.internal-page-header {
    min-height: 104px;
    padding: 22px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% -30%, rgba(245,158,11,.12), transparent 30%),
        linear-gradient(120deg, rgba(17,31,52,.96), rgba(8,18,32,.97));
    box-shadow: 0 18px 44px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.025);
}

.internal-page-title h2 {
    margin: 0;
    color: #F8FAFC;
    font-size: 29px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1px;
}

.internal-page-title p {
    margin: 7px 0 0;
    max-width: 680px;
    color: #8EA2B9;
    font-size: 13px;
    line-height: 1.55;
}

.internal-page-cta {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 11px;
    color: #111827;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    font-size: 12px;
    font-weight: 850;
}

.mini-kicker {
    display: block;
    margin-bottom: 5px;
    color: #F59E0B;
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.section-card-head {
    min-height: 62px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-card-head h3 {
    margin: 0;
    color: #F8FAFC;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.35px;
}

.section-card-head p {
    margin: 6px 0 0;
    color: #7F94AC;
    font-size: 11px;
    line-height: 1.45;
}

.section-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #FBBF24;
    background: rgba(245,158,11,.09);
    border: 1px solid rgba(245,158,11,.12);
    font-size: 20px;
}

.internal-empty-state,
.rep-select-premium {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    color: #7790A8;
}

.internal-empty-state i {
    margin-bottom: 6px;
    color: #607A95;
    font-size: 32px;
}

.internal-empty-state strong,
.rep-select-premium h3 {
    color: #E8EEF6;
    font-size: 15px;
}

.internal-empty-state span,
.rep-select-premium p {
    max-width: 330px;
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}

.internal-empty-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 7px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #FBBF24;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.11);
    font-size: 24px;
}

/* REPERTÓRIOS */
.repertorios-layout-premium {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 2fr);
    gap: 18px;
    margin-top: 0;
}

.repertorios-layout-premium .rep-list-col,
.repertorios-layout-premium .rep-detail-col {
    min-height: 610px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16,29,49,.92), rgba(8,18,31,.96));
    box-shadow: 0 16px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.02);
}

.repertorios-layout-premium .rep-list-col {
    padding: 22px;
}

.repertorios-layout-premium .rep-detail-col {
    padding: 24px;
}

.repertorios-lista-premium {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repertorios-layout-premium .rep-item {
    min-height: 68px;
    padding: 13px 14px;
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 12px;
    background: rgba(19,35,58,.62);
}

.repertorios-layout-premium .rep-item:hover {
    border-color: rgba(245,158,11,.32);
    background: rgba(24,42,68,.76);
}

.repertorios-layout-premium .rep-item.active {
    border-color: rgba(245,158,11,.55);
    background: linear-gradient(90deg, rgba(245,158,11,.10), rgba(20,38,62,.70));
    box-shadow: inset 3px 0 0 #F59E0B;
}

.repertorios-layout-premium .rep-item h4 {
    margin: 0 0 4px;
    color: #F8FAFC;
    font-size: 13px;
    font-weight: 800;
}

.repertorios-layout-premium .rep-item p {
    color: #7891AB;
    font-size: 10px;
}

.rep-detail-header {
    min-height: 78px;
    margin-bottom: 16px;
    padding-bottom: 17px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

.rep-detail-title {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.75px;
}

.rep-detail-meta {
    padding: 7px 10px;
    border-radius: 9px;
    color: #9DB0C5;
    background: rgba(148,163,184,.06);
    border: 1px solid rgba(148,163,184,.10);
    font-size: 10px;
}

.rep-actionbar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-show-primary,
.btn-show-secondary {
    min-height: 39px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.btn-show-primary {
    color: #052E21;
    border: 1px solid rgba(52,211,153,.18);
    background: linear-gradient(135deg, #34D399, #10B981);
}

.btn-show-secondary {
    color: #AFC0D3;
    border: 1px solid rgba(148,163,184,.14);
    background: rgba(8,18,31,.62);
}

.btn-show-secondary:hover {
    color: #FBBF24;
    border-color: rgba(245,158,11,.34);
}

.rep-songs-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px;
}

.rep-songs-heading h3 {
    margin: 0;
    color: #EAF0F7;
    font-size: 15px;
}

.rep-songs-heading > span {
    color: #647B95;
    font-size: 9px;
}

.rep-musicas-list-premium {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-musicas-list-premium .rep-song-item {
    min-height: 58px;
    margin: 0;
    padding: 10px 12px;
    border-color: rgba(148,163,184,.10);
    border-radius: 11px;
    background: rgba(18,34,57,.64);
}

.rep-musicas-list-premium .rep-song-item:hover {
    border-color: rgba(245,158,11,.34);
    background: rgba(26,46,73,.72);
}

.rep-musicas-list-premium .rep-song-item h5 {
    font-size: 12px;
}

/* CATEGORIAS E TAGS */
.cat-layout-premium {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cat-layout-premium .cat-card {
    min-height: 610px;
    padding: 24px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16,29,49,.92), rgba(8,18,31,.96));
    box-shadow: 0 16px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.02);
}

.cat-input-group {
    gap: 8px;
    margin-bottom: 17px;
}

.cat-input-group input,
.premium-form-group input,
.workspace-premium .form-group input,
.workspace-premium .form-group select {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(148,163,184,.16) !important;
    border-radius: 10px !important;
    outline: none;
    color: #EAF1F8 !important;
    background: rgba(5,14,26,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
    font-family: inherit;
    font-size: 12px;
    transition: .18s ease;
}

.cat-input-group input:focus,
.premium-form-group input:focus,
.workspace-premium .form-group input:focus,
.workspace-premium .form-group select:focus {
    border-color: rgba(245,158,11,.68) !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.08) !important;
}

.cat-add-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
    color: #111827;
    border-radius: 10px;
}

.cat-list {
    gap: 7px;
}

.cat-item {
    min-height: 53px;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 11px;
    color: #DDE6F0;
    background: rgba(18,34,57,.64);
    font-size: 11px;
    font-weight: 650;
}

.cat-item:hover {
    border-color: rgba(245,158,11,.25);
}

/* CONFIGURAÇÕES */
.config-layout-premium {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.config-layout-premium .config-panel {
    padding: 24px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16,29,49,.92), rgba(8,18,31,.96));
    box-shadow: 0 16px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.02);
}

.config-layout-premium .config-panel > h3,
.config-layout-premium .config-panel .account-panel-head h3 {
    border-bottom: 0;
}

.profile-mock {
    min-height: 100px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.09);
    border-radius: 14px;
    background: rgba(18,34,57,.56);
}

.profile-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border: 1px solid rgba(245,158,11,.18);
    background: rgba(245,158,11,.10);
    font-size: 24px;
}

.profile-info h4 {
    font-size: 18px;
}

.profile-info p {
    color: #788EA7;
    font-size: 11px;
}

.premium-form-group label,
.workspace-premium .form-group label {
    display: block;
    margin-bottom: 7px;
    color: #AABACE;
    font-size: 10px;
    font-weight: 750;
}

.account-panel-head {
    margin-bottom: 10px;
}

.account-panel-head > div h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #F8FAFC;
    font-size: 18px;
}

.account-detail-row {
    padding: 14px 0;
    border-color: rgba(148,163,184,.10);
}

.account-detail-row > span {
    color: #7890AA;
    font-size: 10px;
}

.account-detail-row strong,
.account-detail-row code {
    color: #DCE6F1;
    font-size: 10px;
}

.btn-account-security {
    min-height: 43px;
    margin-top: 14px;
    border-radius: 10px;
    border-color: rgba(148,163,184,.14);
    background: rgba(7,17,30,.56);
}

.config-panel-copy {
    margin: -5px 0 16px;
    color: #758CA5;
    font-size: 11px;
    line-height: 1.5;
}

.btn-backup-action {
    min-height: 48px;
    margin-bottom: 8px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 11px;
}

.btn-reset-memory {
    justify-content: center;
    color: #F87171;
    border-color: rgba(239,68,68,.16);
    background: rgba(239,68,68,.055);
}

.admin-users-premium {
    grid-column: 1 / -1;
}

.admin-users-heading {
    align-items: center;
}

.admin-chip {
    padding: 6px 9px;
    border-radius: 999px;
    color: #FBBF24;
    border: 1px solid rgba(245,158,11,.20);
    background: rgba(245,158,11,.08);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .6px;
}

.admin-users-list-premium {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ESTÚDIO CIFRAQUI */
.studio-overlay {
    padding: 14px;
    background: rgba(2,8,18,.82);
    backdrop-filter: blur(10px);
}

.workspace-premium {
    width: min(96vw, 1540px);
    max-width: 1540px;
    height: min(93vh, 980px);
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% -20%, rgba(245,158,11,.08), transparent 24%),
        linear-gradient(180deg, #0F1C30 0%, #0A1526 100%);
    box-shadow: 0 36px 100px rgba(0,0,0,.48);
}

.workspace-premium .workspace-header {
    min-height: 86px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(148,163,184,.11);
    background: rgba(7,16,29,.72);
}

.studio-header-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #FBBF24;
    border: 1px solid rgba(245,158,11,.15);
    background: rgba(245,158,11,.08);
    font-size: 20px;
}

.studio-header-copy h3 {
    margin: 0 !important;
    color: #F8FAFC;
    font-size: 20px !important;
    line-height: 1.1;
}

.studio-header-copy p {
    margin: 4px 0 0;
    color: #7D93AC;
    font-size: 10px;
}

.studio-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-studio-cancel,
.btn-studio-save {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.btn-studio-cancel {
    color: #B3C1D1;
    border: 1px solid rgba(148,163,184,.14);
    background: rgba(255,255,255,.02);
}

.btn-studio-save {
    color: #111827;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    box-shadow: 0 10px 24px rgba(245,158,11,.14);
}

.workspace-premium .workspace-body {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    gap: 18px;
    padding: 18px;
}

.workspace-premium .editor-col {
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(148,163,184,.11);
    border-radius: 16px;
    background: rgba(11,24,41,.70);
}

.studio-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.studio-section-label span {
    color: #F59E0B;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.6px;
}

.studio-section-label small {
    color: #697F98;
    font-size: 9px;
}

.workspace-premium .compact-form-row {
    display: grid;
    gap: 10px;
    margin-bottom: 11px;
}

.workspace-premium .studio-main-fields {
    grid-template-columns: 1.2fr .8fr;
}

.workspace-premium .studio-meta-fields {
    grid-template-columns: .65fr .65fr 1.1fr 1.1fr;
}

.workspace-premium .form-group {
    min-width: 0;
    margin: 0;
}

.workspace-premium .form-group select {
    width: 100%;
}

.studio-lyrics-group {
    min-height: 0;
    margin-top: 6px;
    flex: 1;
}

.studio-lyrics-label {
    min-height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.studio-lyrics-label label {
    display: block;
    margin: 0 0 3px;
    color: #DCE5F0;
    font-size: 11px;
    font-weight: 800;
}

.studio-lyrics-label small {
    display: block;
    color: #7188A2;
    font-size: 9px;
}

.studio-lyrics-label > span {
    margin-bottom: 7px;
    color: #7288A1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.workspace-premium .editor-textarea {
    min-height: 390px;
    padding: 16px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 13px;
    color: #E8EEF5;
    background: rgba(4,12,23,.72);
    font-size: 14px;
    line-height: 1.55;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
}

.workspace-premium .editor-textarea::placeholder {
    color: #516A85;
}

.workspace-premium .editor-textarea:focus {
    border-color: rgba(245,158,11,.62);
    box-shadow: 0 0 0 3px rgba(245,158,11,.07);
}

.studio-preview-col {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.13);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(245,158,11,.055), transparent 24%),
        rgba(4,12,23,.76);
}

.studio-preview-toolbar {
    min-height: 64px;
    padding: 13px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148,163,184,.09);
    background: rgba(9,20,35,.62);
}

.studio-preview-toolbar strong {
    display: block;
    color: #DDE6F0;
    font-size: 11px;
}

.studio-preview-toolbar > i {
    color: #7188A1;
    font-size: 18px;
}

.studio-preview-empty {
    min-height: calc(100% - 64px);
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.studio-preview-empty h3 {
    margin: 3px 0 7px;
    color: #E9EFF6;
    font-size: 17px;
}

.studio-preview-empty p {
    max-width: 310px;
    margin: 0;
    color: #7188A1;
    font-size: 10px;
    line-height: 1.55;
}

.preview-content-shell {
    padding: 25px 26px 34px;
    overflow: auto;
    max-height: calc(100% - 64px);
}

.preview-heading-block {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148,163,184,.09);
}

.preview-heading-block h1 {
    margin: 0 0 4px;
    color: #F8FAFC;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.6px;
}

.preview-heading-block h2 {
    margin: 0;
    color: #F59E0B;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.preview-cifra {
    color: #DCE6F1;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.58;
    white-space: pre;
}

.preview-cifra span {
    display: block;
    min-height: 1.58em;
}

.preview-helper-text {
    padding: 22px 0;
    color: #5E7691;
    font-family: inherit;
    font-size: 10px;
    white-space: normal;
}

/* Modal de adicionar músicas acompanha a nova linguagem */
#modal-select-songs .modal-small {
    max-width: 520px;
    padding: 22px;
    border-color: rgba(148,163,184,.16);
    border-radius: 18px;
    background: linear-gradient(180deg, #101D31, #0A1525);
}

#modal-select-songs .modal-search input {
    min-height: 42px;
    border-color: rgba(148,163,184,.15);
    border-radius: 10px;
    background: rgba(4,12,23,.70);
}

/* Responsividade interna */
@media (max-width: 1100px) {
    .repertorios-layout-premium {
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr);
    }

    .workspace-premium .workspace-body {
        grid-template-columns: 1fr 1fr;
    }

    .workspace-premium .studio-meta-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .internal-page {
        width: calc(100% - 24px) !important;
        padding-top: 20px !important;
    }

    .repertorios-layout-premium,
    .cat-layout-premium,
    .config-layout-premium {
        grid-template-columns: 1fr;
    }

    .repertorios-layout-premium .rep-list-col,
    .repertorios-layout-premium .rep-detail-col,
    .cat-layout-premium .cat-card {
        min-height: 0;
    }

    .workspace-premium {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .workspace-premium .workspace-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .studio-preview-col {
        min-height: 480px;
    }
}

@media (max-width: 620px) {
    .internal-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 18px;
    }

    .internal-page-cta {
        width: 100%;
        justify-content: center;
    }

    .internal-page-title h2 {
        font-size: 25px;
    }

    .rep-detail-header,
    .rep-songs-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-premium .workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .studio-header-actions {
        width: 100%;
    }

    .btn-studio-cancel,
    .btn-studio-save {
        flex: 1;
    }

    .workspace-premium .studio-main-fields,
    .workspace-premium .studio-meta-fields {
        grid-template-columns: 1fr;
    }
}

/* Light mode keeps the same structure */
body[data-theme="light"] .internal-page-header,
body[data-theme="light"] .repertorios-layout-premium .rep-list-col,
body[data-theme="light"] .repertorios-layout-premium .rep-detail-col,
body[data-theme="light"] .cat-layout-premium .cat-card,
body[data-theme="light"] .config-layout-premium .config-panel {
    background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
    border-color: rgba(100,116,139,.18);
}

body[data-theme="light"] .internal-page-title h2,
body[data-theme="light"] .section-card-head h3,
body[data-theme="light"] .rep-select-premium h3 {
    color: #172033;
}

body[data-theme="light"] .cat-input-group input,
body[data-theme="light"] .premium-form-group input {
    color: #1E293B !important;
    background: #FFFFFF !important;
}


/* =========================================================
   CIFRAQUI V2D — ESTÚDIO + REPERTÓRIO + MODO PALCO
   ========================================================= */

/* ---------- ESTÚDIO: hierarquia e campos ---------- */
.workspace-premium .studio-section-label {
    margin-bottom: 18px;
}

.workspace-premium .studio-section-label span {
    font-size: 11px;
    letter-spacing: 1.8px;
}

.workspace-premium .studio-section-label small {
    font-size: 10px;
}

.workspace-premium .form-group label {
    margin-bottom: 8px;
    color: #C2CFDE;
    font-size: 12px;
    font-weight: 800;
}

.workspace-premium .studio-main-fields {
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
    margin-bottom: 15px;
}

.workspace-premium .studio-main-fields .form-group input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    box-sizing: border-box;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 650;
}

.workspace-premium .studio-main-fields .form-group:first-child label,
.workspace-premium .studio-main-fields .form-group:nth-child(2) label {
    font-size: 13px;
}

.workspace-premium .studio-meta-fields {
    grid-template-columns: .68fr .68fr 1.22fr 1.22fr;
    gap: 12px;
    margin-bottom: 16px;
}

.workspace-premium .studio-meta-fields .form-group {
    min-width: 0 !important;
    overflow: hidden;
}

.workspace-premium .studio-meta-fields .form-group input,
.workspace-premium .studio-meta-fields .form-group select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 47px;
    box-sizing: border-box !important;
    border-radius: 11px !important;
    font-size: 12px;
}

.studio-lyrics-label label {
    font-size: 13px;
}

.studio-lyrics-label small {
    font-size: 10px;
}

.workspace-premium .editor-textarea {
    min-height: 430px;
    padding: 17px 18px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    tab-size: 4;
}

/* Preview é o coração do Estúdio: mais área e leitura maior */
.workspace-premium .workspace-body {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 16px;
    padding: 16px;
}

.workspace-premium .editor-col {
    padding: 18px;
}

.studio-preview-col {
    min-width: 0;
}

.studio-preview-toolbar {
    min-height: 70px;
    padding: 14px 18px;
}

.studio-preview-toolbar .mini-kicker {
    font-size: 10px;
}

.studio-preview-toolbar strong {
    font-size: 13px;
}

.preview-content-shell {
    width: 100%;
    max-height: calc(100% - 70px);
    padding: 20px 22px 34px;
    box-sizing: border-box;
}

.preview-heading-block {
    margin-bottom: 17px;
    padding-bottom: 14px;
}

.preview-heading-block h1 {
    font-size: 29px;
}

.preview-heading-block h2 {
    font-size: 11px;
}

.preview-cifra {
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 2px 2px 24px;
    box-sizing: border-box;
    color: #E8EEF6;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.58;
    letter-spacing: 0;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    tab-size: 4;
}

.preview-cifra.preview-is-empty {
    width: 100%;
    color: #607790;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    white-space: normal !important;
}

/* ---------- REPERTÓRIO: botões e contador ---------- */
.rep-actionbar {
    gap: 10px;
    margin-bottom: 26px;
}

.btn-show-primary,
.btn-show-secondary {
    min-height: 46px;
    padding: 0 17px;
    gap: 8px;
    border-radius: 11px;
    font-size: 12px;
}

.btn-show-primary i,
.btn-show-secondary i {
    font-size: 16px;
}

.rep-detail-meta {
    min-height: 36px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
}

/* ---------- MODO PALCO: barra mais organizada ---------- */
.stage-toolbar {
    gap: 0;
    padding: 9px 12px;
}

.tool-group {
    gap: 7px;
    padding: 0 11px;
}

.btn-tool-circle {
    width: 40px;
    height: 40px;
}

.btn-pill {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 13px;
}

.btn-autoscroll.active {
    color: #F87171;
    border-color: rgba(239,68,68,.62);
    background: rgba(239,68,68,.10);
}

.btn-autoscroll.active:hover {
    background: rgba(239,68,68,.16);
}

.tone-stack-group {
    min-width: 218px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.tone-control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tone-control-row .tool-label {
    margin-right: 2px;
}

.tone-value {
    min-width: 36px;
}

.stage-capo-display {
    display: block;
    min-height: 13px;
    padding-left: 26px;
    color: #758AA3;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 750;
    text-align: center;
    letter-spacing: .2px;
}

/* Cifra centralizada como BLOCO; texto interno continua alinhado à esquerda */
.stage-main-layout {
    max-width: 1560px;
}

.cifra-area-wrapper {
    justify-content: center !important;
    padding-left: 12px;
    padding-right: 12px;
}

.cifra-content {
    width: 100%;
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 20px 34px;
    box-sizing: border-box;
}

.cifra-text-wrapper {
    display: block;
    width: max-content;
    min-width: min(760px, calc(100vw - 120px));
    padding: 0 !important;
    margin: 0 auto;
    text-align: left !important;
    box-sizing: border-box;
}

.cifra-text-wrapper .line-pair,
.cifra-text-wrapper .chord-line,
.cifra-text-wrapper .lyric-line {
    text-align: left !important;
}

/* Quando a lateral de acordes está aberta, mantém a cifra respirando */
.stage-main-layout:has(.stage-sidebar[style*="display: block"]) .cifra-text-wrapper {
    min-width: min(680px, calc(100vw - 390px));
}

/* ---------- TABLET: prioriza preview e palco ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
    .workspace-premium .workspace-body {
        grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
        gap: 12px;
        padding: 12px;
    }

    .workspace-premium .editor-col {
        padding: 15px;
    }

    .workspace-premium .studio-main-fields {
        grid-template-columns: 1fr 1fr;
    }

    .workspace-premium .studio-meta-fields {
        grid-template-columns: .7fr .7fr 1.15fr 1.15fr;
        gap: 8px;
    }

    .workspace-premium .studio-meta-fields .form-group input,
    .workspace-premium .studio-meta-fields .form-group select {
        font-size: 11px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .preview-content-shell {
        padding: 17px 17px 30px;
    }

    .preview-cifra {
        font-size: 15.5px;
    }

    .cifra-text-wrapper {
        min-width: min(700px, calc(100vw - 70px));
    }
}

@media (max-width: 900px) {
    .workspace-premium .workspace-body {
        grid-template-columns: 1fr;
    }

    .studio-preview-col {
        min-height: 62vh;
    }

    .preview-cifra {
        font-size: 16px;
    }

    .cifra-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cifra-text-wrapper {
        min-width: min(680px, calc(100vw - 54px));
    }
}

@media (max-width: 620px) {
    .workspace-premium .studio-main-fields,
    .workspace-premium .studio-meta-fields {
        grid-template-columns: 1fr;
    }

    .workspace-premium .editor-textarea {
        min-height: 360px;
        font-size: 15px;
    }

    .preview-heading-block h1 {
        font-size: 24px;
    }

    .preview-cifra {
        font-size: 15px;
    }

    .cifra-text-wrapper {
        min-width: min(520px, calc(100vw - 34px));
    }
}


/* =========================================================
   CIFRAQUI V2D.1 — LEGIBILIDADE CATEGORIAS E TAGS
   ========================================================= */

.cat-layout-premium .cat-item {
    font-size: 13px !important;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================================
   CIFRAQUI V2D.2 — HOTFIX MODO PALCO
   1) Estado da barra não pode sumir após metrônomo/troca de música.
   2) Capotraste ganha leitura própria, sem ficar como microtexto.
   ========================================================= */

.tone-stack-group {
    min-width: 232px;
    gap: 5px;
}

.stage-capo-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-width: 92px;
    min-height: 24px;
    margin-top: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .58);
    color: #A9BCD2;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .1px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .tone-stack-group {
        min-width: 100%;
    }

    .stage-capo-display {
        min-width: 118px;
        min-height: 30px;
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* V2D.3 — Metrônomo: mantém a barra do Modo Palco estável */
#btn-metronome.active {
    color: #10B981 !important;
    border-color: rgba(16,185,129,.78) !important;
    background: rgba(16,185,129,.12) !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,.08), 0 0 18px rgba(16,185,129,.12);
}

@media (min-width: 1025px) {
    #stage-view.metronome-playing .stage-toolbar,
    #stage-view.metronome-playing.toolbar-hidden .stage-toolbar {
        transform: translateY(0) !important;
    }
    #stage-view.metronome-playing .stage-main-layout,
    #stage-view.metronome-playing.toolbar-hidden .stage-main-layout {
        margin-top: 75px !important;
    }
}


/* =========================================================
   CIFRAQUI V2D.6 — METRÔNOMO ESTÁVEL
   Pause/Play nunca pode esconder a barra do Modo Palco.
   ========================================================= */
#stage-view:not(.toolbar-hidden) .stage-toolbar {
    visibility: visible;
}
#stage-view.metronome-playing .stage-toolbar {
    visibility: visible !important;
}
