/*
 * NoSpace geluidsknop voor kijkers.
 * Exact twee zichtbare standen:
 * - Geluid aan
 * - Geluid uit
 */

#nospace-viewer-sound-toggle {
    flex: 0 0 auto;

    min-width: 150px;
    min-height: 44px;
    padding: 10px 18px;

    border: 1px solid rgba(86, 166, 220, 0.58);
    border-radius: 12px;

    color: #ffffff;
    background: rgba(15, 43, 69, 0.98);

    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    opacity: 1;
    text-shadow: none;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);

    cursor: pointer;
    white-space: nowrap;
}

#nospace-viewer-sound-toggle[hidden] {
    display: none !important;
}

#nospace-viewer-sound-toggle:hover {
    background: rgba(18, 73, 110, 0.98);
}

#nospace-viewer-sound-toggle.nospace-sound-enabled {
    border-color: rgba(61, 211, 137, 0.68);
    background: rgba(13, 103, 68, 0.98);
}

.nospace-controls-with-sound {
    align-items: center !important;
    gap: 12px !important;
}

.nospace-controls-with-sound
#nospace-viewer-sound-toggle {
    margin-left: auto;
}

@media (max-width: 850px) {
    .nospace-controls-with-sound {
        flex-wrap: wrap !important;
    }

    .nospace-controls-with-sound
    #nospace-viewer-sound-toggle {
        order: 2;
        margin-left: 0;
    }

    #nospace-viewer-sound-toggle {
        min-width: 132px;
        min-height: 40px;
        padding: 9px 13px;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .nospace-controls-with-sound
    #nospace-viewer-sound-toggle {
        width: 100%;
    }
}

:fullscreen #nospace-viewer-sound-toggle,
:-webkit-full-screen #nospace-viewer-sound-toggle {
    position: fixed;
    z-index: 2147483646;

    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));

    width: auto;
    min-width: 128px;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;

    font-size: 12px;
}

