/* Academy Player Styles */
.lesson-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lesson-player-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.player-header {
    height: 60px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.player-back-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.player-back-btn:hover {
    color: #fff;
}

.player-title {
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 50%;
}

.player-progress {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Main Layout */
.player-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar (Navigation) */
.player-sidebar {
    width: 350px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.player-sidebar.collapsed {
    transform: translateX(-350px);
    width: 0;
    border: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.player-lesson-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.player-lesson-item:hover {
    background: #334155;
}

.player-lesson-item.active {
    background: #334155;
    border-left-color: #fbbf24;
}

.player-lesson-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.item-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.player-lesson-item.active .item-status {
    border-color: #fbbf24;
    color: #fbbf24;
}

.player-lesson-item.completed .item-status {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.item-duration {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Content Area */
.player-content {
    flex: 1;
    overflow-y: auto;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-container {
    width: 100%;
    max-width: 900px;
    padding: 40px;
}

/* Video Placeholder */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    background: #1e293b;
}

/* Typography for Lesson Content */
.lesson-text-content {
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.lesson-text-content h1,
.lesson-text-content h2,
.lesson-text-content h3 {
    color: #fff;
    margin: 1.5em 0 0.8em;
}

.lesson-text-content p {
    margin-bottom: 1.2em;
}

.lesson-text-content ul,
.lesson-text-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.lesson-text-content li {
    margin-bottom: 0.5em;
}

.lesson-text-content strong {
    color: #fbbf24;
}

.formula-box {
    background: #1e293b;
    padding: 20px;
    border-left: 4px solid #fbbf24;
    margin: 20px 0;
    font-family: monospace;
    font-size: 1.2em;
    color: #fbbf24;
}

/* Navigation Footer */
.content-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #334155;
    width: 100%;
}

.nav-btn {
    padding: 12px 24px;
    border-radius: 6px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn:hover:not(:disabled) {
    background: #334155;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: #fbbf24;
    color: #0f172a;
    border-color: #fbbf24;
}

.nav-btn.primary:hover {
    background: #f59e0b;
}

/* Complete Button */
.nav-btn.complete-btn {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.nav-btn.complete-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

.nav-btn.complete-btn.completed {
    background: #10b981;
    pointer-events: none;
}

/* Mini Progress Bar */
.progress-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100px;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-mini {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .player-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100;
        width: 80%;
        max-width: 300px;
        transform: translateX(-100%);
    }

    .player-sidebar.show-mobile {
        transform: translateX(0);
    }

    .content-container {
        padding: 20px;
    }

    .player-title {
        display: none;
    }

    .content-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

    .nav-btn.complete-btn {
        order: -1;
        flex: 0 0 100%;
    }
}