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

:root {

    --accent-color: #0097BD;
    --bg-color: #f2f2f2;
    --card-bg: #ffffff;
    --text-color: #111111;
    --text-sub: rgba(0, 0, 0, 0.65);
    --border-color: rgba(0, 0, 0, 0.12);
    --item-bg: rgba(0, 0, 0, 0.04);
    --input-bg: rgba(255, 255, 255, 0.5);

    --blur-overlay-start: rgba(242, 242, 242, 0.90);
    --blur-overlay-mid: rgba(242, 242, 242, 0.90);
    --blur-overlay-end: rgba(242, 242, 242, 0.60);
}

body.dark-mode {

    --bg-color: #0f0f10;
    --card-bg: #18181a;
    --text-color: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.12);
    --item-bg: rgba(255, 255, 255, 0.04);
    --input-bg: rgba(0, 0, 0, 0.5);

    --blur-overlay-start: rgba(15, 15, 16, 0.90);
    --blur-overlay-mid: rgba(15, 15, 16, 0.90);
    --blur-overlay-end: rgba(15, 15, 16, 0.60);
}

.lock-body {
    margin: 0; padding: 0; width: 100vw; height: 100vh;
    background: #0f0f10; color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--custom-font-family), sans-serif;
}
.lock-message {
    text-align: center; font-size: 18px; color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px; border-radius: 20px; max-width: 400px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    font-family: var(--custom-font-family), sans-serif;
}

html, body {
    width: 100vw; height: 100vh; height: 100dvh;
    overflow: hidden; background: var(--bg-color); color: var(--text-color);
    position: relative; transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--custom-font-family), sans-serif;
}

button, input, textarea, select {
    font-family: var(--custom-font-family), sans-serif;
}

.app-blur-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background-size: cover; background-position: center;
    filter: brightness(0.95); opacity: 0.85; transform: scale(1.15); z-index: 0;
    transition: background-image 0.8s ease-in-out;
}

.app-blur-bg::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        var(--blur-overlay-start) 0%,
                                var(--blur-overlay-mid) 28%,
                                var(--blur-overlay-end) 100%
    );
    pointer-events: none;
    transition: background 0.3s ease;
}

body.dark-mode .app-blur-bg {
    filter: brightness(0.8); opacity: 1;
}

.app-container {
    width: 100%; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 0 16px 0 16px; position: relative; z-index: 1;
}

/* HEADER */
.header-station {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 50px;
}

.header-main-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-identity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.station-logo { max-width: 180px; object-fit: contain; filter: none; }

.station-name {
    font-weight: 600; font-style: italic;
    text-transform: uppercase; line-height: 1.1; color: var(--accent-color); letter-spacing: 1px;
    font-family: var(--custom-font-family), sans-serif;
}
.station-slogan {
    font-weight: 600; font-style: italic;
    text-transform: uppercase; line-height: 1.1; color: var(--accent-color); margin-top: 2px; margin-bottom: 0;
    font-family: var(--custom-font-family), sans-serif;
    text-align: center;
}

.header-buttons-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.social-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: var(--item-bg);
    padding: 7px 7px;
    border-radius: 100%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    font-family: var(--custom-font-family), sans-serif;
}

.social-btn-link:hover, .social-btn-link.active {
    background: color-mix(in srgb, var(--accent-color) 15%, transparent);
    border-color: var(--accent-color);
    transform: scale(1.02);
    color: var(--text-color);
}

.social-btn-link svg { width: 16px; height: 16px; fill: currentColor; }

.main-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 500px; margin: auto 0; position: relative; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-color);
    text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px;
    background: var(--item-bg); padding: 7px 16px; border-radius: 16px;
    border: 1px solid var(--border-color); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font-family: var(--custom-font-family), sans-serif;
}
.status-badge:hover {
    background: color-mix(in srgb, var(--accent-color) 15%, transparent);
    border-color: var(--accent-color);
    transform: scale(1.02);
}
.status-badge.is-preview {
    background: color-mix(in srgb, var(--accent-color) 20%, transparent);
    border-color: var(--accent-color);
}
.status-dot { width: 9px; height: 9px; background-color: #ff3b30; border-radius: 50%; animation: pulse 1.8s infinite; }

.presenter-name {
    font-weight: 600; font-style: italic; font-size: 15px; color: var(--text-color);
    text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; text-align: center;
    font-family: var(--custom-font-family), sans-serif;
}

.player-middle-row { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }
.player-middle-row.single-stream-mode .controls-floating-bar {
    gap: 16px;
}

.cover-wrapper {
    position: relative; width: min(65vw, 320px); height: min(65vw, 320px);
    border-radius: 20px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color); cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.cover-art { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; }
.cover-art.fade-change { opacity: 0.3; transform: scale(0.96); }

.cover-wrapper .play-overlay {
    display: flex !important; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s ease; z-index: 3;
}
.cover-wrapper:hover .play-overlay { opacity: 1; }

.play-overlay .play-btn-icon { width: 64px; height: 64px; fill: #ffffff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); display: none; }
.cover-wrapper.is-preview-playing:hover .play-overlay .icon-live-main { display: block; }
.cover-wrapper.paused:not(.is-preview-playing):hover .play-overlay .icon-play-main { display: block; }
.cover-wrapper:not(.paused):not(.is-preview-playing):hover .play-overlay .icon-pause-main { display: block; }

.controls-floating-bar { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 14px; }
.volume-floating-container { position: relative; display: flex; flex-direction: column; align-items: center; }

.control-btn {
    background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-weight: 700; font-style: italic; font-size: 13px; text-decoration: none;
    font-family: var(--custom-font-family), sans-serif;
    transform: none !important;
}
.control-btn:hover, .control-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: none !important;
}
.control-btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-stream { position: relative; }
.btn-stream .icon-play, .btn-stream .icon-pause { display: none; }
.btn-stream.playing.active:hover .btn-text { display: none; }
.btn-stream.playing.active:hover .icon-pause { display: block; }
.btn-stream.playing:not(.active):hover .btn-text { display: none; }
.btn-stream.playing:not(.active):hover .icon-play { display: block; }

/* Container atualizado para margens e overflow dinâmico */
.track-info {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 0 16px; /* Margem de 16px nas bordas direita e esquerda */
    box-sizing: border-box;
    overflow: hidden;
}

.scroll-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.scroll-content { display: inline-block; white-space: nowrap; will-change: transform; }
.song-title { font-weight: 600; font-style: italic; text-transform: uppercase; font-size: 23px; color: var(--text-color); font-family: var(--custom-font-family), sans-serif; }
.song-artist { font-weight: 500; font-style: italic; text-transform: uppercase; font-size: 17px; color: var(--text-sub); margin-top: 2px; font-family: var(--custom-font-family), sans-serif; }

.footer-info {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.footer-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--item-bg);
    padding: 10px 20px;
    border-radius: 30px;
    border: 0 1px solid var(--border-color);
    margin-bottom: 16px;
}

.footer-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.footer-icon-btn:hover, .footer-icon-btn.active, .footer-icon-btn:active {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px) scale(1.08);
}

.footer-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.page-view {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: none; -webkit-backdrop-filter: none;
    z-index: 9999; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease;
    font-family: var(--custom-font-family), sans-serif;
}
.page-view.active { display: flex; opacity: 1; }
.page-container {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px;
    width: 100%; max-width: 850px; max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); overflow: hidden; position: relative; color: var(--text-color);
    font-family: var(--custom-font-family), sans-serif;
}
.page-header {
    padding: 12px 16px; border-bottom: 1px solid var(--border-color);
    position: relative; background: var(--item-bg); display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 10px;
}
.page-title-container { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.page-title { font-weight: 500; font-style: italic; font-size: 22px; color: var(--text-color); text-transform: uppercase; font-family: var(--custom-font-family), sans-serif; }

.header-actions-right { display: flex; align-items: center; gap: 8px; margin-left: auto; z-index: 2; flex-wrap: wrap; justify-content: flex-end; }
.ui-close-btn {
    width: 18px; height: 18px; border-radius: 50%; background: #ff5f56; border: none; cursor: pointer; flex-shrink: 0; margin-left: 6px;
    transition: transform 0.2s ease;
}
.ui-close-btn:hover { transform: scale(1.15); }
.page-content { padding: 20px 24px; overflow-y: auto; font-size: 18px; line-height: 1.6; color: var(--text-color); flex: 1; font-family: var(--custom-font-family), sans-serif; }

.bible-select, .bible-input {
    background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-color);
    padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; outline: none;
    font-family: var(--custom-font-family), sans-serif;
}
.bible-select option { background: var(--card-bg); color: var(--text-color); }
.bible-nav-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.bible-verse-item { margin-bottom: 14px; font-size: 18px; line-height: 1.7; text-align: justify; font-family: var(--custom-font-family), sans-serif; }
.bible-verse-num { font-weight: 700; color: var(--accent-color); margin-right: 8px; font-size: 15px; vertical-align: super; }

.bible-inline-search { display: none; flex: 1; align-items: center; gap: 8px; animation: fadeIn 0.3s ease; }
.bible-inline-search.active { display: flex; }
.bible-inline-search input {
    flex: 1; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-color);
    padding: 6px 12px; border-radius: 8px; font-size: 14px; outline: none;
    font-family: var(--custom-font-family), sans-serif;
}

.testament-title {
    width: 100%; font-weight: 700; font-style: italic; font-size: 16px;
    text-transform: uppercase; color: var(--accent-color); margin: 16px 0 10px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 4px;
    font-family: var(--custom-font-family), sans-serif;
}
.testament-title:first-child { margin-top: 0; }
.bible-books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bible-book-card {
    background: var(--item-bg); border: 1px solid var(--border-color);
    padding: 12px 4px; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.bible-book-card:hover { background: color-mix(in srgb, var(--accent-color) 30%, transparent); border-color: var(--accent-color); }
.bible-book-abbrev { font-weight: 700; font-size: 15px; text-transform: uppercase; color: var(--text-color); font-family: var(--custom-font-family), sans-serif; }

.schedule-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--item-bg); padding: 4px; border-radius: 14px; overflow-x: auto; justify-content: center; flex-wrap: wrap; }
.schedule-tab {
    flex: 0 0 auto; background: transparent; border: none; color: var(--text-sub); padding: 8px 12px;
    border-radius: 10px; font-weight: 600; font-style: italic; font-size: 15px; cursor: pointer; text-transform: uppercase;
    transition: all 0.2s ease;
    font-family: var(--custom-font-family), sans-serif;
}
.schedule-tab .tab-full { display: inline; }
.schedule-tab .tab-short { display: none; }
.schedule-tab.active { background: var(--accent-color); color: #ffffff; }
.schedule-list { display: flex; flex-direction: column; gap: 10px; }
.schedule-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--item-bg); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-color);
}
.schedule-item.active { background: color-mix(in srgb, var(--accent-color) 20%, transparent); border-color: var(--accent-color); }
.schedule-item-details { display: flex; align-items: center; gap: 12px; flex: 1; }
.schedule-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-color); flex-shrink: 0; }
.schedule-text-group { display: flex; flex-direction: column; }
.schedule-name { font-weight: 600; font-style: italic; font-size: 18px; color: var(--text-color); text-transform: uppercase; font-family: var(--custom-font-family), sans-serif; }
.schedule-locutor-modal { font-size: 13px; color: var(--text-sub); font-weight: 500; margin-top: 2px; font-family: var(--custom-font-family), sans-serif; }
.schedule-time { font-weight: 600; font-style: italic; font-size: 14px; color: var(--accent-color); flex-shrink: 0; font-family: var(--custom-font-family), sans-serif; }

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--item-bg); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-color);
}
.history-cover-wrapper { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.history-thumb { width: 100%; height: 100%; object-fit: cover; }
.history-play-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.history-cover-wrapper:hover .history-play-overlay { opacity: 1; }
.history-play-overlay svg { width: 20px; height: 20px; fill: #ffffff; }
.history-track-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.history-song { font-weight: 600; font-style: italic; font-size: 16px; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-family: var(--custom-font-family), sans-serif; }
.history-artist { font-weight: 500; font-style: italic; font-size: 14px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-family: var(--custom-font-family), sans-serif; }
.history-time { font-weight: 600; font-size: 13px; color: var(--text-sub); flex-shrink: 0; font-family: var(--custom-font-family), sans-serif; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Animação dinâmica para o efeito de letreiro */
@keyframes scrollText {
    0%, 15% { transform: translateX(0); }
    85%, 100% { transform: translateX(var(--scroll-dist)); }
}

.ads-banner-wrapper {
    margin: 6px 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.ad-banner-item { width: 100%; display: flex; justify-content: center; }
.ad-banner-item img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.ads-rodape {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

@media (max-width: 480px) {
    .header-main-row {
        justify-content: flex-start;
    }

    .header-identity-container {
        justify-content: flex-start;
    }

    /* Visibilidade do slogan controlada pelo config.json. */

    .header-buttons-bar {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .schedule-tab .tab-full { display: none; }
    .schedule-tab .tab-short { display: inline; }
    .page-view { padding: 0; }
    .page-container {
        width: 100vw; height: 100vh; height: 100dvh;
        max-width: 100%; max-height: 100%; border-radius: 0; border: none;
    }
    .cover-wrapper { width: min(72vw, 240px); height: min(72vw, 240px); }

    .app-container {
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .header-station {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-info {
        width: 100vw;
        margin: 0;
    }

    .action-buttons-group {
        width: 100vw;
        border-radius: 0;
        border: none !important;
        margin-bottom: 0;
        justify-content: space-around;
        padding: 10px 12px;
    }

    .ads-topo {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 5px 0 0 0 !important;
        padding: 0 !important;
    }

    .ads-topo .ad-banner-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .ads-rodape {
        margin: 0 !important;
    }

    .ads-rodape .ad-banner-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

.custom-submit-lyric-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; max-width: 340px;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 75%, #000));
    color: #ffffff; border: none; padding: 12px 20px; border-radius: 14px;
    font-weight: 600; font-style: italic; font-size: 15px; text-transform: uppercase; cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color) 35%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    font-family: var(--custom-font-family), sans-serif;
}
.custom-submit-lyric-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--accent-color) 50%, transparent);
    filter: brightness(1.05);
}
.custom-submit-lyric-btn:active { transform: translateY(0); }

.custom-form-card { border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
.custom-form-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.custom-form-subtitle { font-size: 14px; color: var(--text-sub); margin-bottom: 4px; line-height: 1.4; font-family: var(--custom-font-family), sans-serif; }

.custom-lyric-form-elements .form-group { display: flex; flex-direction: column; gap: 6px; }
.custom-lyric-form-elements .form-label {
    font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--text-sub); letter-spacing: 0.5px;
    font-family: var(--custom-font-family), sans-serif;
}
.custom-lyric-form-elements .form-input,
.custom-lyric-form-elements .custom-textarea {
    background: var(--input-bg); border: 1.5px solid var(--border-color); color: var(--text-color);
    padding: 10px 14px; border-radius: 12px; font-size: 15px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--custom-font-family), sans-serif;
}
.custom-lyric-form-elements .form-input:focus,
.custom-lyric-form-elements .custom-textarea:focus {
    border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 20%, transparent);
}
.custom-textarea { resize: vertical; min-height: 120px; }

.custom-action-submit-btn {
    width: 100%; background: var(--accent-color); color: #ffffff; border: none; padding: 14px;
    border-radius: 12px; font-weight: 700; font-style: italic; font-size: 16px;
    text-transform: uppercase; cursor: pointer; letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease; box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    font-family: var(--custom-font-family), sans-serif;
}
.custom-action-submit-btn:not(:disabled):hover { filter: brightness(1.1); transform: scale(1.01); }
.custom-action-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--border-color); color: var(--text-sub); box-shadow: none; }

