/*
 * Qual é a Cifra — Public UI 3.0
 * Sistema visual único para Leitor, Louvores, Treino e Solicitações.
 */

:root {
    --qec-bg: #130317;
    --qec-bg-deep: #0c010f;
    --qec-surface: #ffffff;
    --qec-surface-soft: #f6f2f7;
    --qec-surface-muted: #eee8f1;

    --qec-text: #17101a;
    --qec-text-muted: #755f7a;
    --qec-text-on-dark: #ffffff;
    --qec-text-on-dark-muted: #ccbcd0;

    --qec-gold: #d4af37;
    --qec-gold-dark: #8a6800;
    --qec-red: #d92d2d;
    --qec-red-dark: #b91e1e;
    --qec-purple: #6d43d7;
    --qec-purple-dark: #4d27b4;
    --qec-green: #087f33;

    --qec-border-color: rgba(20, 6, 23, .12);
    --qec-border-dark: rgba(255, 255, 255, .13);
    --qec-border: 1px solid var(--qec-border-color);
    --qec-border-on-dark: 1px solid var(--qec-border-dark);

    --qec-radius-sm: 10px;
    --qec-radius-md: 14px;
    --qec-radius-lg: 20px;
    --qec-radius-xl: 26px;

    --qec-shadow-sm: 0 8px 22px rgba(20, 6, 23, .12);
    --qec-shadow-md: 0 18px 42px rgba(20, 6, 23, .20);

    --qec-reader-scale: 1;
    --qec-page-max: 1160px;
    --qec-reader-max: 940px;
    --qec-page-gutter: clamp(10px, 2.2vw, 24px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--qec-bg);
    scroll-behavior: smooth;
}

body.qec-louvor-single,
body:has(.qec-louvores-embed),
body:has(.qec-song-training) {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 50% -15%, rgba(109, 67, 215, .17), transparent 34%),
        linear-gradient(180deg, var(--qec-bg) 0%, var(--qec-bg-deep) 100%);
    color: var(--qec-text-on-dark);
}

button,
a,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.qec-page {
    min-height: 100vh;
    padding:
        max(18px, env(safe-area-inset-top))
        var(--qec-page-gutter)
        max(30px, env(safe-area-inset-bottom));
}

.qec-container {
    width: min(100%, var(--qec-page-max));
    margin-inline: auto;
}

.qec-gold {
    color: var(--qec-gold);
}

.qec-logo-wrapper,
.qec-reader-logo {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--qec-shadow-sm);
}

.qec-logo-wrapper img,
.qec-reader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qec-title,
.qec-reader-title {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.06;
    text-align: center;
}

.qec-subtitle,
.qec-reader-artist {
    display: block;
    width: fit-content;
    margin: 9px auto 0;
    color: var(--qec-text-on-dark-muted);
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.qec-reader-artist:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ------------------------------------------------------------------
   Leitor de cifra
------------------------------------------------------------------- */

.qec-reader-container {
    width: min(100%, var(--qec-reader-max));
}

.qec-reader-hero {
    padding: 12px 0 22px;
    text-align: center;
}

.qec-reader-meta,
.qec-song-meta,
.qec-training-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.qec-reader-meta span,
.qec-song-meta span,
.qec-training-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border: var(--qec-border-on-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
    font-size: .84rem;
    font-weight: 700;
}

.qec-reader-toolbar {
    position: sticky;
    top: max(6px, env(safe-area-inset-top));
    z-index: 200;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px;
    border: var(--qec-border);
    border-radius: var(--qec-radius-lg);
    background: rgba(255, 255, 255, .97);
    color: var(--qec-text);
    box-shadow: var(--qec-shadow-md);
    backdrop-filter: blur(14px);
}

.qec-reader-song-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 6, 23, .08);
}

.qec-reader-song-copy {
    min-width: 0;
}

.qec-reader-song-copy strong,
.qec-reader-song-copy a {
    display: block;
}

.qec-reader-song-copy strong {
    overflow: hidden;
    color: var(--qec-text);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qec-reader-song-copy a {
    width: fit-content;
    margin-top: 3px;
    color: var(--qec-purple);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.qec-reader-song-copy a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qec-reader-song-actions {
    display: flex;
    gap: 7px;
}

.qec-icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--qec-surface-soft);
    color: var(--qec-purple);
    font-size: 1.3rem;
    font-weight: 900;
    transition: transform .15s ease, background .15s ease;
}

.qec-icon-button:hover {
    background: #ece4f4;
    transform: translateY(-1px);
}

.qec-reader-primary-controls {
    display: grid;
    grid-template-columns: auto minmax(145px, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
}

.qec-zoom-control {
    display: grid;
    grid-template-columns: 42px 54px 42px;
    align-items: center;
    gap: 4px;
}

.qec-zoom-control button,
.qec-more-control,
.qec-scroll-toggle,
.qec-key-control button,
.qec-action-button,
.qec-reading-mode-button {
    min-height: 42px;
    border: var(--qec-border);
    border-radius: var(--qec-radius-sm);
    background: var(--qec-surface-soft);
    color: var(--qec-text);
    font-weight: 900;
    transition:
        transform .12s ease,
        border-color .15s ease,
        background .15s ease;
}

.qec-zoom-control button {
    width: 42px;
    padding: 0;
}

.qec-zoom-control output {
    display: grid;
    place-items: center;
    min-height: 42px;
    color: var(--qec-text);
    font-size: .84rem;
    font-weight: 900;
}

.qec-scroll-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 7px 12px;
}

.qec-toggle-track {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 23px;
    border-radius: 999px;
    background: #d3c8d8;
    transition: background .18s ease;
}

.qec-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}

.qec-scroll-toggle.is-active {
    border-color: var(--qec-purple);
    background: #efe9ff;
    color: var(--qec-purple-dark);
}

.qec-scroll-toggle.is-active .qec-toggle-track {
    background: var(--qec-purple);
}

.qec-scroll-toggle.is-active .qec-toggle-thumb {
    transform: translateX(19px);
}

.qec-more-control {
    min-width: 78px;
    padding: 7px 11px;
    white-space: nowrap;
}

.qec-zoom-control button:hover,
.qec-more-control:hover,
.qec-scroll-toggle:hover,
.qec-key-control button:hover,
.qec-action-button:hover {
    border-color: rgba(109, 67, 215, .34);
    background: #eee7f8;
}

.qec-zoom-control button:active,
.qec-more-control:active,
.qec-scroll-toggle:active,
.qec-key-control button:active,
.qec-action-button:active {
    transform: scale(.98);
}

.qec-song-panel {
    width: 100%;
    padding: clamp(12px, 2.4vw, 24px);
    border: var(--qec-border);
    border-radius: var(--qec-radius-lg);
    background: var(--qec-surface);
    color: var(--qec-text);
    box-shadow: var(--qec-shadow-sm);
}

.qec-cifra-simple {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
    background: transparent;
    color: var(--qec-text);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: calc(16px * var(--qec-reader-scale));
    font-weight: 720;
    line-height: 1.68;
    scrollbar-width: thin;
}

.qec-lyric-highlight {
    color: var(--qec-text);
    font-weight: 720;
}

.qec-chord-highlight {
    color: var(--qec-red);
    font-weight: 950;
    text-shadow: 0 0 .25px currentColor;
}

.qec-section-highlight {
    color: var(--qec-gold-dark);
    font-weight: 950;
}

.qec-credit {
    margin: 22px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(20, 6, 23, .08);
    color: var(--qec-text-muted);
    font-size: .76rem;
}

.qec-reader-footer {
    padding: 16px 0 2px;
    text-align: center;
}

.qec-reader-footer a,
.qec-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: var(--qec-border-on-dark);
    border-radius: var(--qec-radius-sm);
    background: rgba(255, 255, 255, .07);
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
}

.qec-empty-state {
    padding: 36px 18px;
    color: var(--qec-text-muted);
    text-align: center;
}

/* Modal nativo */

.qec-controls-dialog {
    width: min(720px, calc(100% - 24px));
    max-height: min(86vh, 780px);
    margin: auto auto 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--qec-radius-xl) var(--qec-radius-xl) 0 0;
    background: var(--qec-surface);
    color: var(--qec-text);
    box-shadow: 0 -20px 55px rgba(0, 0, 0, .30);
}

.qec-controls-dialog::backdrop {
    background: rgba(0, 0, 0, .56);
    backdrop-filter: blur(2px);
}

.qec-controls-sheet {
    max-height: inherit;
    padding: 16px 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
}

.qec-controls-sheet-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -16px -20px 0;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(20, 6, 23, .08);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
}

.qec-controls-sheet-header span {
    color: var(--qec-purple);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.qec-controls-sheet-header h2 {
    margin: 3px 0 0;
    font-size: 1.15rem;
    line-height: 1.2;
}

.qec-dialog-close {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: var(--qec-border);
    border-radius: 50%;
    background: var(--qec-surface-soft);
    color: var(--qec-text);
    font-size: 1.45rem;
}

.qec-control-section {
    padding: 18px 0;
    border-bottom: 1px solid rgba(20, 6, 23, .08);
}

.qec-control-section:last-child {
    border-bottom: 0;
}

.qec-control-section h3 {
    margin: 0 0 11px;
    color: var(--qec-text);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.qec-action-grid {
    display: grid;
    gap: 8px;
}

.qec-action-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qec-action-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qec-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    text-decoration: none !important;
}

.qec-key-control {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items: center;
    gap: 8px;
}

.qec-key-control output {
    display: grid;
    place-items: center;
    min-height: 42px;
    font-size: 1.05rem;
    font-weight: 950;
}

#qec-scroll-speed-range {
    width: 100%;
    accent-color: var(--qec-purple);
}

.qec-speed-labels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin-top: 9px;
    color: var(--qec-text-muted);
    font-size: .65rem;
    text-align: center;
}

.qec-reading-mode-button {
    width: 100%;
    margin-top: 10px;
    border-color: var(--qec-purple);
    background: var(--qec-purple);
    color: #ffffff;
}

.qec-floating-toolbar-button {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 300;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--qec-purple);
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px rgba(77, 39, 180, .38);
}

/* Tema escuro do leitor */

body.qec-player-dark .qec-reader-toolbar,
body.qec-player-dark .qec-song-panel {
    border-color: var(--qec-border-dark);
    background: #171219;
    color: #ffffff;
}

body.qec-player-dark .qec-reader-song-row,
body.qec-player-dark .qec-credit {
    border-color: rgba(255, 255, 255, .08);
}

body.qec-player-dark .qec-reader-song-copy strong,
body.qec-player-dark .qec-zoom-control output,
body.qec-player-dark .qec-cifra-simple,
body.qec-player-dark .qec-lyric-highlight {
    color: #ffffff;
}

body.qec-player-dark .qec-reader-song-copy a {
    color: #c2aaff;
}

body.qec-player-dark .qec-icon-button,
body.qec-player-dark .qec-zoom-control button,
body.qec-player-dark .qec-more-control,
body.qec-player-dark .qec-scroll-toggle {
    border-color: rgba(255, 255, 255, .14);
    background: #251b28;
    color: #ffffff;
}

body.qec-player-dark .qec-chord-highlight {
    color: #ff625f;
}

body.qec-player-dark .qec-section-highlight {
    color: #f1c943;
}

body.qec-player-dark .qec-credit {
    color: #c4b7c8;
}

/* ------------------------------------------------------------------
   Página de louvores
------------------------------------------------------------------- */

.qec-louvores-embed,
.qec-song-training {
    width: min(100%, var(--qec-page-max));
    margin-inline: auto;
    padding: clamp(22px, 4vw, 44px) var(--qec-page-gutter);
    color: #ffffff;
}

.qec-louvores-embed-header,
.qec-training-header {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.qec-louvores-top-navigation,
.qec-training-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 20px 0;
}

.qec-louvores-home-button,
.qec-louvores-request-button,
.qec-training-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: var(--qec-border-on-dark);
    border-radius: var(--qec-radius-sm);
    background: rgba(255, 255, 255, .07);
    color: #ffffff !important;
    font-weight: 850;
    text-decoration: none !important;
}

.qec-louvores-request-button,
.qec-training-back-louvores {
    border-color: var(--qec-gold);
    background: var(--qec-gold);
    color: var(--qec-bg) !important;
}

.qec-louvores-tools,
.qec-song-request,
.qec-training-chord-list,
.qec-training-practice,
.qec-training-message,
.qec-no-results,
.qec-empty-louvores {
    border: var(--qec-border-on-dark);
    border-radius: var(--qec-radius-lg);
    background: rgba(255, 255, 255, .055);
}

.qec-louvores-tools {
    margin-top: 20px;
    padding: 14px;
}

.qec-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 14px;
    border-radius: var(--qec-radius-sm);
    background: #ffffff;
}

.qec-search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--qec-text);
    font-size: 1rem;
}

.qec-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.qec-filter-button {
    min-height: 40px;
    padding: 7px 15px;
    border: var(--qec-border-on-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font-weight: 850;
}

.qec-filter-button.is-active {
    border-color: var(--qec-gold);
    background: var(--qec-gold);
    color: var(--qec-bg);
}

.qec-filter-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.qec-filter-select-wrap {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.qec-filter-select-wrap > span {
    color: var(--qec-text-on-dark-muted);
    font-size: .72rem;
    font-weight: 850;
}

.qec-filter-select {
    width: 100%;
    min-height: 42px;
    padding: 7px 34px 7px 11px;
    border: var(--qec-border-on-dark);
    border-radius: var(--qec-radius-sm);
    outline: 0;
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
}

.qec-filter-select:focus {
    border-color: var(--qec-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, .18);
}

.qec-filter-select option {
    background: #ffffff;
    color: var(--qec-text);
}

.qec-louvores-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 22px 0 13px;
}

.qec-louvores-list-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
}

.qec-results-count {
    color: var(--qec-text-on-dark-muted);
    font-size: .82rem;
}

.qec-shortcode-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.qec-song-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: var(--qec-border);
    border-bottom: 4px solid var(--qec-gold);
    border-radius: var(--qec-radius-lg);
    background: #ffffff;
    color: var(--qec-text);
    box-shadow: var(--qec-shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease;
}

.qec-song-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--qec-shadow-md);
}

.qec-song-card[hidden] {
    display: none !important;
}

.qec-louvores-embed:not(.is-filter-ready) .qec-shortcode-list > .qec-song-card:nth-child(n+4) {
    display: none;
}

.qec-song-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.qec-song-card-icon {
    color: #55a7e8;
    font-size: 2rem;
    line-height: 1;
}

.qec-difficulty {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 950;
}

.qec-difficulty-facil {
    background: #dff8e7;
    color: var(--qec-green);
}

.qec-difficulty-intermediario {
    background: #fff1c8;
    color: #9b6500;
}

.qec-difficulty-avancado {
    background: #ffe1e1;
    color: #a51d1d;
}

.qec-song-card h2 {
    margin: 15px 0 5px;
    font-size: 1.24rem;
    line-height: 1.25;
}

.qec-song-card h2 a {
    color: var(--qec-text);
    text-decoration: none;
}

.qec-song-card-artist {
    margin: 0;
    color: var(--qec-text-muted);
}

.qec-song-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0;
}

.qec-song-card-meta span {
    padding: 7px 9px;
    border-radius: 9px;
    background: var(--qec-surface-soft);
    color: #3c2840;
    font-size: .78rem;
    font-weight: 750;
}

.qec-song-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.qec-card-primary,
.qec-card-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: var(--qec-radius-sm);
    font-size: .86rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
}

.qec-card-primary {
    background: var(--qec-bg);
    color: #ffffff !important;
}

.qec-card-secondary {
    background: var(--qec-surface-muted);
    color: var(--qec-bg) !important;
}

.qec-no-results,
.qec-empty-louvores {
    padding: 28px 18px;
    text-align: center;
}

