.enhanced-video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: transform .3s,box-shadow .3s
}

.enhanced-video-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15)
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
    cursor: pointer
}

.video-container video,.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity .3s
}

.center-play-btn,.loading-spinner {
    top: 50%;
    transform: translate(-50%,-50%)
}

.video-poster {
    z-index: 2;
    opacity: 1
}

.video-container video {
    z-index: 1;
    opacity: 0
}

.video-container.playing .center-play-btn,.video-container.playing .video-poster {
    opacity: 0;
    pointer-events: none
}

.enhanced-video-wrapper.controls-visible .video-controls-overlay,.enhanced-video-wrapper:hover .video-controls-overlay,.video-container.playing video {
    opacity: 1
}

.center-play-btn {
    position: absolute;
    left: 50%;
    width: 70px;
    height: 70px;
    background: rgba(199,21,133,.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    z-index: 5;
    border: none;
    color: #fff;
    font-size: 24px
}

.video-controls-overlay,.video-logo {
    position: absolute;
    align-items: center;
    display: flex
}

.center-play-btn:hover {
    background: #c71585;
    transform: translate(-50%,-50%) scale(1.1)
}

.video-logo {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.8);
    border-radius: 50%;
    justify-content: center;
    z-index: 6;
    font-weight: 700;
    color: #c71585;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.2)
}

.video-controls-overlay {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top,rgba(0,0,0,.7),transparent);
    opacity: 0;
    transition: opacity .3s;
    z-index: 10
}

.enhanced-control-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: .2s
}

.enhanced-control-btn:hover {
    background: rgba(255,255,255,.3);
    transform: scale(1.1)
}

.enhanced-progress-container {
    flex-grow: 1;
    height: 6px;
    position: relative;
    margin: 0 15px;
    cursor: pointer;
    background: rgba(255,255,255,.3);
    border-radius: 3px
}

.enhanced-progress-bar {
    height: 100%;
    width: 0%;
    background: #c71585;
    border-radius: 3px;
    transition: width .2s
}

.enhanced-time-display {
    font-size: 13px;
    font-family: monospace;
    margin: 0 10px;
    min-width: 90px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,.5)
}

.enhanced-volume-container {
    display: flex;
    align-items: center;
    margin: 0 10px
}

.enhanced-volume-slider {
    width: 60px;
    margin-left: 8px;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
    outline: 0
}

.enhanced-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c71585;
    cursor: pointer;
    transition: .2s
}

.enhanced-volume-slider::-webkit-slider-thumb:hover {
    background: #a50c6e
}

.enhanced-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c71585;
    cursor: pointer;
    border: none
}

.enhanced-fullscreen-btn {
    margin-left: auto
}

@media (max-width: 768px) {
    .video-controls-overlay {
        flex-wrap:wrap;
        padding: 10px
    }

    .enhanced-progress-container {
        order: 1;
        width: 100%;
        margin: 10px 0
    }

    .enhanced-control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px
    }

    .center-play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px
    }

    .video-logo {
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: 10px;
        right: 10px
    }

    .enhanced-volume-slider {
        width: 40px
    }

    .enhanced-time-display {
        font-size: 12px;
        min-width: 80px
    }
}

.enhanced-video-wrapper:fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: #000;
    display: flex;
    flex-direction: column
}

.enhanced-video-wrapper:fullscreen .video-container {
    flex-grow: 1;
    padding-top: 0;
    height: 100%
}

.enhanced-video-wrapper:fullscreen .center-play-btn {
    opacity: 1;
    pointer-events: auto
}

.enhanced-video-wrapper:fullscreen .video-container.playing .center-play-btn {
    opacity: 0;
    pointer-events: none
}

.enhanced-video-wrapper:fullscreen .video-container.paused .center-play-btn {
    opacity: 1;
    pointer-events: auto
}

.enhanced-video-wrapper:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: #000;
    display: flex;
    flex-direction: column
}

.enhanced-video-wrapper:-moz-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: #000;
    display: flex;
    flex-direction: column
}

.enhanced-video-wrapper:-ms-fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: #000;
    display: flex;
    flex-direction: column
}

.enhanced-video-wrapper video::-webkit-media-controls {
    display: none!important
}

.loading-spinner {
    display: none;
    position: absolute;
    left: 50%;
    width: 50px;
    height: 50px;
    z-index: 3
}


@keyframes loading-spinner {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1;
    transition: opacity .3s
}

.video-container.playing .video-frame {
    opacity: 0;
    pointer-events: none
}
