@font-face {
    font-family: 'Fredoka';
    src: url('/fonts/Fredoka.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 100%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-base: #fcdfa2;
    --bg-gradient-end: #9B5DE0;
    --bg-surface: #fffdf0;
    --bg-elevated: rgba(249, 160, 38, 0.06);
    --card-bg: #fffdf0;
    --card-border: rgba(43, 43, 43, 0.08);
    --card-hover-border: rgba(43, 43, 43, 0.15);
    --card-shadow: 0 2px 12px rgba(43, 43, 43, 0.06), 0 0 0 1px rgba(43, 43, 43, 0.04);
    --card-hover-shadow: 0 8px 24px rgba(43, 43, 43, 0.1), 0 0 0 1px rgba(43, 43, 43, 0.06);

    --primary: #f9a026;
    --primary-light: rgba(249, 160, 38, 0.15);
    --primary-glow: rgba(249, 160, 38, 0.25);
    --primary-dim: rgba(249, 160, 38, 0.06);

    --accent: #f39c12;
    --accent-light: rgba(243, 156, 18, 0.2);
    --accent-glow: rgba(243, 156, 18, 0.3);

    --pink: #fcae26;
    --pink-light: rgba(252, 174, 38, 0.25);

    --green: #8FD8A0;
    --green-light: rgba(143, 216, 160, 0.2);

    --orange: #f7d58b;
    --orange-light: rgba(247, 213, 139, 0.2);

    --submitted: #f39c12;
    --submitted-light: rgba(243, 156, 18, 0.2);

    --text-primary: #2b2b2b;
    --text-secondary: #5c5c5c;
    --text-muted: #8A7A6A;

    --danger: #FF8A8A;
    --danger-light: rgba(255, 138, 138, 0.15);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);

    color-scheme: light;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    padding: 16px;
    padding-bottom: 90px;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
}

::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px 8px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1.5px solid var(--accent);
    padding: 6px 16px 6px 10px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--card-shadow);
}

.xp-badge img {
    width: 36px;
    height: 36px;
}

.xp-badge:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-toggle:focus,
.theme-toggle:focus-visible {
    outline: none;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.theme-icon-sun {
    display: none;
}

.theme-icon-moon {
    display: block;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.curator-alert {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: var(--card-shadow);
}

.curator-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.curator-tag {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curator-alert span:last-child {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 18px 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 20px;
}

.course-card {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}

.course-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.course-card--image {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.course-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100px;
    border-bottom: 1.5px solid var(--card-border);
}

.course-card--image .course-header {
    padding: 16px 20px 0;
    margin-bottom: 12px;
}

.course-card--image .progress-container {
    margin: 0 20px 14px;
    width: auto;
}

.course-card--image .lessons-list {
    padding: 0 20px 20px;
}

.course-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 4px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary-light);
}

.progress-container {
    background: rgba(249, 160, 38, 0.12);
    border-radius: var(--radius-full);
    height: 10px;
    width: 100%;
    margin-bottom: 14px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 0;
}

.lessons-list {
    list-style: none;
    max-height: 140px;
    overflow-y: auto;
}

.lessons-list::-webkit-scrollbar {
    width: 4px;
}

.lessons-list::-webkit-scrollbar-track {
    background: transparent;
}

.lessons-list::-webkit-scrollbar-thumb {
    background: rgba(74, 63, 53, 0.1);
    border-radius: 4px;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lesson-item:hover {
    background: var(--primary-dim);
}

.lesson-item:last-child {
    margin-bottom: 0;
}

.lesson-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

.status-done {
    background: #D5F0DC;
    border: 2px solid #4A8A5A;
    color: #4A8A5A;
    box-shadow: 0 2px 6px rgba(74, 138, 90, 0.15);
}

.status-current {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.status-submitted {
    background: var(--submitted-light);
    border: 2px solid var(--submitted);
    color: #8A7A50;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.15);
}

.status-locked {
    border: 2px solid #E0DCD8;
    color: #B8B2AC;
    background: #FAF8F6;
}

.lesson-text {
    line-height: 1.5;
    padding-top: 2px;
    font-weight: 500;
}

.lesson-text.completed {
    text-decoration: line-through;
    color: #4A8A5A;
    font-weight: 600;
}

.lesson-text.completed::after {
    content: ' \2713';
    color: #8FD8A0;
    font-weight: 700;
}

.lesson-text.current-text {
    color: var(--text-primary);
    font-weight: 600;
}

.lesson-text.submitted-text {
    color: var(--text-primary);
    font-weight: 600;
}

.lesson-text.locked {
    color: #A09C98;
    font-weight: 400;
}

.current-badge {
    background: var(--primary-light);
    color: #a06808;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: var(--radius-full);
}

.upload-zone {
    background: var(--accent-light);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    display: none;
}

.upload-zone:hover {
    background: rgba(186, 223, 219, 0.35);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.video-container {
    display: none;
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--card-border);
}

.video-container iframe {
    width: 100%;
    height: 240px;
    border: none;
}

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(74, 63, 53, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(74, 63, 53, 0.06);
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    transition: var(--transition);
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-icon {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.view {
    display: none;
}

.view.active {
    display: block;
}

#viewAchievements.view.active {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 16px - 48px - 90px);
    overflow: hidden;
}

#viewAchievements .section-title {
    flex-shrink: 0;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-content: start;
}

.achievement-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 8px 6px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achievement-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.achievement-card .icon {
    font-size: clamp(24px, 6.5vw, 34px);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

.achievement-card .name {
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

.achievement-card .desc {
    font-size: clamp(9px, 1.8vw, 11px);
    color: var(--text-muted);
    line-height: 1.2;
}

.achievement-card.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.shop-grid {
    display: grid;
    gap: 10px;
}

.shop-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.shop-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.shop-card .info {
    flex: 1;
    min-width: 0;
}

.shop-card .name {
    font-size: 15px;
    font-weight: 600;
}

.shop-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.shop-card .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.shop-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: block;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 4px 0 #bd710b;
}

.shop-btn:hover {
    background: #fcae26;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #bd710b;
}

.shop-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #bd710b;
}

.shop-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(74, 63, 53, 0.08);
    color: var(--text-muted);
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    display: none;
    z-index: 200;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(74, 63, 53, 0.12);
}

.toast.error {
    background: var(--danger);
}

.back-btn {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--card-shadow);
}

.back-btn:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-2px);
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.lesson-title {
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    line-height: 1.35;
    color: var(--text-primary);
}

