:root {
    --ez-primary: #6366f1;
    --ez-primary-hover: #4f46e5;
    --ez-secondary: #f8fafc;
    --ez-secondary-hover: #f1f5f9;
    --ez-success: #10b981;
    --ez-bg: #ffffff;
    --ez-sidebar-bg: #f8fafc;
    --ez-text: #1e293b;
    --ez-text-muted: #64748b;
    --ez-border: #f1f5f9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Base Layout */
.ez-player-container {
    display: flex;
    min-height: 100vh;
    background: var(--ez-bg);
}

/* Sidebar */
.ez-sidebar {
    width: 320px;
    background: var(--ez-sidebar-bg);
    border-right: 1px solid var(--ez-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.ez-sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--ez-border);
}

.ez-lesson-list {
    padding: 10px 20px;
    flex: 1;
}

.ez-lesson-row-sidebar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ez-toggle-sublessons {
    background: transparent;
    border: none;
    color: var(--ez-text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.ez-toggle-sublessons:hover {
    background: var(--ez-secondary-hover);
    color: var(--ez-primary);
}

.ez-lesson-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ez-text);
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.ez-lesson-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}

.ez-lesson-item .dashicons {
    margin-top: 1px;
}

.ez-lesson-item:hover {
    background: var(--ez-secondary-hover);
}

.ez-lesson-item.active {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    color: var(--ez-primary);
}

/* Sidebar Hierarchy */
.ez-sub-lessons-sidebar {
    padding-left: 28px;
    margin-bottom: 10px;
}

.ez-sub-lesson-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ez-text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.ez-sub-lesson-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;
}

.ez-sub-lesson-item .dashicons {
    margin-top: 2px;
}

.ez-sub-lesson-item:hover {
    color: var(--ez-text);
    background: white;
}

.ez-sub-lesson-item.active {
    color: var(--ez-primary);
    background: white;
    font-weight: 600;
}

/* Content Area */
.ez-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ez-top-nav {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ez-border);
}

.ez-main-inner {
    padding: 60px 80px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.ez-lesson-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--ez-text);
}

.ez-lesson-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #334155;
}

.ez-lesson-content h2 {
    margin-top: 40px;
}

/* Buttons */
.ez-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ez-btn-primary {
    background: var(--ez-primary);
    color: white;
}

.ez-btn-primary:hover {
    background: var(--ez-primary-hover);
}

.ez-btn-secondary {
    background: var(--ez-secondary);
    color: var(--ez-text);
}

.ez-btn-secondary:hover {
    background: var(--ez-secondary-hover);
}

.ez-btn-success {
    background: var(--ez-success);
    color: white;
}

/* Progress Bar */
.ez-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ez-progress-fill {
    height: 100%;
    background: var(--ez-primary);
    transition: width 0.5s ease-out;
}

/* Single Course Page (Curriculum) */
.ez-course-page {
    background: #f8fafc;
    min-height: 100vh;
}

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

/* Pricing Sidebar */
.ez-pricing-sidebar {
    position: sticky;
    top: 40px;
}

.ez-pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--ez-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ez-btn-full {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.ez-btn-link {
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.ez-btn-link:hover {
    background: var(--ez-primary);
    color: white;
}

.ez-course-hero {
    background: white;
    padding: 60px 0 100px 0;
    border-bottom: 1px solid var(--ez-border);
}

.ez-back-link {
    display: inline-block;
    color: var(--ez-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.ez-hero-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ez-hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.ez-course-meta {
    display: flex;
    gap: 20px;
    color: var(--ez-text-muted);
    font-size: 15px;
    font-weight: 500;
}

.ez-badge {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.ez-curriculum-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--ez-border);
    overflow: hidden;
    margin-bottom: 80px;
}

.ez-card-header {
    padding: 40px;
    border-bottom: 1px solid var(--ez-border);
}

.ez-lesson-row {
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.ez-lesson-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ez-lesson-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ez-lesson-info h3 a {
    color: var(--ez-text);
    text-decoration: none;
}

.ez-sub-curriculum {
    background: #fbfcfd;
    padding: 10px 40px 24px 75px;
}

.ez-sub-lesson-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}

.ez-sub-lesson-row a {
    color: var(--ez-text-muted);
    text-decoration: none;
    transition: color 0.1s;
}

.ez-sub-lesson-row a:hover {
    color: var(--ez-primary);
}

.ez-lesson-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--ez-border);
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .ez-sidebar {
        width: 280px;
    }

    .ez-main-inner {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .ez-player-container {
        flex-direction: column;
    }

    .ez-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .ez-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Live Promotion Banner */
.ez-live-promo {
    margin-top: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.ez-live-promo::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ez-live-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.ez-live-promo h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
}

.ez-live-promo p {
    margin: 0 0 15px 0;
    font-size: 13px;
    opacity: 0.9;
}

.ez-live-btn {
    display: block;
    background: white;
    color: #6366f1;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.ez-live-btn:hover {
    transform: translateY(-2px);
}

/* Quiz Section */
.ez-quiz-section {
    margin-top: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px;
    color: #1e293b;
    /* Force dark text color */
}

.ez-quiz-section h3 {
    color: #0f172a !important;
    font-weight: 800;
}

.ez-quiz-section p {
    color: #334155 !important;
}

.ez-question-item strong {
    color: #1e293b !important;
    display: block;
    margin-bottom: 10px;
}

.ez-quiz-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ez-quiz-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.ez-quiz-input:focus {
    border-color: var(--ez-primary);
}

.ez-quiz-feedback {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.ez-quiz-feedback.success {
    color: #10b981;
}

.ez-quiz-feedback.error {
    color: #ef4444;
}

/* Video Poster Overlay */
.ez-video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    /* Higher z-index to be on top */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ez-video-poster-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.ez-video-poster-overlay:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.ez-play-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--ez-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    z-index: 101;
}

.ez-video-poster-overlay:hover .ez-play-icon {
    transform: scale(1.1);
}

.ez-play-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 5px;
}