.service-autoplay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 12px;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 10px;
}

.service-autoplay button {
    padding: 9px 14px;
    border: 1px solid rgba(135, 206, 235, 0.5);
    border-radius: 6px;
    background: rgba(135, 206, 235, 0.18);
    color: #e8f4f8;
    cursor: pointer;
    font: 600 14px 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

.service-autoplay button:hover,
.service-autoplay button:focus-visible {
    background: rgba(135, 206, 235, 0.32);
    border-color: #87ceeb;
}

.service-autoplay .autoplay-toggle {
    background: rgba(135, 206, 235, 0.3);
}

.service-autoplay button:disabled {
    cursor: default;
    opacity: 0.5;
}

.autoplay-description {
    flex-basis: 100%;
    margin: 0;
    color: #d1e9f1;
    font-size: 0.92rem;
    text-align: center;
}

.autoplay-recovery {
    border-color: rgba(255, 211, 105, 0.7) !important;
    background: rgba(255, 211, 105, 0.16) !important;
}

.service-autoplay.is-floating {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    z-index: 1200;
    width: min(760px, calc(100% - 16px));
    margin: 0;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30, 61, 82, 0.98), rgba(15, 31, 46, 0.98));
    border-color: rgba(135, 206, 235, 0.65);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(15px);
}

.autoplay-status {
    flex-basis: 100%;
    color: #b0e0f0;
    min-height: 1.5em;
    text-align: center;
    overflow-wrap: anywhere;
}

.service-autoplay.is-floating .autoplay-description {
    display: none;
}

.prayer.autoplay-active {
    border-color: rgba(135, 206, 235, 0.75);
    background: rgba(135, 206, 235, 0.13);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.12), 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    .service-autoplay {
        margin-bottom: 22px;
        padding: 10px 8px;
    }

    .service-autoplay button {
        padding: 9px 11px;
    }

    .service-autoplay.is-floating {
        top: max(4px, env(safe-area-inset-top));
        width: calc(100% - 8px);
        padding: 7px 5px;
        gap: 5px;
    }

    .service-autoplay.is-floating button {
        padding: 8px 9px;
        font-size: 13px;
    }

    .service-autoplay.is-floating .autoplay-status {
        font-size: 13px;
        min-height: 1.35em;
    }
}