/* =========================================================
 *  ESTILOS DO LETREIRO ROTATIVO DE POSTS (TICKER)
 * = *======================================================== */

.post-ticker-wrapper {
    white-space: nowrap;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 100%, transparent);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.post-ticker-scroll {
    display: inline-flex;
    align-items: center;
    /* Velocidade do letreiro - altere os 25s para mais rápido/lento */
    animation: scrollTicker 160s linear infinite;
    will-change: transform;
}

/* Opcional: Pausar o letreiro quando o mouse estiver em cima */
.post-ticker-scroll:hover {
    animation-play-state: paused;
}

.post-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
}

.ticker-badge {
    font-size: 14px !important;
    padding: 2px 8px !important;
    margin-right: 8px;
}

.ticker-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    font-family: var(--custom-font-family), sans-serif;
    margin-right: 8px;
}

.ticker-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-color);
    font-family: var(--custom-font-family), sans-serif;
    margin-right: 8px;
    text-transform: uppercase;
}

.ticker-dot {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 800;
}

/* Efeito de rotação infinita contínua */
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Controles SD, volume e HD integrados à barra social do cabeçalho */
.header-buttons-bar { gap: 8px; }
.header-buttons-bar .social-btn-link {
    width: 30px; height: 30px; min-width: 30px; padding: 7px;
    flex: 0 0 30px; font-size: 11px; line-height: 1;
}
.header-buttons-bar .social-btn-link svg { width: 16px; height: 16px; }
.header-buttons-bar .stream-quality-btn { font-weight: 700; font-style: italic; }
.volume-floating-container { position: relative; display: flex; align-items: center; width: 30px; height: 30px; z-index: 20; }
.volume-floating-container:has(.volume-slider-panel:not([hidden])) { z-index: 110; }
/* Quando aberto, a borda personalizada envolve todo o controle vertical. */
.volume-floating-container:has(.volume-slider-panel:not([hidden])) .volume-social-btn {
    position: absolute; top: 1px; left: 1px;
    width: 28px; height: 29px; min-width: 28px; padding: 6px;
    border: 0; border-radius: 14px 14px 0 0;
    background: transparent; box-shadow: none; transform: none;
}
.volume-floating-container:has(.volume-slider-panel:not([hidden])) .volume-social-btn:hover,
.volume-floating-container:has(.volume-slider-panel:not([hidden])) .volume-social-btn.active {
    border-color: transparent; background: transparent; transform: none;
}
.volume-floating-container .volume-social-btn { position: relative; z-index: 2; flex-shrink: 0; }
.volume-slider-panel {
    position: absolute; top: 0; left: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 8px; width: 30px; height: 132px; box-sizing: border-box;
    padding: 38px 5px 9px; border-radius: 16px; border: 1px solid var(--accent-color);
    background: var(--item-bg); color: var(--text-color); box-shadow: 0 6px 18px rgba(0,0,0,.22);
    animation: volumeSliderOpen .16s ease-out;
}
.volume-slider-panel[hidden] { display: none; }
.volume-slider-panel input[type="range"] {
    writing-mode: vertical-lr; direction: rtl;
    width: 16px; height: 62px; min-height: 62px; min-width: 0;
    accent-color: var(--accent-color); cursor: pointer; margin: 0;
}
.volume-slider-panel span { font-size: 9px; line-height: 1; font-weight: 600; min-width: 0; text-align: center; white-space: nowrap; }
@keyframes volumeSliderOpen { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Ícones de play/pause ao passar o mouse ou focar nos botões de qualidade */
.header-buttons-bar .stream-quality-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: auto;
}

/* Anúncios em vídeo ao lado da capa no desktop e no lugar dela em telas móveis. */
.player-middle-row {
    gap: 22px;
}

