.compare-player {
    padding: 0px;
    margin: 20px 0px;
    border-radius: 0px;
    font-family: TildaSans;
    font-size: 14px;
    font-weight: bold;
    color: #f8921f;
}

/* === Контролы === */
.compare-controls {
    display: flex;
    align-items: center;
    gap: 30%;
    margin-bottom: 14px;
}

/* ======== TOGGLE SWITCH ======== */

.compare-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    user-select: none;
}

.compare-toggle-switch {
    appearance: none;
    width: 46px;
    height: 24px;
    background: #2e5e6c;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
}

.compare-toggle-switch::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    transition: transform 0.25s ease;
}

.compare-toggle-switch:checked {
    background: #f8921f;
}

.compare-toggle-switch:checked::before {
    transform: translateX(22px);
}

/* ======== VOLUME DROPDOWN ======== */

.compare-volume-control {
    position: relative;
}

.compare-volume-slider {
    display: none;
    width: 100px;
    position: absolute;
    top: 30px;
    left: -20px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.compare-volume-control:hover .compare-volume-slider {
    display: block;
}

.compare-progress {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 6px;

    border-radius: 3px;
    background: linear-gradient(
        to right,
        #f8921f var(--progress, 0%),
        #2e5e6c var(--progress, 0%)
    );

    outline: none;
    cursor: pointer;
}

/* Chrome / Edge / Safari */
.compare-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    width: 14px;
    height: 14px;

    background: #2e5e6c;
    border: 2px solid #f8921f;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

/* Firefox */
.compare-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;

    background: #2e5e6c;
    border: 2px solid #f8921f;
    border-radius: 50%;
    cursor: pointer;
}

.compare-play {
    width: 34px;
    height: 34px;
    border: none;
    background: #2e5e6c;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-play svg {
    width: 20px;
    height: 20px;
    fill: #f8921f;
    display: none;
}

/* показываем PLAY если data-state="play" */
.compare-play[data-state="play"] .icon-play {
    display: block;
}

/* показываем PAUSE если data-state="pause" */
.compare-play[data-state="pause"] .icon-pause {
    display: block;
}