/**
 * Tutor Live Classes - Frontend CSS
 * Styles for public-facing pages (archive, single class)
 */

/* Archive Page */
.tlc-archive-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a202c;
}

.archive-description {
    font-size: 18px;
    color: #4a5568;
}

.tlc-add-class-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.tlc-add-class-notice p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

/* Single Class Page */
.tlc-single-class {
    padding: 40px 0;
}

.tlc-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.tlc-featured-image img {
    width: 100%;
    height: auto;
}

.tlc-lead {
    font-size: 18px;
    color: #4a5568;
    margin: 20px 0;
    line-height: 1.6;
}

.tlc-tutor-card {
    background: #f7fafc;
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
}

.tlc-tutor-info-large {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tlc-tutor-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.tlc-tutor-name-large {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 5px 0;
}

.tlc-tutor-email {
    color: #718096;
    font-size: 14px;
}

.tlc-past-class-notice {
    background: #fed7d7;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #742a2a;
    margin: 30px 0;
}

.tlc-admin-actions {
    margin: 30px 0;
    text-align: center;
}

/* Enrollment Section */
.tlc-enrollment-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.tlc-enrollment-section h3 {
    color: #1f2937;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.tlc-enrollment-section>p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 24px 0;
}

.tlc-payment-form-wrapper {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.tlc-payment-form-wrapper h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.tlc-payment-form-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.tlc-payment-form-wrapper input[type="text"],
.tlc-payment-form-wrapper input[type="file"],
.tlc-payment-form-wrapper select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tlc-payment-form-wrapper input[type="text"]:focus,
.tlc-payment-form-wrapper select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Success/Pending/Error Messages */
.tlc-enrollment-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlc-enrollment-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.tlc-enrollment-message.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.tlc-enrollment-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Forms */
@media (max-width: 640px) {
    .tlc-enrollment-section {
        padding: 24px 16px;
    }

    .tlc-payment-form-wrapper {
        padding: 16px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .archive-description {
        font-size: 16px;
    }

    .tlc-tutor-info-large {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   ENROLLMENT POPUP MODAL (STEP 1)
   =================================== */

.tlc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: tlcFadeIn 0.3s ease;
}

.tlc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.tlc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tlcSlideUp 0.4s ease;
}

.tlc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.tlc-modal-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.tlc-modal-close .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.tlc-modal-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.tlc-modal-icon {
    width: 80px;
    height: 80px;
    font-size: 80px;
    margin: 0 auto 20px;
    display: block;
    opacity: 0.9;
}

.tlc-modal-header h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.tlc-modal-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
}

.tlc-modal-body {
    padding: 40px;
}

.tlc-modal-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tlc-modal-option {
    display: block;
    padding: 30px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tlc-modal-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tlc-modal-option:hover::before {
    left: 100%;
}

.tlc-option-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.tlc-option-login:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.tlc-option-register {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
}

.tlc-option-register:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.tlc-modal-option .dashicons {
    width: 60px;
    height: 60px;
    font-size: 60px;
    margin: 0 auto 15px;
    display: block;
    opacity: 0.95;
}

.tlc-modal-option h4 {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: inherit;
}

.tlc-modal-option p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    color: inherit;
}

.tlc-option-divider {
    position: relative;
    text-align: center;
    margin: 10px 0;
}

.tlc-option-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.tlc-option-divider span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: #fff;
    color: #9ca3af;
    font-weight: 600;
    font-size: 14px;
}

.tlc-modal-footer {
    padding: 0 40px 40px;
    text-align: center;
}

.tlc-modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    padding: 15px 20px;
    border-radius: 10px;
    color: #1e40af;
    font-size: 14px;
    margin: 0;
    border: 1px solid #dbeafe;
}