.video-ad-container {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: min(65vw, 320px);
    width: auto;
    aspect-ratio: var(--video-ad-ratio, 16 / 9);
    max-height: min(65vw, 320px);
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.video-ad-container.is-visible {
    display: flex;
}

.video-ad-media {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    background: #000;
}

.video-ad-controls {
    position: absolute;
    z-index: 7;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.video-ad-label {
    position: static;
    padding: 5px 9px;
    border-radius: 5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .5px;
    pointer-events: none;
}

.video-ad-close {
    position: static;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    flex-shrink: 0;
}

.video-ad-close[hidden] {
    display: none !important;
}

.video-ad-cover-hidden {
    display: none !important;
}

@media (min-width: 601px) {
    .player-middle-row:has(.video-ad-container.is-visible) {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .video-ad-container.video-ad-desktop {
        height: min(65vw, 320px);
        width: auto;
        aspect-ratio: var(--video-ad-ratio, 16 / 9);
        max-height: min(65vw, 320px);
    }
}

@media (max-width: 600px) {
    .player-middle-row {
        gap: 0;
    }

    .player-middle-row:has(.video-ad-container.is-visible) {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .video-ad-container.video-ad-mobile {
        width: min(92vw, 480px);
        height: auto;
        max-height: none;
        aspect-ratio: var(--video-ad-ratio, 16 / 9);
        border-radius: 20px;
        border: 1px solid var(--border-color);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    }

    .video-ad-container.video-ad-mobile .video-ad-media {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Mantém a capa com seu tamanho original quando o vídeo aparece ao lado. */
.player-middle-row > .cover-wrapper {
    flex: 0 0 auto;
}

/* O iframe do YouTube ocupa toda a área reservada ao anúncio. */
.video-ad-youtube-host,
.video-ad-youtube-host iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Agrupamento dos botões do cabeçalho em telas móveis. */
.mobile-menu-group { position: relative; display: contents; }
.mobile-group-toggle { display: none; }
.mobile-menu-panel { display: contents; }

@media (max-width: 600px) {
    .header-buttons-bar {
        gap: 6px;
    }

    .mobile-menu-group {
        position: relative;
        display: flex;
        align-items: center;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
    }

    .mobile-group-toggle {
        display: inline-flex !important;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 6px !important;
    }

    .mobile-group-toggle svg {
        display: block;
        width: 16px;
        height: 16px;
    }

    .mobile-menu-panel {
        display: none;
        position: absolute;
        top: calc(100% + 7px);
        right: 0;
        z-index: 150;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        width: 42px;
        padding: 7px 6px;
        border: 1px solid var(--border-color);
        border-radius: 22px;
        background: var(--item-bg);
        box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    }

    .mobile-menu-group.is-open .mobile-menu-panel {
        display: flex;
    }

    .mobile-menu-panel .social-btn-link {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 6px;
    }

    .quality-buttons-panel .stream-quality-btn {
        font-size: 11px;
        font-weight: 800;
    }

    .quality-buttons-panel .stream-quality-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Controles do cabeçalho: vidro fosco semi-transparente. */
.header-buttons-bar .social-btn-link,
.header-buttons-bar .mobile-menu-panel,
.header-buttons-bar .volume-slider-panel {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode .header-buttons-bar .social-btn-link,
body.dark-mode .header-buttons-bar .mobile-menu-panel,
body.dark-mode .header-buttons-bar .volume-slider-panel {
    background: rgba(24, 24, 26, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-buttons-bar .social-btn-link:hover,
.header-buttons-bar .social-btn-link.active,
.header-buttons-bar .social-btn-link:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(255,255,255,.18));
    border-color: color-mix(in srgb, var(--accent-color) 70%, transparent);
}

@media (max-width: 600px) {
    .header-buttons-bar .quality-buttons-group {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
    }
    .header-buttons-bar .quality-buttons-panel {
        align-items: center;
        gap: 7px;
        width: 42px;
        max-height: min(70vh, 360px);
        overflow: visible;
    }
    .header-buttons-bar .quality-buttons-panel .stream-quality-btn {
        flex: 0 0 30px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container {
        display: flex;
        position: relative;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 30px;
        height: auto;
        min-height: 30px;
        z-index: 3;
    }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container:has(.volume-slider-panel:not([hidden])) {
        width: 30px;
        height: auto;
        min-height: 30px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-slider-panel {
        position: relative;
        top: auto;
        left: auto;
        width: 30px;
        height: 150px;
        min-height: 150px;
        padding: 10px 4px 8px;
        gap: 8px;
        border-radius: 15px;
        justify-content: space-between;
        order: 2;
    }
    .header-buttons-bar .quality-buttons-panel .volume-slider-panel input[type="range"] {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        max-height: 112px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-slider-panel span {
        font-size: 9px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container:has(.volume-slider-panel:not([hidden])) .volume-social-btn {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 6px;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 50%;
        background: rgba(255,255,255,.16);
    }
}


/* Até 950px, o anúncio ocupa o lugar da capa para evitar que ambos sejam cortados. */
@media (max-width: 950px) {
    .player-middle-row {
        gap: 0;
    }

    .player-middle-row:has(.video-ad-container.is-visible) {
        justify-content: center;
        flex-wrap: nowrap;
    }

    .video-ad-container.video-ad-mobile {
        width: min(92vw, 480px);
        height: auto;
        max-height: none;
        aspect-ratio: var(--video-ad-ratio, 16 / 9);
        border-radius: 20px;
        border: 1px solid var(--border-color);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    }

    .video-ad-container.video-ad-mobile .video-ad-media {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


/* Status e ações: mesmo vidro fosco dos controles do cabeçalho. */
.status-badge,
.action-buttons-group {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode .status-badge,
body.dark-mode .action-buttons-group {
    background: rgba(24, 24, 26, 0.58) !important;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Ícone correspondente ao tema ativo: sol no claro e lua no escuro. */
#theme-toggle-btn #theme-icon-moon { display: none; }
body.dark-mode #theme-toggle-btn #theme-icon-sun { display: none; }
body.dark-mode #theme-toggle-btn #theme-icon-moon { display: block; }

/* Legibilidade sobre o fundo sem blur: sombras suaves por tema. */
body:not(.dark-mode) .station-name {
    text-shadow: 0 1px 3px rgba(255,255,255,.75), 0 2px 8px rgba(255,255,255,.38);
}
body:not(.dark-mode) .station-slogan {
    text-shadow: 0 1px 4px rgba(255,255,255,.65);
}
body:not(.dark-mode) .track-info {
    text-shadow: 0 1px 3px rgba(255,255,255,.65), 0 2px 8px rgba(255,255,255,.30);
}
body.dark-mode .station-name {
    text-shadow: 0 2px 5px rgba(0,0,0,.45), 0 4px 16px rgba(0,0,0,.25);
}
body.dark-mode .station-slogan {
    text-shadow: 0 1px 4px rgba(0,0,0,.40);
}
body.dark-mode .track-info {
    text-shadow: 0 2px 5px rgba(0,0,0,.45), 0 3px 12px rgba(0,0,0,.20);
}

/* Letreiro: mesma superfície de vidro fosco dos controles do cabeçalho. */
.post-ticker-wrapper {
    border: 0 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
}
body.dark-mode .post-ticker-wrapper {
    border-color: rgba(255, 255, 255, 0.18);
}


/* Capa e barra de ações: mesma superfície de vidro dos controles do cabeçalho.
 *   A transparência do PNG permite visualizar o vidro da própria capa. */
.cover-wrapper {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode .cover-wrapper {
    background: rgba(24, 24, 26, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* A barra de ações se estende no mobile; manter o vidro também nessa largura. */
@media (max-width: 600px) {
    .action-buttons-group {
        background: rgba(255, 255, 255, 0.16) !important;
        -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
        backdrop-filter: blur(16px) saturate(145%) !important;
    }

}


/* Ajustes 21/10/2026: destaque accent-color no cabeçalho em modo escuro. */
body.dark-mode .header-buttons-bar .social-btn-link:hover,
body.dark-mode .header-buttons-bar .social-btn-link.active,
body.dark-mode .header-buttons-bar .social-btn-link:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(24, 24, 26, 0.58));
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* Status com a mesma interação visual dos botões do cabeçalho, sem ampliar. */
.status-badge {
    transform: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.status-badge:hover,
.status-badge:focus-visible,
.status-badge.is-preview {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(255, 255, 255, 0.16)) !important;
    border-color: var(--accent-color);
    color: var(--text-color);
    transform: none;
}
body.dark-mode .status-badge:hover,
body.dark-mode .status-badge:focus-visible,
body.dark-mode .status-badge.is-preview {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(24, 24, 26, 0.58)) !important;
    border-color: var(--accent-color);
    color: var(--text-color);
    transform: none;
}

/* Letreiro: somente borda inferior, com a mesma cor do status-badge. */
.post-ticker-wrapper {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}


/* Letreiro com o mesmo acabamento da barra de ações no desktop. */
.post-ticker-wrapper {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode .post-ticker-wrapper {
    background: rgba(24, 24, 26, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* No mobile, acompanha a barra de ações: largura total e sem cantos/bordas. */
@media (max-width: 600px) {
    .post-ticker-wrapper {
        width: 100vw;
        max-width: 100vw;
        border: none;
        border-radius: 0;
        padding: 10px 12px;
    }
    body.dark-mode .post-ticker-wrapper {
        border: none;
    }
}


/* Ajustes do letreiro - 21/10/2026: espaçamento e conteúdo contido no desktop. */
@media (min-width: 601px) {
    .post-ticker-wrapper {
        margin-top: 6px;
        overflow: hidden;
        min-width: 0;
    }
    .post-ticker-scroll {
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .post-ticker-wrapper {
        margin-top: 0;
    }
}

/* O marcador de status dos posts não possui superfície ou contorno próprio. */
.post-status-badge,
body.dark-mode .post-status-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Fade aplicado ao conteúdo rolante, não ao fundo do contêiner. */
.post-ticker-scroll {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
@media (max-width: 600px) {
    .post-ticker-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
}

/* Mobile: fade fixo nas extremidades visíveis do letreiro.
 *   A máscara no elemento rolante não acompanha a janela visível,
 *   pois o conteúdo é mais largo que a tela. */
@media (max-width: 600px) {
    .post-ticker-wrapper {
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
    .post-ticker-scroll {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* v8: fade simétrico e fixo na área visível em qualquer largura.
 *   A máscara não deve ficar no conteúdo animado, cuja largura varia. */
.post-ticker-scroll {
    -webkit-mask-image: none;
    mask-image: none;
}
.post-ticker-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
@media (max-width: 600px) {
    .post-ticker-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
}

/* v9: a máscara atua somente na janela interna do letreiro.
 *   A superfície externa mantém integralmente sua borda e sombras. */
.post-ticker-wrapper,
body.dark-mode .post-ticker-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
}
.post-ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.post-ticker-viewport .post-ticker-scroll {
    -webkit-mask-image: none;
    mask-image: none;
}
@media (max-width: 600px) {
    .post-ticker-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }
}

/* v10: data e hora fixas antes dos posts, sem afetar a máscara ou a borda.
 *   Preserva o padding óptico ajustado manualmente pelo usuário. */
.post-ticker-wrapper {
    padding: 5px 20px 6px 20px;
}
.post-ticker-clock {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: var(--custom-font-family), sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
    margin-right: 8px;
}
.post-ticker-clock-mobile { display: none; }
@media (max-width: 600px) {
    .post-ticker-wrapper {
        padding: 6px 12px 6px 12px;
    }
    .post-ticker-clock {
        font-size: 14px;
        margin-right: 5px;
    }
    .post-ticker-clock-desktop { display: none; }
    .post-ticker-clock-mobile { display: inline; }
}

/* v12: mesma data/hora compacta no desktop e no mobile. */
.post-ticker-clock-desktop { display: none; }
.post-ticker-clock-mobile { display: inline; }

/* Menu de compartilhamento das notícias */
#menuCompartilharPost .post-share-option { display:block; width:100%; padding:9px 12px; border:0; border-radius:7px; background:transparent; color:var(--text-color); text-align:left; font:inherit; font-size:13px; cursor:pointer; }
#menuCompartilharPost .post-share-option:hover, #menuCompartilharPost .post-share-option:focus-visible { background:var(--border-color); outline-offset:2px; }


/* Menu de compartilhar: mesma superficie de vidro fosco dos botoes. */
#menuCompartilharPost {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(255, 255, 255, 0.28);
-webkit-backdrop-filter: blur(16px) saturate(145%);
backdrop-filter: blur(16px) saturate(145%);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark-mode #menuCompartilharPost {
    background: rgba(24, 24, 26, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Compartilhamento: vidro leitoso com icones das redes sociais. */
#menuCompartilharPost {
background: rgba(255, 255, 255, 0.58);
border-color: rgba(255, 255, 255, 0.48);
-webkit-backdrop-filter: blur(18px) saturate(155%);
backdrop-filter: blur(18px) saturate(155%);
}
body.dark-mode #menuCompartilharPost {
    background: rgba(70, 70, 76, 0.78);
    border-color: rgba(255, 255, 255, 0.22);
}
#menuCompartilharPost .post-share-option {
display: flex;
align-items: center;
gap: 10px;
}
#menuCompartilharPost .post-share-option svg {
width: 17px;
height: 17px;
flex-shrink: 0;
fill: currentColor;
}

/* Podcasts: lista integrada ao modal e ao player principal. */
.podcast-list { display: flex; flex-direction: column; gap: 12px; }
.podcast-item { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--item-bg); border: 1px solid var(--border-color); border-radius: 12px; }
.podcast-cover { width: 76px; height: 76px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.podcast-details { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.podcast-details strong { color: var(--text-color); font-size: 16px; text-transform: uppercase; }
.podcast-details span { color: var(--text-sub); font-size: 13px; }
.podcast-play-btn { padding: 8px 12px; border: 1px solid var(--accent-color); border-radius: 9px; background: var(--accent-color); color: #fff; cursor: pointer; font-weight: 600; }

/* Podcasts: layout compartilhado com o modal Tocou. */
.podcast-history-item { gap: 12px; }
.podcast-cover-button { padding: 0; border: 0; background: transparent; display: block; }
.podcast-cover-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--item-bg); color: var(--accent-color); font-size: 25px; }
.podcast-item-action { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); color: var(--text-color); background: var(--item-bg); cursor: pointer; }
.podcast-item-action svg { width: 16px; height: 16px; fill: currentColor; }
.podcast-item-action:hover, .podcast-selected .podcast-item-action { color: white; background: var(--accent-color); border-color: var(--accent-color); }

/* Controles de podcasts e prévias do modal Tocou */
.on-demand-controls { width: 100%; max-width: 620px; margin: 10px auto 6px; padding: 12px 15px; border-radius: 13px; border: 1px solid var(--border-color); background: var(--item-bg); color: var(--text-color); font-family: var(--custom-font-family), sans-serif; box-sizing: border-box; }
.on-demand-controls[hidden] { display: none !important; }
.on-demand-progress { display: flex; gap: 10px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.on-demand-progress input { flex: 1; min-width: 0; accent-color: var(--accent-color); cursor: pointer; }
.on-demand-progress input:disabled { opacity: .5; cursor: default; }
.on-demand-share { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; }
.on-demand-share button { font: inherit; cursor: pointer; border: 1px solid var(--border-color); border-radius: 7px; padding: 5px 9px; color: var(--text-color); background: transparent; }
.on-demand-share button:hover { border-color: var(--accent-color); color: var(--accent-color); }
.podcast-date { display: block; color: var(--text-sub); font-size: 12px; margin-top: 3px; font-family: var(--custom-font-family), sans-serif; }

/* Player sob demanda: vidro translúcido e identidade visual dos botões existentes. */
.on-demand-controls {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
}
body.dark-mode .on-demand-controls {
    background: rgba(24,24,26,.58);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.on-demand-progress input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    border: 1px solid rgba(255,255,255,.22);
    outline-offset: 5px;
    accent-color: var(--accent-color);
}
body.dark-mode .on-demand-progress input[type="range"] { background: rgba(255,255,255,.16); }
.on-demand-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid rgba(255,255,255,.7);
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
}
.on-demand-progress input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid rgba(255,255,255,.7);
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
}
.on-demand-share { gap: 8px; }
.on-demand-share .social-btn-link {
    width: 34px;
    height: 34px;
    padding: 7px;
    box-sizing: border-box;
    flex: 0 0 34px;
    background: rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
body.dark-mode .on-demand-share .social-btn-link { background: rgba(255,255,255,.08); }
.on-demand-share .social-btn-link:hover,
.on-demand-share .social-btn-link:focus-visible {
    border-color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 15%, transparent);
    color: var(--text-color);
}
.on-demand-share .social-btn-link svg { width: 16px; height: 16px; fill: currentColor; }


/* Player sob demanda: mesma largura da capa; compartilhamento separado abaixo. */
.on-demand-controls {
    width: min(65vw, 320px);
    max-width: none;
    margin: 12px auto 0;
    box-sizing: border-box;
}
.on-demand-share {
    display: flex;
    width: min(65vw, 320px);
    max-width: 100%;
    margin: 12px auto 6px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.on-demand-share[hidden] { display: none !important; }
/* Reutiliza as dimensões, vidro e interação dos botões do cabeçalho. */
.on-demand-share .social-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    flex: 0 0 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28);
    color: var(--text-color);
    background: rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
    cursor: pointer;
}
body.dark-mode .on-demand-share .social-btn-link {
    background: rgba(24,24,26,.58);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.on-demand-share .social-btn-link:hover,
.on-demand-share .social-btn-link:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(255,255,255,.18));
    border-color: color-mix(in srgb, var(--accent-color) 70%, transparent);
}
@media (max-width: 600px) {
    .on-demand-controls { width: min(72vw, 240px); }
    .on-demand-share { width: min(72vw, 240px); }
}


/* Refinamento dos controles sob demanda — preserva as regras anteriores. */
.on-demand-controls {
    --demand-progress: 0%;
    width: min(65vw, 320px);
    max-width: none;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(to right,
                                color-mix(in srgb, var(--accent-color) 65%, transparent) 0%,
                                color-mix(in srgb, var(--accent-color) 65%, transparent) var(--demand-progress),
                                rgba(255,255,255,.16) var(--demand-progress),
                                rgba(255,255,255,.16) 100%);
    transition: background-color .2s ease;
}
body.dark-mode .on-demand-controls {
    background: linear-gradient(to right,
                                color-mix(in srgb, var(--accent-color) 70%, rgba(24,24,26,.58)) 0%,
                                color-mix(in srgb, var(--accent-color) 70%, rgba(24,24,26,.58)) var(--demand-progress),
                                rgba(24,24,26,.58) var(--demand-progress),
                                rgba(24,24,26,.58) 100%);
}
.on-demand-progress { gap: 8px; }
.on-demand-progress time {
    flex: 0 0 auto;
    color: #fff;
    background: rgba(0,0,0,.64);
    border-radius: 999px;
    padding: 3px 6px;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.on-demand-progress input[type="range"] {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) var(--demand-progress), rgba(255,255,255,.34) var(--demand-progress), rgba(255,255,255,.34) 100%);
}
body.dark-mode .on-demand-progress input[type="range"] {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) var(--demand-progress), rgba(255,255,255,.24) var(--demand-progress), rgba(255,255,255,.24) 100%);
}
.on-demand-share { width: min(65vw, 320px); gap: 7px; }
.on-demand-share .social-btn-link {
    width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px;
    padding: 0; border-radius: 50%;
}
.on-demand-share .social-btn-link svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
    .on-demand-controls, .on-demand-share { width: min(72vw, 240px); }
    .on-demand-share { gap: 5px; }
    .on-demand-share .social-btn-link { width: 38px; height: 38px; min-width: 38px; flex-basis: 38px; }
}

/* Player sob demanda clean: o controle inteiro é a linha do tempo interativa. */
.on-demand-controls {
    position: relative;
    padding: 0 !important;
    overflow: visible;
    isolation: isolate;
    border-radius: 999px !important;
    min-height: 44px;
}
.on-demand-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 13px;
    gap: 12px;
}
.on-demand-progress time { position: relative; z-index: 2; pointer-events: none; }
.on-demand-progress input[type="range"] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
    border: 0; border-radius: inherit;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    -webkit-appearance: none; appearance: none;
}
.on-demand-progress input[type="range"]:disabled { cursor: default; }
.on-demand-progress input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; border: 0; }
.on-demand-progress input[type="range"]::-moz-range-thumb { width: 0; height: 0; border: 0; }
.on-demand-preview {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 9px;
    border-radius: 9px;
    background: rgba(20,20,24,.9);
    color: #fff;
    font: 700 12px var(--custom-font-family), sans-serif;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .12s ease;
    z-index: 5;
}
.on-demand-preview.visible { opacity: 1; }
.on-demand-controls:focus-within { outline: 2px solid var(--accent-color); outline-offset: 3px; }
/* Compartilhamento permanece fora do controle, como elemento irmão. */
.on-demand-share { margin: 12px auto 0; }


/* Player compacto: toda a superfície serve para navegar no áudio. */
.on-demand-controls {
    width: 260px !important; max-width: min(260px, 100%) !important;
    min-height: 34px !important; height: 34px;
    margin: 10px auto 5px; padding: 0 !important;
    border-radius: 999px !important;
}
.on-demand-progress {
    height: 32px !important; min-height: 32px; padding: 0 8px !important;
    display: block; position: relative;
}
.on-demand-progress #on-demand-current {
    position: absolute; top: 50%; left: var(--demand-time-position, 9%);
    transform: translate(-50%, -50%);
    padding: 2px 6px; border-radius: 8px;
    font-size: 11px; line-height: 1.3; font-weight: 700;
    font-variant-numeric: tabular-nums; white-space: nowrap;
    color: #fff; background: rgba(17, 20, 26, .76);
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
    pointer-events: none; z-index: 2;
}
.on-demand-progress #on-demand-duration { display: none !important; }
.on-demand-progress #on-demand-seek {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 3;
}
.on-demand-share .social-btn-link { border-radius: 50% !important; }
.on-demand-share .social-btn-link[data-share="whatsapp"] svg {
    width: 19px; height: 19px; display: block; fill: currentColor;
}
@media (max-width: 600px) {
    .on-demand-controls { width: min(260px, 90vw) !important; }
}

/* Data na extremidade direita, substituindo o segundo botão de reprodução. */
.podcast-item-date { flex: 0 0 auto; margin: 0 0 0 auto; white-space: nowrap; text-align: right; font-size: 12px; color: var(--text-sub); }


/* Conteúdos dos antigos modais integrados à área principal (22/10/2026). */
.app-container { min-height: 100dvh; overflow: hidden; }
.header-station { position: relative; z-index: 10020; flex-shrink: 0; }
.footer-info, .action-buttons-group { position: relative; z-index: 10020; }
.main-content { flex: 1 1 auto; min-height: 0; max-width: 100%; width: 100%; overflow: hidden; margin: 0; }
#main-home-view { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
#main-section-view { display: none; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.main-content.showing-section #main-home-view { display: none; }
.main-content.showing-section #main-section-view { display: flex; flex-direction: column; }
#main-section-view .page-view.inline-section,
#main-section-view .page-view.inline-section.active { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; padding: 8px 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; opacity: 1; display: none; align-items: stretch; justify-content: center; }
#main-section-view .page-view.inline-section.section-visible { display: flex; }
#main-section-view .page-container { height: 100%; max-height: 100%; max-width: 850px; width: 100%; margin: 0 auto; border-radius: 20px; min-height: 0; box-shadow: none; }
#main-section-view .page-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
    #main-section-view .page-view.inline-section { padding: 0; }
    #main-section-view .page-container { width: 100%; height: 100%; max-height: 100%; border-radius: 12px; border: 1px solid var(--border-color); }
    .main-content { min-height: 0; }
}


/* Refinamento das seções integradas: vidro fosco e navegação (22/10/2026). */
#main-section-view .page-container {
background: rgba(255,255,255,.16) !important;
border: 1px solid rgba(255,255,255,.28);
-webkit-backdrop-filter: blur(16px) saturate(145%);
backdrop-filter: blur(16px) saturate(145%);
box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
}
body.dark-mode #main-section-view .page-container {
    background: rgba(24,24,26,.58) !important;
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
#main-section-view .page-header { background: transparent; }
.action-buttons-group .footer-icon-btn.section-selected,
.action-buttons-group .footer-icon-btn.section-selected:hover {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: color-mix(in srgb, var(--accent-color) 22%, transparent) !important;
}
#postsPageHeaderTitle { font-size: 16px !important; }
#btnCompartilharPost { display: none !important; }
#menuCompartilharPost {
position: static !important; inset: auto !important; min-width: 0 !important;
padding: 0 !important; border: 0 !important; border-radius: 0 !important;
box-shadow: none !important; background: transparent !important;
flex-flow: row nowrap; align-items: center; gap: 5px;
}
#menuCompartilharPost .post-share-option {
width: 30px; height: 30px; min-width: 30px; padding: 6px !important;
border-radius: 50% !important; display: inline-flex; align-items: center;
justify-content: center; background: rgba(255,255,255,.16);
border: 1px solid rgba(255,255,255,.28);
-webkit-backdrop-filter: blur(16px) saturate(145%);
backdrop-filter: blur(16px) saturate(145%);
box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
body.dark-mode #menuCompartilharPost .post-share-option { background: rgba(24,24,26,.58); border-color: rgba(255,255,255,.18); }
#menuCompartilharPost .post-share-option span { display: none !important; }
#menuCompartilharPost .post-share-option svg { width: 16px; height: 16px; flex: none; }
#menuCompartilharPost .post-share-option:hover { background: color-mix(in srgb, var(--accent-color) 35%, rgba(255,255,255,.18)); }
@media (max-width:600px) {
    #main-section-view .page-view.inline-section,
    #main-section-view .page-view.inline-section.active { padding: 0 !important; }
    #main-section-view .page-container { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
    #main-section-view .page-content { min-height: 0; overflow-y: auto; }
    #menuCompartilharPost { gap: 3px; }
    #menuCompartilharPost .post-share-option { width: 27px; height: 27px; min-width: 27px; padding: 5px !important; }
}

/* Seções integradas: mesma apresentação no desktop e no mobile. */
#main-section-view,
#main-section-view .page-view.inline-section,
#main-section-view .page-view.inline-section.active {
width: 100% !important;
max-width: none !important;
padding: 0 !important;
margin: 0 !important;
}
#main-section-view .page-container {
width: 100% !important;
max-width: none !important;
height: 100% !important;
max-height: 100% !important;
margin: 0 !important;
border-radius: 0 !important;
border-left: 0 !important;
border-right: 0 !important;
overflow: hidden;
}
#main-section-view .page-content {
flex: 1 1 auto;
min-height: 0;
width: 100%;
overflow-y: auto !important;
overflow-x: hidden;
scrollbar-gutter: stable;
}
#main-section-view .page-title,
#main-section-view .page-title-container .page-title,
#main-section-view #postsPageHeaderTitle {
font-size: 16px !important;
line-height: 1.35;
}


