/* Biblioteche — player delle meditazioni, linguette [bge_tab], dettagli comuni */

/* ══ Player Bagliori nel Buio ══ */
.bge-mp {
    display: flex; gap: 22px; align-items: center;
    background: #0a0a0a; color: #f3efe6;
    border: 1px solid #2a2a2a; border-radius: 4px;
    padding: 22px 26px; margin: 8px 0 28px;
    font-family: var(--bge-font, 'Cormorant Garamond', Georgia, serif);
    position: relative; overflow: hidden;
}
.bge-mp::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212,175,95,.16) 0%, rgba(212,175,95,0) 70%);
    pointer-events: none;
}
.bge-mp-cover {
    flex: 0 0 112px; height: 112px; border-radius: 50%;
    border: 1px solid rgba(212,175,95,.55);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; color: #d4af5f; background: #111;
}
.bge-mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.bge-mp-cover svg { color: #d4af5f; }
.bge-mp-luna { font-size: 46px; line-height: 1; }
.bge-mp-onda { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: none; gap: 3px; align-items: flex-end; height: 16px; }
.bge-mp-onda i { display: block; width: 3px; background: #d4af5f; border-radius: 2px; height: 4px; animation: bge-mp-onda 1s ease-in-out infinite; }
.bge-mp-onda i:nth-child(2) { animation-delay: .15s } .bge-mp-onda i:nth-child(3) { animation-delay: .3s }
.bge-mp-onda i:nth-child(4) { animation-delay: .45s } .bge-mp-onda i:nth-child(5) { animation-delay: .6s }
.bge-mp.playing .bge-mp-onda { display: flex; }
.bge-mp.playing .bge-mp-cover { box-shadow: 0 0 0 6px rgba(212,175,95,.08), 0 0 28px rgba(212,175,95,.25); }
@keyframes bge-mp-onda { 0%,100% { height: 4px } 50% { height: 16px } }
@media (prefers-reduced-motion: reduce) { .bge-mp-onda i { animation: none; height: 10px; } }

.bge-mp-main { flex: 1; min-width: 0; position: relative; }
.bge-mp-titolo { font-size: 1.45rem; margin: 0 0 2px; letter-spacing: .02em; color: #fff; line-height: 1.2; }
.bge-mp-sott { margin: 0 0 10px; font-style: italic; color: #bfb7a6; font-size: 1.02rem; }
.bge-mp-ctrl { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.bge-mp-play {
    width: 54px; height: 54px; border-radius: 50%; border: 1px solid #d4af5f;
    background: #d4af5f; color: #0a0a0a; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease;
}
.bge-mp-play:hover, .bge-mp-play:focus-visible { transform: scale(1.06); background: #e6c57a; outline: none; }
.bge-mp-ico { margin-left: 3px; }
.bge-mp.playing .bge-mp-ico { margin-left: 0; letter-spacing: 2px; font-size: 14px; }
.bge-mp-b {
    background: transparent; border: 1px solid #3a3a3a; color: #e8e2d4; cursor: pointer;
    border-radius: 999px; padding: 6px 12px; font-size: 15px; line-height: 1; font-family: inherit;
    display: inline-flex; align-items: baseline; gap: 2px;
}
.bge-mp-b small { font-size: 10px; }
.bge-mp-b:hover, .bge-mp-b:focus-visible { border-color: #d4af5f; color: #d4af5f; outline: none; }
.bge-mp-vel { min-width: 52px; justify-content: center; margin-left: auto; }
.bge-mp-track { position: relative; height: 6px; background: #2b2b2b; border-radius: 3px; cursor: pointer; }
.bge-mp-track:focus-visible { outline: 1px solid #d4af5f; outline-offset: 4px; }
.bge-mp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #8a6d12, #d4af5f); border-radius: 3px; }
.bge-mp-dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #f3efe6; box-shadow: 0 0 0 3px rgba(212,175,95,.35); }
.bge-mp-tempi { display: flex; justify-content: space-between; font-size: .9rem; color: #a59d8c; margin-top: 6px; font-variant-numeric: tabular-nums; }
.bge-mp-nota { margin: 10px 0 0; font-size: .88rem; color: #8f887a; font-style: italic; }
.bge-mp.is-error .bge-mp-nota::after { content: " — L'audio non si carica: controlla il link."; color: #e08a6f; font-style: normal; }
@media (max-width: 640px) {
    .bge-mp { flex-direction: column; text-align: center; padding: 20px 16px; }
    .bge-mp-ctrl { justify-content: center; flex-wrap: wrap; }
    .bge-mp-vel { margin-left: 0; }
}

/* card: segno di ascolto */
.bge-bib-play {
    position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(10,10,10,.85); color: #d4af5f; font-size: 12px;
    display: flex; align-items: center; justify-content: center; padding-left: 2px;
}
.bge-bib-card .bge-card-visual, .bge-tab .bge-card-visual, .bge-int-biblioteche .bge-card-visual { position: relative; }

/* testo lungo (trascrizione) */
.bge-bib-det { border: 1px solid var(--bge-gray-200, #e8e8e8); padding: 0; }
.bge-bib-det > summary { cursor: pointer; padding: 14px 18px; font-size: 1.05rem; letter-spacing: .03em; list-style: none; }
.bge-bib-det > summary::before { content: "＋ "; }
.bge-bib-det[open] > summary::before { content: "－ "; }
.bge-bib-det > .bge-section-content { padding: 0 18px 16px; }

/* ══ Linguette [bge_tab] ══ */
.bge-tab { margin: 24px 0; }
.bge-tab-titolo { font-family: var(--bge-font, Georgia, serif); font-weight: 500; letter-spacing: .03em; margin: 0 0 14px; }
.bge-tab-bar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--bge-gray-200, #e8e8e8); margin-bottom: 18px; }
.bge-tab-btn {
    background: transparent; border: 1px solid transparent; border-bottom: 0; cursor: pointer;
    font-family: var(--bge-font, Georgia, serif); font-size: 1.05rem; letter-spacing: .05em;
    padding: 10px 18px; color: var(--bge-gray-600, #555); margin-bottom: -1px; border-radius: 2px 2px 0 0;
}
.bge-tab-btn:hover { color: var(--bge-black, #0a0a0a); }
.bge-tab-btn.is-active { color: var(--bge-black, #0a0a0a); border-color: var(--bge-gray-200, #e8e8e8); background: #fff; border-top: 2px solid var(--bge-black, #0a0a0a); }
.bge-tab-btn:focus-visible { outline: 1px dashed currentColor; outline-offset: -4px; }
.bge-tab-panel[hidden] { display: none; }
.bge-tab-tutte { text-align: right; margin: 14px 0 0; }
.bge-tab-tutte a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; letter-spacing: .03em; }
@media (max-width: 640px) {
    .bge-tab-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bge-tab-btn { white-space: nowrap; padding: 9px 14px; }
}

/* ══ Incensi, oli e resine: ingredienti delle formule ══ */
.bge-aromi-ingr { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bge-gray-200, #e8e8e8); }
.bge-aromi-ingr li { padding: 10px 4px; border-bottom: 1px solid var(--bge-gray-200, #e8e8e8); font-size: 1.08rem; }
.bge-aromi-ingr a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }
.bge-aromi-q { display: inline-block; min-width: 92px; font-variant-numeric: tabular-nums; color: var(--bge-gray-600, #555); letter-spacing: .03em; }
.bge-aromi-nota { color: var(--bge-gray-600, #555); }
.bge-aromi-pianta a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }

/* ══ Dal testo antico: da non riprodurre (in rosso) ══ */
.bge-testo-rosso { border: 1px solid #c62828; border-left: 4px solid #c62828; background: #fdeeee; color: #8e1b1b; padding: 16px 20px; }
.bge-testo-rosso p { color: #8e1b1b; }
.bge-testo-rosso .bge-ct-nota { color: #c62828; font-weight: 600; margin-bottom: 0; }
#bge-bsec-rosso .bge-sec-icon, #bge-bsec-rosso h2 { color: #c62828; }
