/* ====== Design Tokens (variáveis) ====== */
:root {
    --bg: #0f1115; /* dark background principal do body */
    --bg-elev: #151922; /* dark background para header, volume e screens */
    --text: #e6e8ef;
    --muted: #a0a6b7;
    --accent: #ff001f; /* vermelho apple music */
    --accent-2: #ff4d6a; /* rosa variacao */
    --card: #1f2530; /* dark cor dos cards e rows, para dar destaque sobre bg-elev */
    --border: #262b36;
    --pad: 16px;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(0,0,0,.25);
    --green-accent: #1d7f2c; /* Nova cor verde mais escura */
    --paused-color: #ff7800; /* Laranja para o estado de pausa */

    /* Dimensões para layout */
    --header-height: 59px;
    --volume-bar-height: 45px;
    --player-card-height: 280px;
    --mobile-header-height: 90px; /* Altura do header em telas pequenas */

    /* Variável para controlar o offset da barra de volume. Será 0 em dispositivos Apple. */
    --volume-bar-offset: var(--volume-bar-height);
}
[data-theme="light"] {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --text: #000000;
    --muted: #666666;
    --accent: #ff001f;
    --accent-2: #ff4d6a;
    --card: #ffffff; /* light cor dos cards e rows, igual ao bg-elev */
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --green-accent: #1d7f2c;
}
/* ====== Base ====== */
html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.35;
    overflow-x: hidden;
}

.header-logo{
    height: 30px;
}
.app {
    max-width: 100%;
    max-width: none;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
/* iPad full-height fix */
@supports (-webkit-touch-callout: none) {
    .app { min-height: -webkit-fill-available; }
}
/* ===== Scrollbar Stylings ===== */
.scroll-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
/* ====== Header ====== */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--pad);
    background: var(--bg-elev); /* Usa bg-elev para o header */
    border-bottom: 1px solid var(--border);
}
.title { font-weight: 700; letter-spacing: .2px; font-size: 24px; color: var(--text); }
.actions { display:flex; gap:10px; align-items:center; }
.btn, button {
    appearance: none; border: 0; background: transparent; color: var(--text);
    padding: 10px; border-radius: 12px;
    cursor: pointer;
}