/* 22/10/2026 — Seções com rolagem da página e vidro no app-container. */
html:has(body.section-page-open),
body.section-page-open {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
body.section-page-open .app-container {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    justify-content: flex-start;
    background: color-mix(in srgb, var(--item-bg) 68%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}
body.dark-mode.section-page-open .app-container {
    background: rgba(20, 20, 24, .52);
}
/* Elementos fixos: conteúdo passa por baixo, sem deslocá-los. */
body.section-page-open .header-station {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10020;
    padding-left: 16px;
    padding-right: 16px;
}
body.section-page-open .footer-info {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10020;
}
body.section-page-open .action-buttons-group { position: relative; z-index: 10021; }
body.section-page-open .main-content {
    display: block;
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: auto !important;
    overflow: visible !important;
    margin: 0;
    padding-top: max(90px, env(safe-area-inset-top));
    padding-bottom: max(100px, env(safe-area-inset-bottom));
}
body.section-page-open #main-section-view,
body.section-page-open #main-section-view .page-view.inline-section,
body.section-page-open #main-section-view .page-view.inline-section.active,
body.section-page-open #main-section-view .page-view.inline-section.section-visible {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none;
}
body.section-page-open #main-section-view .page-view.inline-section.section-visible {
    display: block !important;
}
body.section-page-open #main-section-view .page-container {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 900px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body.section-page-open #main-section-view .page-content {
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    scrollbar-gutter: auto !important;
    overscroll-behavior: auto !important;
}
@media (max-width: 600px) {
    body.section-page-open .main-content {
        padding-top: max(78px, env(safe-area-inset-top));
        padding-bottom: max(76px, env(safe-area-inset-bottom));
    }
    body.section-page-open #main-section-view .page-container { max-width: 100% !important; }
}


/* 22/10/2026 — Cabeçalho integrado ao ticker e sobreposição de vidro. */
body.section-page-open .header-station {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--item-bg) 70%, transparent);
    /* O vidro fica no pseudo-elemento, evitando criar um backdrop root
     *       que impeça os menus de desfocar o conteúdo abaixo do header. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    isolation: auto;
}
body.dark-mode.section-page-open .header-station {
    background: rgba(20, 20, 24, .68);
}
/* O ticker agora participa da altura e do empilhamento do cabeçalho. */
.header-station > .post-ticker-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
body.section-page-open .header-station > .post-ticker-wrapper {
    flex-shrink: 0;
}
body.section-page-open .header-main-row {
    flex-shrink: 0;
}
body.section-page-open .action-buttons-group {
    background: color-mix(in srgb, var(--item-bg) 70%, transparent) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
}
body.dark-mode.section-page-open .action-buttons-group {
    background: rgba(20, 20, 24, .68) !important;
}
/* Espaço de leitura calculado pela altura real dos elementos fixos. */
body.section-page-open .main-content {
    padding-top: calc(var(--section-header-height, 100px) + 12px) !important;
    padding-bottom: calc(var(--section-footer-height, 90px) + 20px) !important;
}

/* 22/10/2026 — Correção estrutural: fixed relativo à viewport.
 *   backdrop-filter no ancestral .app-container criava um containing block,
 *   fazendo o header e o footer rolarem junto com o documento. */
body.section-page-open .app-container {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    background: #222222f0 !important;
    isolation: auto !important;
}
/* O vidro ocupa toda a viewport, independentemente da altura do conteúdo. */
body.section-page-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--item-bg) 68%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}
body.dark-mode.section-page-open::before { background: rgba(20,20,24,.52); }
body.section-page-open .header-station {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    z-index: 10020 !important;
}
body.section-page-open .footer-info {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    z-index: 10020 !important;
}
body.section-page-open .action-buttons-group { position: relative !important; z-index: 1 !important; }
body.section-page-open .main-content { position: relative; z-index: 1; }

/* 22/10/2026 — Ticker sem superfície própria: apenas linha inferior. */
.post-ticker-wrapper,
body.dark-mode .post-ticker-wrapper,
.header-station > .post-ticker-wrapper,
body.section-page-open .header-station > .post-ticker-wrapper,
body.dark-mode.section-page-open .header-station > .post-ticker-wrapper {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* 22/10/2026 — Ajustes solicitados: ticker, cabeçalho e vidro claro. */
.post-ticker-wrapper,
body.dark-mode .post-ticker-wrapper,
.header-station > .post-ticker-wrapper,
body.section-page-open .header-station > .post-ticker-wrapper,
body.dark-mode.section-page-open .header-station > .post-ticker-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 4px 0 !important;
    padding: 0 20px 2px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.header-main-row,
body.section-page-open .header-main-row {
    padding-bottom: 8px;
}
/* O efeito de vidro permanece no pseudo-elemento, para não interferir
 *   no posicionamento fixo do cabeçalho e da barra inferior. */
body.section-page-open:not(.dark-mode) .header-station {
    background: color-mix(in srgb, rgb(255 255 255 / 83%) 70%, #ffffff73) !important;
}
body.section-page-open:not(.dark-mode) .app-container {
    background: #fefefef5 !important;
}

/* Alinhamento definitivo: identidade e controles compartilham o mesmo eixo.
 *   O padding vertical simétrico impede que a identidade pareça deslocada.
 *   O slogan participa da altura real do bloco, sem posicionamento absoluto. */
.header-main-row,
body.section-page-open .header-main-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 0 !important;
}
.header-main-row > #logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0;
    margin: 0;
    padding: 0;
    min-height: 0;
    line-height: 1;
}
.header-main-row > #logo-container > #station-slogan-text {
    position: static !important;
    display: block;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 2px 0 0 !important;
    width: auto !important;
    max-width: 100%;
}
.header-main-row > #logo-container > #station-slogan-text[hidden],
.header-main-row > #logo-container > #station-slogan-text[style*="display: none"] {
    display: none !important;
}
.header-main-row > .header-buttons-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
@media (max-width: 480px) {
    .header-main-row,
    body.section-page-open .header-main-row { justify-content: flex-start; }
}

