/* ================================
   Video Thumbnail Click-to-Play
================================ */
.video-thumb-wrapper {
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Play Button */
.play-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.video-thumbnail:hover .play-btn-overlay {
    background: rgba(0,0,0,0.5);
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, 
                background 0.3s ease;
}

.video-thumbnail:hover .play-btn {
    transform: scale(1.1);
    background: rgba(0,0,0,0.9);
}

/* Iframe after click */
.video-thumb-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================
   Category Filter Buttons
================================ */
#video-filters .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

#video-filters .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#video-count {
    font-size: 0.8rem;
    font-style: italic;
}

/* Smooth hide/show animation */
.video-item {
    transition: opacity 0.3s ease;
}

/* ================================
   Single Video Page
================================ */

/* Related video thumbnail */
.related-thumb {
    position: relative;
    overflow: hidden;
}

.related-thumb img {
    transition: transform 0.3s ease;
}

.related-thumb:hover img {
    transform: scale(1.05);
}

.related-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.related-thumb:hover .related-play-icon {
    background: rgba(0,0,0,0.9);
}