.btn-miniPlayer {
    padding: 0;
}
.btn-ghost { 
    padding: 0; 
    font-size: 20px;
    font-weight: 700;
    background: transparent; 
    box-shadow: none; 
    margin-left: 10px; 
    height: 42px; 
    width: 70px; 
    border: 1px solid var(--border);
}
.btn-accent { background: var(--accent); color: #fff; }
.btnList { font-size: 18px; height: 42px;}
.btnLive { font-size: 18px; }
.btn-back { font-size: 18px; color: var(--accent); width: 70px; border: 1px solid var(--border); }
.btn-settings { font-size: 18px; color: var(--muted); }
.segmented {
    background: var(--card); border:1px solid var(--border); border-radius: 12px; overflow: hidden; display:inline-flex;
}
.segmented button { background: transparent; padding: 8px 12px; color: var(--muted); }
.segmented button.active { background: var(--accent); color: #fff; }
/* ====== Volume Global (inserido) ====== */
.volume-global {
    display:flex;
    align-items:center;
    padding: 8px var(--pad);
    background: var(--bg-elev); /* Usa bg-elev para o volume global */
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: var(--header-height); /* abaixo do header */
    left: 0;
    right: 0;
    z-index: 15;
    gap: 10px;
    height: var(--volume-bar-height);
}
.volume-global input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: var(--border);
    height: 4px;
    border-radius: 2px;
}
.volume-global input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}
.volume-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.volume-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text);
    transition: fill 0.2s ease;
}
/* ====== Screens ====== */
.screen {
    display:none;
    background: var(--bg-elev); /* Usa bg-elev para o fundo das telas */
    flex-grow: 1; /* Faz as telas preencherem o espaço restante */
    min-height: 0; /* Permite que o flex-grow funcione corretamente */
    position: relative;
}
.screen.active {
    display:flex;
    flex-direction: column;
}
/* Novo contêiner para rolagem */
.screen-content {
    flex-grow: 1;
    padding: calc(var(--header-height) + var(--volume-bar-height) + var(--pad)) var(--pad) var(--pad);
    /* A rolagem agora é gerenciada por elementos filhos como #listMode e #liveMode */
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* Ajuste de padding para a tela da biblioteca */
/* ====== Playlist – List Mode & Live Mode Scrolling ====== */
/* Os contêineres de modo de visualização agora são responsáveis pela rolagem */
#listMode, #liveMode {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--border) transparent; /* Firefox */
    min-height: 0; /* Necessário para o flex-grow funcionar corretamente em um contêiner flex */
}
/* Estilização da barra de rolagem para WebKit (Chrome, Safari) */
#listMode::-webkit-scrollbar,
#liveMode::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
}
#listMode::-webkit-scrollbar-track,
#liveMode::-webkit-scrollbar-track {
    background: transparent; /* Fundo da trilha */
}
#listMode::-webkit-scrollbar-thumb,
#liveMode::-webkit-scrollbar-thumb {
    background-color: var(--border); /* Cor da barra */
    border-radius: 4px; /* Bordas arredondadas */
}
/* ====== Playlists Grid ====== */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.card {
    background: var(--card); /* Usa --card para os cards */
    border:1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .08s ease;
    position: relative; /* Adicionado para posicionamento do botão de opções */
    
}
.card:active { transform: scale(.98); }
.thumb {
    height: 120px;
    border-radius: 12px 12px 0 0; /* Mantém os cantos arredondados no topo */
    /* Define as propriedades de fundo individualmente para evitar conflitos */
    background-color: var(--border);
    /* Usa uma variável para a imagem. Se a variável não for definida, mostra um gradiente. */
    background-image: var(--playlist-cover-image, linear-gradient(135deg, var(--accent), var(--accent-2)));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.playlist-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.playlist-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.playlist-stats {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card .options-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex; /* Usando Flexbox para máxima compatibilidade */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.card .options-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}
.card .options-btn:hover {
    background: rgba(0,0,0,0.4);
}
/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: var(--pad);
    right: var(--pad);
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 25;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.fab:active { transform: scale(0.95); }

/* ====== Playlist – List Mode ====== */
.list {
    display: flex;
    flex-direction: column;
}
.row {
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px;
    border-radius: 12px;
    background: var(--card); /* Usa --card para as linhas */
    border:1px solid var(--border);
    cursor: pointer;
    transition: background .2s ease;
    margin-bottom: 8px; /* Fallback para 'gap', mais compatível */
}
.list .row:last-child {
    margin-bottom: 0; /* Remove a margem do último item */
}
.row.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.row.active .num,
.row.active .artist {
    color: #fff;
}
[data-theme="light"] .row.active {
    color: var(--text);
}
[data-theme="light"] .row.active .num {
    color: var(--accent);
}
[data-theme="light"] .row.active .artist {
    color: var(--text);
}
.row .num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display:grid;
    place-items:center;
    background: var(--bg); /* Fundo do numero, usa --bg que é a cor mais escura no dark */
    border:1px solid var(--border);
    color: var(--muted);
    font-weight:700;
    cursor: move; /* Indica que este elemento é um cabo para arrastar */
}
.row .meta { flex:1; }
.row .title {
    font-weight: 600;
    font-size: 16px; /* Tamanho padrão para desktop */
}
.row .artist { color: var(--muted); font-size: 12px; }
/* Delay Input ajustado */
.delay-input {
    width: 45px;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: textfield; /* Remove as setas no Firefox */
}
.delay-input::-webkit-outer-spin-button,
.delay-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.row .play {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:700;
    cursor: pointer;
}
.row.active .play {
    border: 1px solid #1f253061; /* Borda escura semi-transparente no modo dark */
}
[data-theme="light"] .row.active .play {
    border: 1px solid #ffffff61; /* Borda branca semi-transparente no modo light */
}
/* Estilo para o novo botão de capa */
.row .play.open-player {
    background: transparent;
    color: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
}
.row.active .play.open-player {
    background: transparent;
    color: #fff;
    border: none;
}
.row .play.open-player svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
}
.row.active .play.open-player svg {
    fill: #fff;
}
/* Drag-and-Drop Estilos - Efeito de "flutuar" para o item sendo arrastado */
.row.dragging {
    opacity: 0.8;
    background: var(--border);
    transform: scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--accent);
    position: relative; /* Garante que o z-index funcione corretamente */
    z-index: 5;
}
.drag-over { background: var(--border) !important; }

