/* ==========================================================================
   Voicing Studio - Dedicated Stylesheet (assets/css/voicing-studio.css)
   A passarela harmônica: Partituras e Ajustes incorporados em cada célula
   ========================================================================== */

:root {
    --bg-main: #060911;
    --bg-card: rgba(15, 23, 42, 0.88);
    --bg-card-hover: rgba(26, 38, 68, 0.95);
    --bg-surface: rgba(30, 41, 59, 0.7);
    --bg-surface-elevated: rgba(30, 41, 59, 0.95);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.4);
    --border-glow: rgba(56, 189, 248, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Harmonic Function Palette (Raio-X das Notas) */
    --fn-root: #10b981;       /* Tônica / Baixo - Verde Esmeralda */
    --fn-root-bg: rgba(16, 185, 129, 0.16);
    --fn-guide: #f59e0b;      /* 3ª e 7ª Guias - Âmbar Dourado */
    --fn-guide-bg: rgba(245, 158, 11, 0.16);
    --fn-fifth: #38bdf8;      /* 5ª Justa - Azul Celeste */
    --fn-fifth-bg: rgba(56, 189, 248, 0.16);
    --fn-tension: #a855f7;    /* Tensões 9, 11, 13 - Roxo Vibrante */
    --fn-tension-bg: rgba(168, 85, 247, 0.16);
    --fn-altered: #ec4899;    /* Alteradas (b9, #9, #11, b13) - Rosa Shock */
    --fn-altered-bg: rgba(236, 72, 153, 0.16);
    
    --primary: #38bdf8;
    --primary-hover: #0284c7;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
}

/* Fundo atmosférico com gradientes suaves */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 12% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 88% 25%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbars customizadas */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Header Navigation Bar
   ========================================================================== */
.studio-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 9, 17, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.65rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.studio-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.studio-title-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.studio-version-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    -webkit-text-fill-color: var(--primary);
}

.song-selector-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-selector-trigger:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--border-highlight);
    color: #fff;
}

.studio-header-center {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.studio-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Botões Modernos */
.btn-studio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.46rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn-studio:active {
    transform: scale(0.97);
}

.btn-play-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(16, 185, 129, 0.35);
    font-weight: 700;
    padding: 0.52rem 1.25rem;
    font-size: 0.88rem;
}
.btn-play-hero:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}
.btn-play-hero.playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 14px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}
.btn-ghost:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-studio {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.3);
}
.btn-primary-studio:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 2px 14px rgba(56, 189, 248, 0.35);
}

.btn-purple {
    background: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border-color: rgba(139, 92, 246, 0.35);
}
.btn-purple:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.control-pill-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-md);
}

.control-label-micro {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.select-studio {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.select-studio option {
    background: #0f172a;
    color: #f8fafc;
}

.input-num-studio {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    width: 52px;
    padding: 0.15rem 0.3rem;
    text-align: center;
}

/* ==========================================================================
   O PALCO PRINCIPAL: Passarela Harmônica (Células com Partitura e Ajustes)
   ========================================================================== */
.main-stage-section {
    padding: 1.1rem 1.6rem 0.6rem;
    z-index: 10;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.stage-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stage-main-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stage-counter-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.18rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.14);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.stage-tools-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pista Horizontal de Células (Harmonic Measures Track) */
.measures-track-container {
    position: relative;
    width: 100%;
}

.measures-track-scroll {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    padding: 0.6rem 0.4rem 1.4rem;
    scroll-behavior: smooth;
    align-items: stretch;
}

/* ==========================================================================
   A Célula Harmônica (Measure Cell)
   ========================================================================== */
.measure-cell {
    flex: 0 0 270px;
    width: 270px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem;
    gap: 0.65rem;
    position: relative;
    user-select: none;
    transition: var(--transition);
}

.measure-cell:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Célula Ativa / Selecionada */
.measure-cell.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

/* Célula Tocando no Playback */
.measure-cell.playing {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.55);
    transform: scale(1.02);
}

/* Cabeçalho da Célula */
.cell-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.cell-step-num-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
}
.measure-cell.active .cell-step-num-badge {
    color: var(--primary);
}

.cell-chord-input-wrap {
    flex: 1;
}

.cell-chord-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1.18rem;
    font-weight: 900;
    padding: 0.1rem 0.35rem;
    letter-spacing: -0.01em;
    outline: none;
    transition: var(--transition);
}
.cell-chord-input:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: var(--border-subtle);
}
.cell-chord-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.measure-cell.active .cell-chord-input {
    color: #38bdf8;
}
.measure-cell.playing .cell-chord-input {
    color: #34d399;
}

.cell-play-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.cell-play-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
}

