/* Player fixo da Rádio Maranatha */

.c-webradio {
    position: fixed;
    z-index: 90;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(32, 32, 34, 0.94);
    color: rgb(var(--rgb-white));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    font-family: var(--ff, "DM Sans", system-ui, sans-serif);
}

.c-webradio audio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.c-webradio__play,
.c-webradio__mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
}

.c-webradio__play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgb(var(--rgb-yellow));
    color: rgb(var(--rgb-charcoal-1));
    transition: transform 0.2s var(--out-cubic, ease), background-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .c-webradio__play:hover {
        transform: scale(1.04);
        background: rgb(var(--rgb-light-yellow));
    }
}

.c-webradio__play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.c-webradio__icon-pause,
.c-webradio.is-playing .c-webradio__icon-play {
    display: none;
}

.c-webradio.is-playing .c-webradio__icon-pause {
    display: block;
}

.c-webradio.is-connecting .c-webradio__play {
    animation: webradio-blink 1s ease-in-out infinite;
}

.c-webradio__meta {
    min-width: 0;
    flex: 1;
}

.c-webradio__name {
    display: block;
    color: rgb(var(--rgb-white));
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-webradio__name:hover {
    color: rgb(var(--rgb-yellow));
}

.c-webradio__status {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-webradio.is-playing .c-webradio__status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ff5a5a;
    box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55);
    animation: webradio-pulse 1.6s ease-out infinite;
    vertical-align: 1px;
}

.c-webradio__volume {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.c-webradio__mute {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
}

.c-webradio__mute:hover {
    color: rgb(var(--rgb-white));
    background: rgba(255, 255, 255, 0.08);
}

.c-webradio__mute svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.c-webradio__icon-muted,
.c-webradio.is-muted .c-webradio__icon-sound {
    display: none;
}

.c-webradio.is-muted .c-webradio__icon-muted {
    display: block;
}

.c-webradio__slider input {
    width: 78px;
    height: 22px;
    margin: 0;
    accent-color: rgb(var(--rgb-yellow));
    cursor: pointer;
}

.c-webradio__play:focus-visible,
.c-webradio__mute:focus-visible,
.c-webradio__name:focus-visible,
.c-webradio__slider input:focus-visible {
    outline: 2px solid rgb(var(--rgb-yellow));
    outline-offset: 2px;
}

.c-webradio__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main.is-navigating {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s linear;
}

@keyframes webradio-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(255, 90, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}

@keyframes webradio-blink {
    50% { opacity: 0.5; }
}

@media (max-width: 720px) {
    .c-webradio {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        margin-left: 0;
        min-height: 64px;
        gap: 8px;
        padding: 8px 12px 8px 8px;
    }

    .c-webradio__play {
        width: 48px;
        height: 48px;
    }

    .c-webradio__mute {
        width: 44px;
        height: 44px;
    }

    .c-webradio__name {
        font-size: 0.95rem;
    }

    .c-webradio__slider input {
        width: 88px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .c-webradio__name {
        font-size: 0.82rem;
    }

    .c-webradio__slider input {
        width: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-webradio.is-playing .c-webradio__status::before,
    .c-webradio.is-connecting .c-webradio__play {
        animation: none;
    }
}

@media print {
    .c-webradio {
        display: none !important;
    }
}