/* --- Destaque para a Faixa Ativa Pausada --- */

#listMode .row.active.paused,
#liveMode .pad.active.paused {
    background-color: var(--paused-color);
    color: #fff; /* Texto branco para bom contraste com laranja */
    border-color: var(--paused-color);
}

#listMode .row.active.paused .num,
#listMode .row.active.paused .title,
#listMode .row.active.paused .artist {
    color: #fff;
}

#liveMode .pad.active.paused .sub {
    color: #fff;
}

/* ====== Playlist – Live (Pads) ====== */
.pads {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pad);
    margin-top: 10px;
}
.pad {
    background: var(--card); /* Usa --card para os pads */
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height: 110px;
    text-align:center;
    cursor:pointer;
    transition: transform .06s ease, background .2s ease;
}
.pad:active { transform: scale(.97); }
.pad.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pad.active .sub, .pad.active .big, .pad.active .label {
    color: #fff;
}
.pad .big { font-size: 40px; font-weight: 800; line-height: 1; color: var(--text); }
.pad .label { margin-top: 4px; color: var(--muted); font-size: 20px;font-weight: 800; }
.pad .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ====== Player Card (Novo) ====== */
.player-card {
    position: absolute;
    top: 0;
    left: var(--pad);
    right: var(--pad);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}
.player-card.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.player-cover {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border:1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 16px auto 0;
    background-size: cover;
    background-position: center;
}
.player-info {
    position: relative;
    z-index: 2;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.player-info .close-btn {
    position: absolute;
    top: -170px;
    right: 10px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.player-title { font-size: 20px; font-weight: 800; margin: 0; color: #fff; }
.player-artist { color: rgba(255,255,255,.8); margin: 4px 0 0; font-size: 14px; }
.player-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 20px; object-fit: cover; }
/* Ajuste de margem superior para a lista de faixas quando o player está ativo */
#listMode.player-active, #liveMode.player-active {
    margin-top: var(--player-card-height); /* altura do player-card + margem */
}
/* ====== Mini Player Fixo ====== */
.mini-player-fixed {
    /* display: none; */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px var(--pad);
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 10px rgba(0,0,0,.15);
    z-index: 30;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}
.mini-player-fixed.active {
    display: flex;
}
.mini-player-fixed .mini-info {
    flex: 1;
}
.mini-player-fixed .mini-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}
.mini-player-fixed .progress-bar {
    height: 4px;
    background: var(--border);
    margin-top: 4px;
    border-radius: 2px;
    position: relative;
}
.mini-player-fixed .progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    width: 0%; /* Será atualizado via JS */
    border-radius: 2px;
    transition: width 0.1s linear;
}
.mini-player-fixed .mini-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.mini-player-fixed .ctl {
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; /* Usando Flexbox para melhor compatibilidade de alinhamento */
    justify-content: center;
    align-items: center;
    padding: 0 !important; /* Garante que não haja padding interno que desalinhe o ícone SVG */
    font-size: 16px;
}
.mini-player-fixed .ctl.primary {
    background: var(--accent);
    color: #fff;
    border: none;
}
    /* Estilos para os novos ícones SVG nos controles */
    .mini-player-fixed .ctl svg {
        width: 24px;
        height: 24px;
        fill: currentColor; /* Faz o SVG herdar a cor do texto do botão */
        pointer-events: none; /* Garante que o clique seja no botão, não no SVG */
    }
    /* Ajuste para o botão principal ser um pouco maior */
    .mini-player-fixed .ctl.primary svg {
        width: 28px;
        height: 28px;
    }

    /* --- Cor do Botão Play/Pause quando pausado --- */
    .mini-player-fixed.is-paused #miniPlay {
        background-color: var(--paused-color);
        color: #fff; /* Garante que o ícone SVG permaneça branco */
    }

/* Novo: Estilo do Modal */
.modal {
    display: none; /* Inicia oculto */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background-color: var(--bg-elev);
    padding: 24px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
.modal-content label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 14px;
}
.modal-content input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
}
.modal-content .cover-preview {
    width: 100%;
    height: 120px;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}