.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-submitted {
    background: var(--submitted-light);
    border: 2px solid var(--submitted);
    color: #8A7A50;
}

.badge-completed {
    background: var(--green-light);
    border: 2px solid var(--green);
    color: #4A8A5A;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: var(--card-shadow);
}

.file-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 14px;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.file-download-btn {
    background: var(--accent-light);
    color: var(--text-primary);
    border: 1.5px solid var(--accent);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.file-download-btn:hover {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 63, 53, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 63, 53, 0.15);
}

[data-theme="dark"] {
    --bg-base: #1a1520;
    --bg-surface: #241e30;
    --bg-elevated: rgba(249, 160, 38, 0.08);
    --card-bg: #241e30;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);

    --text-primary: #f0e6d6;
    --text-secondary: #b8aeb8;
    --text-muted: #8a7a8a;

    --bg-gradient-end: #2d1b3d;

    color-scheme: dark;
}

[data-theme="dark"] .status-done {
    background: rgba(143, 216, 160, 0.2);
    border-color: #6aba7a;
    color: #8FD8A0;
    box-shadow: 0 2px 6px rgba(143, 216, 160, 0.15);
}

[data-theme="dark"] .status-locked {
    border-color: #3a3440;
    color: #6a606a;
    background: #1f1a26;
}

[data-theme="dark"] .status-submitted {
    border-color: #6a5a30;
    color: #d4b060;
    background: rgba(243, 156, 18, 0.15);
}

[data-theme="dark"] .lesson-text.completed {
    color: #8FD8A0;
}

[data-theme="dark"] .lesson-text.locked {
    color: #5a5060;
}

[data-theme="dark"] .lesson-text.submitted-text {
    color: #d4b060;
}

[data-theme="dark"] .current-badge {
    color: #f0c060;
}

[data-theme="dark"] .badge-submitted {
    color: #d4b060;
}

[data-theme="dark"] .badge-completed {
    color: #8FD8A0;
}

[data-theme="dark"] .nav-bar {
    background: rgba(26, 21, 32, 0.95);
    border-top-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .shop-btn:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: #6a606a;
}

.broadcasts-section {
    margin-bottom: 20px;
}
.broadcasts-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
}
.broadcasts-trigger .section-title {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--text-primary);
}
.broadcasts-trigger:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.broadcast-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}
.broadcasts-trigger:hover .broadcast-trigger-btn {
    transform: scale(1.05);
    opacity: 0.9;
}

.broadcast-feed-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.broadcast-feed-card:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--card-hover-border);
}
.broadcast-feed-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.broadcast-feed-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.video-thumb-wrap {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}
.video-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.video-thumb:hover {
    opacity: 0.85;
}
.video-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.video-thumb:hover .video-play-btn {
    background: rgba(249, 160, 38, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-iframe-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.video-iframe-wrap iframe {
    display: block;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .lessons-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
