/* ── Videos Page ── */

.videos-section {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}

/* ── Featured Player ── */
.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid cyan;
    box-shadow: 0 0 15px cyan, 0 0 30px rgba(0, 255, 255, 0.3);
    margin-bottom: 10px;
    overflow: hidden;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.now-playing-title {
    font-family: 'Neon', cursive;
    color: white;
    text-shadow: 0 0 5px cyan, 0 0 10px cyan;
    font-size: 1.2rem;
    text-align: center;
    padding: 8px 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* ── Carousel Container ── */
.video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

/* ── Video Cards ── */
.video-card {
    flex: 0 0 220px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.85);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    overflow: hidden;
}

.video-card:hover,
.video-card.active {
    border-color: cyan;
    box-shadow: 0 0 10px cyan, 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.video-card.active {
    border-color: magenta;
    box-shadow: 0 0 10px magenta, 0 0 20px rgba(255, 0, 255, 0.4);
}

.video-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-card-info {
    padding: 8px 10px;
}

.video-card-title {
    font-family: 'Neon', cursive;
    color: white;
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-date {
    font-family: 'Neon', cursive;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin: 0;
}

/* ── Carousel Nav Arrows ── */
.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid cyan;
    color: cyan;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 15px cyan;
}

.carousel-btn.prev { margin-right: 10px; }
.carousel-btn.next { margin-left: 10px; }

/* Loading styles moved to common.css */

/* ── Error State ── */
.videos-error {
    font-family: 'Neon', cursive;
    text-align: center;
    padding: 40px 20px;
    font-size: 1.4rem;
    color: red;
    text-shadow: 0 0 10px red;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .videos-section {
        width: 95%;
    }

    .video-card {
        flex: 0 0 160px;
    }

    .video-card-title {
        font-size: 0.75rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }

    .now-playing-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-card {
        flex: 0 0 140px;
    }
}
