/* Ajustes finais carregados depois do tema principal. */

html body.site-shell.radio-page .radio-now {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 1rem !important;
    align-items: center !important;
    background: #050505 !important;
    border: 1px solid rgba(255, 179, 71, 0.2) !important;
    border-radius: 24px !important;
    padding: 1rem !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.35) !important;
}

/* Traducoes: listagem e pagina de musica traduzida. */
.translations-page-shell,
.translation-detail {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.translation-list {
    display: grid;
    gap: 0.9rem;
}

.translation-list-card {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) minmax(220px, 0.65fr);
    gap: 0.35rem 1rem;
    align-items: center;
    padding: 1.05rem 1.2rem;
    color: #f5f1ea;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.translation-list-card:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 133, 0, 0.45);
    box-shadow: 0 0 28px rgba(255, 133, 0, 0.22);
}

.translation-list-artist {
    font-weight: 800;
    color: #ffb347;
}

.translation-list-title {
    font-size: 1.1rem;
    font-weight: 900;
}

.translation-list-card em {
    grid-column: 2;
    color: #cfcfcf;
}

.cn-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 2rem;
}

.cn-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 1rem;
    color: #f5f1ea;
    text-decoration: none;
    border: 1px solid rgba(255, 179, 71, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.cn-pagination a.is-active,
.cn-pagination a:hover {
    color: #111;
    background: linear-gradient(135deg, #ff8500, #ffb347);
}

.translation-detail-hero,
.translation-lyrics-card,
.translation-video {
    padding: clamp(1.35rem, 3vw, 2.2rem);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.translation-detail-hero h1 {
    margin: 0;
    color: #f5f1ea;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.98;
}

.translation-title-pt,
.translation-artist {
    margin: 0.8rem 0 0;
    color: #cfcfcf;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.translation-artist {
    color: #ffb347;
    font-weight: 800;
}

.translation-video {
    margin-top: 1.4rem;
}

.translation-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 20px;
    background: #050505;
}

.translation-lyrics-card {
    margin-top: 1.4rem;
    color: #f5f1ea;
}

.translation-line-pair {
    margin-bottom: 1.35rem;
}

.translation-line-pair p {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.55;
}

.translation-line-pair p + p {
    margin-top: 0.1rem;
    color: #cfcfcf;
}

@media (max-width: 700px) {
    .translation-list-card {
        grid-template-columns: 1fr;
    }

    .translation-list-card em {
        grid-column: auto;
    }
}

html body.site-shell.radio-page .radio-now *,
html body.site-shell.radio-page .radio-now h2,
html body.site-shell.radio-page .radio-now p,
html body.site-shell.radio-page .radio-now span {
    color: #f5f1ea !important;
    -webkit-text-fill-color: #f5f1ea !important;
}

html body.site-shell.radio-page .radio-now .section-kicker,
html body.site-shell.radio-page #radioStatus {
    color: #ffb347 !important;
    -webkit-text-fill-color: #ffb347 !important;
}

html body.site-shell.radio-page .radio-now-cover {
    width: 132px !important;
    height: 92px !important;
    border-radius: 18px !important;
    object-fit: cover !important;
}

html body.site-shell.radio-page .radio-detail-cover {
    object-fit: contain !important;
    background: #050505 !important;
    padding: 0.35rem !important;
}

html body.site-shell.radio-page .radio-detail-hero > div {
    min-width: 0 !important;
}

html body.site-shell.radio-page .radio-share-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    margin-top: 1.1rem !important;
}

html body.site-shell.radio-page .radio-share-button {
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25) !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

html body.site-shell.radio-page .radio-share-button span {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    font-weight: 900 !important;
}

html body.site-shell.radio-page .radio-detail-hero .share-feedback {
    margin: 0.75rem 0 0 !important;
    color: #ffb347 !important;
    -webkit-text-fill-color: #ffb347 !important;
    font-weight: 800 !important;
}

html body.site-shell.radio-page .radio-related-grid.cn-ranking-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-card {
    margin: 0 !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-card a {
    min-height: 100px !important;
    display: grid !important;
    grid-template-columns: auto 58px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.9rem 1rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 179, 71, 0.28) !important;
    border-radius: 20px !important;
    color: #111827 !important;
    -webkit-text-fill-color: initial !important;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2) !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-number {
    width: 2.35rem !important;
    height: 2.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff8500, #ffb347) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    font-weight: 900 !important;
}

