:host {
    --vp-bg-color: #fff;
    --vp-text-color: #00266b;
    --vp-control-color: rgba(255, 255, 255, 0.25);
    --vp-overlay-color: rgba(0, 0, 0, 0.7);
    --vp-transition: 0.3s ease;
    --vp-padding: 24px 32px;
    --vp-gap: 24px;
}

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.pause-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity var(--vp-transition);
    pointer-events: none;
}

.video-player:not(.playing) .pause-overlay {
    opacity: 1;
}

.video-player__container {
    position: absolute;
    inset: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.video-player__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-size: cover;
    background-position: center;
}

.video-player__controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity var(--vp-transition);
    z-index: 10;
}

.video-player__controls--hidden {
    opacity: 0;
    pointer-events: none;
}

.video-player__button {
    padding: 8px;
    border-radius: 50%;
    background-color: var(--vp-bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.video-player__button--fullscreen {
    padding: 4px;
    background-color: transparent;
    border-radius: 0;
}

.video-player__button--fullscreen .video-player__icon {
    width: 20px;
    height: 20px;
}

.video-player__button:hover {
    opacity: 0.8;
}

.video-player__button:active {
    opacity: 0.7;
}

.video-player__icon {
    width: 32px;
    height: 32px;
    color: var(--vp-text-color);
}

.video-player__icon--white {
    color: white;
    fill: white;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--vp-padding);
    display: flex;
    align-items: center;
    gap: var(--vp-gap);
    opacity: 0;
    transition: opacity var(--vp-transition);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--vp-overlay-color) 100%);
}

.video-player:hover .controls {
    opacity: 1;
}

.progress {
    flex: 1;
    height: 8px;
    background: var(--vp-control-color);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.progress-bar {
    height: 100%;
    background: var(--vp-bg-color);
    border-radius: 8px;
    width: 0%;
}

.volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

svg {
    width: 24px;
    height: 24px;
}

.volume-slider {
    flex: 1;
    height: 8px;
    background: linear-gradient(
        to right,
        var(--vp-bg-color) calc(var(--value) * 100%),
        var(--vp-control-color) calc(var(--value) * 100%)
    );
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    background: var(--vp-bg-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    background: var(--vp-bg-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-track {
    border: none;
    background: transparent;
}

::-webkit-slider-runnable-track {
    border: none;
    background: transparent;
}

@media (max-width: 599px) {
    .volume {
        display: none;
    }

    .controls {
        padding: 8px;
        gap: 8px;
    }

    .progress {
        height: 6px;
    }
}

