/* ===== VIDEO PAGE ===== */

.videos-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
    margin: 5% auto 0 auto;
    width: 80%;
    max-width: 1100px;
    padding-bottom: 60px;
}

/* Each video block */
.video-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
}

/* Main layout: cover left, right column stacked (info on top, carousel below) */
.video-top {
    display: flex;
    gap: 30px;
}

/* Left: cover image */
.video-cover {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 4px;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

/* Right column: info + carousel stacked vertically */
.video-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: wrap;
}

.video-info {
    flex-shrink: 0;

}

.video-title {
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.video-year {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    margin-bottom: 16px;
}

.video-description {
    font-size: 1.05rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Horizontal stills carousel - sits below description, right of cover */
.video-stills {
    display: flex;
    width: 100%;
    bottom: 0;
    height: 110px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(50, 50, 50, 0.15));
    border-radius: 3px;
}

.stills-track {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 5px 10px;
    animation: slideStills 16s infinite linear;
    /* Always running */
    animation-play-state: running;
}

.still-thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.video-item:hover .still-thumb {
    border-color: #555;
}

.still-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideStills {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Divider between videos */
.video-item + .video-item {
    border-top: 1px solid #656565;
    padding-top: 80px;
}

/* ===== VIDEO MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 3% auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-video-container {
    width: 100%;
    max-width: 800px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.modal-info {
    margin-top: 30px;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.modal-title {
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    font-weight: normal;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

/* Loading */
.video-loading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 0;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .video-cover {
        width: 280px;
    }

    .video-title {
        font-size: 1.8rem;
    }

    .still-thumb {
        width: 120px;
        height: 68px;
    }

    .video-stills {
        height: 78px;
    }
}

@media (max-width: 768px) {
    .videos-list {
        width: 95%;
        gap: 40px;
    }

    .video-top {
        flex-direction: column;
        gap: 15px;
    }

    .video-cover {
        width: 100%;
        max-height: 400px;
    }

    .video-info {
        text-align: center;
    }

    .video-title {
        font-size: 1.6rem;
    }

    .video-description {
        font-size: 0.95rem;
    }

    .video-stills {
        height: 70px;
    }

    .still-thumb {
        width: 110px;
        height: 60px;
    }

    .modal-video-container iframe {
        height: 250px;
    }

    .video-item + .video-item {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .videos-list {
        gap: 30px;
    }

    .video-title {
        font-size: 1.4rem;
    }

    .video-description {
        font-size: 0.9rem;
    }

    .video-stills {
        height: 58px;
    }

    .still-thumb {
        width: 90px;
        height: 48px;
    }

    .modal-video-container iframe {
        height: 200px;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}