/* 22/10/2026 — Restaura vidro embaçado dos botões do cabeçalho.
 *   Mantém o alinhamento vertical e o destaque dos controles ativos. */
.header-buttons-bar .social-btn-link,
.header-buttons-bar .mobile-menu-panel,
.header-buttons-bar .quality-buttons-panel,
.header-buttons-bar .volume-slider-panel {
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.36);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
body.dark-mode .header-buttons-bar .social-btn-link,
body.dark-mode .header-buttons-bar .mobile-menu-panel,
body.dark-mode .header-buttons-bar .quality-buttons-panel,
body.dark-mode .header-buttons-bar .volume-slider-panel {
    background: rgba(24, 24, 26, 0.58);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-buttons-bar .social-btn-link:hover,
.header-buttons-bar .social-btn-link.active,
.header-buttons-bar .social-btn-link:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(255, 255, 255, 0.24));
    border-color: var(--accent-color);
}
body.dark-mode .header-buttons-bar .social-btn-link:hover,
body.dark-mode .header-buttons-bar .social-btn-link.active,
body.dark-mode .header-buttons-bar .social-btn-link:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 35%, rgba(24, 24, 26, 0.58));
}


/* 23/10/2026: cabeçalhos sem linha inferior, alinhados ao conteúdo. */
#main-section-view .page-header { padding-left: 24px; padding-right: 24px; border-bottom: none !important; }
#main-section-view .ui-close-btn { display: none !important; }
#postsPageHeaderTitle { appearance:none; border:0; background:transparent; padding:0; margin:0; color:var(--text-color); font:inherit; font-size:16px; font-weight:500; font-style:italic; text-transform:uppercase; text-align:left; cursor:pointer; }
#postsPageHeaderTitle:hover { color:var(--accent-color); }
#postsListaView [data-post-category][hidden] { display:none !important; }
#detalheImagemContainer { position:relative; isolation:isolate; overflow:hidden; border-radius:12px; border:1px solid var(--border-color); background:var(--item-bg); }
#detalheImagemContainer::before { content:""; position:absolute; inset:-22px; background-image:var(--post-detail-background, none); background-size:cover; background-position:center; filter:blur(20px) brightness(.78); opacity:.8; z-index:0; }
#detalheImagem { max-height:340px !important; object-fit:contain !important; }

/* 23/10/2026: refinamento dos posts (preservadas as regras manuais anteriores). */
#main-section-view .page-content { padding-top: 10px !important; }

/* Capa completa com deslocamento suave na rolagem, sem desfoque. */
#detalheImagemContainer {
height: min(400px, 54vw);
max-height: 400px;
min-height: 180px;
overflow: hidden;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
#detalheImagemContainer::before { content: none !important; }
#detalheImagem {
width: 100% !important;
height: 100% !important;
max-height: 400px !important;
object-fit: cover !important;
transform: translate3d(0, var(--post-parallax-offset, 0px), 0) scale(1.12);
transform-origin: center;
will-change: transform;
}

/* Ações com o mesmo acabamento dos botões do cabeçalho. */
#menuCompartilharPost .post-share-option,
#btnVoltarLista {
width: 36px !important;
height: 36px !important;
min-width: 36px !important;
padding: 8px !important;
border-radius: 50% !important;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-color);
background: rgba(255,255,255,.16) !important;
border: 1px solid rgba(255,255,255,.28) !important;
-webkit-backdrop-filter: blur(16px) saturate(145%);
backdrop-filter: blur(16px) saturate(145%);
box-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
transition: background .2s, border-color .2s, transform .2s;
}
#btnVoltarLista[style*="display: none"] { display: none !important; }
body.dark-mode #menuCompartilharPost .post-share-option,
body.dark-mode #btnVoltarLista {
    background: rgba(24,24,26,.58) !important;
    border-color: rgba(255,255,255,.18) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
#menuCompartilharPost .post-share-option:hover,
#menuCompartilharPost .post-share-option:focus-visible,
#btnVoltarLista:hover,
#btnVoltarLista:focus-visible {
background: color-mix(in srgb, var(--accent-color) 35%, rgba(255,255,255,.18)) !important;
border-color: color-mix(in srgb, var(--accent-color) 70%, transparent) !important;
}
#detalheUsuario { text-transform: uppercase; }
.post-meta-link {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-transform: uppercase;
    padding: 0;
    cursor: pointer;
}
.post-meta-link:hover, .post-meta-link:focus-visible,
#detalheConteudo a, #detalheConteudo a:visited { color: var(--accent-color) !important; }
#detalheConteudo a { text-decoration: underline; text-underline-offset: 3px; }
.post-adjacent-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.post-adjacent-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px;
    text-align: left;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--item-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.post-adjacent-btn:last-child { text-align: right; }
.post-adjacent-btn[hidden] { display: none !important; }
.post-adjacent-btn:hover { border-color: var(--accent-color); }
.post-adjacent-direction { color: var(--accent-color); font-size: 13px; text-transform: uppercase; }
.post-adjacent-title { font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1.4; }
@media (max-width:600px) {
    #detalheImagemContainer { height: min(400px, 70vw); }
    #menuCompartilharPost .post-share-option, #btnVoltarLista { width: 32px !important; height: 32px !important; min-width: 32px !important; padding: 7px !important; }
    .post-adjacent-nav { gap: 8px; }
    .post-adjacent-btn { padding: 10px; }
}

/* 23/10/2026: imagem única sem background duplicado; parallax na imagem real. */
#detalheImagemContainer {
background-image: none !important;
background-color: var(--item-bg) !important;
background-attachment: initial !important;
position: relative;
height: min(400px, 54vw);
max-height: 400px;
overflow: hidden;
}
#detalheImagemContainer::before,
#detalheImagemContainer::after { content: none !important; background-image: none !important; }
#detalheImagem {
position: absolute !important;
inset: -60px 0 auto 0 !important;
width: 100% !important;
height: calc(100% + 120px) !important;
max-height: none !important;
object-fit: cover !important;
object-position: center;
transform: translate3d(0, 0, 0);
will-change: transform;
}
/* Destaque com contraste legível em qualquer cor definida no painel. */
.footer-actions-container .footer-icon-btn.section-selected,
.footer-actions-container .footer-icon-btn.section-selected:hover,
.footer-actions-container .footer-icon-btn.active,
.footer-actions-container .footer-icon-btn.active:hover {
    background: var(--accent-color) !important;
    color: var(--footer-active-foreground, #ffffff) !important;
    border-color: var(--accent-color) !important;
}
.footer-actions-container .footer-icon-btn.section-selected svg,
.footer-actions-container .footer-icon-btn.active svg {
    fill: currentColor !important;
    color: inherit !important;
}
#logo-container { cursor: pointer; }
@media (max-width: 600px) {
    #detalheImagemContainer { height: min(400px, 70vw); }
}

/* 23/10/2026 — Área de leitura das seções e imagem de capa dos posts. */
#detalheImagemContainer { height: min(400px, 54vw); max-height: 400px; background: transparent !important; }
#detalheImagem { object-fit: cover !important; }
@media (max-width: 600px) { #detalheImagemContainer { height: min(400px, 70vw); } }

/* Áreas seguras calculadas pelas dimensões reais do cabeçalho e rodapé. */
body.section-page-open .main-content {
    padding-top: calc(var(--section-header-height, 90px) + 20px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(var(--section-footer-height, 90px) + 24px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
}
/* Uma única imagem, recortada para preencher toda a área, sem fundo repetido. */
#detalheImagemContainer { background-image: none !important; }


/* 23/10/2026 — Posts: destaques, metadados e navegação. Consolidar aqui futuras alterações. */
/* A linha inferior atravessa toda a viewport, mesmo quando o cabeçalho tem largura limitada. */
.header-station > .post-ticker-wrapper {
    position: relative;
    border-bottom: 0 !important;
}
.header-station > .post-ticker-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--border-color);
    pointer-events: none;
}
#main-section-view .page-title-container .page-title,
#main-section-view .page-title,
#main-section-view #postsPageHeaderTitle { font-size: 20px !important; }
/* Imagem única com recorte integral: o efeito de parallax existente continua ativo. */
#detalheImagemContainer {
height: min(600px, 55vw) !important;
max-height: 600px !important;
background-image: none !important;
}

@media (max-width: 600px) {
    #detalheImagemContainer { height: min(400px, 75vw) !important; }
}
#detalheDataHora,
#detalheUsuario {
appearance: none;
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent);
background: color-mix(in srgb, var(--accent-color) 15%, transparent);
color: var(--accent-color);
font: inherit;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
cursor: pointer;
}
#detalheUsuarioWrapper { align-items: center; }
#detalheUsuarioWrapper > span:first-child { display: none; }
#detalheDataHora:hover, #detalheUsuario:hover,
.post-filter-btn:hover { border-color: var(--accent-color); }
.post-meta-buttons { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; min-width: 0; }
.post-filter-btn {
    appearance: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 40%;
    font-family: var(--custom-font-family), inherit;
    font-size: 11px;
    text-transform: uppercase;
}
.post-list-item .post-title-clamp {
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#postsListaView [hidden], .posts-featured-card[hidden] { display: none !important; }
/* Cartões anterior/próximo: fotografia no fundo e superfície fosca de leitura. */
.post-adjacent-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 135px;
    justify-content: flex-end;
    background: var(--item-bg);
    color: #fff;
    border: 1px solid var(--border-color);
}
.post-adjacent-btn::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: var(--adjacent-image, none);
    background-position: center;
    background-size: cover;
    filter: blur(8px) brightness(.58);
    transform: scale(1.12);
}
.post-adjacent-btn::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.2));
    backdrop-filter: blur(3px);
}
.post-adjacent-direction { color: #fff; font-size: 12px; font-weight: 700; }
.post-adjacent-title { color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Seis posts mais recentes, três por tela no desktop e um no mobile. */
.posts-featured { margin-bottom: 22px; min-width: 0; }
.posts-featured[hidden] { display: none !important; }
.posts-featured-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 12px;
}
.posts-featured-track::-webkit-scrollbar { display: none; }
.posts-featured-card {
    flex: 0 0 calc((100% - 28px) / 3);
    min-width: 0;
    height: clamp(300px, 36vw, 520px);
    position: relative;
    isolation: isolate;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--item-bg);
    scroll-snap-align: start;
}
.posts-featured-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.posts-featured-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 75px 18px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.42) 50%, transparent);
    backdrop-filter: blur(1.5px);
}
.posts-featured-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 12px;
}
.posts-featured-overlay .post-meta-buttons { gap: 5px; }
.posts-featured-overlay .post-filter-btn {
    color: #fff;
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    font-size: 10px;
    padding: 3px 7px;
}
.posts-featured-dots { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0 2px; }
.posts-featured-dot { width: 9px; height: 9px; border-radius: 50%; padding: 0; border: 1px solid var(--accent-color); background: transparent; cursor: pointer; }
.posts-featured-dot[aria-current="true"] { background: var(--accent-color); }
.posts-featured-filtered .posts-featured-track { scroll-snap-type: none; }
.posts-featured-filtered .posts-featured-dots { display: none; }
@media (max-width: 600px) {
    .posts-featured-card { flex-basis: 100%; height: clamp(330px, 112vw, 520px); }
    .posts-featured-overlay { padding: 75px 14px 15px; }
    .post-meta-buttons { gap: 4px; }
    .post-filter-btn { font-size: 10px; padding: 3px 6px; }
}
/* Altura efetiva solicitada no desktop, independente da largura do modal. */
@media (min-width: 601px) {
    #detalheImagemContainer { height: 600px !important; max-height: 600px !important; }
}