.qec-no-results strong,
.qec-no-results span,
.qec-empty-louvores strong,
.qec-empty-louvores span {
    display: block;
}

.qec-no-results span,
.qec-empty-louvores span {
    margin-top: 6px;
    color: var(--qec-text-on-dark-muted);
}

/* Solicitação */

.qec-song-request {
    display: grid;
    grid-template-columns: minmax(230px, .75fr) minmax(360px, 1.25fr);
    gap: 24px;
    margin-top: 34px;
    padding: clamp(18px, 3vw, 28px);
    scroll-margin-top: 90px;
}

.qec-song-request-copy > span,
.qec-training-eyebrow,
.qec-training-step-label {
    color: var(--qec-gold);
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: 1.35px;
}

.qec-song-request-copy h2 {
    margin: 7px 0 9px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.qec-song-request-copy p {
    margin: 0;
    color: var(--qec-text-on-dark-muted);
    line-height: 1.58;
}

.qec-song-request-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.qec-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qec-song-request-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qec-song-request-form label > span {
    color: #ffffff;
    font-size: .83rem;
    font-weight: 800;
}

.qec-song-request-form input,
.qec-song-request-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: var(--qec-border);
    border-radius: var(--qec-radius-sm);
    outline: 0;
    background: #ffffff;
    color: var(--qec-text);
}

