.sound-control {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sound-control.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.sound-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 200, 220, 0.25) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 182, 193, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sound-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 200, 220, 0.35) 100%);
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(255, 182, 193, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sound-btn:active {
    transform: scale(0.95);
}

.sound-icon,
.sound-icon-muted {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sound-icon-muted {
    display: none;
}

.sound-btn.muted .sound-icon {
    display: none;
}

.sound-btn.muted .sound-icon-muted {
    display: block;
}

.volume-slider-container {
    position: relative;
    width: 0;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 200, 220, 0.2) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    opacity: 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    padding: 0;
}

.volume-slider-container.open {
    width: 110px;
    opacity: 1;
    padding: 0 16px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    margin: 0;
    outline: none;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 200, 220, 0.5);
    position: relative;
    z-index: 3;
}

.volume-slider::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 200, 220, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.volume-track {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 182, 193, 0.8), rgba(255, 255, 255, 0.9));
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 6px rgba(255, 182, 193, 0.4);
    max-width: calc(100% - 32px);
}