/* Destaques: duas colunas, título de até três linhas, zoom e autoplay via JS. */
@media (min-width:601px) { .posts-featured-card { flex-basis:calc((100% - 14px)/2); } }
.posts-featured-title { white-space:normal !important; overflow:hidden; text-overflow:clip; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; line-clamp:3; max-height:4.05em; }
.posts-featured-image { transition:transform .55s ease; }
.posts-featured-card:hover .posts-featured-image { transform:scale(1.085); }
.posts-featured-overlay .post-filter-btn { background:color-mix(in srgb,var(--accent-color) 15%,rgba(30,30,30,.5)); border:1px solid rgba(255,255,255,.35); border-radius:999px; color:#fff; box-shadow:0 2px 10px rgba(0,0,0,.16); backdrop-filter:blur(14px) saturate(145%); text-transform:uppercase; }
.post-detail-tags { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; }
.post-detail-tags[hidden] { display:none !important; }
.post-detail-tags .post-filter-btn { max-width:none; }
@media (prefers-reduced-motion:reduce) { .posts-featured-image { transition:none; } .posts-featured-card:hover .posts-featured-image { transform:none; } }

/* Skeleton loading — elementos temporários, sem alterar o estilo existente. */
@keyframes radioSkeletonPulse { 0% { background-position: 110% 0; } 100% { background-position: -110% 0; } }
.radio-skeleton, img.skeleton-image-loading {
    background: linear-gradient(100deg, var(--item-bg) 15%, color-mix(in srgb, var(--text-color) 12%, transparent) 45%, var(--item-bg) 75%);
    background-size: 220% 100%; animation: radioSkeletonPulse 1.35s ease-in-out infinite;
}
img.skeleton-image-loading { color: transparent; }
.radio-skeleton-row { display:flex; align-items:center; gap:12px; min-height:70px; padding:10px 12px; border-radius:12px; border:1px solid var(--border-color); margin-bottom:10px; }
.radio-skeleton-thumb { width:48px; height:48px; flex-shrink:0; border-radius:8px; }
.radio-skeleton-lines { display:flex; flex-direction:column; flex:1; gap:9px; }
.radio-skeleton-line { display:block; width:90%; height:13px; border-radius:6px; }
.radio-skeleton-line.short { width:56%; height:10px; }
@media (prefers-reduced-motion: reduce) { .radio-skeleton, img.skeleton-image-loading { animation:none; } }

/* Skeleton para textos, descrições, cards e miniaturas durante requisições. */
.radio-skeleton-row { min-width:0; }
.radio-skeleton-lines { min-width:0; }
.radio-skeleton-line { max-width:100%; }
.radio-skeleton-row .radio-skeleton-line:first-child { height:16px; width:75%; }
.radio-skeleton-row .radio-skeleton-line.short { width:48%; height:11px; }
#bible-content-display .radio-skeleton-row { min-height:46px; border:0; padding:7px 2px; }
#bible-content-display .radio-skeleton-line:first-child { width:94%; }
#schedule-content-list .radio-skeleton-row, #history-content-list .radio-skeleton-row { margin-bottom:10px; }
.radio-skeleton-row .radio-skeleton-thumb { display:block; }

/* 23/10/2026 — Correções pontuais de aparência (sem alterar layout). */
/* Os painéis móveis usam o mesmo vidro fosco dos controles do cabeçalho. */
@media (max-width: 600px) {
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel,
    .header-buttons-bar .mobile-menu-panel.social-links-panel {
        background: rgba(255,255,255,.24) !important;
        border: 1px solid rgba(255,255,255,.36) !important;
        -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
        backdrop-filter: blur(16px) saturate(145%) !important;
        box-shadow: 0 4px 14px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.22) !important;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.social-links-panel {
        background: rgba(24,24,26,.58) !important;
        border-color: rgba(255,255,255,.18) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08) !important;
    }
}
/* Botões de metadados dos posts com superfície e interação do status-badge. */
.post-meta-buttons .post-status-badge.post-filter-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--item-bg); color: var(--text-color);
    border: 1px solid var(--border-color); border-radius: 16px;
    font-family: var(--custom-font-family), sans-serif; font-weight: 700;
    letter-spacing: .4px; text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.post-meta-buttons .post-status-badge.post-filter-btn:hover,
.post-meta-buttons .post-status-badge.post-filter-btn:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 15%, transparent);
    border-color: var(--accent-color); transform: scale(1.02);
}
/* Sombras retiradas apenas da imagem da logomarca. */
#logo-container img, #logo-container .station-logo {
filter: none !important; -webkit-filter: none !important;
text-shadow: none !important; box-shadow: none !important;
}


/* Padronização das listas de modais baseada nos itens do histórico Tocou. */
#schedule-content-list .schedule-item,
#postsListaView .post-list-item,
#podcast-content-list .history-item,
#bible-content-display .bible-book-list-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
margin-bottom: 0;
background: var(--item-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
color: var(--text-color);
font-family: var(--custom-font-family), sans-serif;
}
#postsListaView .post-list-item { margin-bottom: 10px; }
#schedule-content-list .schedule-item,
#podcast-content-list .history-item { min-height: 68px; }
#bible-content-display .bible-books-list { gap: 10px; }
#bible-content-display .bible-book-list-item {
width: 100%;
text-align: left;
cursor: pointer;
min-height: 68px;
transition: background .2s ease, border-color .2s ease;
}
#bible-content-display .bible-book-list-item:hover,
#bible-content-display .bible-book-list-item:focus-visible,
#postsListaView .post-list-item:hover {
background: color-mix(in srgb, var(--accent-color) 12%, var(--item-bg));
border-color: var(--accent-color);
}
.bible-book-list-icon {
    width: 48px; height: 48px; flex: 0 0 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: color-mix(in srgb, var(--accent-color) 15%, var(--item-bg));
    color: var(--accent-color); font-size: 16px; font-weight: 700;
}
.bible-book-list-arrow { margin-left: auto; color: var(--text-sub); font-size: 24px; }
#bible-content-display .bible-books-list .testament-title { margin: 14px 0 0; }
#bible-content-display .bible-books-list .testament-title:first-child { margin-top: 0; }
@media (max-width: 600px) {
    #schedule-content-list .schedule-item,
    #postsListaView .post-list-item,
    #podcast-content-list .history-item,
    #bible-content-display .bible-book-list-item { padding: 10px 12px; gap: 10px; }
}

/* Tela de bloqueio: identidade BULSOLUÇÕES, isolada do tema da rádio. */
html:has(body.lock-body),
html body.lock-body {
    background: #0f0f10;
    color: #fff;
    font-family: "Open Sans", sans-serif;
}
html body.lock-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    height: auto;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}
body.lock-body .lock-message {
    box-sizing: border-box;
    width: min(100%, 460px);
    max-width: 460px;
    text-align: center;
    font-family: "Open Sans", sans-serif;
}
body.lock-body .lock-brand {
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
body.lock-body .lock-brand-bul { color: #0084a4; }
body.lock-body .lock-brand-solucoes { color: #fff; }
body.lock-body .lock-description {
    margin: 18px 0 0;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
}

/* 26/10 — Banners dentro da área de página, sem sobrepor os controles fixos. */
.main-content > .ads-topo,
.main-content > .ads-rodape { position: relative; z-index: 1; flex: 0 0 auto; }
body.section-page-open .main-content > .ads-topo { margin: 0 auto 20px !important; }
body.section-page-open .main-content > .ads-rodape { margin: 24px auto 0 !important; }
body.section-page-open .main-content > .ads-topo,
body.section-page-open .main-content > .ads-rodape { max-width: 100%; }
/* A reserva de espaço já é feita em .main-content por --section-header-height/--section-footer-height. */


/* 26/10/2026 — Páginas internas: banners encostados nas barras fixas no mobile.
 *   Mantém o espaçamento de leitura das páginas sem anúncios e o layout desktop. */
@media (max-width: 600px) {
    body.section-page-open .main-content > .ads-topo,
    body.section-page-open .main-content > .ads-rodape {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    body.section-page-open .main-content > .ads-topo .ad-banner-item,
    body.section-page-open .main-content > .ads-rodape .ad-banner-item {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.section-page-open .main-content > .ads-topo img,
    body.section-page-open .main-content > .ads-rodape img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Sem faixa vazia entre header e banner superior. */
    body.section-page-open .main-content:has(> .ads-topo) {
        padding-top: calc(var(--section-header-height, 90px) + env(safe-area-inset-top, 0px)) !important;
    }

    /* Sem faixa vazia entre banner inferior e barra de ações. */
    body.section-page-open .main-content:has(> .ads-rodape) {
        padding-bottom: calc(var(--section-footer-height, 90px) + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* 27/10/2026 — Páginas internas: banners encostados nas barras fixas.
 *   A altura real das barras já é fornecida pelas variáveis de layout.
 *   Não somar os antigos 20px (topo) e 24px (rodapé). */
@media (max-width: 600px) {
    body.section-page-open .main-content:has(> .ads-topo) {
        padding-top: var(--section-header-height, 90px) !important;
    }
    body.section-page-open .main-content:has(> .ads-rodape) {
        padding-bottom: var(--section-footer-height, 90px) !important;
    }
}


/* 27/10/2026 — Controles SD / HD / Volume: dimensão e vidro fosco no mobile.
 *   Escopo exclusivo do grupo de qualidade; não altera o painel social. */
@media (max-width: 600px) {
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        width: 52px;
        gap: 9px;
        padding: 8px 6px;
        border-radius: 26px;
        background: rgba(255,255,255,.30) !important;
        -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
        backdrop-filter: blur(18px) saturate(150%) !important;
    }
    .header-buttons-bar .quality-buttons-panel .stream-quality-btn,
    .header-buttons-bar .quality-buttons-panel .volume-social-btn {
        box-sizing: border-box;
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.38);
        border-radius: 50%;
        background: rgba(255,255,255,.28);
        -webkit-backdrop-filter: blur(16px) saturate(145%);
        backdrop-filter: blur(16px) saturate(145%);
        box-shadow: 0 5px 14px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.25);
    }
    .header-buttons-bar .quality-buttons-panel .stream-quality-btn svg,
    .header-buttons-bar .quality-buttons-panel .volume-social-btn svg {
        width: 20px;
        height: 20px;
    }
    .header-buttons-bar .quality-buttons-panel .stream-quality-btn { font-size: 12px; }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container,
    .header-buttons-bar .quality-buttons-panel .volume-floating-container:has(.volume-slider-panel:not([hidden])) {
        width: 40px;
        min-height: 40px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container:has(.volume-slider-panel:not([hidden])) .volume-social-btn {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 8px;
        background: rgba(255,255,255,.28);
    }
    .header-buttons-bar .quality-buttons-panel .volume-slider-panel {
        width: 40px;
        border-radius: 20px;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel,
    body.dark-mode .header-buttons-bar .quality-buttons-panel .stream-quality-btn,
    body.dark-mode .header-buttons-bar .quality-buttons-panel .volume-social-btn {
        background: rgba(24,24,26,.62) !important;
        border-color: rgba(255,255,255,.20);
        box-shadow: 0 7px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.09);
    }
}


/* 27/10/2026 — Menus móveis: dimensões iguais e vidro fosco consistente.
 *   O painel social e o painel SD/HD/Volume compartilham o mesmo contêiner visual. */
@media (max-width: 600px) {
    .header-buttons-bar .mobile-menu-panel.social-links-panel,
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        box-sizing: border-box;
        width: 52px !important;
        min-width: 52px;
        max-width: 52px;
        padding: 8px 5px !important;
        gap: 9px !important;
        align-items: center;
        border-radius: 26px !important;
        border: 1px solid rgba(255,255,255,.50) !important;
        background-color: rgba(245,247,249,.38) !important;
        -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
        backdrop-filter: blur(22px) saturate(160%) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.30) !important;
        isolation: isolate;
    }
    .header-buttons-bar .mobile-menu-panel.social-links-panel .social-btn-link,
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel .stream-quality-btn,
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel .volume-social-btn {
        box-sizing: border-box;
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 8px !important;
        border-radius: 50%;
        background-color: rgba(255,255,255,.32) !important;
        border: 1px solid rgba(255,255,255,.42) !important;
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
    }
    .header-buttons-bar .mobile-menu-panel.social-links-panel .social-btn-link svg {
        width: 20px;
        height: 20px;
    }
    .header-buttons-bar .quality-buttons-panel .volume-floating-container {
        width: 40px !important;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.social-links-panel,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        background-color: rgba(24,24,26,.56) !important;
        border-color: rgba(255,255,255,.20) !important;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.social-links-panel .social-btn-link,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel .stream-quality-btn,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel .volume-social-btn {
        background-color: rgba(40,40,44,.58) !important;
        border-color: rgba(255,255,255,.20) !important;
    }
}


/* 27/10/2026 — Painéis móveis centralizados no respectivo botão do cabeçalho.
 *   Camada fosca aplicada ao próprio painel, sem depender do fundo dos ícones. */
@media (max-width: 600px) {
    .header-buttons-bar .mobile-menu-group {
        position: relative;
    }
    .header-buttons-bar .mobile-menu-panel.social-links-panel,
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        position: absolute !important;
        top: calc(100% + 7px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        padding: 8px 5px !important;
        border-radius: 26px !important;
        border: 1px solid rgba(255,255,255,.55) !important;
        background: rgba(238,241,245,.65) !important;
        -webkit-backdrop-filter: blur(24px) saturate(155%) !important;
        backdrop-filter: blur(24px) saturate(155%) !important;
        box-shadow: 0 8px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45) !important;
        isolation: auto !important;
        z-index: 250 !important;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.social-links-panel,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        background: rgba(32,35,42,.70) !important;
        border-color: rgba(255,255,255,.24) !important;
        box-shadow: 0 8px 26px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12) !important;
    }
}


/* 27/10/2026 — CORREÇÃO ESTRUTURAL DO VIDRO NOS MENUS MOBILE.
 *   O header com backdrop-filter/isolation criava uma raiz de composição;
 *   os painéis não conseguiam desfocar a página atrás deles. */
body.section-page-open .header-station {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    isolation: auto !important;
}
body.section-page-open .header-station::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: color-mix(in srgb, var(--item-bg) 70%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}
body.section-page-open:not(.dark-mode) .header-station::before {
    background: color-mix(in srgb, rgb(255 255 255 / 83%) 70%, #ffffff73);
}
body.dark-mode.section-page-open .header-station::before {
    background: rgba(20, 20, 24, .68);
}
@media (max-width: 600px) {
    .header-buttons-bar .mobile-menu-panel.social-links-panel,
    .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        -webkit-backdrop-filter: blur(24px) saturate(155%) !important;
        backdrop-filter: blur(24px) saturate(155%) !important;
        background: rgba(238, 241, 245, .40) !important;
    }
    body.dark-mode .header-buttons-bar .mobile-menu-panel.social-links-panel,
    body.dark-mode .header-buttons-bar .mobile-menu-panel.quality-buttons-panel {
        background: rgba(32, 35, 42, .55) !important;
    }
}

/* 27/10/2026 — Barra inferior legível no tema claro, igual ao cabeçalho.
 *   Fundo leitoso evita que fotografias escuras prejudiquem os ícones. */
body.section-page-open:not(.dark-mode) .action-buttons-group {
    background: color-mix(in srgb, rgb(255 255 255 / 83%) 70%, #ffffff73) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    border-color: rgba(255, 255, 255, .36);
}

/* 27/10/2026 — Legibilidade das tags nos cards de posts em destaque.
 *   Corrige a regra global .post-status-badge com background transparente !important. */
#postsListaView .posts-featured-card .post-meta-buttons .post-status-badge.post-filter-btn {
background: rgba(255,255,255,.88) !important;
color: #17212b !important;
border: 1px solid rgba(255,255,255,.92) !important;
box-shadow: 0 1px 5px rgba(0,0,0,.25) !important;
-webkit-backdrop-filter: blur(12px) saturate(140%);
backdrop-filter: blur(12px) saturate(140%);
text-shadow: none !important;
}
#postsListaView .posts-featured-card .post-meta-buttons .post-status-badge.post-filter-btn:hover,
#postsListaView .posts-featured-card .post-meta-buttons .post-status-badge.post-filter-btn:focus-visible {
background: #fff !important;
border-color: var(--accent-color) !important;
}


/* 27/10/2026 — Tags dos itens da lista iguais às tags de .post-meta-buttons.
 *   Escopo restrito à lista; não interfere no ticker nem nos destaques. */
#postsListaView .post-list-item .post-filter-btn,
#postsListaView .post-list-item .post-status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--item-bg) !important;
color: var(--text-color) !important;
border: 1px solid var(--border-color) !important;
border-radius: 16px;
box-shadow: none;
font-family: var(--custom-font-family), sans-serif;
font-weight: 700;
letter-spacing: .4px;
text-transform: uppercase;
text-shadow: none;
transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
#postsListaView .post-list-item .post-filter-btn:hover,
#postsListaView .post-list-item .post-filter-btn:focus-visible,
#postsListaView .post-list-item .post-status-badge:hover,
#postsListaView .post-list-item .post-status-badge:focus-visible {
background: color-mix(in srgb, var(--accent-color) 15%, var(--item-bg)) !important;
border-color: var(--accent-color) !important;
transform: scale(1.02);
}

/* 01/11/2026 — Capa da música no botão SD/HD que está reproduzindo. */
.header-buttons-bar .stream-quality-btn.stream-with-cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0;
    border-color: var(--accent-color);
}
.header-buttons-bar .stream-quality-btn .stream-cover-thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.header-buttons-bar .stream-quality-btn .stream-cover-pause {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .2s ease;
}
.header-buttons-bar .stream-quality-btn.stream-with-cover:hover .stream-cover-pause,
.header-buttons-bar .stream-quality-btn.stream-with-cover:focus-visible .stream-cover-pause { opacity: 1; }
.header-buttons-bar .stream-quality-btn .stream-cover-pause svg { width: 16px; height: 16px; }