.cell-del-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
    border-radius: 4px;
}
.cell-del-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Trecho da Letra */
.cell-lyric-pill {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--border-subtle);
}
.measure-cell.active .cell-lyric-pill {
    color: var(--text-secondary);
    border-left-color: var(--primary);
}

/* ==========================================================================
   Partitura Grand-Staff Incorporada na Célula
   ========================================================================== */
.cell-staff-canvas-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 145px;
    width: 100%;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cell-staff-mount {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-staff-mount svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Tessitura e Pílulas das Notas com Micro-Ajustes
   ========================================================================== */
.cell-harmony-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.15rem;
}

.cell-tessitura-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: monospace;
}

.cell-notes-count-badge {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* Fluxo de Pílulas de Notas na Célula */
.cell-notes-chips-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 105px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.cell-note-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition);
}

.cell-note-pill.role-root {
    background: var(--fn-root-bg);
    border-color: var(--fn-root);
    color: #34d399;
}
.cell-note-pill.role-third, .cell-note-pill.role-seventh {
    background: var(--fn-guide-bg);
    border-color: var(--fn-guide);
    color: #fbbf24;
}
.cell-note-pill.role-fifth {
    background: var(--fn-fifth-bg);
    border-color: var(--fn-fifth);
    color: #38bdf8;
}
.cell-note-pill.role-tension {
    background: var(--fn-tension-bg);
    border-color: var(--fn-tension);
    color: #c084fc;
}
.cell-note-pill.role-altered {
    background: var(--fn-altered-bg);
    border-color: var(--fn-altered);
    color: #f472b6;
}

.cell-note-name-txt {
    font-size: 0.76rem;
    font-weight: 800;
}

.cell-note-role-txt {
    font-size: 0.6rem;
    opacity: 0.8;
}

.cell-note-micro-btns {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0.15rem;
}

.cell-note-micro-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: inherit;
    font-size: 0.62rem;
    padding: 0.05rem 0.2rem;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1;
}
.cell-note-micro-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.cell-note-micro-btn.del:hover {
    background: #ef4444;
    color: #fff;
}

/* ==========================================================================
   Barra de Ações e Ferramentas da Célula
   ========================================================================== */
.cell-actions-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
}

.cell-quick-shift-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
}

.btn-cell-tool {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}
.btn-cell-tool:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--primary);
    color: #fff;
}

.btn-cell-optimize {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c084fc;
}
.btn-cell-optimize:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.btn-cell-add-note {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.btn-cell-add-note:hover {
    background: rgba(16, 185, 129, 0.28);
    color: #fff;
}

/* Ponte de Condução de Vozes para o Próximo */
.cell-vl-bridge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.vl-bridge-score {
    font-weight: 800;
    color: #c084fc;
}

/* ==========================================================================
   Dock Retrátil / Inspetor Complementar (Piano, Violão, Exportação)
   ========================================================================== */
.studio-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 13, 24, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-bottom-dock.collapsed {
    transform: translateY(calc(100% - 42px));
}

.dock-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 1.6rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    user-select: none;
}

.dock-tabs-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-dock-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.btn-dock-tab.active {
    background: rgba(56, 189, 248, 0.18);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-dock-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}
.btn-dock-toggle:hover { color: #fff; }

.dock-content-body {
    padding: 0.85rem 1.6rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Compact Piano in Dock */
.dock-piano-mount {
    width: 100%;
    height: 75px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #111;
}

.compact-key {
    position: absolute;
    top: 0;
    height: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.12s ease;
}

.compact-key.white {
    background: #fdfdfd;
    border-right: 1px solid #d4d4d8;
    z-index: 1;
}
.compact-key.white:hover { background: #f0fdf4; }
.compact-key.white.active { background: #34d399 !important; }
.compact-key.white.active-root { background: #10b981 !important; }
.compact-key.white.active-guide { background: #f59e0b !important; }
.compact-key.white.active-tension { background: #a855f7 !important; }

.compact-key.black {
    background: #18181b;
    height: 60%;
    z-index: 2;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.compact-key.black:hover { background: #27272a; }
.compact-key.black.active { background: #059669 !important; }
.compact-key.black.active-root { background: #047857 !important; }
.compact-key.black.active-guide { background: #d97706 !important; }
.compact-key.black.active-tension { background: #7e22ce !important; }

/* Modais */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}

.modal-content-card {
    background: #0f172a;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-close-modal:hover { color: #fff; }

.modal-search-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
    width: 100%;
    outline: none;
}
.modal-search-box:focus {
    border-color: var(--primary);
}

.modal-list-scroll {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-item:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
}

.modal-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}
.modal-item-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
}
