.dddtech-leesvoor {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 36px);
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    color: #171717;
    font-family: inherit;
    line-height: 1.2;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.dddtech-leesvoor button {
    font: inherit;
}

.dddtech-leesvoor__main,
.dddtech-leesvoor__stop {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
}

.dddtech-leesvoor__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 150px;
    padding: 0 18px;
    background: #1f2937;
    color: #fff;
}

.dddtech-leesvoor__main:hover,
.dddtech-leesvoor__main:focus-visible {
    background: #111827;
}

.dddtech-leesvoor__speaker {
    font-size: 17px;
}

.dddtech-leesvoor__stop {
    padding: 0 14px;
    background: #eceff2;
    color: #171717;
}

.dddtech-leesvoor__stop:hover,
.dddtech-leesvoor__stop:focus-visible {
    background: #dfe3e7;
}

.dddtech-leesvoor__main:focus-visible,
.dddtech-leesvoor__stop:focus-visible {
    outline: 3px solid rgba(31, 41, 55, 0.28);
    outline-offset: 2px;
}

.dddtech-leesvoor__status {
    max-width: 230px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    white-space: normal;
}

.dddtech-leesvoor__status:empty {
    display: none;
}

.dddtech-leesvoor__status.is-error {
    color: #991b1b;
}

.dddtech-leesvoor.is-paused .dddtech-leesvoor__main {
    background: #374151;
}

.dddtech-leesvoor.is-unsupported .dddtech-leesvoor__main {
    opacity: 0.55;
    cursor: not-allowed;
}

.dddtech-leesvoor-startmarker {
    position: absolute;
    z-index: 999998;
    pointer-events: none;
    font-size: 18px;
    line-height: 1;
    color: #111827;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95));
}

@media (max-width: 600px) {
    .dddtech-leesvoor {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        justify-content: center;
        max-width: none;
        border-radius: 14px;
    }

    .dddtech-leesvoor.has-status {
        flex-wrap: wrap;
    }

    .dddtech-leesvoor__main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dddtech-leesvoor__status {
        flex: 0 0 100%;
        max-width: none;
        padding: 0 6px 2px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dddtech-leesvoor * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
