/* 
 * VIDEO SYSTEM STYLES
 */

/* Main Video Section */
.video-section-container {
    padding: 2rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Landscape Video + Shorts/Playlist */
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Reusable Video Frame */
.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Floating Widget */
.floating-video-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(150%);
    /* Hidden initially */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-video-widget.active {
    transform: translateY(0);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.widget-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.widget-thumbnail {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.widget-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: transform 0.2s;
}

.widget-thumbnail:hover .widget-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Shorts Strip */
.shorts-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
}

.short-item {
    min-width: 150px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.short-item:hover {
    border-color: var(--primary);
}