.tlc-modal-note .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Animations */
@keyframes tlcFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tlcSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .tlc-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .tlc-modal-header {
        padding: 40px 30px 25px;
    }

    .tlc-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 60px;
        margin-bottom: 15px;
    }

    .tlc-modal-header h3 {
        font-size: 24px;
    }

    .tlc-modal-header p {
        font-size: 14px;
    }

    .tlc-modal-body {
        padding: 30px 25px;
    }

    .tlc-modal-option {
        padding: 25px 20px;
    }

    .tlc-modal-option .dashicons {
        width: 50px;
        height: 50px;
        font-size: 50px;
        margin-bottom: 12px;
    }

    .tlc-modal-option h4 {
        font-size: 20px;
    }

    .tlc-modal-option p {
        font-size: 14px;
    }

    .tlc-modal-footer {
        padding: 0 25px 30px;
    }

    .tlc-modal-note {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Enrollment Card Styling */
.tlc-enrollment-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tlc-enrollment-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a202c;
}

.tlc-enrollment-card>p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
}

.tlc-btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
}

.tlc-btn-large .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ===================================
   ENROLLMENT STATES & SUCCESS MESSAGE
   =================================== */

.tlc-payment-form-section {
    margin-top: 30px;
}

.tlc-payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.tlc-payment-header h3 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 10px;
}

.tlc-payment-header p {
    font-size: 16px;
    color: #4a5568;
}

/* Enrollment Approved State */
.tlc-enrollment-approved {
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
    border: 2px solid #48bb78;
}

.tlc-icon-success {
    color: #48bb78;
    font-size: 80px;
    margin-bottom: 20px;
}

.tlc-btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.tlc-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

.tlc-meeting-details {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tlc-meeting-details h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a202c;
}

.tlc-meeting-details p {
    font-size: 15px;
    margin: 10px 0;
    color: #4a5568;
}

/* Enrollment Pending State */
.tlc-enrollment-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border: 2px solid #f59e0b;
}

.tlc-icon-pending {
    color: #f59e0b;
    font-size: 80px;
    margin-bottom: 20px;
}

.tlc-pending-status {
    margin: 25px 0;
}

.tlc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
}

.tlc-status-pending {
    background: #f59e0b;
    color: #fff;
}

.tlc-enrollment-note {
    font-size: 14px;
    color: #4a5568;
    margin-top: 15px;
}

.tlc-enrollment-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.tlc-enrollment-note a:hover {
    text-decoration: underline;
}

/* Success Message */
.tlc-success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
    border-radius: 15px;
    border: 2px solid #48bb78;
}

.tlc-success-message .dashicons {
    width: 100px;
    height: 100px;
    font-size: 100px;
    color: #48bb78;
    margin-bottom: 20px;
    animation: tlcSuccessPulse 1.5s ease infinite;
}

.tlc-success-message h3 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 15px;
}

.tlc-success-message p {
    font-size: 18px;
    color: #4a5568;
    margin: 10px 0;
}

@keyframes tlcSuccessPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tlc-payment-header h3 {
        font-size: 24px;
    }

    .tlc-enrollment-approved h3,
    .tlc-enrollment-pending h3 {
        font-size: 24px;
    }

    .tlc-icon-success,
    .tlc-icon-pending {
        font-size: 60px;
    }

    .tlc-meeting-details {
        padding: 20px;
    }

    .tlc-success-message {
        padding: 40px 25px;
    }

    .tlc-success-message h3 {
        font-size: 26px;
    }

    .tlc-success-message .dashicons {
        width: 80px;
        height: 80px;
        font-size: 80px;
    }
}

/* Course Progress Shortcode */
.tlc-course-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tlc-course-progress h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #2c3e50;
}

.tlc-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.tlc-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.tlc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.tlc-complete-course-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* Complete Lesson Button */
.tlc-complete-lesson-btn {
    padding: 10px 20px;
    background: #5b51d8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tlc-complete-lesson-btn:hover:not(.completed) {
    background: #4a3fc7;
}