/* 01/11/2026 — Identidade à esquerda; informações da transmissão antes dos botões. */
.header-main-row,
body.section-page-open .header-main-row { justify-content: flex-start !important; gap: 12px; }
.header-main-row > #logo-container {
    flex: 0 0 auto;
    align-items: flex-start;
    text-align: left;
    margin-right: auto;
    min-width: 0;
}
.header-main-row > #logo-container > #station-slogan-text { text-align: left; }
.header-now-playing {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-left: 4px;
    margin-right: 0;
    font-family: var(--custom-font-family), sans-serif;
    font-size: clamp(10px, 1.05vw, 14px);
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    color: var(--text-color);
}
.header-now-playing[hidden] { display: none !important; }
.header-now-playing-viewport { width: 100%; overflow: hidden; white-space: nowrap; }
.header-now-playing-text { display: inline-block; white-space: nowrap; will-change: transform; }
.header-now-playing-text.is-scrolling { animation: header-info-slide 10s ease-in-out infinite alternate; }
@keyframes header-info-slide {
    0%, 12% { transform: translateX(0); }
    88%, 100% { transform: translateX(var(--header-slide-distance, 0px)); }
}
body.section-page-open .header-main-row > #logo-container { margin-right: 0; }
body.section-page-open .header-now-playing { margin-left: auto; }
body.section-page-open .header-main-row > .header-buttons-bar {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex: 0 0 auto;
    margin-left: 0;
}
@media (max-width: 600px) {
    .header-main-row, body.section-page-open .header-main-row { gap: 7px; }
    .header-main-row > #logo-container { max-width: 37%; }
    .header-main-row > #logo-container .station-logo { max-width: 100%; }
    body.section-page-open .header-now-playing { font-size: 10px; margin-left: 0; }
    body.section-page-open .header-main-row > .header-buttons-bar { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .header-now-playing-text.is-scrolling { animation: none; }
}

/* 01/11/2026 — Identidade central no desktop; à esquerda apenas no mobile.
 *   A informação da transmissão permanece alinhada à direita, antes dos controles. */
@media (min-width: 601px) {
    .header-main-row,
    body.section-page-open .header-main-row {
        justify-content: center !important;
        gap: 0;
    }
    .header-main-row > #logo-container,
    body.section-page-open .header-main-row > #logo-container {
        position: relative;
        flex: 0 0 auto;
        margin: 0 auto !important;
        align-items: center !important;
        text-align: center !important;
    }
    .header-main-row > #logo-container > #station-slogan-text {
        text-align: center !important;
    }
    body.section-page-open .header-now-playing {
        position: absolute;
        right: calc(var(--header-buttons-width, 180px) + 12px);
        top: 50%;
        transform: translateY(-50%);
        width: max(0px, min(26vw, calc(50% - 115px)));
        flex: none;
        margin: 0 !important;
        text-align: right;
    }
    body.section-page-open .header-main-row > .header-buttons-bar {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
}
@media (max-width: 600px) {
    .header-main-row,
    body.section-page-open .header-main-row {
        justify-content: flex-start !important;
    }
    .header-main-row > #logo-container,
    body.section-page-open .header-main-row > #logo-container {
        position: relative;
        margin: 0 !important;
        align-items: center !important;
        text-align: center !important;
        flex: 0 0 auto;
    }
    .header-main-row > #logo-container > #station-slogan-text {
        text-align: center !important;
    }
    body.section-page-open .header-now-playing {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 0 0 auto !important;
        text-align: right;
    }
    body.section-page-open .header-main-row > .header-buttons-bar {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        flex: 0 0 auto;
        margin-left: 0;
    }
}

/* 01/11/2026 — Cabeçalho: identidade sempre à esquerda e transmissão sempre visível. */
.header-main-row, body.section-page-open .header-main-row {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
}
.header-main-row > #logo-container,
body.section-page-open .header-main-row > #logo-container {
    position: relative !important;
    flex: 0 0 auto !important;
    margin: 0 auto 0 0 !important;
    align-items: center !important;
    text-align: center !important;
    min-width: 0;
}
.header-main-row > #logo-container > #station-slogan-text { text-align: center !important; }
.header-now-playing, body.section-page-open .header-now-playing {
    display: block !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: right !important;
}
.header-now-playing-viewport { display: block; width: 100%; overflow: hidden; }
.header-main-row > .header-buttons-bar,
body.section-page-open .header-main-row > .header-buttons-bar {
    display: flex;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}
.header-buttons-bar .volume-cover-thumb { display: none; }
@media (max-width: 600px) {
    .header-main-row, body.section-page-open .header-main-row { gap: 6px; }
    .header-main-row > #logo-container { max-width: 37%; }
    .header-now-playing, body.section-page-open .header-now-playing { font-size: 10px; }
    .header-buttons-bar #volume-toggle-btn { position: relative; overflow: hidden; isolation: isolate; padding: 0 !important; }
    .header-buttons-bar #volume-toggle-btn .volume-cover-thumb {
        display: block; position: absolute; inset: 0; width: 100%; height: 100%;
        object-fit: cover; border-radius: inherit; z-index: 0;
    }
    .header-buttons-bar #volume-toggle-btn #volume-icon {
        position: relative; z-index: 1; color: #fff;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
    }
}

/* 01/11/2026 — Ajuste fino do cabeçalho (v4).
 *   A miniatura fica no botão que EXPANDE o grupo mobile, não no volume. */
.header-now-playing,
body.section-page-open .header-now-playing,
.header-now-playing-text {
    font-size: 14px !important;
}
@media (min-width: 601px) {
    .header-main-row,
    body.section-page-open .header-main-row {
        width: 100% !important;
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* Evita aplicar capa ao controle individual de volume. */
.header-buttons-bar #volume-toggle-btn .volume-cover-thumb { display: none !important; }
@media (max-width: 600px) {
    .header-buttons-bar #quality-buttons-toggle {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        padding: 0 !important;
    }
    .header-buttons-bar #quality-buttons-toggle .volume-cover-thumb {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        z-index: 0;
        pointer-events: none;
    }
    .header-buttons-bar #quality-buttons-toggle > svg {
        position: relative;
        z-index: 1;
        color: #fff;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
    }
}

/* 01/11 — Reprodução sob demanda no cabeçalho. */
.header-buttons-bar .header-demand-cover-btn {
    position: relative; width: 30px; height: 30px; min-width: 30px;
    padding: 0; overflow: hidden; isolation: isolate;
}
.header-buttons-bar .header-demand-cover-btn[hidden] { display: none !important; }
.header-demand-cover-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.header-demand-cover-overlay { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-size: 16px; font-weight: 800; opacity: 0; background: rgba(0,0,0,.35); }
.header-demand-cover-btn:hover .header-demand-cover-overlay, .header-demand-cover-btn:focus-visible .header-demand-cover-overlay { opacity: 1; }
.header-demand-cover-btn.is-paused .header-demand-cover-overlay { opacity: 1; }
@media (max-width: 600px) {
    .header-buttons-bar .header-demand-cover-btn { display: none !important; }
    .header-buttons-bar #quality-buttons-toggle.is-demand-playing .volume-cover-thumb { display: block; }
}

/* Post ticker: os itens abrem o post ao clicar. */
.post-ticker-item, .post-ticker-item * { cursor: pointer; }


/* =========================================================
 *   02/11/2026 — Correção pontual: linha do ticker e alinhamento
 *   Preserva os paddings verticais e os estilos existentes.
 *   ========================================================= */
/* Evita a segunda linha criada pela versão anterior. */
.header-station > .post-ticker-wrapper::after {
    content: none !important;
    display: none !important;
}
/* A borda ocupa toda a largura do cabeçalho, sem a máscara do letreiro. */
.header-station > .post-ticker-wrapper,
body.section-page-open .header-station > .post-ticker-wrapper,
body.dark-mode.section-page-open .header-station > .post-ticker-wrapper {
    position: relative;
    box-sizing: border-box !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    overflow: visible;
}
/* Somente o conteúdo rolante recebe o fade. */
.header-station > .post-ticker-wrapper .post-ticker-viewport { overflow: hidden; }

/* Mesma régua horizontal para a identidade/controles e os posts. */
@media (min-width: 601px) {
    .header-main-row,
    body.section-page-open .header-main-row {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding-left: 36px !important;
        padding-right: 36px !important;
    }
    #main-section-view .page-content,
    #main-section-view .page-header {
    box-sizing: border-box !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
    }
}

/* 02/11/2026 — Cabeçalho acompanha a largura responsiva da seção.
 *   A seção usa card de até 900px e padding horizontal de 36px. */
