/* ============================================================
   RESET / NORMALIZE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #222;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================================
   MODO ESCURO   CORES GERAIS
   ============================================================ */
body.dark-mode {
    background: #1a1a1a;
    color: #e6e6e6;
}

body.dark-mode a {
    color: #ffd27f;
}

body.dark-mode img.theme-icon,
body.dark-mode img.toolbar-icon {
    filter: invert(1);
}

/* ============================================================
   HEADER
   ============================================================ */
header.ym-noprint {
    background: linear-gradient(to bottom, #a80000, #9a0000);
    color: #fff;
    padding: 12px 15px;
    transition: background 0.3s ease;
}

body.dark-mode header.ym-noprint {
    background: #550000;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #ffffff;
    color: #000000;
    padding: 12px 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode footer {
    background: #000000;
    color: #ffffff;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.toolbar,
.chapter-toolbar {
    display: flex;
    align-items: center;

    padding: 6px 14px;     /* AFASTAMENTO igual ao player */
    gap: 12px;             /* espaçamento entre botões */

    background: #f0f0f0;   /* modo claro */
    border: 1px solid #ccc;
    border-radius: 10px;
}

/* MODO ESCURO */
body.dark-mode .toolbar,
body.dark-mode .chapter-toolbar {
    background: #1a1a1a;
    border-color: #333;
}

/* ÍCONES   impedir que responsive.css os encolha */
.ym-button img,
.chapter-toolbar img,
.alignRight img {
    width: 22px !important;
    height: 22px !important;
    max-width: none !important;
    max-height: none !important;
}

/* Espaçamento entre botões individuais */
.toolbar button,
.toolbar a,
.chapter-toolbar button,
.chapter-toolbar a {
    margin: 0 4px;
}

/* Ícones Sol/Lua seguem as cores do site */
.theme-btn img {
    filter: none;
}

/* Modo claro   ícone escuro */
body:not(.dark-mode) .theme-btn img {
    filter: brightness(0) saturate(100%);
}

/* Modo escuro   ícone branco */
body.dark-mode .theme-btn img {
    filter: invert(1);
}

/* Afastar botões das bordas da toolbar */
.toolbar-left,
.toolbar-right {
    padding: 0 6px;   /* afasta da esquerda e direita */
}

/* Opcional: manter tudo alinhado verticalmente */
.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
}


/* ============================================================
   BOTÕES CIRCULARES
   ============================================================ */
.circle-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ddd;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.circle-btn:hover {
    background: #ccc;
    transform: scale(1.1);
}

.circle-r {
    background: #cc0000;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    user-select: none;
}

/* BOTÃO TEMA (LUA/SOL)   versão com caixa */
.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;          /* igual ao estilo dos teus botões */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    background: #f0f0f0;         /* modo claro */
    border: 1px solid #ccc;      /* modo claro */
    transition: 0.25s ease;
    padding: 0;
}

/* Ícone dentro da caixa */
.theme-btn img {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* MODO ESCURO   adapta a caixa */
body.dark-mode .theme-btn {
    background: #1a1a1a;
    border-color: #333;
}


/* ============================================================
   BOTÃO  CAPÍTULO TOPO E PRINT
   ============================================================ */
.ym-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}


.ym-button img {
    width: 22px !important;
    height: 22px !important;
}

/* ============================================================
   TIPOGRAFIA / UTILIDADES
   ============================================================ */
.bold { font-weight: bold; }
.centered { text-align: center; }
.large { font-size: 1.6em; }
.full-width { width: 100%; }

/* ============================================================
   CAPÍTULOS
   ============================================================ */
.chap,
.chapread {
    padding: 0 7px;
    font-size: 100%;
    display: inline;
    line-height: 200%;
    border: 1px solid #333;
}

.chap {
    border-color: #737373;
}

.chapread {
    background-color: #AA2023;
    color: #EEFFFF;
}

/* ============================================================
   VERSÍCULOS
   ============================================================ */
.verse {
    font-weight: bold;
    color: #D2B48C;
    font-size: 80%;
    font-style: italic;
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-slide_2 {
    height: 30px;
    width: 30px;
    margin-left: 10px;
    float: right;
    transition: all 0.3s ease;
}

/* ============================================================
   AUDIO PLAYER   BASE
   ============================================================ */
.audioPlayer {
    width: 100%;
    max-width: none; /* permite expandir como a toolbar */
    min-height: 52px; /* em vez de height fixa */
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 15px 0;

    background: var(--bg, #f5f5f5);
    border: 1px solid #ddd;
    border-radius: 8px;

    overflow: visible; /* permitir que o conteúdo apareça */
    box-sizing: border-box;
}


.dark-mode .audioPlayer {
    --bg: #1a1a1a;
    border-color: #333;
}

.audio-ui {
    display: flex;
    align-items: center;   /* alinha verticalmente play/pause e volume */
    gap: 10px;             /* espaçamento equilibrado */
    width: 100%;           /* permite que a barra expanda */
}


/* Botões */
.audio-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.dark-mode .audio-btn {
    background: #222;
    border-color: #444;
}

.audio-btn:hover {
    transform: scale(1.12);
    border-color: #cc0000;
}

.audio-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.audio-btn:hover img {
    opacity: 1;
}

/* PLAY / PAUSE */
.audio-btn .icon-pause { display: none; }
.playing .icon-play { display: none; }
.playing .icon-pause { display: inline-block; }

/* Barra de progresso */
.audio-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0; /* evita quebra */
}

.audio-track {
    flex: 1;
    height: 8px;              /* altura equilibrada */
    border-radius: 6px;       /* cantos suaves */
    background: #c4c4c4;      /* VISÍVEL no modo claro */
}

.audio-time {
    font-size: 0.85em;
    width: 40px;
    text-align: center;
}

/* .audio-track {
    position: relative;
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
} */

.dark-mode .audio-track {
    background: #444;
}

.audio-bar {
    height: 100%;
    width: 0%;
    background: #cc0000;
    border-radius: 4px;
}

.audio-ball {
    position: absolute;
    top: -4px;
    left: 0%;
    width: 14px;
    height: 14px;
    background: #cc0000;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Playlist */
/* Playlist */
.audio-playlist {
    margin: 0;               /* remove espaço extra */
    padding: 0;              /* remove indentação */
    list-style: none;        /* remove bullets */
    display: flex;           /* mantém tudo na horizontal */
    align-items: center;     /* ALINHA verticalmente o Play/Pause */
}

.audio-playlist li {
    margin: 0;
    padding: 0;
}

.audio-playlist li a {
    color: #cc0000;
    text-decoration: none;
    font-size: 0.85em;       /* mantém o teu valor final */
}

.audio-playlist li a:hover {
    text-decoration: underline;
}



/* ============================================================
   AUDIO PLAYER   MOBILE
   ============================================================ */
@media (max-width: 600px) {

    .audioPlayer {
        padding: 12px;
        border-radius: 8px;
    }
    .audio-btn {
        width: 28px;
        height: 28px;
    }

    .audio-btn img {
        width: 16px;
        height: 16px;
    }

    .audio-ball {
        width: 18px;
        height: 18px;
        top: -4px;
    }

    .audio-time {
        font-size: 0.75em;
        width: 34px;
    }

    .audio-playlist li a {
        font-size: 0.85em;
    }
}

/* ============================================================
   SVG ICONS   PLAY / PAUSE / VOLUME
   ============================================================ */
.icon-play,
.icon-pause,
.icon-volume {
    width: 26px;
    height: 26px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.icon-volume {
    background-image: url('../img/svg/volume-on.svg');
}

body.light-mode .icon-play { background-image: url('../img/svg/play.svg'); }
body.dark-mode .icon-play { background-image: url('../img/svg/play-white.svg'); }

body.light-mode .icon-pause { background-image: url('../img/svg/pause.svg'); }
body.dark-mode .icon-pause { background-image: url('../img/svg/pause-white.svg'); }

body.light-mode .icon-volume { background-image: url('../img/svg/volume-on.svg'); }
body.dark-mode .icon-volume { background-image: url('../img/svg/volume-on-white.svg'); }

body.light-mode .muted .icon-volume { background-image: url('../img/svg/volume-off.svg'); }
body.dark-mode .muted .icon-volume { background-image: url('../img/svg/volume-off-white.svg'); }

/* Botão de menu com texto */
.btn-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #cc0000;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    height: auto;
    width: auto;
    line-height: 1.2;
    white-space: nowrap;
}

button svg {
    display: block;
    margin: auto;
}

