/**
 * Video System & HLS Player Styles
 * ================================
 */

/* Netflix-style Showcase */
.showcase-container {
    background: #000;
    padding: 60px 0;
    color: #fff;
    overflow: hidden;
}

.showcase-header {
    padding: 0 5%;
    margin-bottom: 20px;
}

.showcase-header span {
    color: #e50914;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.showcase-header h2 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.showcase-slider {
    display: flex;
    gap: 15px;
    padding: 0 5%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.showcase-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.showcase-item {
    flex: 0 0 200px;
    height: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.showcase-item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-overlay .play-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Video Player UI */
.video-player-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#hls-player {
    width: 100%;
    height: 100%;
}

.player-overlay-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 5;
}

/* Lesson Grid */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

.lesson-item:hover {
    border-color: #007bff;
    background: #f8fbff;
    transform: translateX(5px);
}

.lesson-item.active {
    background: #eef6ff;
    border-color: #007bff;
}

.lesson-icon {
    width: 45px;
    height: 45px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #555;
    flex-shrink: 0;
}

.lesson-item.active .lesson-icon {
    background: #007bff;
    color: #fff;
}

.lesson-info {
    flex-grow: 1;
}

.lesson-info h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.lesson-info span {
    font-size: 0.8rem;
    color: #888;
}

.lesson-status {
    flex-shrink: 0;
    margin-left: 15px;
}

.lesson-locked {
    color: #ffc107;
}

.lesson-unlocked {
    color: #28a745;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-fade {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-item {
        flex: 0 0 160px;
        height: 160px;
    }
}
