/* BBR Artikel-Vorlesen – Player
   Bewusst KEINE font-family: erbt die Schrift aus dem Theme.
   Akzentfarbe via --bbr-tts-accent (Default #ad0018). */

.bbr-tts {
    --acc: var(--bbr-tts-accent, #ad0018);
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-left: 4px solid var(--acc);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.bbr-tts__play {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, opacity .12s ease;
}
.bbr-tts__play:hover    { transform: scale(1.06); }
.bbr-tts__play:active   { transform: scale(.96); }
.bbr-tts__play:disabled { opacity: .55; cursor: default; }

/* Play/Pause-Icons rein per CSS */
.bbr-tts__icon { display: block; }
.bbr-tts__icon--play {
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}
.bbr-tts__icon--pause {
    display: none;
    width: 14px; height: 16px;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    box-sizing: border-box;
}
.bbr-tts.is-playing .bbr-tts__icon--play  { display: none; }
.bbr-tts.is-playing .bbr-tts__icon--pause { display: block; }

.bbr-tts__body {
    flex: 1 1 auto;
    min-width: 0;
}
.bbr-tts__label {
    font-size: .9em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.2;
}
.bbr-tts__bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .08);
    overflow: hidden;
}
.bbr-tts__progress {
    height: 100%;
    width: 0;
    background: var(--acc);
    border-radius: 6px;
    transition: width .15s linear;
}

.bbr-tts__speed {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 7px 10px;
    border: 1px solid var(--acc) !important;
    border-radius: 8px;
    /* Akzentfarbe als Hintergrund, weißer Text – immer sichtbar, egal welches Theme-Button-CSS greift. */
    background: var(--acc) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: .9em;
    line-height: 1.2;
    cursor: pointer;
    text-shadow: none;
    transition: opacity .12s ease;
}
.bbr-tts__speed:hover { opacity: .85; }

.bbr-tts__status {
    flex: 0 0 auto;
    font-size: .8em;
    color: #777;
    min-width: 0;
}
.bbr-tts.is-loading .bbr-tts__status::after { content: "Wird vorbereitet…"; }
.bbr-tts.is-error   .bbr-tts__status        { color: var(--acc); }

@media (max-width: 480px) {
    .bbr-tts { gap: 10px; padding: 10px 12px; }
    .bbr-tts__status { display: none; }
}
