/* ========================================
   ULTRA MODERN LESSON PLAYER PAGE
   Netflix/Udemy Tarzı Video İzleme Sayfası
   ======================================== */

:root {
    --player-bg: #0a0e27;
    --sidebar-bg: #ffffff;
    --topbar-height: 70px;
    --sidebar-width: 380px;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Body overflow fix */
body {
    overflow-x: hidden !important;
}

html {
    overflow-x: hidden !important;
}

/* ===== LESSON PLAYER CONTAINER ===== */
.lesson-player-container {
    min-height: 100vh;
    background: var(--player-bg);
    padding-top: 0;
    margin-top: -80px; /* Header'ı gizle */
    overflow-x: hidden;
}

/* ===== TOP NAVIGATION BAR ===== */
.lesson-topbar {
    height: var(--topbar-height);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
    color: white;
}

.course-info {
    flex: 1;
    max-width: 500px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-progress-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.progress-text {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
}

.progress-bar-mini {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 200px;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-badge-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.shortcuts-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shortcuts-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT LAYOUT ===== */
.lesson-main-content {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
    max-width: 100vw;
    overflow: hidden;
}

/* ===== VIDEO SECTION ===== */
.lesson-video-section {
    flex: 1;
    background: var(--player-bg);
    overflow-y: auto;
    min-width: 0;
}

.video-player-wrapper {
    position: relative;
    background: #000;
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    display: block;
    background: #000;
}

.lesson-video-native {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    background: #000;
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-fill-video {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

.video-overlay-controls {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 12px;
    z-index: 12;
}

.video-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-action-btn:hover {
    background: rgba(102, 126, 234, 0.85);
    transform: translateY(-2px);
}

/* ===== LESSON INFO PANEL ===== */
.lesson-info-panel {
    padding: 40px;
    background: linear-gradient(180deg, var(--player-bg) 0%, #1e293b 100%);
}

.lesson-header {
    margin-bottom: 32px;
}

.lesson-title {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.lesson-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.lesson-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.lesson-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lesson-pill.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #f8fafc;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-item i {
    color: #667eea;
}

.meta-item.completed {
    color: #10b981;
}

.meta-item.completed i {
    color: #10b981;
}

.lesson-meta-highlight {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.lesson-meta-highlight .meta-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
}

.lesson-meta-highlight .meta-item i {
    color: #667eea;
}

.lesson-meta-highlight .meta-item.completed,
.lesson-meta-highlight .meta-item.completed i {
    color: #10b981;
}

/* ===== LESSON NAVIGATION ===== */
.lesson-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:not(.disabled):hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn i {
    font-size: 1.5rem;
    color: #667eea;
}

.nav-btn-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 1rem;
    color: white;
    font-weight: 700;
}

.prev-btn {
    justify-content: flex-start;
}

.next-btn {
    justify-content: flex-end;
    text-align: right;
}

/* ===== LESSON TABS ===== */
.lesson-tabs {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.tabs-nav-lesson {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn-lesson {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn-lesson::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn-lesson:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn-lesson.active {
    color: white;
}

.tab-btn-lesson.active::after {
    transform: scaleX(1);
}

.tabs-content-lesson {
    padding: 32px;
}

.tab-pane-lesson {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane-lesson.active {
    display: block;
}

.lesson-description,
.lesson-notes {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Resources */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.resource-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.resource-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

/* ===== SIDEBAR PANEL ===== */
.lesson-sidebar-panel {
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-left: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.lesson-count {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Lessons List Sidebar */
.lessons-list-sidebar {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 80px;
}

/* Custom Scrollbar for Sidebar */
.lessons-list-sidebar::-webkit-scrollbar {
    width: 6px;
}

.lessons-list-sidebar::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
}

.lessons-list-sidebar::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 10px;
}

.lessons-list-sidebar::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Module Groups */
.sidebar-module-group {
    margin-bottom: 24px;
}

.sidebar-module-group:last-child {
    margin-bottom: 0;
}

.sidebar-module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-module-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-module-header i {
    font-size: 1rem;
    opacity: 0.9;
}

.sidebar-module-header .module-icon {
    transition: transform 0.3s ease;
}

.sidebar-module-header .module-title {
    flex: 1;
    font-weight: 700;
}

.sidebar-module-header .module-lesson-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sidebar-module-header .module-chevron {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sidebar-module-group.active .sidebar-module-header .module-chevron {
    transform: rotate(180deg);
}

.sidebar-module-group.active .sidebar-module-header .module-icon {
    transform: rotate(15deg);
}

/* Modül olmayan dersler için farklı stil */
.sidebar-module-header-uncategorized {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
}

.sidebar-module-lessons {
    padding-left: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar-module-group.active .sidebar-module-lessons {
    max-height: 2000px;
    opacity: 1;
    margin-top: 8px;
}

.sidebar-lesson-item {
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-lesson-item.active {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.sidebar-lesson-item.completed {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.sidebar-lesson-item.locked {
    opacity: 0.6;
}

.lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.lesson-link:hover {
    background: rgba(102, 126, 234, 0.05);
}

.locked-lesson {
    cursor: not-allowed;
}

.lesson-number-sidebar {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #64748b;
    flex-shrink: 0;
}

.sidebar-lesson-item.active .lesson-number-sidebar {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.sidebar-lesson-item.completed .lesson-number-sidebar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sidebar-lesson-item.locked .lesson-number-sidebar {
    background: rgba(226, 232, 240, 0.4);
    color: #cbd5e1;
}

.lesson-number-sidebar i {
    font-size: 1.2rem;
}

.lesson-info-sidebar {
    flex: 1;
    min-width: 0;
}

.lesson-info-sidebar h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    max-width: 100%;
}

.lesson-meta-sidebar {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.free-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Playing Indicator */
.playing-indicator {
    display: flex;
    gap: 3px;
    align-items: center;
}

.playing-indicator span {
    width: 3px;
    height: 12px;
    background: var(--brand-primary);
    border-radius: 10px;
    animation: playing 1s ease-in-out infinite;
}

.playing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes playing {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 16px;
    }
}

/* Sidebar CTA */
.sidebar-cta {
    padding: 16px;
    border-top: 2px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    flex-shrink: 0;
    box-sizing: border-box;
}

.cta-content {
    background: var(--gradient-primary);
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    color: white;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.cta-content i {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 8px;
}

.cta-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.cta-content p {
    font-size: 0.85rem;
    opacity: 0.95;
    margin: 0 0 12px 0;
}

.btn-cta {
    display: inline-block;
    width: calc(100% - 8px);
    max-width: 100%;
    padding: 10px 12px;
    background: white;
    color: var(--brand-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--brand-primary);
}

/* ===== SHORTCUTS MODAL ===== */
.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shortcuts-modal.active {
    opacity: 1;
    visibility: visible;
}

.shortcuts-content {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.6);
}

.shortcuts-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.close-btn {
    width: 40px;
    height: 40px;
    background: rgba(226, 232, 240, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.shortcuts-list {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.shortcut-key {
    background: white;
    border: 2px solid rgba(226, 232, 240, 0.8);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shortcut-desc {
    flex: 1;
    margin-left: 20px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.notification.show {
    right: 32px;
}

.notification i {
    font-size: 1.5rem;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success i {
    color: #10b981;
}

.notification span {
    color: #1e293b;
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    :root {
        --sidebar-width: 340px;
    }
}

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 300px;
    }
    
    .lesson-info-panel {
        padding: 32px 24px;
    }
    
    .lesson-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .lesson-main-content {
        flex-direction: column;
    }
    
    .lesson-sidebar-panel {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .shortcuts-btn span {
        display: none;
    }
}

@media (max-width: 768px) {
    .lesson-topbar {
        padding: 0 16px;
    }
    
    .topbar-left {
        gap: 12px;
    }
    
    .back-button span {
        display: none;
    }
    
    .course-info {
        max-width: 200px;
    }
    
    .lesson-info-panel {
        padding: 24px 16px;
    }
    
    .lesson-title {
        font-size: 1.5rem;
    }
    
    .lesson-navigation {
        grid-template-columns: 1fr;
    }
    
    .tabs-content-lesson {
        padding: 20px;
    }
    
    .tabs-nav-lesson {
        overflow-x: auto;
    }
    
    .tab-btn-lesson {
        white-space: nowrap;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .lesson-title {
        font-size: 1.25rem;
    }
    
    .lesson-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
}

/* Footer Override */
.lesson-player-container ~ footer {
    margin-top: 0;
}
