/* =========================================================
   SehVarta — Phase 5: Custom video player overlay
   ========================================================= */

.sv-video-player {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: var(--r-md, 18px);
    cursor: pointer;
}
.sv-video-player video {
    width: 100%;
    height: 100%;
    display: block;
}

.sv-video-overlay {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.sv-video-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sv-video-player.sv-is-paused .sv-video-center-btn {
    display: flex;
}
.sv-video-center-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.sv-video-buffering {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.sv-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sv-spin .7s linear infinite;
}
@keyframes sv-spin { to { transform: rotate(360deg); } }

.sv-video-bottom {
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    pointer-events: auto;
}
.sv-video-progress {
    height: 4px;
    background: rgba(255, 255, 255, .3);
    border-radius: 999px;
    cursor: pointer;
    margin-bottom: 8px;
}
.sv-video-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sv-blue, #2563eb), var(--sv-purple, #7c3aed));
    border-radius: 999px;
}
.sv-video-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sv-video-mute, .sv-video-fullscreen {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
}
.sv-video-mute svg, .sv-video-fullscreen svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.sv-video-time {
    color: #fff;
    font-size: 12px;
    margin-left: auto;
    margin-right: 10px;
}
.sv-video-player.sv-muted .sv-video-mute svg {
    opacity: .6;
}

.sv-heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    animation: sv-heart-pop .8s ease forwards;
}
.sv-heart-burst svg {
    width: 90px;
    height: 90px;
    fill: #fff;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}
@keyframes sv-heart-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
