/**
 * Video Sidebar Component
 */

.hero-sidebar {
    width: 100%;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

/* Top Video Section */
.sidebar-top-video {
    width: 100%;
    height: 180px;
    position: relative;
    background: #000;
    flex-shrink: 0;
}

.sidebar-top-video iframe {
    width: 100%;
    height: 100%;
}

.sidebar-top-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-top-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-top-video .video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-top-video .play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.sidebar-top-video .video-overlay:hover .play-button {
    transform: scale(1.1);
}

.sidebar-top-video .play-button svg {
    width: 24px;
    height: 24px;
    fill: #000;
    margin-left: 4px;
}

.sidebar-top-video .live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF5722;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Video List Section */
.sidebar-video-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background-color: #25272F;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.sidebar-video-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar-video-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.sidebar-video-list::-webkit-scrollbar-thumb {
    background: #FF5722;
    border-radius: 3px;
}

.sidebar-video-list::-webkit-scrollbar-thumb:hover {
    background: #e04400;
}

/* Video List Item */
.video-list-item {
    display: flex;
    gap: 12px;
    padding: 7px 5px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.video-list-item:last-child {
    border-bottom: none;
}

/* Video Thumbnail */
.video-list-thumbnail {
    width: 100px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.video-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-list-thumbnail .play-icon svg {
    width: 12px;
    height: 12px;
    fill: #000;
    margin-left: 2px;
}

/* Video Info */
.video-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.video-list-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-list-timestamp {
    font-size: 12px;
    color: #FF5722;
    font-weight: 500;
}

/* Loading Skeleton */
.sidebar-skeleton {
    height: 700px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-sidebar {
        max-height: 585px;
    }

    .sidebar-video-list {
        max-height: 400px;
    }

    .video-list-thumbnail {
        width: 80px;
        height: 60px;
    }

    .video-list-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sidebar-top-video {
        height: 235px;
    }

    .video-list-item {
        padding: 10px 5px;
    }

    .video-list-thumbnail {
        width: 70px;
        height: 50px;
    }

    .video-list-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .video-list-timestamp {
        font-size: 11px;
    }
}