html body.site-shell.radio-page .radio-related-grid img,
html body.site-shell.radio-page .radio-related-grid .cn-ranking-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 0.15rem !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-copy strong {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-copy small {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.site-shell.radio-page .radio-related-grid .cn-ranking-action {
    color: #c95f00 !important;
    -webkit-text-fill-color: #c95f00 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-banner {
    overflow: hidden !important;
    background:
        radial-gradient(circle at 78% 0%, rgba(255, 133, 0, 0.1), transparent 30%),
        linear-gradient(180deg, #100c08 0%, #090807 100%) !important;
    padding: clamp(0.55rem, 0.9vw, 0.9rem) 0 !important;
    border-top: 1px solid rgba(255, 179, 71, 0.12) !important;
    border-bottom: 1px solid rgba(255, 179, 71, 0.12) !important;
}

html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-banner .container-xl {
    width: 100% !important;
    max-width: none !important;
    padding-left: clamp(0.75rem, 1.25vw, 1.5rem) !important;
    padding-right: clamp(0.75rem, 1.25vw, 1.5rem) !important;
}

html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-link,
html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-link picture {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-link {
    overflow: hidden !important;
    border-radius: clamp(14px, 1.2vw, 24px) !important;
    line-height: 0 !important;
}

html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

html body.site-shell.home-page .homepage-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(0.55rem, 0.9vw, 0.9rem) clamp(0.75rem, 1.25vw, 1.5rem) !important;
    box-sizing: border-box !important;
}

html body.site-shell.home-page .home-hero {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: clamp(14px, 1.2vw, 24px) !important;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.68) 45%, rgba(5, 5, 5, 0.24) 100%),
        radial-gradient(circle at 82% 26%, rgba(255, 133, 0, 0.40), transparent 22%),
        var(--cn-home-life-bg, url("../../fundoproc.png")) center right / cover no-repeat !important;
}

html body.site-shell.phrases-page .phrase-card-canvas,
html body.site-shell .phrase-related-grid .phrase-card-canvas,
html body.site-shell .phrase-single-canvas {
    background: #ffffff !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
}

html body.site-shell.phrases-page .phrase-card-canvas .phrase-card-text,
html body.site-shell.phrases-page .phrase-card-canvas .phrase-card-author,
html body.site-shell.phrases-page .phrase-card-canvas .phrase-card-site,
html body.site-shell .phrase-related-grid .phrase-card-canvas .phrase-card-text,
html body.site-shell .phrase-related-grid .phrase-card-canvas .phrase-card-author,
html body.site-shell .phrase-related-grid .phrase-card-canvas .phrase-card-site,
html body.site-shell .phrase-single-canvas .phrase-single-text,
html body.site-shell .phrase-single-canvas .phrase-single-author,
html body.site-shell .phrase-single-canvas .phrase-single-site {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    text-shadow: none !important;
}

@media (min-width: 1200px) {
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-topbar,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-banner,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-main,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-footer {
        margin-left: 178px !important;
        width: calc(100% - 178px) !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 1199.98px) {
    html body.site-shell.radio-page .radio-related-grid.cn-ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    html body.site-shell.radio-page .radio-now {
        grid-template-columns: 1fr !important;
    }

    html body.site-shell.radio-page .radio-now-cover {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    html body.site-shell.radio-page .radio-related-grid.cn-ranking-grid {
        grid-template-columns: 1fr !important;
    }

    html body.site-shell.radio-page .radio-related-grid .cn-ranking-card a {
        grid-template-columns: auto 56px minmax(0, 1fr) !important;
    }

    html body.site-shell.radio-page .radio-related-grid .cn-ranking-action {
        display: none !important;
    }

    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-topbar,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-promo-banner,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-main,
    html body.site-shell[data-theme="dark"]:not(.admin-page) .site-footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Compartilhamento publico: padrao unico em todas as paginas de usuario. */
html body.site-shell:not(.admin-page) .song-action-button,
html body.site-shell:not(.admin-page) .share-button,
html body.site-shell:not(.admin-page) .share-pill-button,
html body.site-shell:not(.admin-page) .home-share-button,
html body.site-shell:not(.admin-page) .verse-share-action,
html body.site-shell:not(.admin-page) .bible-verse-share-button,
html body.site-shell:not(.admin-page) .copy-link-button,
html body.site-shell:not(.admin-page) .social-button,
html body.site-shell:not(.admin-page) .song-share-button,
html body.site-shell:not(.admin-page) .song-actions-panel a,
html body.site-shell:not(.admin-page) .song-actions-panel button,
html body.site-shell:not(.admin-page) .artist-share-panel a,
html body.site-shell:not(.admin-page) .artist-share-panel button,
html body.site-shell:not(.admin-page) a[href*="wa.me"],
html body.site-shell:not(.admin-page) a[href*="api.whatsapp.com"],
html body.site-shell:not(.admin-page) a[href*="facebook.com/sharer"],
html body.site-shell:not(.admin-page) a[href*="twitter.com/intent"],
html body.site-shell:not(.admin-page) a[href*="x.com/intent"] {
    background: #ffffff !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    border-color: rgba(0, 0, 0, 0.16) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

html body.site-shell:not(.admin-page) .song-action-button,
html body.site-shell:not(.admin-page) .share-button,
html body.site-shell:not(.admin-page) .share-pill-button,
html body.site-shell:not(.admin-page) .home-share-button,
html body.site-shell:not(.admin-page) .verse-share-action,
html body.site-shell:not(.admin-page) .bible-verse-share-button,
html body.site-shell:not(.admin-page) .copy-link-button,
html body.site-shell:not(.admin-page) .social-button,
html body.site-shell:not(.admin-page) .song-share-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body.site-shell:not(.admin-page) .song-action-button *,
html body.site-shell:not(.admin-page) .share-button *,
html body.site-shell:not(.admin-page) .share-pill-button *,
html body.site-shell:not(.admin-page) .home-share-button *,
html body.site-shell:not(.admin-page) .verse-share-action *,
html body.site-shell:not(.admin-page) .bible-verse-share-button *,
html body.site-shell:not(.admin-page) .copy-link-button *,
html body.site-shell:not(.admin-page) .social-button *,
html body.site-shell:not(.admin-page) .song-share-button *,
html body.site-shell:not(.admin-page) .song-actions-panel a *,
html body.site-shell:not(.admin-page) .song-actions-panel button *,
html body.site-shell:not(.admin-page) .artist-share-panel a *,
html body.site-shell:not(.admin-page) .artist-share-panel button * {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
}

html body.site-shell:not(.admin-page) .song-action-button svg,
html body.site-shell:not(.admin-page) .share-button svg,
html body.site-shell:not(.admin-page) .share-pill-button svg,
html body.site-shell:not(.admin-page) .home-share-button svg,
html body.site-shell:not(.admin-page) .verse-share-action svg,
html body.site-shell:not(.admin-page) .bible-verse-share-button svg,
html body.site-shell:not(.admin-page) .copy-link-button svg,
html body.site-shell:not(.admin-page) .social-button svg,
html body.site-shell:not(.admin-page) .song-share-button svg,
html body.site-shell:not(.admin-page) .song-actions-panel svg,
html body.site-shell:not(.admin-page) .artist-share-panel svg {
    width: 20px !important;
    height: 20px !important;
    color: #050505 !important;
    fill: currentColor !important;
    stroke: none !important;
    background: transparent !important;
}

html body.site-shell:not(.admin-page) .song-action-button svg *,
html body.site-shell:not(.admin-page) .share-button svg *,
html body.site-shell:not(.admin-page) .share-pill-button svg *,
html body.site-shell:not(.admin-page) .home-share-button svg *,
html body.site-shell:not(.admin-page) .verse-share-action svg *,
html body.site-shell:not(.admin-page) .bible-verse-share-button svg *,
html body.site-shell:not(.admin-page) .copy-link-button svg *,
html body.site-shell:not(.admin-page) .social-button svg *,
html body.site-shell:not(.admin-page) .song-share-button svg *,
html body.site-shell:not(.admin-page) .song-actions-panel svg *,
html body.site-shell:not(.admin-page) .artist-share-panel svg * {
    fill: currentColor !important;
    stroke: none !important;
}

html body.site-shell.chords-dictionary-page .chord-dictionary-quick-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

html body.site-shell.chords-dictionary-page .chord-dictionary-quick-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    padding: 0.85rem 1rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff8500, #ffb347) !important;
    border: 1px solid rgba(255, 179, 71, 0.45) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(255, 133, 0, 0.20) !important;
}

html body.site-shell.chords-dictionary-page .chord-dictionary-quick-link:hover,
html body.site-shell.chords-dictionary-page .chord-dictionary-quick-link:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px rgba(255, 133, 0, 0.28) !important;
}

/* Ordem definitiva da home solicitada pelo usuario. Este CSS carrega com filemtime. */
html body.site-shell.home-page .homepage-shell {
    display: flex !important;
    flex-direction: column !important;
}

html body.site-shell.home-page .home-hero {
    order: 1 !important;
}

html body.site-shell.home-page .home-artist-carousel-section {
    order: 2 !important;
}

html body.site-shell.home-page .home-top-section {
    order: 3 !important;
}

html body.site-shell.home-page .home-editorial-section {
    order: 4 !important;
}

html body.site-shell.home-page .cinematic-feature-section {
    order: 5 !important;
}

html body.site-shell.home-page .homepage-shell > .container.my-4 {
    order: 6 !important;
}

html body.site-shell.home-page .home-top-highlight-banner {
    order: 7 !important;
}

html body.site-shell.home-page .home-hero-side--after-highlight {
    order: 8 !important;
}

html body.site-shell.home-page .home-resource-section {
    order: 9 !important;
}

html body.site-shell.home-page .home-learning-section {
    order: 10 !important;
}

html body.site-shell.home-page .home-liturgy-section {
    order: 11 !important;
}

html body.site-shell.home-page .home-news-block {
    order: 12 !important;
}

/* Idiomas publicos: seletor Brasil/EUA no menu lateral e no topo mobile. */
html body.site-shell:not(.admin-page) .site-language-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
}

html body.site-shell:not(.admin-page) .site-language-switcher--rail {
    width: calc(100% - 28px) !important;
    margin: 0.65rem 14px 1.15rem !important;
    justify-content: center !important;
}

html body.site-shell:not(.admin-page) .site-language-switcher--mobile {
    margin-left: auto !important;
    margin-right: 0.55rem !important;
}

html body.site-shell:not(.admin-page) .site-language-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 32px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 179, 71, 0.32) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    font-size: 1.12rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

html body.site-shell:not(.admin-page) .site-language-button:hover,
html body.site-shell:not(.admin-page) .site-language-button:focus-visible,
html body.site-shell:not(.admin-page) .site-language-button.active {
    transform: translateY(-1px) !important;
    border-color: rgba(255, 179, 71, 0.9) !important;
    background: rgba(255, 133, 0, 0.18) !important;
    box-shadow: 0 0 20px rgba(255, 133, 0, 0.22) !important;
}

html body.site-shell:not(.admin-page) .cinematic-rail-nav {
    margin-top: 0.2rem !important;
}

@media (min-width: 992px) {
    html body.site-shell:not(.admin-page) .site-language-switcher--mobile {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    html body.site-shell:not(.admin-page) .site-language-switcher--rail {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    html body.site-shell:not(.admin-page) .site-language-button {
        width: 34px !important;
        height: 30px !important;
        font-size: 1rem !important;
    }

    html body.site-shell:not(.admin-page) .site-language-switcher--mobile {
        margin-right: 0.35rem !important;
        gap: 0.3rem !important;
    }
}

/* Bandeiras coladas na logo, sem depender do emoji/fonte do navegador. */
html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0 0.9rem !important;
    margin: 0.15rem 0 1.05rem !important;
}

html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .cinematic-rail-brand {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-cifra,
html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-net {
    font-size: 1.55rem !important;
    letter-spacing: -0.08em !important;
}

html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .site-language-switcher--rail {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    justify-content: flex-start !important;
}

html body.site-shell:not(.admin-page) .site-language-button {
    position: relative !important;
    overflow: hidden !important;
    width: 32px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

html body.site-shell:not(.admin-page) .site-language-button::before {
    content: "" !important;
    display: block !important;
    width: 23px !important;
    height: 16px !important;
    border-radius: 3px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

html body.site-shell:not(.admin-page) .site-language-button[data-lang-switch="pt"]::before {
    background:
        radial-gradient(circle at 50% 50%, #1d4ed8 0 18%, transparent 19%),
        linear-gradient(45deg, transparent 30%, #facc15 31% 69%, transparent 70%),
        #16a34a !important;
}

html body.site-shell:not(.admin-page) .site-language-button[data-lang-switch="en"]::before {
    background:
        linear-gradient(90deg, #1d4ed8 0 42%, transparent 42%),
        repeating-linear-gradient(to bottom, #ef4444 0 2px, #ffffff 2px 4px) !important;
}

html body.site-shell:not(.admin-page) .site-language-switcher--rail .site-language-button {
    width: 27px !important;
    height: 24px !important;
}

html body.site-shell:not(.admin-page) .site-language-switcher--rail .site-language-button::before {
    width: 19px !important;
    height: 13px !important;
}

@media (max-width: 1199.98px) {
    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .site-language-switcher--rail {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    html body.site-shell:not(.admin-page) .site-language-switcher--mobile {
        margin-left: 0.45rem !important;
        margin-right: 0.35rem !important;
        gap: 0.25rem !important;
    }

    html body.site-shell:not(.admin-page) .site-mobile-toggle,
    html body.site-shell:not(.admin-page) .menu-toggle,
    html body.site-shell:not(.admin-page) .navbar-toggler {
        margin-left: auto !important;
    }
}

@media (max-width: 575.98px) {
    html body.site-shell:not(.admin-page) .site-language-button {
        width: 30px !important;
        height: 26px !important;
    }

    html body.site-shell:not(.admin-page) .site-language-button::before {
        width: 21px !important;
        height: 14px !important;
    }
}

/* Reposicionamento definitivo: desktop abaixo da faixa e mobile colado na logo. */
@media (min-width: 1200px) {
    html body.site-shell:not(.admin-page) .cinematic-rail {
        padding-top: 4.85rem !important;
        gap: 0.85rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
        align-items: center !important;
        gap: 0.35rem !important;
        padding: 0 0.85rem !important;
        margin: 0 0 1.25rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-cifra,
    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-net {
        font-size: 1.42rem !important;
        letter-spacing: -0.09em !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-nav {
        margin-top: 0 !important;
    }
}

@media (max-width: 991.98px) {
    html body.site-shell:not(.admin-page) .site-topbar .site-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.35rem !important;
        padding-top: 0.42rem !important;
        padding-bottom: 0.25rem !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-brand {
        order: 1 !important;
        flex: 0 0 auto !important;
        margin: 0 0.28rem 0 0 !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-brand-wordmark {
        font-size: 1.55rem !important;
        line-height: 1 !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-language-switcher--mobile {
        order: 2 !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateY(1px) !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .nav-toggle {
        order: 3 !important;
        margin-left: auto !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-nav-collapse {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Ajuste final das bandeiras e da logo lateral: usa SVG real e posicionamento estavel. */
html body.site-shell:not(.admin-page) .site-language-button::before {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

html body.site-shell:not(.admin-page) .site-language-button[data-lang-switch="pt"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Crect width='28' height='20' fill='%23009639'/%3E%3Cpath d='M14 2.3 25.2 10 14 17.7 2.8 10z' fill='%23ffdf00'/%3E%3Ccircle cx='14' cy='10' r='4.2' fill='%23002876'/%3E%3Cpath d='M9.9 9.2c3.2-.7 6.1-.2 8.5 1.5' fill='none' stroke='%23fff' stroke-width='.75'/%3E%3C/svg%3E") !important;
}

html body.site-shell:not(.admin-page) .site-language-button[data-lang-switch="en"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 20'%3E%3Crect width='38' height='20' fill='%23b22234'/%3E%3Cpath d='M0 2h38v2H0zm0 4h38v2H0zm0 4h38v2H0zm0 4h38v2H0zm0 4h38v2H0z' fill='%23fff'/%3E%3Crect width='16' height='10.8' fill='%233c3b6e'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='2.4' cy='2' r='.45'/%3E%3Ccircle cx='5.3' cy='2' r='.45'/%3E%3Ccircle cx='8.2' cy='2' r='.45'/%3E%3Ccircle cx='11.1' cy='2' r='.45'/%3E%3Ccircle cx='14' cy='2' r='.45'/%3E%3Ccircle cx='3.9' cy='4.2' r='.45'/%3E%3Ccircle cx='6.8' cy='4.2' r='.45'/%3E%3Ccircle cx='9.7' cy='4.2' r='.45'/%3E%3Ccircle cx='12.6' cy='4.2' r='.45'/%3E%3Ccircle cx='2.4' cy='6.4' r='.45'/%3E%3Ccircle cx='5.3' cy='6.4' r='.45'/%3E%3Ccircle cx='8.2' cy='6.4' r='.45'/%3E%3Ccircle cx='11.1' cy='6.4' r='.45'/%3E%3Ccircle cx='14' cy='6.4' r='.45'/%3E%3Ccircle cx='3.9' cy='8.6' r='.45'/%3E%3Ccircle cx='6.8' cy='8.6' r='.45'/%3E%3Ccircle cx='9.7' cy='8.6' r='.45'/%3E%3Ccircle cx='12.6' cy='8.6' r='.45'/%3E%3C/g%3E%3C/svg%3E") !important;
}

@media (min-width: 1200px) {
    html body.site-shell:not(.admin-page) .cinematic-rail {
        padding-top: 6.85rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
        gap: 0.32rem !important;
        margin-bottom: 1.2rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-cifra,
    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row .rail-logo-net {
        font-size: 1.34rem !important;
    }

    html body.site-shell:not(.admin-page) .site-language-switcher--rail .site-language-button {
        width: 28px !important;
        height: 25px !important;
    }
}

@media (max-width: 991.98px) {
    html body.site-shell:not(.admin-page) .site-topbar .site-nav {
        align-items: center !important;
        column-gap: 0.28rem !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-brand {
        margin-right: 0.2rem !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-language-switcher--mobile {
        display: inline-flex !important;
        gap: 0.22rem !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .nav-toggle {
        margin-left: auto !important;
    }
}

/* Correção definitiva do bloco logo + idiomas: fica mais baixo no desktop e as bandeiras aparecem como ícones reais. */
html body.site-shell:not(.admin-page) .site-language-button {
    font-size: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
}

html body.site-shell:not(.admin-page) .site-language-button::before {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35) !important;
}

@media (min-width: 1200px) {
    html body.site-shell:not(.admin-page) .cinematic-rail {
        padding-top: 8.45rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
        align-items: center !important;
        gap: 0.42rem !important;
        margin-bottom: 1.35rem !important;
        transform: translateY(0.35rem) !important;
    }

    html body.site-shell:not(.admin-page) .site-language-switcher--rail {
        transform: translateY(0.04rem) !important;
    }

    html body.site-shell:not(.admin-page) .site-language-switcher--rail .site-language-button {
        width: 26px !important;
        height: 24px !important;
        padding: 2px !important;
    }
}

@media (max-width: 991.98px) {
    html body.site-shell:not(.admin-page) .site-topbar .site-language-switcher--mobile {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.24rem !important;
        margin-left: auto !important;
        margin-right: 0.42rem !important;
    }

    html body.site-shell:not(.admin-page) .site-topbar .site-language-switcher--mobile .site-language-button {
        width: 27px !important;
        height: 25px !important;
        padding: 2px !important;
    }
}

/* Menu lateral: bloco centralizado e logo mais perto do primeiro item. */
@media (min-width: 1400px) {
    html body.site-shell:not(.admin-page) .cinematic-rail {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 0.38rem !important;
        min-height: 100vh !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
        width: 100% !important;
        margin: 0 0 0.12rem !important;
        padding: 0 1rem !important;
        transform: none !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-brand--text {
        font-size: clamp(1.42rem, 1.35vw, 1.82rem) !important;
        line-height: 1 !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-nav {
        width: 100% !important;
        margin: 0 !important;
        gap: 0.14rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-nav a {
        min-height: 38px !important;
        padding-top: 0.46rem !important;
        padding-bottom: 0.46rem !important;
    }

    html body.site-shell:not(.admin-page) .site-language-switcher--rail {
        width: 100% !important;
        margin: 0.42rem 0 0 !important;
        justify-content: center !important;
        transform: none !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-card {
        margin-top: 0.75rem !important;
    }
}

/* Ajuste final: logo do menu lateral colada ao primeiro item em qualquer desktop. */
@media (min-width: 992px) {
    html body.site-shell:not(.admin-page) .cinematic-rail-brand-row {
        margin-bottom: 0.08rem !important;
    }

    html body.site-shell:not(.admin-page) .cinematic-rail-nav {
        gap: 0.12rem !important;
    }
}