@media (min-width: 601px) {
    .header-station .header-main-row,
    body.section-page-open .header-station .header-main-row {
        width: 100% !important;
        max-width: 900px !important;
        margin-inline: auto !important;
        padding-inline: 36px !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
 *   02/11/2026 — Régua única de largura para páginas e início
 *   Altera somente o dimensionamento horizontal dos contêineres.
 *   ========================================================= */
:root { --webapp-page-max-width: 900px; }

@media (min-width: 601px) {
    #main-home-view,
    #main-section-view .page-container,
    body.section-page-open #main-section-view .page-container,
    .header-station .header-main-row,
    body.section-page-open .header-station .header-main-row {
        width: 100% !important;
        max-width: var(--webapp-page-max-width) !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 600px) {
    #main-home-view,
    #main-section-view .page-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    }
}

/* 02/11/2026 — Conteúdo interno alinhado à régua da página inicial.
 *   A largura de 900px já é aplicada ao page-container; não a reduzir
 *   novamente com padding lateral de 36px no page-content. */
@media (min-width: 601px) {
    #main-section-view .page-container > .page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    }
}
/* No mobile, manter uma margem de leitura confortável e uniforme. */
@media (max-width: 600px) {
    #main-section-view .page-container > .page-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    }
}


/* 02/11/2026 — Itens consistentes entre Programação, Podcasts e Tocou. */
#schedule-content-list .schedule-item,
#podcast-content-list .history-item,
#history-content-list .history-item {
min-height: 68px;
padding: 10px 14px;
gap: 12px;
border-radius: 12px;
border: 1px solid var(--border-color);
background: var(--item-bg);
box-sizing: border-box;
}
#schedule-content-list .schedule-item.is-on-air {
border-color: var(--accent-color) !important;
background: color-mix(in srgb, var(--accent-color) 18%, var(--item-bg)) !important;
box-shadow: inset 4px 0 0 var(--accent-color);
}
.schedule-on-air-label {
    display: inline-block; width: max-content; margin-top: 4px;
    padding: 2px 7px; border-radius: 6px;
    background: var(--accent-color); color: #fff;
    font: 700 10px var(--custom-font-family), sans-serif;
    letter-spacing: .05em;
}
/* Desktop: as três músicas mais recentes em cards quadrados com capa de fundo. */
@media (min-width: 601px) {
    #history-content-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    }
    #history-content-list .history-item:nth-child(-n+3) {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #171717;
    border-color: var(--border-color);
    isolation: isolate;
    }
    #history-content-list .history-item:nth-child(-n+3)::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.05) 80%);
    pointer-events: none;
    }
    #history-content-list .history-item:nth-child(-n+3) .history-cover-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: 0; z-index: -2;
    }
    #history-content-list .history-item:nth-child(-n+3) .history-thumb { width: 100%; height: 100%; object-fit: cover; }
    #history-content-list .history-item:nth-child(-n+3) .history-track-info { z-index: 1; }
    #history-content-list .history-item:nth-child(-n+3) .history-song { color: #fff; font-size: 16px; }
    #history-content-list .history-item:nth-child(-n+3) .history-artist { color: rgba(255,255,255,.8); font-size: 13px; }
    #history-content-list .history-item:nth-child(-n+3) .history-time {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    color: #fff; background: rgba(0,0,0,.55); padding: 4px 7px; border-radius: 6px;
    }
    #history-content-list .history-item:nth-child(n+4) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    #schedule-content-list .schedule-item,
    #podcast-content-list .history-item,
    #history-content-list .history-item { padding: 10px 12px; gap: 10px; }
}

/* 02/11 — Unificação visual das páginas de listas e navegação semanal. */
#schedule-content-list .schedule-item,
#podcast-content-list .history-item,
#history-content-list .history-item { border-width: 1px !important; box-shadow: none; }
#schedule-content-list .schedule-item.is-on-air {
border-width: 1px !important; box-shadow: none !important;
border-color: var(--accent-color) !important;
background: color-mix(in srgb, var(--accent-color) 16%, var(--item-bg)) !important;
}
#schedule-content-list .schedule-name,
#podcast-content-list .history-song,
#history-content-list .history-song { font-size: 16px; font-weight: 600; font-style: italic; line-height: 1.25; }
#schedule-content-list .schedule-locutor-modal,
#podcast-content-list .history-artist,
#history-content-list .history-artist { font-size: 14px; font-weight: 500; font-style: italic; line-height: 1.3; }
#schedule-content-list .schedule-time,
#podcast-content-list .podcast-item-date,
#history-content-list .history-time { font-size: 12px; font-weight: 600; font-style: normal; }
#schedule-content-list .schedule-time { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
#schedule-content-list .schedule-on-air-label { margin: 0; }
#schedule-page .schedule-page-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
#schedule-page .schedule-tabs { margin: 0; padding: 0; background: transparent; gap: 5px; justify-content: flex-start; flex-wrap: wrap; }
#schedule-page .schedule-tab { border: 1px solid var(--border-color); padding: 6px 9px; border-radius: 9px; font-size: 12px; }
#schedule-page .schedule-tab.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
@media (min-width: 601px) {
    #podcast-content-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    #podcast-content-list .history-item:nth-child(-n+3) {
    position: relative; aspect-ratio: 1/1; min-height: 0; padding: 14px;
    display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
    background: #171717; color: white;
    }
    #podcast-content-list .history-item:nth-child(-n+3)::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,.08) 85%); pointer-events: none;
    }
    #podcast-content-list .history-item:nth-child(-n+3) .history-cover-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; border-radius: 0;
    }
    #podcast-content-list .history-item:nth-child(-n+3) .history-thumb { width: 100%; height: 100%; object-fit: cover; }
    #podcast-content-list .history-item:nth-child(-n+3) .history-track-info { z-index: 1; pointer-events: none; }
    #podcast-content-list .history-item:nth-child(-n+3) .history-song { color: #fff; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    #podcast-content-list .history-item:nth-child(-n+3) .history-artist { color: rgba(255,255,255,.8); }
    #podcast-content-list .history-item:nth-child(-n+3) .podcast-item-date {
    position: absolute; top: 12px; right: 12px; color: white; background: rgba(0,0,0,.55);
    padding: 4px 7px; border-radius: 6px; z-index: 1;
    }
    #podcast-content-list .history-item:nth-child(n+4) { grid-column: 1 / -1; }
    #podcast-content-list .history-item:nth-child(-n+3) .history-play-overlay,
    #history-content-list .history-item:nth-child(-n+3) .history-play-overlay { opacity: 1; background: rgba(0,0,0,.10); }
    #podcast-content-list .history-item:nth-child(-n+3) .history-play-overlay svg,
    #history-content-list .history-item:nth-child(-n+3) .history-play-overlay svg {
    width: 48px; height: 48px; filter: drop-shadow(0 2px 7px rgba(0,0,0,.8));
    }
}
@media (max-width: 600px) {
    #schedule-page .schedule-page-heading { gap: 8px; }
    #schedule-page .schedule-tabs { gap: 3px; }
    #schedule-page .schedule-tab { padding: 5px 7px; }
    #schedule-content-list .schedule-time { flex-direction: column; gap: 3px; align-items: flex-end; }
}

/* 02/11 — Horário e locutor da Programação no mesmo padrão de Tocou/Podcasts. */
#schedule-content-list .schedule-time { color: var(--text-sub) !important; }
#schedule-content-list .schedule-locutor-modal { text-transform: uppercase !important; }
#schedule-content-list .schedule-on-air-label { color: var(--accent-color) !important; }

/* 02/11 — Ícones contextuais em Tocou e Podcasts, sem alteração do layout. */
#history-content-list .history-play-overlay,
#podcast-content-list .history-play-overlay { opacity: 0 !important; transition: opacity .18s ease; }
#history-content-list .history-item:hover .history-play-overlay,
#podcast-content-list .history-item:hover .history-play-overlay,
#history-content-list .history-item:focus-within .history-play-overlay,
#podcast-content-list .history-item:focus-within .history-play-overlay,
#history-content-list .history-item.audio-playing .history-play-overlay,
#podcast-content-list .history-item.audio-playing .history-play-overlay { opacity: 1 !important; }
#history-content-list .history-play-overlay .icon-pause,
#podcast-content-list .history-play-overlay .icon-pause { display: none; }
#history-content-list .audio-playing .history-play-overlay .icon-play,
#podcast-content-list .audio-playing .history-play-overlay .icon-play { display: none; }
#history-content-list .audio-playing .history-play-overlay .icon-pause,
#podcast-content-list .audio-playing .history-play-overlay .icon-pause { display: block; }
@media (hover: none) {
    #history-content-list .history-play-overlay,
    #podcast-content-list .history-play-overlay { opacity: 1 !important; }
}

/* 03/11/2026 — Foto integrada à extremidade do status-badge.
 *   O círculo é uma extensão da mesma superfície de vidro do badge.
 *   A imagem fica recuada dentro dele; durante o carregamento há skeleton.
 *   Nenhuma dimensão ou estilo do badge isolado é modificado. */
.presenter-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 100%;
    margin-bottom: 12px;
    flex: 0 0 auto;
}
.presenter-status-row > .status-badge { margin-bottom: 0 !important; }
.presenter-status-photo[hidden] { display: none !important; }
.presenter-status-row.has-presenter-photo {
    --presenter-photo-size: 76px;
    --presenter-photo-overlap: 22px;
    --presenter-photo-inset: 5px;
    position: relative;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    min-height: var(--presenter-photo-size);
    justify-content: flex-start;
    isolation: isolate;
}
/* A borda arredondada e o fundo são os mesmos do badge. */
.presenter-status-row.has-presenter-photo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--presenter-photo-size);
    height: var(--presenter-photo-size);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--item-bg);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    z-index: 2;
    pointer-events: none;
}
.presenter-status-row.has-presenter-photo > .status-badge {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    margin-left: calc(var(--presenter-photo-size) - var(--presenter-photo-overlap));
    padding-left: calc(16px + var(--presenter-photo-overlap) / 2);
}
.presenter-status-row.has-presenter-photo > .presenter-status-photo {
    position: absolute;
    z-index: 3;
    left: var(--presenter-photo-inset);
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--presenter-photo-size) - 2 * var(--presenter-photo-inset));
    height: calc(var(--presenter-photo-size) - 2 * var(--presenter-photo-inset));
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    opacity: 0;
    transition: opacity .22s ease;
}
.presenter-status-row.has-presenter-photo.photo-ready > .presenter-status-photo { opacity: 1; }
.presenter-status-row.has-presenter-photo.photo-loading::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: var(--presenter-photo-inset);
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--presenter-photo-size) - 2 * var(--presenter-photo-inset));
    height: calc(var(--presenter-photo-size) - 2 * var(--presenter-photo-inset));
    border-radius: 50%;
    background: linear-gradient(110deg, var(--item-bg) 8%, rgba(160,160,160,.30) 28%, var(--item-bg) 48%);
    background-size: 220% 100%;
    animation: presenter-photo-loading 1.35s linear infinite;
    pointer-events: none;
}
@keyframes presenter-photo-loading { to { background-position-x: -220%; } }
@media (prefers-reduced-motion: reduce) {
    .presenter-status-row.has-presenter-photo.photo-loading::after { animation: none; }
}
@media (min-width: 601px) and (max-height: 820px) {
    #main-home-view .presenter-status-row.has-presenter-photo {
    --presenter-photo-size: 64px;
    --presenter-photo-overlap: 19px;
    margin-bottom: 7px;
    }
    #main-home-view .player-middle-row { gap: 16px; }
}
@media (max-width: 600px) {
    .presenter-status-row.has-presenter-photo {
        --presenter-photo-size: 62px;
        --presenter-photo-overlap: 19px;
        --presenter-photo-inset: 4px;
    }
}

/* 03/11/2026 — Superfície contínua entre retrato e status-badge.
 *   Usa exatamente a composição de vidro do status, inclusive no tema escuro. */
.presenter-status-row.has-presenter-photo {
    --presenter-glass-bg: rgba(255,255,255,.16);
    --presenter-glass-border: rgba(255,255,255,.28);
    --presenter-glass-shadow: 0 8px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
}
body.dark-mode .presenter-status-row.has-presenter-photo {
    --presenter-glass-bg: rgba(24,24,26,.58);
    --presenter-glass-border: rgba(255,255,255,.18);
    --presenter-glass-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.presenter-status-row.has-presenter-photo::before {
    background: var(--presenter-glass-bg) !important;
    border-color: var(--presenter-glass-border) !important;
    box-shadow: var(--presenter-glass-shadow) !important;
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    /* Círculo cobre a extremidade do badge, evitando bordas duplas. */
    z-index: 3;
}
.presenter-status-row.has-presenter-photo > .status-badge {
    background: var(--presenter-glass-bg) !important;
    border-color: var(--presenter-glass-border) !important;
    box-shadow: var(--presenter-glass-shadow) !important;
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
    z-index: 1;
}
.presenter-status-row.has-presenter-photo > .presenter-status-photo { z-index: 5; }
.presenter-status-row.has-presenter-photo.photo-loading::after { z-index: 4; }
/* A borda do círculo fica visível; a do badge fica por trás dele. */
.presenter-status-row.has-presenter-photo > .presenter-status-photo {
    background: var(--presenter-glass-bg);
}

/* 03/11/2026 — União visual da moldura do locutor com o status-badge.
 *   A moldura não projeta sombra nem desenha uma borda sobre o badge.
 *   Mantém a parte externa do círculo e o carregamento da foto. */
.presenter-status-row.has-presenter-photo::before {
    box-shadow: none !important;
    /* Oculta a parte do círculo que entraria sobre a superfície do badge. */
    clip-path: inset(0 var(--presenter-photo-overlap) 0 0);
}

/* Oculta o status da programação quando não há programa no horário. */
#status-badge[hidden] { display: none !important; }

/* Visibilidade inicial do slogan, antes da execução do JavaScript. */
@media (min-width: 481px) {
    .header-main-row > #logo-container > #station-slogan-text[data-show-desktop="0"] { display: none !important; }
}
@media (max-width: 480px) {
    .header-main-row > #logo-container > #station-slogan-text[data-show-mobile="0"] { display: none !important; }
}
