/**Layer 123: Video Summary*/

#video-summary-wrapper {
    margin: 2rem 0;
    width: 100%;
    max-width: 800px;
}

.video-player-frame {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
}

.video-stage {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-stage img.active {
    opacity: 1;
}

/* Ken Burns Effect */
.ken-burns {
    animation: zoomPan 5s ease-out infinite alternate;
}

@keyframes zoomPan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* Overlay UI */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.video-text-overlay {
    margin-bottom: 3rem;
    /* Space for controls */
}

.video-text-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.5);
    display: inline;
    box-decoration-break: clone;
    padding: 2px 5px;
}

#video-subtext {
    display: block;
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
}

#vid-play-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vid-progress-track {
    flex: 1;
    display: flex;
    gap: 4px;
    height: 4px;
}

.vid-progress-seg {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.vid-progress-seg.completed {
    background: #fff;
}

.vid-progress-seg.active {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}