.tlc-complete-lesson-btn.completed {
    background: #4CAF50;
    cursor: default;
}

/* Shortcode Stats */
.tlc-difficulty,
.tlc-enrolled,
.tlc-total-duration,
.tlc-last-updated {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 5px;
    font-size: 14px;
}

/* ========================================
   Frontend Curriculum Display
   ======================================== */
.tlc-frontend-curriculum {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.curriculum-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.curriculum-summary {
    display: flex;
    gap: 30px;
    padding: 15px;
    background: #f6f7f8;
    border-radius: 6px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3c434a;
}

.summary-item .dashicons {
    color: #2271b1;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.curriculum-topic {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: #f6f7f8;
}

.topic-toggle {
    flex: 1;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 10px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
}

.topic-toggle:hover {
    background: #f0f0f1;
}

.toggle-icon {
    color: #50575e;
    font-size: 12px;
    transition: transform 0.2s;
}

.topic-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

.topic-title {
    margin: 0;
    font-weight: 600;
    color: #1d2327;
    font-size: 20px !important;
}

.topic-meta {
    padding: 16px 20px;
    font-size: 13px;
    color: #646970;
}

.topic-summary {
    padding: 0 20px 16px 52px;
    font-size: 14px;
    color: #50575e;
    background: #f6f7f8;
}

.topic-lessons {
    background: #fff;
}

.lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-item {
    border-top: 1px solid #f0f0f1;
}

.lesson-item:first-child {
    border-top: none;
}

.lesson-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.lesson-link,
.lesson-locked {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1d2327;
    flex: 1;
}

.lesson-link:hover {
    color: #2271b1;
}

.lesson-locked {
    color: #646970;
}

.lesson-item.locked {
    background: #f9f9f9;
}

.lesson-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f1;
    border-radius: 4px;
}

.lesson-item.accessible .lesson-icon {
    background: #e8f0f7;
}

.lesson-icon .dashicons {
    color: #646970;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lesson-item.accessible .lesson-icon .dashicons {
    color: #2271b1;
}

.lesson-name {
    font-size: 14px;
    font-weight: 500;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lesson-badge {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.preview-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.lesson-duration,
.lesson-attachment {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #646970;
}

.lesson-duration .dashicons,
.lesson-attachment .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lesson-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lesson-download-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.lesson-download-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Curriculum Responsive */
@media (max-width: 768px) {
    .curriculum-summary {
        flex-direction: column;
        gap: 10px;
    }

    .lesson-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lesson-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =====================================
   VIDEO MODAL STYLES
   ===================================== */

.tlc-video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    padding: 20px;
    align-items: center;
    justify-content: center;
    animation: tlcFadeIn 0.3s ease;
}

.tlc-video-modal-overlay.active {
    display: flex;
}

.tlc-video-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: tlcSlideUp 0.4s ease;
}

.tlc-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.tlc-video-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.tlc-video-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.tlc-video-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tlc-video-modal-body {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.tlc-video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================
   VIDEO MODAL STYLES
   ===================================== */

.tlc-video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    padding: 20px;
    align-items: center;
    justify-content: center;
    animation: tlcFadeIn 0.3s ease;
}

.tlc-video-modal-overlay.active {
    display: flex;
}

.tlc-video-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: tlcSlideUp 0.4s ease;
}

.tlc-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.tlc-video-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.tlc-video-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.tlc-video-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tlc-video-modal-body {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.tlc-video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* HTML5 Video Player Styling */
.tlc-video-modal-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    object-fit: contain;
}

.tlc-lesson-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.tlc-lesson-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    color: white;
}

.tlc-lesson-download-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .tlc-video-modal-overlay {
        padding: 10px;
    }

    .tlc-video-modal-header {
        padding: 15px;
    }

    .tlc-video-modal-title {
        font-size: 16px;
    }

    .tlc-video-close-btn {
        width: 36px;
        height: 36px;
    }
}