.qec-song-request-form input:focus,
.qec-song-request-form textarea:focus {
    border-color: var(--qec-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

.qec-song-request-form button[type="submit"] {
    min-height: 46px;
    border: 0;
    border-radius: var(--qec-radius-sm);
    background: var(--qec-gold);
    color: var(--qec-bg);
    font-weight: 950;
}

.qec-request-status {
    min-height: 21px;
    font-size: .86rem;
    font-weight: 800;
}

.qec-request-status.is-success {
    color: #72e799;
}

.qec-request-status.is-error {
    color: #ff8c89;
}

.qec-request-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ------------------------------------------------------------------
   Treino
------------------------------------------------------------------- */

.qec-training-header h1 {
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.qec-training-header p {
    margin: 0;
    color: var(--qec-text-on-dark-muted);
}

.qec-training-layout {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(340px, 1.28fr);
    gap: 18px;
    margin-top: 28px;
}

.qec-training-chord-list,
.qec-training-practice {
    padding: 22px;
}

.qec-training-chord-list h2 {
    margin: 0 0 14px;
    color: #ffffff;
}

.qec-training-chord-list p,
.qec-training-practice p {
    color: var(--qec-text-on-dark-muted);
}

.qec-training-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qec-training-chip {
    min-height: 40px;
    padding: 7px 12px;
    border: var(--qec-border);
    border-radius: var(--qec-radius-sm);
    background: #ffffff;
    color: var(--qec-bg);
    font-weight: 950;
}

.qec-training-chip.is-active {
    border-color: var(--qec-gold);
    background: var(--qec-gold);
}

.qec-instrument-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.qec-instrument-button {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    min-height: 145px;
    padding: 20px 14px;
    border: var(--qec-border-on-dark);
    border-radius: var(--qec-radius-lg);
    background: rgba(255, 255, 255, .065);
    color: #ffffff;
}

.qec-instrument-button:hover,
.qec-instrument-button.is-active {
    border-color: var(--qec-gold);
    background: rgba(212, 175, 55, .12);
}

.qec-instrument-button > span {
    font-size: 2.8rem;
}

.qec-instrument-button small {
    color: var(--qec-text-on-dark-muted);
}

.qec-chord-practice-step {
    text-align: center;
}

.qec-training-current {
    display: block;
    margin: 18px 0 8px;
    color: #ff625f;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
}

.qec-instrument-diagram {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    border-radius: var(--qec-radius-lg);
    background: #ffffff;
    color: var(--qec-text);
}

.qec-training-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.qec-training-actions button {
    min-height: 43px;
    padding: 8px 15px;
    border: 0;
    border-radius: var(--qec-radius-sm);
    background: #ffffff;
    color: var(--qec-bg);
    font-weight: 900;
}

.qec-training-next {
    background: var(--qec-gold) !important;
}

.qec-training-progress {
    margin-top: 15px;
    color: var(--qec-text-on-dark-muted);
}

/* Diagramas preservados */

.qec-piano-keys {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 680px;
    height: 190px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid var(--qec-bg);
    border-radius: var(--qec-radius-sm);
    background: var(--qec-bg);
}

.qec-piano-white-key {
    position: relative;
    flex: 1;
    border-right: 1px solid var(--qec-bg);
    background: #ffffff;
}

.qec-piano-white-key.is-active {
    background: #ffd85a;
}

.qec-piano-white-key span {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    font-size: .7rem;
    font-weight: 900;
    text-align: center;
}

.qec-piano-black-key {
    position: absolute;
    z-index: 2;
    top: 0;
    width: 4.4%;
    height: 62%;
    transform: translateX(-50%);
    border-radius: 0 0 5px 5px;
    background: var(--qec-bg);
}

.qec-piano-black-key.is-active {
    background: var(--qec-red);
}

.qec-diagram-notes,
.qec-diagram-tip {
    margin: 13px 0 0;
    color: var(--qec-text-muted);
    text-align: center;
}

.qec-guitar-diagram {
    max-width: 370px;
    margin: 0 auto;
}

.qec-guitar-top-markers,
.qec-guitar-string-names {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0 18px;
    font-weight: 900;
    text-align: center;
}

.qec-guitar-board {
    position: relative;
    padding: 0 18px;
}

.qec-guitar-grid {
    position: relative;
    width: 100%;
    height: 280px;
}

.qec-guitar-string-line,
.qec-guitar-fret-line {
    position: absolute;
    background: #302135;
}

.qec-guitar-string-line {
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.qec-guitar-fret-line {
    right: 0;
    left: 0;
    height: 2px;
    transform: translateY(-50%);
}

.qec-guitar-fret-line:first-child {
    height: 5px;
    background: var(--qec-bg);
}

.qec-guitar-dot {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--qec-red);
    color: #ffffff;
    font-size: .7rem;
    font-weight: 900;
}

.qec-guitar-string-names {
    margin-top: 7px;
    color: var(--qec-text-muted);
    font-size: .72rem;
}

.qec-guitar-start-fret {
    position: absolute;
    top: 7px;
    left: -13px;
    color: var(--qec-text-muted);
    font-size: .7rem;
    font-weight: 900;
}

/* ------------------------------------------------------------------
   Responsividade
------------------------------------------------------------------- */

@media (max-width: 900px) {
    .qec-shortcode-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qec-training-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    :root {
        --qec-page-gutter: 6px;
    }

    .qec-page {
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .qec-reader-hero {
        padding-bottom: 14px;
    }

    .qec-reader-logo {
        width: 72px;
        height: 72px;
    }

    .qec-reader-title {
        margin-top: 11px;
        font-size: 1.8rem;
    }

    .qec-reader-meta {
        margin-top: 13px;
        gap: 6px;
    }

    .qec-reader-meta span {
        min-height: 34px;
        padding: 6px 9px;
        font-size: .76rem;
    }

    .qec-reader-toolbar {
        top: max(3px, env(safe-area-inset-top));
        margin-bottom: 7px;
        padding: 9px;
        border-radius: var(--qec-radius-md);
    }

    .qec-reader-song-row {
        padding-bottom: 8px;
    }

    .qec-reader-song-copy strong {
        font-size: .9rem;
    }

    .qec-reader-song-copy a {
        font-size: .78rem;
    }

    .qec-icon-button {
        width: 38px;
        height: 38px;
    }

    .qec-reader-primary-controls {
        grid-template-columns: auto minmax(98px, 1fr) auto;
        gap: 5px;
        padding-top: 8px;
    }

    .qec-zoom-control {
        grid-template-columns: 36px 46px 36px;
        gap: 3px;
    }

    .qec-zoom-control button,
    .qec-zoom-control output,
    .qec-scroll-toggle,
    .qec-more-control {
        min-height: 38px;
    }

    .qec-zoom-control button {
        width: 36px;
    }

    .qec-zoom-control output {
        font-size: .76rem;
    }

    .qec-scroll-toggle {
        gap: 6px;
        padding: 5px 7px;
        font-size: .74rem;
    }

    .qec-toggle-track {
        flex-basis: 38px;
        width: 38px;
        height: 21px;
    }

    .qec-toggle-thumb {
        width: 15px;
        height: 15px;
    }

    .qec-scroll-toggle.is-active .qec-toggle-thumb {
        transform: translateX(17px);
    }

    .qec-more-control {
        min-width: 53px;
        padding: 5px 7px;
        font-size: .72rem;
    }

    .qec-song-panel {
        padding: 9px 4px;
        border-radius: 8px;
    }

    .qec-cifra-simple {
        padding: 4px 2px;
        white-space: pre-wrap;
        overflow-x: visible;
        overflow-wrap: normal;
        font-size: calc(14px * var(--qec-reader-scale));
        line-height: 1.62;
    }

    .qec-cifra-simple.qec-large-scale {
        overflow-wrap: anywhere;
    }

    .qec-credit {
        padding-inline: 5px;
    }

    .qec-controls-dialog {
        width: 100%;
        max-height: 90vh;
        border-radius: var(--qec-radius-lg) var(--qec-radius-lg) 0 0;
    }

    .qec-controls-sheet {
        padding-inline: 14px;
    }

    .qec-controls-sheet-header {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .qec-action-grid-3 {
        grid-template-columns: 1fr;
    }

    .qec-speed-labels {
        font-size: .58rem;
    }

    .qec-louvores-embed,
    .qec-song-training {
        padding-inline: 8px;
    }

    .qec-shortcode-list {
        grid-template-columns: 1fr;
    }

    .qec-louvores-list-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .qec-filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qec-filter-button {
        width: 100%;
        padding-inline: 8px;
    }

    .qec-filter-selects {
        grid-template-columns: 1fr;
    }

    .qec-song-card {
        padding: 17px;
    }

    .qec-song-request {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .qec-request-grid {
        grid-template-columns: 1fr;
    }

    .qec-instrument-choice {
        grid-template-columns: 1fr;
    }

    .qec-training-actions,
    .qec-training-navigation,
    .qec-louvores-top-navigation {
        flex-direction: column;
    }

    .qec-training-actions button,
    .qec-training-back,
    .qec-louvores-home-button,
    .qec-louvores-request-button {
        width: 100%;
    }

    .qec-piano-keys {
        height: 145px;
    }

    .qec-instrument-diagram {
        padding: 13px;
    }

    .qec-guitar-grid {
        height: 235px;
    }
}

@media (max-width: 390px) {
    .qec-scroll-toggle > span:first-child {
        display: none;
    }

    .qec-scroll-toggle {
        min-width: 54px;
    }

    .qec-more-control {
        min-width: 45px;
        font-size: 0;
    }

    .qec-more-control::after {
        content: "⋯";
        font-size: 1.15rem;
    }

    .qec-reader-song-actions {
        gap: 5px;
    }

    .qec-action-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Impressão */

@media print {
    html,
    body,
    .qec-page {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .qec-reader-hero,
    .qec-reader-toolbar,
    .qec-floating-toolbar-button,
    .qec-reader-footer,
    #wpadminbar {
        display: none !important;
    }

    .qec-page,
    .qec-container,
    .qec-song-panel {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .qec-cifra-simple {
        overflow: visible !important;
        white-space: pre-wrap !important;
        color: #000000 !important;
        font-size: 10.5pt !important;
        line-height: 1.48 !important;
    }

    .qec-lyric-highlight {
        color: #000000 !important;
    }

    .qec-chord-highlight {
        color: #a90018 !important;
    }

    .qec-section-highlight {
        color: #6e5100 !important;
    }

    @page {
        size: A4;
        margin: 12mm;
    }
}


/* Melhorias de interação e mobile 3.2.1 */
#qec-favorite-toggle {
    color: #e52b3f;
}

#qec-favorite-toggle[aria-pressed="true"] {
    background: #ffe8eb;
    color: #d81932;
}

#qec-favorite-toggle.is-animating {
    animation: qec-heart-pop .42s ease;
}

@keyframes qec-heart-pop {
    0% { transform: scale(1); }
    38% { transform: scale(1.34); }
    68% { transform: scale(.92); }
    100% { transform: scale(1); }
}

.qec-double-like-heart {
    position: fixed;
    z-index: 2147483000;
    transform: translate(-50%, -50%);
    color: #e51d36;
    font-size: 64px;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 8px 22px rgba(0,0,0,.28);
    animation: qec-double-like .72s ease forwards;
}

@keyframes qec-double-like {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
    22% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
    58% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -82%) scale(.82); }
}

.qec-song-panel {
    touch-action: pan-y pinch-zoom;
}

.qec-card-primary,
.qec-card-secondary,
.qec-song-card h2 a,
.qec-filter-button,
.qec-louvores-home-button,
.qec-louvores-request-button,
.qec-training-back,
.qec-training-actions button,
.qec-instrument-button,
.qec-training-chip {
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(109,67,215,.16);
    user-select: none;
}

@media (hover: none) and (pointer: coarse) {
    .qec-song-card:hover,
    .qec-card-primary:hover,
    .qec-card-secondary:hover,
    .qec-filter-button:hover,
    .qec-instrument-button:hover,
    .qec-training-chip:hover {
        transform: none !important;
    }
}

@media (max-width: 680px) {
    /* Escapa do container estreito do tema/Elementor e usa quase toda a tela. */
    .qec-louvores-embed,
    .qec-song-training {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .qec-louvores-tools,
    .qec-song-request,
    .qec-training-chord-list,
    .qec-training-practice {
        border-radius: 11px;
    }

    .qec-louvores-tools {
        padding: 9px 6px;
    }

    .qec-shortcode-list {
        gap: 9px;
    }

    .qec-song-card {
        padding: 12px 9px;
        border-radius: 11px;
        border-bottom-width: 3px;
    }

    .qec-song-card h2 {
        margin-top: 10px;
        font-size: 1.1rem;
    }

    .qec-song-card-meta {
        gap: 5px;
        margin: 11px 0;
    }

    .qec-song-card-meta span {
        padding: 6px 7px;
        font-size: .72rem;
    }

    .qec-song-card-actions {
        gap: 6px;
    }

    .qec-card-primary,
    .qec-card-secondary {
        min-height: 46px;
        padding: 8px 6px;
        font-size: .8rem;
    }

    .qec-louvores-list-heading {
        padding-inline: 3px;
    }

    .qec-search-box {
        padding-inline: 9px;
    }

    .qec-filter-buttons {
        gap: 6px;
    }

    .qec-filter-button {
        min-height: 42px;
    }

    /* Uma oitava com teclas mais largas e proporcionais. */
    .qec-piano-keys {
        height: 170px;
        max-width: 100%;
    }

    .qec-piano-black-key {
        width: 8.5%;
        height: 61%;
    }
}

@media (min-width: 681px) {
    .qec-piano-keys {
        max-width: 620px;
        height: 220px;
    }

    .qec-piano-black-key {
        width: 8%;
    }
}


/* Interface palco 3.4.0 */
:root{--qec-app-max:820px;--qec-heart:#e1263f}
button{-webkit-appearance:none;appearance:none}
button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
body.qec-modal-open{overflow:hidden}
.qec-container,.qec-reader-container,.qec-louvores-embed,.qec-song-training{width:min(calc(100vw - 16px),var(--qec-app-max))!important;max-width:var(--qec-app-max)!important;margin-left:auto!important;margin-right:auto!important;transform:none!important}
.qec-louvores-embed,.qec-song-training{padding-left:0!important;padding-right:0!important}
.qec-page{padding-left:8px!important;padding-right:8px!important}
.qec-reader-hero,.qec-louvores-embed-header,.qec-training-header{width:100%}
.qec-instrument-icon{position:relative;display:inline-grid!important;place-items:center;min-width:36px!important;padding:5px 8px!important;font-size:1rem!important}
.qec-instrument-bass{padding-right:13px!important}.qec-instrument-bass::after{content:'B';position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:var(--qec-gold);color:#16051a;font-size:8px;font-weight:950}

.qec-reader-toolbar{position:sticky!important;top:max(4px,env(safe-area-inset-top))!important;z-index:500!important;width:100%!important;margin:0 0 10px!important;padding:8px!important;border:1px solid rgba(20,6,23,.12)!important;border-radius:16px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 12px 30px rgba(20,6,23,.18)!important;backdrop-filter:blur(16px)}
.qec-toolbar-main-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.qec-zoom-control{display:grid!important;grid-template-columns:38px 48px 38px!important;gap:3px!important;flex:0 0 auto}
.qec-zoom-control button,.qec-zoom-control output{min-height:38px!important;height:38px!important;border:1px solid rgba(20,6,23,.12)!important;border-radius:10px!important;background:#f7f3f8!important;color:#17101a!important;font-weight:900!important}
.qec-zoom-control output{display:grid;place-items:center;border:0!important;background:transparent!important;font-size:.78rem!important}
.qec-reader-quick-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;min-width:0}
.qec-icon-button,.qec-more-control{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border:1px solid rgba(20,6,23,.1)!important;border-radius:50%!important;background:#f7f3f8!important;color:#4d27b4!important;font-size:1.1rem!important;line-height:1!important;box-shadow:none!important}
.qec-more-control{border-radius:10px!important;font-size:.86rem!important;letter-spacing:1px!important}
.qec-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.qec-heart-button{color:var(--qec-heart)!important}.qec-heart-svg path{fill:transparent;stroke:var(--qec-heart);stroke-width:1.8;transition:fill .16s ease,transform .16s ease}.qec-heart-button.is-liked .qec-heart-svg path{fill:var(--qec-heart);stroke:var(--qec-heart)}.qec-heart-button:not(.is-liked){animation:qec-heart-invite 2.8s ease-in-out infinite}.qec-heart-button.is-animating .qec-heart-svg{animation:qec-heart-pop .42s ease}
@keyframes qec-heart-invite{0%,80%,100%{transform:scale(1)}87%{transform:scale(1.1)}94%{transform:scale(.98)}}
@keyframes qec-heart-pop{0%{transform:scale(1)}38%{transform:scale(1.32)}70%{transform:scale(.93)}100%{transform:scale(1)}}
.qec-setlist-toolbar-button svg{width:20px}.qec-toolbar-count{position:absolute;right:-3px;top:-4px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:var(--qec-gold);color:#16051a;font-size:9px;font-weight:950}
#qec-share-song.is-confirmed::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#e7f7ec;color:#087f33;font-size:1rem}

.qec-scroll-control-row{display:grid!important;grid-template-columns:auto 34px minmax(90px,1fr) 34px 30px!important;align-items:center!important;gap:5px!important;margin-top:7px!important;padding-top:7px!important;border-top:1px solid rgba(20,6,23,.08)!important}
.qec-scroll-toggle,.qec-speed-step{display:flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;height:36px!important;margin:0!important;padding:0 10px!important;border:1px solid rgba(20,6,23,.12)!important;border-radius:10px!important;background:#f7f3f8!important;color:#17101a!important;font-weight:900!important;box-shadow:none!important}
.qec-scroll-toggle{gap:6px!important;min-width:104px!important;width:auto!important}.qec-scroll-status-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e9e1f3;color:#5b35c0;font-size:9px}.qec-scroll-toggle.is-active{border-color:rgba(8,127,51,.25)!important;background:#e9f8ee!important;color:#075d27!important}.qec-scroll-toggle.is-active .qec-scroll-status-icon{background:#087f33;color:#fff}
.qec-speed-step{width:34px!important;min-width:34px!important;padding:0!important;font-size:1rem!important;color:#4d27b4!important}
#qec-scroll-speed-range{display:block!important;width:100%!important;min-width:0!important;margin:0!important;accent-color:#6d43d7!important;touch-action:pan-x!important}
#qec-speed-value{display:grid!important;place-items:center!important;min-height:30px!important;color:#4d27b4!important;font-size:.72rem!important;font-weight:950!important}

.qec-controls-dialog,.qec-setlist-dialog{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;background:transparent!important;color:var(--qec-text)!important}
.qec-controls-dialog::backdrop,.qec-setlist-dialog::backdrop{background:rgba(10,1,12,.66)!important;backdrop-filter:blur(3px)}
.qec-controls-sheet,.qec-setlist-sheet{position:absolute;left:50%;bottom:0;width:min(calc(100% - 12px),640px);max-height:min(86dvh,760px);padding:0 16px max(18px,env(safe-area-inset-bottom));overflow:auto;transform:translateX(-50%);border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -22px 60px rgba(0,0,0,.34)}
.qec-controls-sheet-header,.qec-setlist-header{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 -16px;padding:18px 16px 14px;border-bottom:1px solid rgba(20,6,23,.08);background:rgba(255,255,255,.98);backdrop-filter:blur(12px)}
.qec-setlist-header span,.qec-controls-sheet-header span{color:#6d43d7;font-size:.68rem;font-weight:950;letter-spacing:1.1px}.qec-setlist-header h2,.qec-controls-sheet-header h2{margin:3px 0 0;font-size:1.18rem}.qec-setlist-header p{margin:5px 0 0;color:var(--qec-text-muted);font-size:.8rem;line-height:1.4}.qec-setlist-close,.qec-dialog-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid rgba(20,6,23,.12);border-radius:50%;background:#f7f3f8;color:#17101a;font-size:1.35rem}
.qec-setlist-current-add{width:100%;min-height:45px;margin:14px 0 2px;border:1px solid rgba(109,67,215,.25);border-radius:11px;background:#f1ebfb;color:#4d27b4;font-weight:900}.qec-setlist-current-add.is-added{border-color:rgba(217,45,45,.2);background:#fff0f2;color:#b91e38}
.qec-setlist-list{display:grid;gap:8px;margin:14px 0;padding:0;list-style:none}.qec-setlist-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid rgba(20,6,23,.1);border-radius:13px;background:#fff;box-shadow:0 5px 14px rgba(20,6,23,.06)}.qec-setlist-order{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#19051d;color:#fff;font-weight:950}.qec-setlist-copy{min-width:0}.qec-setlist-copy strong,.qec-setlist-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qec-setlist-copy strong{color:#17101a}.qec-setlist-copy span{margin-top:2px;color:#755f7a;font-size:.75rem}.qec-setlist-actions{display:flex;gap:4px}.qec-setlist-actions button,.qec-setlist-actions a{display:grid;place-items:center;min-width:34px;height:34px;padding:0 7px;border:1px solid rgba(20,6,23,.11);border-radius:8px;background:#f7f3f8;color:#17101a!important;text-decoration:none!important;font-size:.76rem;font-weight:900}.qec-setlist-actions button:disabled{opacity:.35}.qec-setlist-empty{display:grid;gap:4px;padding:28px 12px;text-align:center;color:#755f7a}.qec-setlist-empty strong{color:#17101a}.qec-setlist-footer{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 -16px;padding:12px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid rgba(20,6,23,.08);background:rgba(255,255,255,.98)}.qec-setlist-footer button,.qec-setlist-footer a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid rgba(20,6,23,.12);border-radius:10px;background:#f7f3f8;color:#17101a!important;text-decoration:none!important;font-weight:900}.qec-setlist-footer .qec-setlist-first{border-color:#d4af37;background:#d4af37;color:#17071b!important}.qec-setlist-footer [aria-disabled=true]{opacity:.45;pointer-events:none}

.qec-card-today{grid-column:1/-1;min-height:43px;border:1px solid rgba(109,67,215,.22)!important;border-radius:10px!important;background:#f1ebfb!important;color:#4d27b4!important;font-weight:900!important}.qec-card-today.is-added{border-color:rgba(217,45,45,.2)!important;background:#fff0f2!important;color:#b91e38!important}
.qec-louvores-today-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 14px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.07);color:#fff;font-weight:900}.qec-setlist-button-icon{font-size:1.15rem}.qec-setlist-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#d4af37;color:#17071b;font-size:.7rem}
.qec-reader-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.qec-reader-next{border-color:#d4af37!important;background:#d4af37!important;color:#17071b!important}

body.qec-player-dark .qec-reader-toolbar{border-color:rgba(255,255,255,.12)!important;background:rgba(23,18,25,.98)!important}.qec-player-dark .qec-zoom-control button,.qec-player-dark .qec-icon-button,.qec-player-dark .qec-more-control,.qec-player-dark .qec-scroll-toggle,.qec-player-dark .qec-speed-step{border-color:rgba(255,255,255,.12)!important;background:#251b28!important;color:#fff!important}.qec-player-dark .qec-zoom-control output{color:#fff!important}.qec-player-dark #qec-speed-value{color:#d4af37!important}.qec-player-dark .qec-scroll-control-row{border-color:rgba(255,255,255,.09)!important}.qec-player-dark .qec-heart-button{color:var(--qec-heart)!important}.qec-player-dark .qec-heart-svg path{stroke:var(--qec-heart)!important}.qec-player-dark .qec-heart-button.is-liked .qec-heart-svg path{fill:var(--qec-heart)!important}

@media(max-width:700px){
 .qec-container,.qec-reader-container,.qec-louvores-embed,.qec-song-training{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;margin-left:auto!important;margin-right:auto!important}
 .qec-page{padding-left:6px!important;padding-right:6px!important}
 .qec-reader-toolbar{padding:6px!important;border-radius:14px!important}
 .qec-toolbar-main-row{gap:4px!important}
 .qec-zoom-control{grid-template-columns:34px 42px 34px!important}.qec-zoom-control button,.qec-zoom-control output{height:36px!important;min-height:36px!important}.qec-zoom-control output{font-size:.72rem!important}
 .qec-reader-quick-actions{gap:3px!important}.qec-icon-button,.qec-more-control{flex-basis:35px!important;width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important}.qec-icon-button svg{width:19px;height:19px}.qec-more-control{font-size:.74rem!important}
 .qec-scroll-control-row{grid-template-columns:94px 32px minmax(70px,1fr) 32px 26px!important;gap:3px!important;margin-top:6px!important;padding-top:6px!important}.qec-scroll-toggle{min-width:94px!important;height:34px!important;min-height:34px!important;padding:0 7px!important;font-size:.72rem!important}.qec-speed-step{width:32px!important;min-width:32px!important;height:34px!important;min-height:34px!important}
 .qec-song-panel{padding:10px 5px!important}.qec-cifra-simple{padding:3px 1px!important}
 .qec-louvores-top-navigation,.qec-training-navigation{width:100%}
 .qec-louvores-home-button,.qec-louvores-request-button,.qec-louvores-today-button{width:100%!important}
 .qec-setlist-item{grid-template-columns:38px minmax(0,1fr)}.qec-setlist-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:390px){
 .qec-toolbar-main-row{align-items:center}.qec-zoom-control{grid-template-columns:31px 38px 31px!important}.qec-zoom-control button,.qec-zoom-control output{height:34px!important;min-height:34px!important}.qec-reader-quick-actions{gap:2px!important}.qec-icon-button,.qec-more-control{flex-basis:32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}.qec-icon-button svg{width:18px;height:18px}.qec-scroll-control-row{grid-template-columns:78px 29px minmax(56px,1fr) 29px 24px!important}.qec-scroll-toggle{min-width:78px!important;padding:0 5px!important}.qec-scroll-label{font-size:.66rem!important}.qec-scroll-status-icon{width:17px;height:17px}.qec-speed-step{width:29px!important;min-width:29px!important}.qec-toolbar-count{right:-4px;top:-5px}
}
@media(min-width:701px){.qec-louvores-top-navigation{justify-content:center}.qec-shortcode-list{grid-template-columns:1fr!important}.qec-song-card{width:100%}}


/* 3.4.1 — ajustes de responsividade, cards e solicitação */

html, body {
    overflow-x: hidden;
}

:root {
    --qec-app-max: 860px;
    --qec-page-max: 860px;
    --qec-reader-max: 860px;
}

.qec-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.qec-page,
.qec-container,
.qec-reader-container,
.qec-louvores-embed,
.qec-song-training {
    width: min(100%, var(--qec-app-max)) !important;
    max-width: var(--qec-app-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.qec-page {
    padding-left: clamp(6px, 2vw, 10px) !important;
    padding-right: clamp(6px, 2vw, 10px) !important;
}

.qec-louvores-embed,
.qec-song-training,
.qec-reader-container {
    overflow-x: hidden;
}

.qec-louvores-top-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px auto;
}

.qec-louvores-home-button,
.qec-louvores-today-button,
.qec-louvores-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 14px;
    width: 100%;
    text-align: center;
    font-weight: 900;
}

.qec-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    min-width: 22px;
    font-size: 1rem;
    line-height: 1;
}

.qec-louvores-home-button {
    background: rgba(255,255,255,.07);
}

.qec-louvores-today-button {
    border: var(--qec-border-on-dark);
    background: rgba(255,255,255,.07);
    color: #ffffff;
}

.qec-louvores-request-button {
    border-color: var(--qec-gold);
    background: linear-gradient(180deg, #e0bc48 0%, #d4af37 100%);
    color: var(--qec-bg) !important;
}

.qec-louvores-tools {
    margin-top: 18px;
    padding: 12px;
}

.qec-shortcode-list {
    grid-template-columns: 1fr !important;
    gap: 14px;
}

.qec-song-card {
    padding: 16px 16px 14px;
}

.qec-song-card h2 {
    margin: 10px 0 4px;
    font-size: 1.17rem;
}

.qec-song-card-artist {
    font-size: .93rem;
}

.qec-song-card-meta {
    gap: 6px;
    margin: 12px 0 10px;
}

.qec-song-card-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 8px;
}

.qec-song-card-actions {
    grid-template-columns: 52px 52px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.qec-card-primary,
.qec-card-secondary,
.qec-card-today {
    min-height: 46px;
    border-radius: 12px;
}

.qec-card-icon-button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 1.18rem;
}

.qec-card-icon-button span[aria-hidden="true"] {
    line-height: 1;
}

.qec-card-today {
    grid-column: auto;
    padding: 0 12px;
    white-space: nowrap;
    font-size: .82rem;
}

.qec-request-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.qec-support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px 14px;
    border: var(--qec-border-on-dark);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform .14s ease, background .14s ease;
}

.qec-support-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.12);
}

.qec-support-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    font-size: 1.15rem;
}

.qec-support-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qec-support-copy strong {
    color: #ffffff;
    font-size: .92rem;
    line-height: 1.15;
}

.qec-support-copy small {
    margin-top: 3px;
    color: var(--qec-text-on-dark-muted);
    font-size: .74rem;
    line-height: 1.15;
}

.qec-support-instagram .qec-support-icon {
    background: linear-gradient(135deg, rgba(228,64,95,.28), rgba(195,42,163,.22));
}

.qec-support-youtube .qec-support-icon {
    background: linear-gradient(135deg, rgba(255,0,0,.26), rgba(255,79,79,.18));
}

@media (min-width: 760px) {
    .qec-louvores-top-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .qec-page,
    .qec-container,
    .qec-reader-container,
    .qec-louvores-embed,
    .qec-song-training {
        width: 100% !important;
        max-width: 100% !important;
    }

    .qec-page {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .qec-louvores-embed,
    .qec-song-training {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .qec-louvores-tools {
        padding: 10px;
    }

    .qec-shortcode-list {
        gap: 10px;
    }

    .qec-song-card {
        padding: 14px 12px 12px;
    }

    .qec-song-card h2 {
        font-size: 1.08rem;
    }

    .qec-song-card-actions {
        grid-template-columns: 48px 48px minmax(0, 1fr);
        gap: 6px;
    }

    .qec-card-primary,
    .qec-card-secondary,
    .qec-card-today {
        min-height: 44px;
    }

    .qec-card-today {
        font-size: .77rem;
        padding: 0 8px;
    }

    .qec-request-support {
        grid-template-columns: 1fr;
    }
}


/* 3.5.0 — Modo ensaio e compartilhamento */
.qec-reader-toolbar {
    padding: 7px 9px !important;
}

.qec-toolbar-main-row {
    display: grid !important;
    grid-template-columns: auto minmax(125px, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
}

.qec-scroll-transport {
    display: grid;
    grid-template-columns: 34px 40px 34px 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.qec-scroll-transport .qec-scroll-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.qec-scroll-transport .qec-scroll-status-icon {
    width: auto;
    height: auto;
    background: transparent;
    font-size: .84rem;
}

.qec-scroll-transport #qec-speed-value {
    display: grid !important;
    place-items: center !important;
    min-height: 34px !important;
    border-radius: 9px;
    background: #f2ecf5;
    color: #4d27b4 !important;
    font-size: .72rem !important;
    font-weight: 950 !important;
}

.qec-scroll-range-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 4px 2px 0;
    border-top: 1px solid rgba(20,6,23,.07);
    color: #8a758e;
    font-size: .58rem;
    font-weight: 850;
}

.qec-scroll-range-row input[type="range"] {
    width: 100%;
    min-width: 0;
    height: 22px;
    margin: 0;
    accent-color: var(--qec-purple);
    touch-action: pan-x;
}

.qec-reader-toolbar.is-performing .qec-scroll-range-row {
    border-top-color: rgba(8,127,51,.14);
}

.qec-reader-toolbar.is-performing .qec-scroll-toggle {
    border-color: rgba(8,127,51,.3) !important;
    background: #e8f8ed !important;
    color: #087f33 !important;
}

body.qec-player-dark .qec-scroll-range-row {
    border-color: rgba(255,255,255,.08);
    color: #a99cac;
}

body.qec-player-dark .qec-scroll-transport #qec-speed-value {
    background: #251b28;
    color: var(--qec-gold) !important;
}

.qec-song-card {
    min-height: 0;
    padding: 14px !important;
}

.qec-song-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.qec-song-card-copy {
    min-width: 0;
}

.qec-song-card h2 {
    margin: 0 0 3px !important;
    font-size: 1.08rem !important;
    line-height: 1.22;
}

.qec-song-card-artist {
    margin: 0;
    overflow: hidden;
    color: var(--qec-text-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qec-difficulty {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: .67rem;
}

.qec-song-card-meta {
    min-height: 30px;
    margin: 9px 0 !important;
}

.qec-song-card-meta span {
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: .7rem !important;
}

.qec-song-key strong {
    margin-right: 3px;
}

.qec-song-card-actions {
    grid-template-columns: 44px 44px minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-top: 0 !important;
}

.qec-card-primary,
.qec-card-secondary,
.qec-card-today {
    min-height: 42px !important;
}

.qec-card-icon-button {
    border: 1px solid rgba(20,6,23,.08);
}

.qec-card-icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qec-card-today {
    grid-column: auto !important;
    overflow: hidden;
    padding: 0 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qec-card-today-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.qec-setlist-footer {
    grid-template-columns: 1fr 1fr 1fr !important;
}

.qec-setlist-share {
    border-color: rgba(109,67,215,.24) !important;
    background: #f1ebfb !important;
    color: #4d27b4 !important;
}

.qec-share-dialog {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
}

.qec-share-dialog::backdrop {
    background: rgba(10,1,12,.72);
    backdrop-filter: blur(4px);
}

.qec-share-sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(calc(100% - 12px), 720px);
    max-height: 94dvh;
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
    overflow: hidden;
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    color: var(--qec-text);
    box-shadow: 0 -24px 70px rgba(0,0,0,.38);
}

.qec-share-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 -16px;
    padding: 16px;
    border-bottom: 1px solid rgba(20,6,23,.08);
    background: #ffffff;
}

.qec-share-header span {
    color: var(--qec-purple);
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: 1.1px;
}

.qec-share-header h2 {
    margin: 3px 0 0;
    font-size: 1.15rem;
}

.qec-share-header p {
    margin: 4px 0 0;
    color: var(--qec-text-muted);
    font-size: .76rem;
}

.qec-share-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: var(--qec-border);
    border-radius: 50%;
    background: var(--qec-surface-soft);
    color: var(--qec-text);
    font-size: 1.35rem;
}

.qec-share-toolbar {
    display: grid;
    gap: 10px;
    padding: 12px 0 8px;
}

.qec-share-formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.qec-share-formats button {
    min-height: 40px;
    border: var(--qec-border);
    border-radius: 10px;
    background: var(--qec-surface-soft);
    color: var(--qec-text);
    font-weight: 900;
}

.qec-share-formats button.is-active {
    border-color: var(--qec-purple);
    background: #eee8ff;
    color: var(--qec-purple-dark);
}

.qec-share-setlist-fields {
    display: grid;
    grid-template-columns: 1fr 145px;
    gap: 8px;
}

.qec-share-setlist-fields label {
    display: grid;
    gap: 5px;
}

.qec-share-setlist-fields label span {
    color: var(--qec-text-muted);
    font-size: .7rem;
    font-weight: 800;
}

.qec-share-setlist-fields input {
    min-height: 40px;
    padding: 8px 10px;
    border: var(--qec-border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--qec-text);
}

.qec-share-preview {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(20,6,23,.08);
    border-radius: 14px;
    background: #ece7ee;
}

.qec-share-preview canvas {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 58dvh;
    border-radius: 8px;
    background: #17031c;
    box-shadow: 0 12px 28px rgba(20,6,23,.18);
}

.qec-share-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
}

.qec-share-footer button {
    min-height: 45px;
    border: var(--qec-border);
    border-radius: 11px;
    background: var(--qec-surface-soft);
    color: var(--qec-text);
    font-weight: 900;
}

.qec-share-footer .qec-share-native {
    border-color: var(--qec-gold);
    background: var(--qec-gold);
    color: var(--qec-bg);
}

@media (max-width: 680px) {
    .qec-reader-toolbar {
        padding: 6px !important;
    }

    .qec-toolbar-main-row {
        grid-template-columns: auto minmax(104px, 1fr) auto !important;
        gap: 4px !important;
    }

    .qec-zoom-control {
        grid-template-columns: 30px 36px 30px !important;
    }

    .qec-zoom-control button,
    .qec-zoom-control output {
        width: auto !important;
        min-height: 34px !important;
        height: 34px !important;
        font-size: .68rem !important;
    }

    .qec-scroll-transport {
        grid-template-columns: 27px 34px 27px 27px;
        gap: 2px;
    }

    .qec-scroll-transport .qec-scroll-toggle {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    .qec-scroll-transport .qec-speed-step {
        width: 27px !important;
        min-width: 27px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: .84rem !important;
    }

    .qec-reader-quick-actions {
        gap: 2px !important;
    }

    .qec-icon-button,
    .qec-more-control {
        flex-basis: 31px !important;
        width: 31px !important;
        min-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
    }

    .qec-scroll-range-row {
        margin-top: 4px;
        padding-top: 2px;
    }

    .qec-song-card {
        padding: 12px !important;
    }

    .qec-song-card-actions {
        grid-template-columns: 42px 42px minmax(0, 1fr) !important;
    }

    .qec-card-today {
        font-size: .75rem !important;
    }

    .qec-setlist-footer {
        grid-template-columns: 1fr 1fr !important;
    }

    .qec-setlist-share {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .qec-share-sheet {
        width: 100%;
        max-height: 96dvh;
        border-radius: 20px 20px 0 0;
    }

    .qec-share-setlist-fields {
        grid-template-columns: 1fr;
    }

    .qec-share-preview canvas {
        max-height: 52dvh;
    }
}

@media (max-width: 390px) {
    .qec-toolbar-main-row {
        grid-template-columns: auto minmax(88px, 1fr) auto !important;
    }

    .qec-reader-quick-actions #qec-theme-toggle {
        display: none !important;
    }
}


/* 3.5.1 — barra compacta para iPhone em modo retrato */

.qec-toolbar-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0;
}

.qec-reader-quick-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    min-width: 0;
}

.qec-scroll-range-row {
    display: grid !important;
    grid-template-columns: auto minmax(72px, 1fr) 38px !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 7px !important;
    padding: 7px 2px 1px !important;
    border-top: 1px solid rgba(20,6,23,.08) !important;
}

.qec-scroll-transport {
    display: grid !important;
    grid-template-columns: 32px 38px 32px !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
}

.qec-scroll-transport .qec-speed-step {
    width: 32px !important;
    min-width: 32px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
}

.qec-scroll-transport .qec-scroll-toggle {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.qec-scroll-transport .qec-scroll-status-icon {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    color: inherit !important;
    font-size: .88rem !important;
    line-height: 1 !important;
}

.qec-scroll-range-row input[type="range"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 28px !important;
    margin: 0 !important;
    accent-color: var(--qec-purple) !important;
    touch-action: pan-x !important;
}

.qec-scroll-range-row #qec-speed-value {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 4px !important;
    border: 1px solid rgba(212,175,55,.38) !important;
    border-radius: 999px !important;
    background: var(--qec-gold) !important;
    color: var(--qec-bg) !important;
    font-size: .7rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

body.qec-player-dark .qec-scroll-range-row {
    border-top-color: rgba(255,255,255,.09) !important;
}

body.qec-player-dark .qec-scroll-range-row #qec-speed-value {
    border-color: rgba(212,175,55,.5) !important;
    background: var(--qec-gold) !important;
    color: var(--qec-bg) !important;
}

@media (max-width: 680px) {
    .qec-reader-toolbar {
        padding: 6px !important;
    }

    .qec-toolbar-main-row {
        gap: 5px !important;
    }

    .qec-zoom-control {
        grid-template-columns: 29px 36px 29px !important;
        gap: 2px !important;
        flex: 0 0 auto !important;
    }

    .qec-zoom-control button,
    .qec-zoom-control output {
        width: auto !important;
        min-height: 34px !important;
        height: 34px !important;
        font-size: .67rem !important;
    }

    .qec-reader-quick-actions {
        gap: 2px !important;
    }

    .qec-icon-button,
    .qec-more-control {
        display: grid !important;
        flex: 0 0 31px !important;
        width: 31px !important;
        min-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
    }

    .qec-icon-button svg {
        width: 18px !important;
        height: 18px !important;
    }

    .qec-scroll-range-row {
        grid-template-columns: auto minmax(64px, 1fr) 36px !important;
        gap: 5px !important;
        margin-top: 5px !important;
        padding-top: 5px !important;
    }

    .qec-scroll-transport {
        grid-template-columns: 28px 35px 28px !important;
        gap: 3px !important;
    }

    .qec-scroll-transport .qec-speed-step {
        width: 28px !important;
        min-width: 28px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: .84rem !important;
    }

    .qec-scroll-transport .qec-scroll-toggle {
        width: 35px !important;
        min-width: 35px !important;
        height: 35px !important;
        min-height: 35px !important;
    }

    .qec-scroll-range-row #qec-speed-value {
        width: 36px !important;
        min-width: 36px !important;
        height: 27px !important;
        min-height: 27px !important;
    }
}

@media (max-width: 390px) {
    .qec-reader-quick-actions #qec-theme-toggle,
    .qec-reader-quick-actions #qec-share-song {
        display: grid !important;
    }

    .qec-zoom-control {
        grid-template-columns: 27px 34px 27px !important;
    }

    .qec-reader-quick-actions {
        gap: 1px !important;
    }

    .qec-icon-button,
    .qec-more-control {
        flex-basis: 29px !important;
        width: 29px !important;
        min-width: 29px !important;
        height: 29px !important;
        min-height: 29px !important;
    }

    .qec-more-control {
        font-size: .69rem !important;
    }

    .qec-scroll-range-row {
        grid-template-columns: auto minmax(54px, 1fr) 34px !important;
        gap: 4px !important;
    }

    .qec-scroll-transport {
        grid-template-columns: 26px 34px 26px !important;
        gap: 2px !important;
    }

    .qec-scroll-transport .qec-speed-step {
        width: 26px !important;
        min-width: 26px !important;
    }

    .qec-scroll-transport .qec-scroll-toggle {
        width: 34px !important;
        min-width: 34px !important;
    }

    .qec-scroll-range-row #qec-speed-value {
        width: 34px !important;
        min-width: 34px !important;
    }
}


/* 3.5.2 — correção refinada da barra para iPhone */
.qec-reader-toolbar,
.qec-reader-toolbar *,
.qec-scroll-range-row,
.qec-scroll-range-row * {
    box-sizing: border-box;
}

.qec-reader-toolbar {
    overflow: hidden;
}

.qec-toolbar-main-row {
    min-width: 0;
}

.qec-reader-quick-actions {
    flex: 0 0 auto;
}

.qec-scroll-range-row {
    grid-template-columns: 102px minmax(0,1fr) 36px !important;
    align-items: center !important;
    overflow: visible;
}

.qec-scroll-transport {
    grid-template-columns: 28px 38px 28px !important;
    gap: 4px !important;
    width: 102px;
    min-width: 102px !important;
    justify-content: start;
}

.qec-scroll-transport .qec-speed-step {
    width: 28px !important;
    min-width: 28px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: .82rem !important;
}

.qec-scroll-transport .qec-scroll-toggle {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden;
}

.qec-scroll-toggle > span:first-child,
.qec-scroll-status-icon {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    color: inherit !important;
    font-size: .96rem !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.qec-scroll-range-row input[type="range"] {
    min-width: 0 !important;
    width: 100% !important;
}

.qec-scroll-range-row #qec-speed-value {
    justify-self: end;
}

@media (max-width: 430px) {
    .qec-reader-toolbar {
        padding: 6px !important;
        border-radius: 18px !important;
    }

    .qec-toolbar-main-row {
        gap: 4px !important;
    }

    .qec-zoom-control {
        grid-template-columns: 29px 38px 29px !important;
        gap: 3px !important;
    }

    .qec-zoom-control button,
    .qec-zoom-control output {
        height: 34px !important;
        min-height: 34px !important;
    }

    .qec-reader-quick-actions {
        gap: 3px !important;
    }

    .qec-icon-button,
    .qec-more-control {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        flex-basis: 34px !important;
    }

    .qec-icon-button svg {
        width: 18px !important;
        height: 18px !important;
    }

    .qec-scroll-range-row {
        grid-template-columns: 94px minmax(0,1fr) 34px !important;
        gap: 6px !important;
        margin-top: 6px !important;
        padding: 6px 0 0 !important;
    }

    .qec-scroll-transport {
        grid-template-columns: 24px 34px 24px !important;
        width: 94px;
        min-width: 94px !important;
        gap: 3px !important;
    }

    .qec-scroll-transport .qec-speed-step {
        width: 24px !important;
        min-width: 24px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: .75rem !important;
    }

    .qec-scroll-transport .qec-scroll-toggle {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    .qec-scroll-toggle > span:first-child,
    .qec-scroll-status-icon {
        font-size: .88rem !important;
    }

    .qec-scroll-range-row #qec-speed-value {
        width: 34px !important;
        min-width: 34px !important;
        height: 26px !important;
        min-height: 26px !important;
        font-size: .68rem !important;
    }
}

@media (max-width: 390px) {
    .qec-reader-toolbar {
        padding: 5px !important;
        border-radius: 16px !important;
    }

    .qec-toolbar-main-row {
        gap: 3px !important;
    }

    .qec-zoom-control {
        grid-template-columns: 28px 36px 28px !important;
        gap: 2px !important;
    }

    .qec-zoom-control button,
    .qec-zoom-control output {
        font-size: .72rem !important;
    }

    .qec-reader-quick-actions {
        gap: 2px !important;
    }

    .qec-icon-button,
    .qec-more-control {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        flex-basis: 32px !important;
    }

    .qec-scroll-range-row {
        grid-template-columns: 90px minmax(0,1fr) 32px !important;
        gap: 5px !important;
    }

    .qec-scroll-transport {
        grid-template-columns: 23px 32px 23px !important;
        width: 90px;
        min-width: 90px !important;
        gap: 2px !important;
    }

    .qec-scroll-transport .qec-speed-step {
        width: 23px !important;
        min-width: 23px !important;
        height: 30px !important;
        min-height: 30px !important;
        font-size: .72rem !important;
    }

    .qec-scroll-transport .qec-scroll-toggle {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .qec-scroll-toggle > span:first-child,
    .qec-scroll-status-icon {
        font-size: .84rem !important;
    }

    .qec-scroll-range-row #qec-speed-value {
        width: 32px !important;
        min-width: 32px !important;
        height: 24px !important;
        min-height: 24px !important;
        font-size: .64rem !important;
    }
}


/* 3.5.3 — modo escuro completo e compartilhamento refinado */
body.qec-player-dark .qec-reader-toolbar {
    border-color: rgba(255,255,255,.12) !important;
    background: #171219 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.38) !important;
}

body.qec-player-dark .qec-toolbar-main-row,
body.qec-player-dark .qec-scroll-range-row {
    background: transparent !important;
}

body.qec-player-dark .qec-scroll-range-row {
    border-top-color: rgba(255,255,255,.09) !important;
}

body.qec-player-dark .qec-scroll-range-row input[type="range"] {
    background: transparent !important;
}

body.qec-player-dark .qec-scroll-range-row input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: #302734;
}

body.qec-player-dark .qec-scroll-range-row input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border: 2px solid #171219;
    border-radius: 50%;
    background: var(--qec-purple);
    -webkit-appearance: none;
}

body.qec-player-dark .qec-scroll-range-row input[type="range"]::-moz-range-track {
    height: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: #302734;
}

body.qec-player-dark .qec-scroll-range-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #171219;
    border-radius: 50%;
    background: var(--qec-purple);
}

body.qec-player-dark .qec-zoom-control button,
body.qec-player-dark .qec-icon-button,
body.qec-player-dark .qec-more-control,
body.qec-player-dark .qec-scroll-toggle,
body.qec-player-dark .qec-speed-step {
    border-color: rgba(255,255,255,.12) !important;
    background: #251b28 !important;
    color: #ffffff !important;
}

body.qec-player-dark .qec-zoom-control output {
    color: #ffffff !important;
}

body.qec-player-dark .qec-heart-button {
    color: var(--qec-heart) !important;
}

body.qec-player-dark .qec-scroll-range-row #qec-speed-value {
    border-color: rgba(212,175,55,.45) !important;
    background: var(--qec-gold) !important;
    color: var(--qec-bg) !important;
}

.qec-share-native:disabled,
.qec-share-download:disabled {
    opacity: .65;
    cursor: wait;
}


/* Espaçamento global da cifra publicada 3.9.7 */
.qec-cifra-simple .qec-reader-line{
    display:block;
    min-height:1.55em;
    white-space:pre;
}

.qec-cifra-simple .qec-reader-line-empty{
    min-height:.32em;
    height:.32em;
}

.qec-cifra-simple .qec-reader-line-chord.qec-reader-after-chord{
    margin-top:var(--qec-reader-chord-chord-gap, 6px);
}

.qec-cifra-simple .qec-reader-line-lyric.qec-reader-after-chord{
    margin-top:var(--qec-reader-chord-lyrics-gap, 2px);
}

.qec-cifra-simple .qec-reader-after-section{
    margin-top:var(--qec-reader-section-content-gap, 12px);
}

.qec-cifra-simple .qec-reader-line-section{
    min-height:1.4em;
    margin-top:24px;
    padding-top:2px;
}

.qec-cifra-simple .qec-reader-line-section:first-child{
    margin-top:0;
}

@media print{
    .qec-cifra-simple .qec-reader-line{
        break-inside:avoid;
    }
}


/* Espaçamento por seção 3.9.9 */
.qec-cifra-simple .qec-reader-line-empty{
    min-height:0!important;
    height:0!important;
    margin:0!important;
    overflow:hidden!important;
}

.qec-cifra-simple .qec-reader-line-chord.qec-reader-after-chord{
    margin-top:var(--qec-reader-local-chord-chord-gap, var(--qec-reader-chord-chord-gap, 6px))!important;
}

.qec-cifra-simple .qec-reader-line-lyric.qec-reader-after-chord{
    margin-top:var(--qec-reader-local-chord-lyrics-gap, var(--qec-reader-chord-lyrics-gap, 2px))!important;
}

.qec-cifra-simple .qec-reader-after-section{
    margin-top:var(--qec-reader-local-section-content-gap, var(--qec-reader-section-content-gap, 12px))!important;
}


/* Zero real entre cifra e letra 3.9.10 */
.qec-cifra-simple .qec-reader-line-chord{
    min-height:1.12em!important;
    line-height:1.12!important;
}

.qec-cifra-simple .qec-reader-line-lyric.qec-reader-after-chord{
    margin-top:var(--qec-reader-local-chord-lyrics-gap, var(--qec-reader-chord-lyrics-gap, 0px))!important;
}

.qec-cifra-simple .qec-reader-line-empty{
    display:none!important;
    min-height:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
}


/* Publicação fiel ao Editor Visual 3.9.20 */
.qec-cifra-simple.qec-structured-renderer{
    white-space:normal!important;
    overflow-x:visible;
}

.qec-structured-section{
    display:block;
    margin:0 0 26px;
    break-inside:avoid;
}

.qec-structured-section:last-child{
    margin-bottom:0;
}

.qec-structured-heading{
    display:block;
    margin:0 0 var(--qec-reader-local-section-content-gap, var(--qec-reader-section-content-gap, 12px));
    padding:0 0 6px;
    border-bottom:1px solid rgba(116,82,124,.18);
    font-family:inherit;
    font-size:1.06em;
    line-height:1.35;
    text-transform:uppercase;
    white-space:pre-wrap;
}

.qec-structured-line{
    display:block;
    width:100%;
    margin:0;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:normal;
    scrollbar-width:thin;
}

.qec-structured-chord-lane,
.qec-structured-lyrics{
    box-sizing:border-box;
    display:block;
    width:max(100%, calc(var(--qec-structured-columns, 8) * 1ch + 2ch));
    min-width:max(100%, calc(var(--qec-structured-columns, 8) * 1ch + 2ch));
    margin:0;
    padding:0;
    font-family:Consolas, Monaco, "Courier New", monospace;
    font-size:inherit;
    font-variant-ligatures:none;
    letter-spacing:0;
    white-space:pre;
}

.qec-structured-chord-lane{
    position:relative;
    height:1.14em;
    min-height:1.14em;
    line-height:1.14;
}

.qec-structured-chord{
    position:absolute;
    top:0;
    left:calc(var(--qec-chord-column, 0) * 1ch);
    margin:0;
    padding:0;
    line-height:1.14;
    white-space:nowrap;
}

.qec-structured-lyrics{
    min-height:1.5em;
    line-height:1.5;
}

.qec-structured-mode-pair .qec-structured-chord-lane{
    margin-bottom:var(--qec-reader-local-chord-lyrics-gap, var(--qec-reader-chord-lyrics-gap, 0px));
}

.qec-structured-mode-chords + .qec-structured-mode-chords,
.qec-structured-mode-chords + .qec-structured-mode-pair{
    margin-top:var(--qec-reader-local-chord-chord-gap, var(--qec-reader-chord-chord-gap, 6px));
}

.qec-structured-mode-chords + .qec-structured-mode-lyrics{
    margin-top:var(--qec-reader-local-chord-lyrics-gap, var(--qec-reader-chord-lyrics-gap, 0px));
}

.qec-structured-mode-pair + .qec-structured-line,
.qec-structured-mode-lyrics + .qec-structured-line{
    margin-top:5px;
}

body.qec-player-dark .qec-structured-heading{
    border-bottom-color:rgba(255,255,255,.16);
}

@media(max-width:760px){
    .qec-structured-section{
        margin-bottom:22px;
    }

    .qec-structured-heading{
        font-size:1em;
    }
}

@media print{
    .qec-structured-section,
    .qec-structured-line{
        break-inside:avoid;
    }
}

/* Mesma coluna lógica usada pelo Editor Visual 3.9.29 */
.qec-structured-chord,
.qec-structured-chord-lane,
.qec-structured-lyrics{
    font-variant-ligatures:none!important;
    letter-spacing:0!important;
}


/* Observações e quebra responsiva fiel ao Editor Visual 3.9.30 */
.qec-cifra-simple.qec-structured-renderer{overflow-x:hidden!important;max-width:100%!important}
.qec-structured-line{overflow:visible!important;max-width:100%!important}
.qec-structured-segment{box-sizing:border-box;display:block;width:100%;max-width:100%;overflow:visible}
.qec-structured-segment + .qec-structured-segment{margin-top:3px}
.qec-structured-observation-lane,
.qec-structured-chord-lane,
.qec-structured-lyrics{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important}
.qec-structured-observation-lane{
    position:relative;
    display:block;
    height:1.08em;
    min-height:1.08em;
    margin:0 0 .08em;
    font-family:Consolas,Monaco,"Courier New",monospace;
    font-variant-ligatures:none;
    white-space:pre;
}
.qec-structured-observation{
    position:absolute;
    top:0;
    left:calc(var(--qec-chord-column, 0) * 1ch);
    max-width:calc(100% - (var(--qec-chord-column, 0) * 1ch));
    overflow:hidden;
    color:#705078;
    font-size:calc(1em * var(--qec-observation-scale, .68));
    font-weight:800;
    line-height:1.18;
    text-overflow:ellipsis;
    white-space:nowrap;
}
body.qec-player-dark .qec-structured-observation{color:#d9bde0}
.qec-structured-lyrics{white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:normal}
.qec-structured-chord-lane{overflow:hidden}
@media(max-width:760px){.qec-structured-segment + .qec-structured-segment{margin-top:5px}}

/* 3.9.34 - colaboração */
.qec-louvores-contribute-button{border-color:rgba(212,175,55,.72)!important;background:rgba(212,175,55,.08)!important}.qec-louvores-contribute-button:hover{background:rgba(212,175,55,.16)!important}


/* 3.9.43 — Controles rápidos de palco acionados por toque */
.qec-performance-dock {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1800;
    width: min(560px, calc(100vw - 20px));
    padding: 12px;
    border: 1px solid rgba(20, 6, 23, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 55px rgba(20, 6, 23, .28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 20px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s linear;
}
.qec-performance-dock.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}
.qec-performance-speed-row {
    display: grid;
    grid-template-columns: 46px 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 7px;
}
.qec-performance-play,
.qec-performance-tools-row button {
    border: 1px solid rgba(20, 6, 23, .12);
    background: #f7f2f8;
    color: #32103b;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.qec-performance-play {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    font-size: .95rem;
}
.qec-performance-play.is-active {
    border-color: rgba(8, 127, 51, .28);
    background: #e9f8ed;
    color: #087f33;
}
.qec-performance-note {
    display: grid;
    place-items: center;
    min-width: 0;
    color: #5f4a66;
    font-family: "Noto Music", "Segoe UI Symbol", serif;
    line-height: 1;
    user-select: none;
}
.qec-performance-note-slow { font-size: 1.65rem; }
.qec-performance-note-fast { font-size: 1.75rem; }
#qec-performance-speed {
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    accent-color: var(--qec-purple);
    touch-action: pan-x;
}
.qec-performance-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(70px, auto) 48px;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(20, 6, 23, .08);
}
.qec-performance-key-label {
    color: #5b4761;
    font-size: .78rem;
    font-weight: 900;
}
.qec-performance-key-row button {
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid rgba(20, 6, 23, .12);
    border-radius: 10px;
    background: #f7f2f8;
    color: #32103b;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#qec-performance-key-value {
    color: #32103b;
    font-size: .94rem;
    font-weight: 950;
    text-align: center;
}
body.qec-player-dark .qec-performance-key-row { border-top-color: rgba(255,255,255,.09); }
body.qec-player-dark .qec-performance-key-label,
body.qec-player-dark #qec-performance-key-value { color: #efe4f2; }
body.qec-player-dark .qec-performance-key-row button {
    border-color: rgba(255,255,255,.12);
    background: #251b28;
    color: #fff;
}

.qec-performance-tools-row {
    display: grid;
    grid-template-columns: 48px minmax(58px, auto) 48px 1px minmax(92px, 1fr);
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(20, 6, 23, .08);
}
.qec-performance-tools-row button {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
}
#qec-performance-font-value {
    color: #5b4761;
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}
.qec-performance-divider {
    width: 1px;
    height: 26px;
    background: rgba(20, 6, 23, .12);
}
.qec-performance-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.qec-performance-theme > span[aria-hidden="true"] { font-size: 1.15rem; }
.qec-performance-theme-label { font-size: .78rem; }
body.qec-player-dark .qec-performance-dock {
    border-color: rgba(255,255,255,.12);
    background: rgba(23, 18, 25, .97);
    box-shadow: 0 18px 55px rgba(0,0,0,.42);
}
body.qec-player-dark .qec-performance-play,
body.qec-player-dark .qec-performance-tools-row button {
    border-color: rgba(255,255,255,.12);
    background: #251b28;
    color: #fff;
}
body.qec-player-dark .qec-performance-play.is-active {
    border-color: rgba(69, 200, 108, .30);
    background: #173921;
    color: #78e39a;
}
body.qec-player-dark .qec-performance-note,
body.qec-player-dark #qec-performance-font-value { color: #efe4f2; }
body.qec-player-dark .qec-performance-tools-row { border-top-color: rgba(255,255,255,.09); }
body.qec-player-dark .qec-performance-divider { background: rgba(255,255,255,.14); }
@media (max-width: 520px) {
    .qec-performance-dock {
        bottom: calc(9px + env(safe-area-inset-bottom));
        width: calc(100vw - 12px);
        padding: 10px;
        border-radius: 16px;
    }
    .qec-performance-speed-row {
        grid-template-columns: 44px 27px minmax(0, 1fr) 27px;
        gap: 5px;
    }
    .qec-performance-play { width: 44px; height: 44px; }
    .qec-performance-key-row {
        grid-template-columns: minmax(0, 1fr) 44px 64px 44px;
        gap: 5px;
    }
    .qec-performance-tools-row {
        grid-template-columns: 44px 52px 44px 1px minmax(82px, 1fr);
        gap: 5px;
    }
    .qec-performance-tools-row button { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .qec-performance-dock { transition: none; }
}
@media print {
    .qec-performance-dock { display: none !important; }
}


/* 3.9.44 - Barra palco compatível com iPhone + compartilhamento Reels */
.qec-performance-signal {
    height: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    color: #5f4a66;
    user-select: none;
}
.qec-performance-signal i {
    display: block;
    width: 3px;
    border-radius: 3px;
    background: currentColor;
}
.qec-performance-signal-slow i { height: 9px; }
.qec-performance-signal-fast i:nth-child(1) { height: 7px; }
.qec-performance-signal-fast i:nth-child(2) { height: 11px; }
.qec-performance-signal-fast i:nth-child(3) { height: 15px; }
.qec-performance-signal-fast i:nth-child(4) { height: 20px; }
.qec-performance-signal-fast i:nth-child(5) { height: 26px; }
body.qec-player-dark .qec-performance-signal { color: #efe4f2; }

/* No modo escuro somente a pista do slider permanece clara. */
body.qec-player-dark .qec-performance-dock,
body.qec-player-dark .qec-performance-speed-row,
body.qec-player-dark .qec-performance-tools-row {
    background: #171219 !important;
}
#qec-performance-speed {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
#qec-performance-speed::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(20,6,23,.12);
}
#qec-performance-speed::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -9px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--qec-purple);
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
#qec-performance-speed::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #ffffff;
}
#qec-performance-speed::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--qec-purple);
}
body.qec-player-dark #qec-performance-speed { background: transparent !important; }
body.qec-player-dark #qec-performance-speed::-webkit-slider-runnable-track,
body.qec-player-dark #qec-performance-speed::-moz-range-track { background: #ffffff; }