.modal-content .cover-preview span {
    color: var(--muted);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.modal-actions button {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.modal-actions .btn-cancel {
    background: #b5b1b169;
    color: #949597;;
}
.modal-actions .btn-remove {
    background: var(--accent);
    color: #fff;
}
.modal-actions .btn-save {
    background: var(--green-accent);
    color: #fff;
}
/* Estilo da lista de músicas no modal de edição */
.modal-track-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-track-list .track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: var(--card);
    border-radius: 6px;
}
.modal-track-list .track-item .title {
    flex-grow: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.modal-track-list .track-item .remove-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}
/* Estilo da área de adição de arquivos no modal */
.add-files-area {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.add-files-area:hover {
    border-color: var(--text);
}
.add-files-area span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}
/* Esconder input de arquivo */
.file-input {
    display: none;
}
/* ====== Footer space ====== */
.spacer { height: 24px; }

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

/* ====== Countdown Overlay ====== */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.countdown-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.countdown-overlay span {
    font-size: 15vw; /* Tamanho de fonte responsivo */
    font-weight: 800;
    color: var(--green-accent);
    text-shadow: 0 0 20px rgba(29, 127, 44, 0.5);
    animation: flash 1s infinite;
}

/* Estilo para a mensagem STOP, desativa a animação e ajusta a fonte */
.countdown-overlay.stop-message span {
    animation: none;
    font-size: 12vw;
}

@keyframes flash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
}

/* ====== Estilos para Telas Pequenas (Celulares) ====== */
@media (max-width: 600px) {
    .header {
        height: var(--mobile-header-height); /* Define uma altura maior e fixa para o header */
        box-sizing: border-box; /* Garante que o padding seja incluído na altura total */
        flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
        padding-top: 12px;
        padding-bottom: 12px;
        align-content: flex-start; /* Alinha as linhas do header no topo, corrigindo a sobreposição */
    }

    .volume-global {
        top: var(--mobile-header-height); /* Posiciona abaixo do novo header */
    }

    .header .title {
        order: 3; /* Move o título para o final do fluxo flex */
        width: 100%; /* Faz o título ocupar a largura total */
        text-align: center; /* Centraliza o texto do título */
        margin-top: 8px;
        font-size: 18px; /* Ajusta o tamanho do título da playlist */
    }

    /* Adicionado para corrigir o alinhamento do botão de tema */
    .header .actions {
        margin-left: auto; /* Garante que o bloco de ações fique sempre à direita */
    }

    /* Ajusta o tamanho da fonte na lista de faixas */
    .row .title {
        font-size: 15px;
    }
    .row .artist {
        font-size: 12px;
    }

    /* Ajusta o padding do conteúdo para não ficar atrás do header/volume fixos */
    .screen-content {
        padding-top: calc(var(--mobile-header-height) + var(--volume-bar-height) + var(--pad));
    }
}

/* Sobrescreve o padding para dispositivos Apple, onde a barra de volume está oculta */
body.is-apple-mobile .screen-content {
    padding-top: calc(var(--header-height) + var(--pad));
}
@media (max-width: 600px) {
    body.is-apple-mobile .screen-content {
        padding-top: calc(var(--mobile-header-height) + var(--pad));
    }
}

/* ====== Teleprompter Feature ====== */
.row .btn-prompter-toggle {
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
}
.row .btn-prompter-toggle svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}
.row.active .btn-prompter-toggle {
    color: #fff;
}
.row .btn-prompter-toggle.active {
    transform: rotate(180deg);
    color: var(--accent);
}
.row.active .btn-prompter-toggle.active {
    color: #fff;
}
.prompter-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--pad);
    margin-top: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prompter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.prompter-controls input[type="range"] {
    flex: 1;
    min-width: 100px;
    -webkit-appearance: none;
    background: var(--border);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}
.prompter-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}
.prompter-controls input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
}
.prompter-controls button {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}
.prompter-controls button:hover {
    background: var(--border);
}
.font-size-controls {
    display: flex;
    gap: 4px;
}
.font-size-controls button {
    width: 50px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    place-items: center;
}
.prompter-text-wrapper {
    max-height: 385px;
    overflow-y: auto;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px;
}
.prompter-text {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    font-family: monospace;
    outline: none;
}

.pause-marker {
    color: #FFD700; /* Amarelo ouro */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