.qec-share-formats { flex-wrap: wrap; }
.qec-share-formats [data-qec-share-format="reel"]::after {
    content: "7s";
    display: inline-grid;
    place-items: center;
    margin-left: 6px;
    min-width: 25px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(109,67,215,.12);
    font-size: .68rem;
    font-weight: 900;
}


/* 3.9.45 - comportamento de palco e diagramas didáticos */
.qec-performance-return{
    position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:1795;
    width:54px;height:42px;border:1px solid rgba(20,6,23,.14);border-radius:999px;
    background:rgba(255,255,255,.97);color:#32103b;box-shadow:0 12px 34px rgba(20,6,23,.24);
    display:grid;place-items:center;font-size:1.45rem;font-weight:900;opacity:0;visibility:hidden;pointer-events:none;
    transform:translate(-50%,18px);transition:opacity .2s ease,transform .2s ease,visibility .2s linear;
    -webkit-tap-highlight-color:transparent;
}
.qec-performance-return.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
.qec-performance-return span{display:block;animation:qec-performance-arrow 1s ease-in-out infinite}
@keyframes qec-performance-arrow{0%,100%{transform:translateY(-2px)}50%{transform:translateY(4px)}}
body.qec-player-dark .qec-performance-return{background:#171219;color:#fff;border-color:rgba(255,255,255,.13)}
@media(max-width:520px){.qec-performance-return{bottom:calc(9px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.qec-performance-return span{animation:none}.qec-performance-return{transition:none}}
@media print{.qec-performance-return{display:none!important}}

.qec-guitar-bar{position:absolute;height:18px;transform:translateY(-50%);border-radius:999px;background:#32103b;z-index:3;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.qec-guitar-bar b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#fff;color:#32103b;font-size:10px;line-height:1;font-weight:900}
.qec-guitar-dot{z-index:4}
.qec-guitar-finger-legend{margin-top:8px;font-size:.76rem;color:#76697b;text-align:center}
.qec-guitar-finger-legend strong{color:#32103b}
body.qec-player-dark .qec-guitar-finger-legend{color:#cdbfd0}body.qec-player-dark .qec-guitar-finger-legend strong{color:#fff}
.qec-chord-diagram-icon path,.qec-chord-diagram-icon circle{vector-effect:non-scaling-stroke}

/* v3.9.70 — destaques e pedidos vindos da busca pública */
.qec-louvores-contribute-button{
  border-color:#d4af37!important;
  background:#d4af37!important;
  color:#17071b!important;
  box-shadow:0 8px 24px rgba(212,175,55,.18)!important;
}
.qec-louvores-contribute-button .qec-nav-icon,
.qec-louvores-contribute-button span{color:#17071b!important}
.qec-louvores-contribute-button:hover,
.qec-louvores-contribute-button:focus{
  background:#e4c34f!important;
  color:#17071b!important;
}
.qec-missing-search-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);
  gap:18px;
  margin-top:14px;
  padding:18px;
  border:1px solid rgba(212,175,55,.34);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(212,175,55,.10),rgba(255,255,255,.045));
  color:#fff;
}
.qec-missing-search-card[hidden]{display:none!important}
.qec-missing-search-copy>span{display:block;margin-bottom:5px;color:#d4af37;font-size:.72rem;font-weight:900;letter-spacing:.11em}
.qec-missing-search-copy h3{margin:0 0 7px;color:#fff;font-size:1.08rem}
.qec-missing-search-copy p{margin:0;color:rgba(255,255,255,.72);line-height:1.5}
.qec-missing-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
.qec-missing-search-form[hidden]{display:none!important}
.qec-missing-search-form label{display:grid;gap:5px}
.qec-missing-search-form label>span{color:rgba(255,255,255,.72);font-size:.72rem;font-weight:850}
.qec-missing-search-form input{width:100%;min-height:44px;padding:9px 11px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:#fff;color:#231626;font:inherit}
.qec-missing-search-form button{min-height:44px;padding:9px 14px;border:1px solid #d4af37;border-radius:10px;background:#d4af37;color:#17071b;font-weight:900;cursor:pointer}
.qec-missing-search-form button:disabled{opacity:.65;cursor:wait}
.qec-missing-search-status{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;padding:13px 14px;border-radius:11px;background:rgba(34,197,94,.10);border:1px solid rgba(34,197,94,.25);color:#fff}
.qec-missing-search-status[hidden]{display:none!important}
.qec-missing-search-status strong{color:#fff}
.qec-missing-search-status span{color:rgba(255,255,255,.76)}
.qec-missing-search-status a{color:#d4af37;font-weight:900}
.qec-missing-search-status.is-error{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.28);color:#ffdede}

/* v3.9.71 — aviso imediato quando a busca não encontra a cifra */
.qec-missing-review-note{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:14px 15px;
  border:1px solid rgba(212,175,55,.30);
  border-radius:12px;
  background:rgba(212,175,55,.08);
}
.qec-missing-review-icon{
  flex:0 0 32px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#d4af37;
  color:#17071b;
  font-size:1rem;
  font-weight:950;
  line-height:1;
}
.qec-missing-review-note>div{display:grid;gap:4px;min-width:0}
.qec-missing-review-note strong{color:#fff;font-size:.92rem;line-height:1.35}
.qec-missing-review-note>div>span{color:rgba(255,255,255,.75);font-size:.82rem;line-height:1.45}

@media(max-width:760px){
 .qec-missing-search-card{grid-template-columns:1fr}
 .qec-missing-search-form{grid-template-columns:1fr}
 .qec-missing-search-form button{width:100%}
}

/* v3.9.72 — pedido de artista aparece imediatamente abaixo da busca */
.qec-louvores-tools > .qec-missing-search-card{
  width:100%;
  margin:12px 0 0;
}
.qec-louvores-tools > .qec-missing-search-card + .qec-filter-buttons{
  margin-top:12px;
}
@media(max-width:700px){
  .qec-louvores-tools > .qec-missing-search-card{
    grid-template-columns:1fr;
    gap:13px;
    padding:15px 13px;
  }
  .qec-louvores-tools > .qec-missing-search-card .qec-missing-search-form{
    grid-template-columns:1fr;
  }
  .qec-louvores-tools > .qec-missing-search-card .qec-missing-search-form button{
    width:100%;
  }
}

/* 3.10.8 · modos Letra + cifra / Cifra / Letra */
.qec-reader-content-mode{display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));align-items:center;gap:5px;margin-top:7px;padding-top:7px;border-top:1px solid rgba(20,6,23,.08)}
.qec-reader-content-mode>span{padding:0 3px;color:#725f77;font-size:.67rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.qec-reader-content-mode button{min-height:32px;padding:5px 8px;border:1px solid rgba(20,6,23,.12);border-radius:9px;background:#f7f3f8;color:#4f3a55;font-size:.72rem;font-weight:900;line-height:1.1;cursor:pointer}
.qec-reader-content-mode button.is-active{border-color:#d4af37;background:#fff1ae;color:#4f3a00;box-shadow:inset 0 0 0 1px rgba(212,175,55,.18)}
body.qec-player-dark .qec-reader-content-mode{border-top-color:rgba(255,255,255,.09)}
body.qec-player-dark .qec-reader-content-mode>span{color:#c8bacd}
body.qec-player-dark .qec-reader-content-mode button{border-color:rgba(255,255,255,.12);background:#251b28;color:#e9dfea}
body.qec-player-dark .qec-reader-content-mode button.is-active{border-color:#d4af37;background:#d4af37;color:#17071b}
@media(max-width:430px){.qec-reader-content-mode{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.qec-reader-content-mode>span{display:none}.qec-reader-content-mode button{min-height:31px;padding:4px 5px;font-size:.66rem}}
@media print{.qec-reader-content-mode{display:none!important}}

/* 3.10.9 · modo Cifra compacto por linha */
body[data-qec-reader-mode="chords"] .qec-cifra-simple{
    --qec-chords-row-divider:rgba(20,6,23,.13);
    --qec-chords-separator:rgba(87,63,93,.58);
}
body.qec-player-dark[data-qec-reader-mode="chords"] .qec-cifra-simple{
    --qec-chords-row-divider:rgba(255,255,255,.16);
    --qec-chords-separator:rgba(255,255,255,.42);
}
.qec-chords-only-line{
    box-sizing:border-box;
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:8px 0 9px!important;
    border-bottom:1px solid var(--qec-chords-row-divider,rgba(20,6,23,.13));
    overflow:visible!important;
    white-space:normal!important;
}
.qec-chords-only-line:last-child{
    border-bottom-color:transparent;
}
.qec-chords-only-row{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:.38em .48em;
    width:100%;
    min-height:1.45em;
    font-family:Consolas,Monaco,"Courier New",monospace;
    font-size:inherit;
    font-variant-ligatures:none;
    line-height:1.45;
    letter-spacing:0;
    white-space:normal;
}
.qec-chords-only-item{
    display:inline-flex;
    align-items:baseline;
    gap:.48em;
    flex:0 0 auto;
    white-space:nowrap;
}
.qec-chords-only-separator{
    color:var(--qec-chords-separator,rgba(87,63,93,.58));
    font-weight:500;
    user-select:none;
}
.qec-chords-only-inline-section{
    display:block;
    margin:0 0 7px;
    padding:0;
    font-family:inherit;
    font-size:1.03em;
    line-height:1.3;
    text-transform:uppercase;
    white-space:pre-wrap;
}
body[data-qec-reader-mode="chords"] .qec-structured-heading,
body[data-qec-reader-mode="chords"] .qec-reader-line-section{
    margin-bottom:0!important;
}
body[data-qec-reader-mode="chords"] .qec-structured-section{
    margin-bottom:22px;
}
body[data-qec-reader-mode="chords"] .qec-structured-section .qec-chords-only-line:first-of-type{
    padding-top:9px!important;
}
@media(max-width:760px){
    .qec-chords-only-line{padding:7px 0 8px!important}
    .qec-chords-only-row{gap:.3em .4em;line-height:1.4}
    .qec-chords-only-item{gap:.4em}
}
@media print{
    .qec-chords-only-line{border-bottom-color:rgba(0,0,0,.16)!important}
}


/* 3.10.10 · modo Letra alinhado naturalmente à esquerda */
body[data-qec-reader-mode="lyrics"] .qec-cifra-simple .qec-reader-line-lyric,
body[data-qec-reader-mode="lyrics"] .qec-cifra-simple .qec-lyrics-only-line,
body[data-qec-reader-mode="lyrics"] .qec-cifra-simple .qec-lyrics-only-text{
    margin-left:0!important;
    padding-left:0!important;
    text-indent:0!important;
    transform:none!important;
}
body[data-qec-reader-mode="lyrics"] .qec-cifra-simple .qec-reader-line-lyric{
    white-space:pre-wrap!important;
}
body[data-qec-reader-mode="lyrics"] .qec-cifra-simple .qec-lyrics-only-text{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:pre-wrap!important;
    overflow-wrap:anywhere;
    word-break:normal;
}


/* 3.11.0 · nível de detalhe dos acordes */
.qec-reader-chord-level{
    display:grid;
    grid-template-columns:auto repeat(3,minmax(0,1fr));
    align-items:center;
    gap:5px;
    margin-top:6px;
}
.qec-reader-chord-level>span{
    padding:0 3px;
    color:#725f77;
    font-size:.67rem;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.qec-reader-chord-level button{
    min-height:32px;
    padding:5px 8px;
    border:1px solid rgba(20,6,23,.12);
    border-radius:9px;
    background:#fff;
    color:#4f3a55;
    font-size:.72rem;
    font-weight:900;
    line-height:1.1;
    cursor:pointer;
}
.qec-reader-chord-level button.is-active{
    border-color:#7b2f8e;
    background:#f3e7f6;
    color:#561c65;
    box-shadow:inset 0 0 0 1px rgba(123,47,142,.12);
}
body.qec-player-dark .qec-reader-chord-level>span{color:#c8bacd}
body.qec-player-dark .qec-reader-chord-level button{
    border-color:rgba(255,255,255,.12);
    background:#251b28;
    color:#e9dfea;
}
body.qec-player-dark .qec-reader-chord-level button.is-active{
    border-color:#d4af37;
    background:#3b2d15;
    color:#f4d86d;
}
body[data-qec-reader-mode="lyrics"] .qec-reader-chord-level{
    opacity:.48;
}
@media(max-width:430px){
    .qec-reader-chord-level{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
    .qec-reader-chord-level>span{display:none}
    .qec-reader-chord-level button{min-height:31px;padding:4px 5px;font-size:.66rem}
}
@media print{.qec-reader-chord-level{display:none!important}}


/* 3.11.1 · simplificação sem deslocar acordes seguintes */
.qec-cifra-simple .qec-chord-position-slot{
    display:inline-block;
    width:calc(var(--qec-source-chord-width, 1) * 1ch);
    min-width:calc(var(--qec-source-chord-width, 1) * 1ch);
    max-width:calc(var(--qec-source-chord-width, 1) * 1ch);
    margin:0;
    padding:0;
    overflow:visible;
    vertical-align:baseline;
    white-space:nowrap;
    font-family:inherit;
    font-variant-ligatures:none;
    letter-spacing:0;
}

/* =========================================================
   BUSCA EXTERNA NO CATÁLOGO
   ========================================================= */
.qec-external-search-result{
 display:grid;
 grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;
 align-items:center;
 gap:12px 16px;
 margin:14px 0 4px;
 padding:15px 16px;
 border:1px solid rgba(212,175,55,.28);
 border-radius:14px;
 background:rgba(212,175,55,.08);
 color:#fff;
}
.qec-external-search-result[hidden]{display:none!important}
.qec-external-search-result.is-found{border-color:rgba(34,197,94,.32);background:rgba(34,197,94,.08)}
.qec-external-search-result.is-review{border-color:rgba(245,158,11,.32);background:rgba(245,158,11,.08)}
.qec-external-search-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:#d4af37;color:#17071b;font-size:.66rem;font-weight:950;letter-spacing:.07em;white-space:nowrap}
.qec-external-search-result.is-found .qec-external-search-badge{background:#22c55e;color:#07180d}
.qec-external-search-result.is-review .qec-external-search-badge{background:#f59e0b;color:#1d1202}
.qec-external-search-result strong{display:block;color:#fff;font-size:1rem;line-height:1.25}
.qec-external-search-result small{display:block;margin-top:2px;color:rgba(255,255,255,.65);font-size:.78rem}
.qec-external-search-result p{margin:5px 0 0;color:rgba(255,255,255,.76);font-size:.83rem;line-height:1.4}
.qec-external-search-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.22);border-top-color:#d4af37;border-radius:50%;animation:qecExternalSpin .8s linear infinite}
.qec-external-search-spinner[hidden]{display:none!important}
.qec-missing-search-status.is-warning{background:rgba(245,158,11,.10);border-color:rgba(245,158,11,.28)}
@keyframes qecExternalSpin{to{transform:rotate(360deg)}}
@media(max-width:720px){
 .qec-external-search-result{grid-template-columns:1fr;gap:9px}
 .qec-external-search-spinner{justify-self:start}
 .qec-external-search-badge{justify-self:start;white-space:normal}
}

/* =========================================================
   3.11.4 · catálogo focado em busca + cifra provisória
   ========================================================= */
.qec-louvores-tools>.qec-missing-search-card{
  display:grid;
  grid-template-columns:minmax(180px,.62fr) minmax(320px,1.38fr);
  align-items:end;
  gap:10px 14px;
  margin:9px 0 0;
  padding:11px 12px;
  border:1px solid rgba(212,175,55,.28);
  border-radius:12px;
  background:rgba(212,175,55,.055);
}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-copy h3{
  margin:0 0 3px;
  font-size:.93rem;
  line-height:1.2;
}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-copy p{
  margin:0;
  font-size:.76rem;
  line-height:1.32;
}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form label{gap:3px}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form label>span{font-size:.66rem}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form input,
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form button{min-height:40px}
.qec-louvores-tools>.qec-missing-search-card .qec-missing-search-status{grid-column:1/-1;padding:8px 10px;font-size:.76rem}

.qec-external-search-result{
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:9px 12px;
  margin:10px 0 4px;
  padding:11px 12px;
  border-radius:12px;
}
.qec-external-search-result.is-waiting{border-color:rgba(212,175,55,.28);background:rgba(212,175,55,.065)}
.qec-external-search-result.is-review{border-color:rgba(245,158,11,.34);background:rgba(245,158,11,.075)}
.qec-external-search-result.is-review.is-found{border-color:rgba(245,158,11,.38);background:rgba(245,158,11,.08)}
.qec-external-search-result.is-review .qec-external-search-badge{background:#d4af37;color:#17071b}
.qec-external-search-copy{min-width:0}
.qec-external-search-result p{margin:3px 0 0}
.qec-external-search-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 12px;
  border:1px solid #d4af37;
  border-radius:9px;
  background:#d4af37;
  color:#17071b!important;
  font-size:.78rem;
  font-weight:950;
  text-decoration:none!important;
  white-space:nowrap;
}
.qec-external-search-open[hidden]{display:none!important}
.qec-external-search-open:hover,.qec-external-search-open:focus{background:#e4c34f;color:#17071b!important}

.qec-provisional-notice{
  display:flex;
  align-items:flex-start;
  gap:8px 12px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid rgba(217,152,28,.30);
  border-radius:11px;
  background:#fff8df;
  color:#553b06;
  font-size:.82rem;
  line-height:1.42;
}
.qec-provisional-notice strong{flex:0 0 auto;color:#6a4700}
.qec-provisional-notice span{min-width:0}
body.qec-player-dark .qec-provisional-notice{
  border-color:rgba(212,175,55,.32);
  background:rgba(212,175,55,.09);
  color:#eadfb5;
}
body.qec-player-dark .qec-provisional-notice strong{color:#f0d16b}

@media(max-width:720px){
  .qec-louvores-tools>.qec-missing-search-card{grid-template-columns:1fr;gap:8px;padding:10px}
  .qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form{grid-template-columns:minmax(0,1fr) auto}
  .qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form button{width:auto;padding-inline:12px}
  .qec-external-search-result{grid-template-columns:1fr;gap:7px;padding:10px 11px}
  .qec-external-search-open{justify-self:start}
  .qec-external-search-spinner{justify-self:start}
  .qec-provisional-notice{display:grid;gap:3px}
}
@media(max-width:460px){
  .qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form{grid-template-columns:1fr}
  .qec-louvores-tools>.qec-missing-search-card .qec-missing-search-form button{width:100%}
}


/* =========================================================
   3.11.9 · busca pública compacta com porcentagem
   ========================================================= */
.qec-external-search-result.is-waiting{
  display:block;
  padding:11px 13px;
  min-height:0;
}
.qec-external-search-result.is-waiting .qec-external-search-badge,
.qec-external-search-result.is-waiting .qec-external-search-copy strong,
.qec-external-search-result.is-waiting .qec-external-search-copy small,
.qec-external-search-result.is-waiting .qec-external-search-open,
.qec-external-search-result.is-waiting .qec-external-search-spinner{
  display:none!important;
}
.qec-external-search-result.is-waiting .qec-external-search-copy p{
  margin:0;
  color:#fff;
  font-size:.84rem;
  font-weight:800;
  line-height:1.35;
}


/* 3.11.17 — menu de palco compacto: fonte + tom + tema na mesma linha */
.qec-performance-tools-row {
    display:flex;
    align-items:center;
    gap:7px;
    grid-template-columns:none;
}
.qec-performance-inline-group {
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-width:0;
}
.qec-performance-font-group { flex:0 0 auto; }
.qec-performance-key-inline { flex:1 1 auto; justify-content:center; }
.qec-performance-key-inline .qec-performance-key-label {
    margin-right:1px;
    color:#5b4761;
    font-size:.72rem;
    font-weight:900;
    white-space:nowrap;
}
.qec-performance-key-inline button,
.qec-performance-font-group button {
    min-width:38px;
    min-height:38px;
    padding:0 7px;
}
#qec-performance-key-value {
    min-width:34px;
    color:#32103b;
    font-size:.88rem;
    font-weight:950;
    text-align:center;
    white-space:nowrap;
}
.qec-performance-theme {
    flex:0 0 40px;
    width:40px;
    min-width:40px;
    padding:0!important;
}
.qec-performance-theme > span[aria-hidden="true"] { font-size:1.18rem; }
body.qec-player-dark .qec-performance-key-inline .qec-performance-key-label,
body.qec-player-dark #qec-performance-key-value { color:#efe4f2; }
body.qec-player-dark .qec-performance-key-inline button {
    border-color:rgba(255,255,255,.12);
    background:#251b28;
    color:#fff;
}
@media (max-width:520px) {
    .qec-performance-tools-row { gap:4px; }
    .qec-performance-inline-group { gap:3px; }
    .qec-performance-font-group button,
    .qec-performance-key-inline button { min-width:34px; padding:0 5px; }
    #qec-performance-font-value { min-width:43px; font-size:.72rem; }
    .qec-performance-key-inline .qec-performance-key-label { font-size:.66rem; }
    #qec-performance-key-value { min-width:28px; font-size:.82rem; }
    .qec-performance-divider { height:24px; }
    .qec-performance-theme { flex-basis:36px; width:36px; min-width:36px; }
}
@media (max-width:370px) {
    .qec-performance-key-inline .qec-performance-key-label { display:none; }
    .qec-performance-font-group button,
    .qec-performance-key-inline button { min-width:32px; }
    .qec-performance-theme { flex-basis:34px; width:34px; min-width:34px; }
}


/* 3.11.18 — rolagem leve, Page Up, linhas vazias e repertórios nomeados */
html.qec-auto-scrolling { scroll-behavior: auto !important; }
html.qec-auto-scrolling .qec-reader-toolbar,
html.qec-auto-scrolling .qec-performance-dock,
html.qec-auto-scrolling .qec-performance-return {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.qec-performance-dock { contain: layout style; will-change: transform, opacity; }
.qec-performance-return {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    z-index: 1810 !important;
}
.qec-performance-return span { animation-name: qec-performance-arrow-up !important; }
@keyframes qec-performance-arrow-up { 0%,100%{transform:translateY(3px)}50%{transform:translateY(-4px)} }
@media(max-width:520px){.qec-performance-return{bottom:calc(78px + env(safe-area-inset-bottom))!important}}
.qec-structured-blank-line {
    display: block !important;
    min-height: calc(1.05em * var(--qec-reader-scale, 1));
    height: calc(1.05em * var(--qec-reader-scale, 1));
}

.qec-repertoire-manager{display:grid;gap:8px;margin:13px 0 4px;padding:10px;border:1px solid rgba(109,67,215,.16);border-radius:13px;background:#faf7fc}
.qec-repertoire-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto 38px;gap:6px;align-items:center}
.qec-repertoire-toolbar select,.qec-repertoire-toolbar button,.qec-repertoire-meta input,.qec-repertoire-meta button{min-height:38px;border:1px solid rgba(20,6,23,.12);border-radius:9px;background:#fff;color:#17101a;font:inherit;font-weight:800}
.qec-repertoire-toolbar select{width:100%;padding:0 9px}.qec-repertoire-toolbar button{padding:0 10px;white-space:nowrap}.qec-repertoire-toolbar [data-qec-toggle-repertoire-order]{width:38px;padding:0;font-size:1.05rem}
.qec-repertoire-meta{display:grid;grid-template-columns:minmax(0,1fr) 135px auto;gap:6px}.qec-repertoire-meta input{min-width:0;padding:0 9px}.qec-repertoire-meta button{padding:0 11px;background:#32103b;color:#fff}
.qec-repertoire-order-list{display:grid;gap:5px;margin:2px 0 0;padding:7px 0 0;border-top:1px solid rgba(20,6,23,.08);list-style:none}
.qec-repertoire-order-item{display:grid;grid-template-columns:34px 28px minmax(0,1fr) 34px;gap:5px;align-items:center;padding:5px;border:1px solid rgba(20,6,23,.09);border-radius:9px;background:#fff}.qec-repertoire-order-item.is-active{border-color:rgba(212,175,55,.55);background:#fffaf0}
.qec-repertoire-drag,.qec-repertoire-delete,.qec-repertoire-order-name{min-height:34px;border:0;border-radius:7px;background:#f4eef6;color:#32103b;font-weight:900}.qec-repertoire-drag{cursor:grab;touch-action:none}.qec-repertoire-order-number{text-align:center;font-size:.72rem;font-weight:900;color:#755f7a}.qec-repertoire-order-name{text-align:left;padding:0 8px;background:transparent}.qec-repertoire-delete:disabled{opacity:.3}
.qec-setlist-item{grid-template-columns:30px 42px minmax(0,1fr) auto!important}.qec-setlist-drag{display:grid;place-items:center;width:30px;height:38px;padding:0;border:0;border-radius:8px;background:#f2ebf5;color:#5d4563;font-weight:900;cursor:grab;touch-action:none}.qec-setlist-item.is-dragging,.qec-repertoire-order-item.is-dragging{opacity:.55;box-shadow:0 10px 26px rgba(20,6,23,.18)}
@media(max-width:520px){.qec-repertoire-toolbar{grid-template-columns:minmax(0,1fr) auto 36px}.qec-repertoire-toolbar button{padding:0 8px;font-size:.74rem}.qec-repertoire-meta{grid-template-columns:minmax(0,1fr) 122px}.qec-repertoire-meta button{grid-column:1/-1}.qec-setlist-item{grid-template-columns:30px 36px minmax(0,1fr)!important}.qec-setlist-actions{grid-column:1/-1!important}}
body.qec-player-dark .qec-repertoire-manager{border-color:rgba(255,255,255,.1);background:#201823}body.qec-player-dark .qec-repertoire-toolbar select,body.qec-player-dark .qec-repertoire-toolbar button,body.qec-player-dark .qec-repertoire-meta input,body.qec-player-dark .qec-repertoire-order-item{border-color:rgba(255,255,255,.12);background:#251b28;color:#fff}body.qec-player-dark .qec-repertoire-order-item.is-active{border-color:rgba(212,175,55,.48);background:#30271a}body.qec-player-dark .qec-repertoire-order-name{color:#fff}

.qec-structured-empty-segment{display:block!important;min-height:1.05em!important;height:1.05em!important}


/* 3.11.19 — seta de retorno ao fluxo, espaços fiéis e contenção mobile */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
}
body.qec-modal-open { overflow-x: hidden !important; }
.qec-louvor-single,
.qec-louvores-page,
.qec-song-content,
#qec-song-content,
.qec-reader-shell,
.qec-cifra-simple,
.qec-repertoire-manager,
.qec-setlist-dialog {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* A seta central é a indicação de voltar ao fluxo para baixo e abrir os controles. */
.qec-performance-return {
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 44px !important;
}
.qec-performance-return span {
    animation: qec-performance-arrow-down 1.05s linear infinite !important;
    transform-origin: center;
}
@keyframes qec-performance-arrow-down {
    0%   { transform: translateY(-6px); opacity: .15; }
    25%  { opacity: 1; }
    72%  { transform: translateY(6px); opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}
@media (max-width:520px) {
    .qec-performance-return { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion:reduce) {
    .qec-performance-return span { animation: none !important; }
}

/* Linhas vazias criadas no editor continuam visíveis na publicação. */
.qec-structured-blank-line,
.qec-structured-empty-segment {
    display: block !important;
    min-height: 1.35em !important;
    height: 1.35em !important;
    line-height: 1.35 !important;
}

/* Inputs de repertório nunca podem alargar a página. */
.qec-repertoire-manager,
.qec-repertoire-toolbar,
.qec-repertoire-meta,
.qec-repertoire-order-list,
.qec-setlist-list { min-width:0 !important; max-width:100% !important; }
.qec-repertoire-toolbar > *,
.qec-repertoire-meta > *,
.qec-repertoire-meta input,
.qec-repertoire-meta input[type="date"],
.qec-repertoire-toolbar select {
    box-sizing:border-box !important;
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
}
@media (max-width:520px) {
    .qec-repertoire-meta {
        grid-template-columns:minmax(0,1fr) !important;
    }
    .qec-repertoire-meta input[type="date"],
    .qec-repertoire-meta button {
        grid-column:1 / -1 !important;
        width:100% !important;
    }
}

/* 3.11.20 — seta central, espaços livres e espaçamento de seções */
.qec-performance-return {
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    text-align:center !important;
}
.qec-performance-return span {
    width:100% !important;
    height:100% !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    text-align:center !important;
    position:relative !important;
    left:0 !important;
}

.qec-cifra-simple.qec-structured-renderer .qec-structured-heading {
    margin-top:var(--qec-reader-local-section-around-gap, var(--qec-reader-section-around-gap, 0px)) !important;
    margin-bottom:calc(
        var(--qec-reader-local-section-content-gap, var(--qec-reader-section-content-gap, 12px))
        + var(--qec-reader-local-section-around-gap, var(--qec-reader-section-around-gap, 0px))
    ) !important;
}
.qec-cifra-simple:not(.qec-structured-renderer) .qec-reader-line-section {
    margin-top:calc(24px + var(--qec-reader-local-section-around-gap, var(--qec-reader-section-around-gap, 0px))) !important;
}
.qec-cifra-simple:not(.qec-structured-renderer) .qec-reader-after-section {
    margin-top:calc(
        var(--qec-reader-local-section-content-gap, var(--qec-reader-section-content-gap, 12px))
        + var(--qec-reader-local-section-around-gap, var(--qec-reader-section-around-gap, 0px))
    ) !important;
}
.qec-structured-spacer-line {
    min-height:calc(var(--qec-spacer-units, 1) * 1.35em) !important;
    height:calc(var(--qec-spacer-units, 1) * 1.35em) !important;
}

/* =========================================================
   v3.11.22 — leitor, repertórios e correções dos usuários
   ========================================================= */
.qec-reader-page,
.qec-reader-container,
.qec-song-panel,
.qec-cifra-simple{
    max-width:100%!important;
    overflow-x:hidden!important;
    overscroll-behavior-x:none!important;
}
html,body.qec-louvor-single{overflow-x:hidden!important;overscroll-behavior-x:none!important}
.qec-song-panel{touch-action:pan-y pinch-zoom!important}

/* Escala global controlada pelo painel, sem aplicar zoom no layout inteiro. */
.qec-reader-page .qec-reader-title{font-size:calc(clamp(1.45rem,5vw,2.3rem) * var(--qec-ui-font-scale,1))!important}
.qec-reader-page .qec-reader-artist,
.qec-reader-page .qec-reader-meta,
.qec-reader-page .qec-reader-toolbar,
.qec-reader-page .qec-controls-sheet,
.qec-reader-page .qec-setlist-sheet,
.qec-reader-page .qec-reader-footer{font-size:calc(1rem * var(--qec-ui-font-scale,1))}
.qec-reader-page .qec-icon-button svg,
.qec-reader-page .qec-icon-button > span,
.qec-reader-page .qec-more-control,
.qec-reader-page .qec-performance-theme > span{
    transform:scale(var(--qec-ui-icon-scale,1));
    transform-origin:center;
}
.qec-reader-page .qec-toolbar-main-row button,
.qec-reader-page .qec-reader-content-mode button,
.qec-reader-page .qec-reader-chord-level button,
.qec-reader-page .qec-action-button,
.qec-reader-page .qec-setlist-sheet button,
.qec-reader-page .qec-controls-sheet button{font-size:calc(.88rem * var(--qec-ui-font-scale,1))}

/* Seta central: o glifo fica rigorosamente centralizado; só o glifo anima. */
.qec-performance-return{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    text-align:center!important;
}
.qec-performance-return > span{
    display:flex!important;
    width:100%!important;
    height:100%!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
    text-align:center!important;
}
.qec-performance-return.is-visible > span{animation:qec-arrow-down-inside 1.05s ease-in-out infinite!important}
@keyframes qec-arrow-down-inside{0%{transform:translateY(-4px);opacity:.45}50%{opacity:1}100%{transform:translateY(5px);opacity:.45}}

/* Bloqueia oscilações visuais durante controles rápidos em auto-scroll. */
.qec-performance-dock{will-change:transform,opacity;contain:layout paint style}
html.qec-auto-scrolling .qec-performance-dock.is-visible{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Repertório: data e botões nunca podem ampliar a página. */
.qec-repertoire-manager{max-width:100%!important;overflow:hidden!important}
.qec-repertoire-meta{
    grid-template-columns:minmax(0,1fr) minmax(112px,145px) 42px auto!important;
    min-width:0!important;
    max-width:100%!important;
    align-items:center!important;
}
.qec-repertoire-meta > *,
.qec-repertoire-meta input,
.qec-repertoire-meta input[type="date"]{
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
}
.qec-repertoire-meta input[type="date"]{
    -webkit-appearance:none!important;
    appearance:none!important;
    padding:0 6px!important;
    font-size:.78rem!important;
}
.qec-repertoire-reminder{padding:0!important;width:42px!important;min-width:42px!important;font-size:1rem!important}
@media(max-width:620px){
    .qec-repertoire-meta{grid-template-columns:minmax(0,1fr) 42px!important}
    .qec-repertoire-meta input[type="date"]{grid-column:1/-1!important;width:100%!important}
    .qec-repertoire-meta [data-qec-save-repertoire]{grid-column:1/2!important;width:100%!important}
    .qec-repertoire-meta .qec-repertoire-reminder{grid-column:2/3!important;grid-row:3!important}
}

/* Arraste visível de repertórios/músicas. */
.qec-setlist-item,.qec-repertoire-order-item{transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease!important}
.qec-setlist-item.is-dragging,.qec-repertoire-order-item.is-dragging{opacity:.32!important;transform:scale(.985)!important;border-style:dashed!important}
.qec-drag-ghost{
    position:fixed!important;
    z-index:2147483000!important;
    pointer-events:none!important;
    margin:0!important;
    opacity:.94!important;
    transform:scale(1.02)!important;
    box-shadow:0 18px 45px rgba(20,6,23,.28)!important;
    border-radius:12px!important;
}
body.qec-player-dark .qec-drag-ghost{box-shadow:0 18px 45px rgba(0,0,0,.55)!important}

/* Correção local e envio para revisão. */
.qec-correction-dialog{width:min(940px,calc(100vw - 20px));max-height:92dvh;padding:0;border:0;border-radius:18px;background:transparent}
.qec-correction-dialog::backdrop{background:rgba(15,4,17,.72);backdrop-filter:blur(3px)}
.qec-correction-sheet{background:#fff;color:#17101a;border-radius:18px;padding:18px;display:grid;gap:14px;max-height:92dvh;overflow:auto}
.qec-correction-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.qec-correction-header span{color:#9a7600;font-size:.72rem;font-weight:900;letter-spacing:.1em}
.qec-correction-header h2{margin:3px 0 4px;font-size:1.2rem}
.qec-correction-header p{margin:0;color:#705f73;font-size:.86rem}
.qec-correction-close{width:40px;height:40px;border:1px solid #e5dfe7;border-radius:10px;background:#fff;font-size:1.4rem}
#qec-correction-source{box-sizing:border-box;width:100%;min-height:52dvh;resize:vertical;border:1px solid #d9cedc;border-radius:12px;padding:14px;background:#fbf8fc;color:#181019;font:700 1rem/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;overflow:auto}
.qec-correction-status{min-height:1.2em;margin:0;color:#6d5470;font-weight:700;font-size:.84rem}
.qec-correction-actions{display:flex;gap:8px;flex-wrap:wrap}
.qec-correction-actions button{min-height:42px;border:1px solid #d8cedb;border-radius:10px;padding:0 14px;background:#fff;color:#261429;font-weight:850;cursor:pointer}
.qec-correction-actions button.is-primary{background:#d4af37;border-color:#d4af37;color:#17031c}
.qec-local-correction-active .qec-correction-button{outline:2px solid #d4af37!important;outline-offset:2px}

/* Tema escuro também cobre dialogs e controles em tempo real. */
body.qec-player-dark .qec-controls-sheet,
body.qec-player-dark .qec-setlist-sheet,
body.qec-player-dark .qec-correction-sheet{
    background:#171219!important;color:#f9f6fa!important;border-color:rgba(255,255,255,.1)!important
}
body.qec-player-dark .qec-controls-sheet-header,
body.qec-player-dark .qec-setlist-header,
body.qec-player-dark .qec-correction-header{background:#171219!important;color:#fff!important;border-color:rgba(255,255,255,.1)!important}
body.qec-player-dark .qec-controls-sheet h2,
body.qec-player-dark .qec-controls-sheet h3,
body.qec-player-dark .qec-setlist-sheet h2,
body.qec-player-dark .qec-correction-sheet h2{color:#fff!important}
body.qec-player-dark .qec-controls-sheet p,
body.qec-player-dark .qec-setlist-sheet p,
body.qec-player-dark .qec-correction-sheet p,
body.qec-player-dark .qec-control-section{color:#d9cedc!important}
body.qec-player-dark .qec-action-button,
body.qec-player-dark .qec-dialog-close,
body.qec-player-dark .qec-setlist-close,
body.qec-player-dark .qec-correction-close,
body.qec-player-dark .qec-controls-sheet button,
body.qec-player-dark .qec-setlist-sheet button,
body.qec-player-dark .qec-setlist-sheet select,
body.qec-player-dark .qec-setlist-sheet input,
body.qec-player-dark #qec-correction-source{
    background:#251b28!important;color:#fff!important;border-color:rgba(255,255,255,.14)!important
}
body.qec-player-dark .qec-performance-dock{background:#19131c!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important}
body.qec-player-dark .qec-performance-dock button,
body.qec-player-dark .qec-performance-dock output,
body.qec-player-dark .qec-performance-key-label{color:#fff!important}

@media(max-width:520px){
    .qec-correction-sheet{padding:13px}
    #qec-correction-source{min-height:56dvh;font-size:.9rem}
    .qec-correction-actions{display:grid;grid-template-columns:1fr 1fr}
    .qec-correction-actions .is-primary{grid-column:1/-1}
}
body.qec-louvor-single .qec-controls-sheet,
body.qec-louvor-single .qec-setlist-sheet,
body.qec-louvor-single .qec-correction-sheet{font-size:calc(1rem * var(--qec-ui-font-scale,1))}
body.qec-louvor-single .qec-controls-sheet button,
body.qec-louvor-single .qec-setlist-sheet button,
body.qec-louvor-single .qec-correction-sheet button{font-size:calc(.88rem * var(--qec-ui-font-scale,1))}
body.qec-louvor-single .qec-controls-sheet svg,
body.qec-louvor-single .qec-setlist-sheet svg{transform:scale(var(--qec-ui-icon-scale,1));transform-origin:center}

/* =========================================================
   v3.11.23 — ordenação ao vivo dos repertórios
   ========================================================= */
.qec-setlist-drag,
.qec-repertoire-drag{
    cursor:grab!important;
    touch-action:none!important;
    user-select:none!important;
    -webkit-user-select:none!important;
    -webkit-touch-callout:none!important;
}
.qec-setlist-drag:active,
.qec-repertoire-drag:active,
.qec-setlist-drag.is-grabbing,
.qec-repertoire-drag.is-grabbing{cursor:grabbing!important}
body.qec-reordering,
body.qec-reordering *{
    user-select:none!important;
    -webkit-user-select:none!important;
}
body.qec-reordering{overscroll-behavior:contain!important}
.qec-setlist-item.qec-drag-placeholder,
.qec-repertoire-order-item.qec-drag-placeholder{
    opacity:1!important;
    transform:none!important;
    border:2px dashed rgba(91,38,126,.28)!important;
    background:rgba(91,38,126,.045)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)!important;
}
.qec-setlist-item.qec-drag-placeholder > *,
.qec-repertoire-order-item.qec-drag-placeholder > *{visibility:hidden!important}
.qec-drag-ghost{
    opacity:.98!important;
    transform:scale(1.025) rotate(.15deg)!important;
    box-shadow:0 22px 54px rgba(20,6,23,.34)!important;
    border-style:solid!important;
    will-change:top,transform!important;
}
.qec-drag-ghost > *{visibility:visible!important}
body.qec-player-dark .qec-setlist-item.qec-drag-placeholder,
body.qec-player-dark .qec-repertoire-order-item.qec-drag-placeholder{
    border-color:rgba(212,175,55,.34)!important;
    background:rgba(212,175,55,.055)!important;
}


/* =========================================================
   v3.12.2 — BUSCA INTELIGENTE
   ========================================================= */
.qec-smart-search-suggestions{
  width:100%;max-width:760px;margin:8px auto 0;padding:10px;
  border:1px solid rgba(212,175,55,.20);border-radius:16px;
  background:rgba(20,6,23,.94);box-sizing:border-box;overflow:hidden;
}
.qec-smart-search-suggestions[hidden]{display:none!important}
.qec-smart-search-heading{margin:0 0 7px;color:rgba(255,255,255,.72);font-size:.76rem;font-weight:800}
.qec-smart-search-list{display:grid;gap:6px}
.qec-smart-search-item{
  width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 11px;border:1px solid rgba(255,255,255,.08);border-radius:12px;
  background:rgba(255,255,255,.045);color:#fff;text-align:left;cursor:pointer;box-sizing:border-box;
}
.qec-smart-search-item:hover,.qec-smart-search-item:focus-visible{background:rgba(212,175,55,.10);border-color:rgba(212,175,55,.32);outline:none}
.qec-smart-search-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.qec-smart-search-copy strong{font-size:.92rem;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.qec-smart-search-copy small{font-size:.72rem;color:rgba(255,255,255,.60);white-space:normal;overflow-wrap:anywhere}
.qec-smart-search-meta{flex:0 0 auto;display:flex;align-items:center;gap:7px}
.qec-smart-search-meta em{font-style:normal;font-size:.58rem;font-weight:900;letter-spacing:.04em;color:#d4af37}
.qec-smart-search-meta b{font-size:.68rem;color:rgba(255,255,255,.55)}
@media(max-width:520px){
 .qec-smart-search-suggestions{padding:8px;border-radius:13px}
 .qec-smart-search-item{padding:9px;gap:8px}
 .qec-smart-search-meta em{display:none}
 .qec-smart-search-meta b{font-size:.64rem}
}


/* =========================================================
   v3.12.3 — BUSCA PREDITIVA + MOBILE ESTÁVEL
   ========================================================= */
html.qec-louvores-lock-x,
body.qec-louvores-lock-x{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overscroll-behavior-x:none!important;
}
body.qec-louvores-lock-x .qec-louvores-embed,
body.qec-louvores-lock-x .qec-louvores-tools{
  max-width:100%!important;
  min-width:0!important;
  overflow-x:clip!important;
  box-sizing:border-box!important;
  touch-action:pan-y pinch-zoom;
}
.qec-search-box{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 44px;
  gap:4px!important;
  padding:0 5px 0 14px!important;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
}
.qec-search-box input{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  -webkit-appearance:none;
  appearance:none;
}
.qec-search-box input::-webkit-search-cancel-button{margin-right:2px}
.qec-search-submit{
  align-self:center;
  justify-self:stretch;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  margin:0;
  padding:0;
  border:0;
  border-radius:11px;
  background:#d4af37;
  color:#140617;
  cursor:pointer;
  font-size:1rem;
  line-height:1;
  box-shadow:none;
  touch-action:manipulation;
}
.qec-search-submit:hover,.qec-search-submit:focus-visible{filter:brightness(1.04);outline:2px solid rgba(91,38,126,.25);outline-offset:1px}
.qec-search-submit.is-loading{pointer-events:none;opacity:.72}
.qec-search-submit.is-loading span{animation:qec-search-loupe .75s ease-in-out infinite alternate}
@keyframes qec-search-loupe{from{transform:scale(.92)}to{transform:scale(1.08)}}
@media(max-width:760px){
  html.qec-louvores-lock-x,body.qec-louvores-lock-x{position:relative!important}
  .qec-louvores-search,
  .qec-missing-search-form input,
  .qec-song-request-form input,
  .qec-song-request-form textarea{font-size:16px!important}
  .qec-search-box{grid-template-columns:minmax(0,1fr) 42px!important}
  .qec-search-submit{width:38px;height:38px;border-radius:10px}
}

/* v3.12.8: a porcentagem de confiança é interna e não aparece para o visitante. */
.qec-smart-search-meta{justify-content:flex-end}

/* Cifra provisória responsiva 3.12.17
 * O renderer simples também precisa quebrar linhas no celular. break-spaces mantém
 * as colunas monoespaçadas enquanto permite quebra quando a largura acaba. */
.qec-cifra-simple:not(.qec-structured-renderer){
    overflow-x:hidden!important;
    max-width:100%!important;
    white-space:pre-wrap!important;
}
.qec-cifra-simple:not(.qec-structured-renderer) .qec-reader-line-chord,
.qec-cifra-simple:not(.qec-structured-renderer) .qec-reader-line-lyric{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    white-space:break-spaces!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.qec-cifra-simple:not(.qec-structured-renderer) .qec-reader-line-section{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}


/* 3.12.18 — alinhamento fiel das provisórias externas.
 * Cifra e letra formam um único par e quebram sempre na MESMA coluna. */
.qec-cifra-simple:not(.qec-structured-renderer) .qec-source-pair-line{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    white-space:normal!important;
    box-sizing:border-box!important;
}
.qec-source-pair,
.qec-source-pair-segment{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}
.qec-source-pair-segment + .qec-source-pair-segment{
    margin-top:4px;
}
.qec-source-pair-chords,
.qec-source-pair-lyrics{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0;
    padding:0;
    overflow:hidden;
    font-family:Consolas,Monaco,"Courier New",monospace;
    font-size:inherit;
    font-variant-ligatures:none;
    letter-spacing:0;
    white-space:pre!important;
    box-sizing:border-box;
}
.qec-source-pair-chords{
    min-height:1.12em;
    line-height:1.12;
    margin-bottom:var(--qec-reader-local-chord-lyrics-gap,var(--qec-reader-chord-lyrics-gap,0px));
}
.qec-source-pair-lyrics{
    min-height:1.5em;
    line-height:1.5;
}
@media(max-width:760px){
    .qec-source-pair-segment + .qec-source-pair-segment{margin-top:5px}
}
