/* ==========================================================================
   ALFA KEŞİF — MÜFREDAT KONU ANLATIMI & OYUN MERKEZİ (konu-anlatimlari.php)
   <head> içinde $page_css aracılığıyla yüklenir (FOUC önleme).
   Tüm sınıflar global style.css çakışmalarına karşı izole edilmiştir.
   ========================================================================== */

.lectures-universe {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - 68px);
    background-color: #060812;
    color: #f8fafc;
    padding: 32px 0 96px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.lectures-universe .is-hidden,
.lecture-modal-backdrop .is-hidden {
    display: none !important;
}

/* Global style.css `* { font-family: Poppins !important }` kuralına karşı Font Awesome 6.0 garantisi */
.lectures-universe i.fas,
.lectures-universe i.far,
.lectures-universe i.fa,
.lecture-modal-backdrop i.fas,
.lecture-modal-backdrop i.far,
.lecture-modal-backdrop i.fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* ---------- GPU-Dostu Sabit Kozmik Arka Plan ---------- */
.lectures-cosmic-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 242, 255, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 85% 22%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 78% 82%, rgba(139, 92, 246, 0.11) 0%, transparent 50%),
        #060812;
}

.lectures-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 24px 36px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.5px 1.5px at 88px 128px, rgba(103, 232, 249, 0.9), transparent),
        radial-gradient(1px 1px at 165px 62px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.6px 1.6px at 245px 195px, rgba(251, 191, 36, 0.8), transparent),
        radial-gradient(1.4px 1.4px at 340px 85px, rgba(192, 132, 252, 0.85), transparent),
        radial-gradient(1px 1px at 430px 175px, rgba(255, 255, 255, 0.75), transparent);
    background-repeat: repeat;
    background-size: 480px 280px;
    opacity: 0.55;
}

.lectures-grid-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 25%, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 25%, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
}

.lectures-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ---------- Üst Navigasyon & Hero Kartı ---------- */
.lectures-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn-back-station {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: all 0.22s ease;
    max-width: 100%;
}

.btn-back-station:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.38);
    color: #ffffff;
    transform: translateX(-2px);
}

.topbar-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fcd34d;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 100%;
}

.topbar-admin-link:hover {
    background: rgba(245, 158, 11, 0.22);
    color: #ffffff;
}

.lectures-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(145deg, rgba(15, 21, 38, 0.88) 0%, rgba(10, 14, 26, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
    box-sizing: border-box;
}

.lectures-hero > * {
    min-width: 0;
    max-width: 100%;
}

.lectures-hero::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0, 242, 255, 0.08) 45%, transparent 70%);
    pointer-events: none;
}

.ak-lec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fbbf24;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    max-width: 100%;
    flex-wrap: nowrap;
    line-height: 1.3;
    box-sizing: border-box;
}

.ak-lec-eyebrow i {
    flex-shrink: 0;
}

.ak-lec-eyebrow .eyebrow-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.ak-lec-eyebrow .eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
    flex-shrink: 0;
}

.lectures-hero-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.8vw, 2.45rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #ffffff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.lectures-hero-title .title-accent {
    background: linear-gradient(135deg, #fbbf24 0%, #38bdf8 55%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lectures-hero-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.62;
    color: #cbd5e1;
    max-width: 680px;
    overflow-wrap: break-word;
}

/* Sağ İstatistik Izgarası (ak-lec-* ile global .stat-label çakışmasından %100 izole) */
.ak-lec-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.ak-lec-stat-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ak-lec-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ak-lec-stat-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.ak-lec-stat-icon.pod-amber {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.ak-lec-stat-icon.pod-cyan {
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22d3ee;
}

.ak-lec-stat-icon.pod-purple {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.ak-lec-stat-icon.pod-emerald {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.ak-lec-stat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    flex: 1;
}

.ak-lec-stat-num {
    font-size: 1.32rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ak-lec-stat-caption {
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 3px;
    line-height: 1.25;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

/* ---------- Akıllı Filtre ve Navigasyon Paneli ---------- */
.lectures-filter-panel {
    position: sticky;
    top: 84px;
    z-index: 30;
    width: 100%;
    max-width: 100%;
    background: rgba(11, 15, 27, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 22px;
    padding: 16px 20px;
    margin-bottom: 28px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.filter-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

/* Arama Kutusu */
.lecture-search-box {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
}

.lecture-search-box i.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #38bdf8;
    font-size: 0.9rem;
    pointer-events: none;
}

.lecture-search-input {
    width: 100%;
    height: 44px;
    padding: 0 36px 0 40px;
    border-radius: 12px;
    background: rgba(4, 7, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.lecture-search-input::placeholder {
    color: #64748b;
}

.lecture-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.72rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-clear-btn.visible {
    display: inline-flex;
}

/* Seçim Kutuları (Ders / Konu) */
.lecture-selects-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 430px;
    min-width: 0;
}

.lecture-select-wrap {
    flex: 1 1 180px;
    min-width: 0;
}

.lecture-select {
    width: 100%;
    height: 44px;
    padding: 0 32px 0 12px;
    border-radius: 12px;
    background-color: rgba(4, 7, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2338bdf8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.lecture-select:hover,
.lecture-select:focus {
    border-color: #38bdf8;
}

.lecture-select option {
    background: #0f172a;
    color: #ffffff;
}

/* Sadece Videolular Anahtarı */
.video-only-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fde68a;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.video-only-toggle .toggle-left-group {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.video-only-toggle:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
}

.video-only-toggle.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.38));
    border-color: #fbbf24;
    color: #ffffff;
    box-shadow: 0 6px 20px -6px rgba(245, 158, 11, 0.5);
}

.toggle-switch-pill {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.toggle-switch-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-only-toggle.active .toggle-switch-pill {
    background: #f59e0b;
}

.video-only-toggle.active .toggle-switch-pill::after {
    transform: translateX(16px);
}

.toggle-count-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.73rem;
    font-variant-numeric: tabular-nums;
    color: #fbbf24;
}

/* Alt Satır: Sınıf Sekmeleri & Sonuç Özeti */
.filter-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.grade-pills-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.grade-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 0.81rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.grade-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.grade-pill-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-color: rgba(125, 211, 252, 0.6);
    color: #ffffff;
    box-shadow: 0 6px 18px -5px rgba(14, 165, 233, 0.55);
}

.grade-pill-btn .pill-count {
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    font-variant-numeric: tabular-nums;
}

.filter-summary-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.81rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.filter-summary-info strong {
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.btn-reset-filters {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
    border-radius: 9px;
    padding: 5px 11px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-reset-filters.visible {
    display: inline-flex;
}

.btn-reset-filters:hover {
    background: rgba(244, 63, 94, 0.24);
    color: #ffffff;
}

/* ---------- Hiyerarşi: SINIF > DERS > KONU ---------- */
.curriculum-tree {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    min-width: 0;
}

/* 1. SINIF BLOĞU */
.grade-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

/* Ekran dışındaki ders blokları ekrana yaklaşana kadar çizilmez (130+ kartlı sayfada ilk boyama ve INP hızlanır).
   İçerik DOM'da kalır: arama motorları ve sayfa içi arama etkilenmez. */
.lesson-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.grade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.16) 0%, rgba(15, 23, 42, 0.8) 65%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-left: 5px solid #38bdf8;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
    min-width: 0;
}

.grade-section[data-grade-num="1"] .grade-banner {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.16) 0%, rgba(15, 23, 42, 0.82) 65%);
    border-color: rgba(244, 63, 94, 0.28);
    border-left-color: #fb7185;
}
.grade-section[data-grade-num="2"] .grade-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(15, 23, 42, 0.82) 65%);
    border-color: rgba(245, 158, 11, 0.28);
    border-left-color: #fbbf24;
}
.grade-section[data-grade-num="3"] .grade-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(15, 23, 42, 0.82) 65%);
    border-color: rgba(16, 185, 129, 0.28);
    border-left-color: #34d399;
}
.grade-section[data-grade-num="4"] .grade-banner {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.18) 0%, rgba(15, 23, 42, 0.82) 65%);
    border-color: rgba(168, 85, 247, 0.3);
    border-left-color: #c084fc;
}

.grade-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.grade-emblem {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.grade-banner-title {
    margin: 0;
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.grade-banner-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.grade-banner-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ak-lec-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ak-lec-meta-pill.pill-games {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
}

.ak-lec-meta-pill.pill-videos {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fde68a;
}

/* 2. DERS BLOĞU */
.lesson-section {
    background: rgba(11, 15, 26, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
}

.lesson-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lesson-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.lesson-theme-math .lesson-icon-box {
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.36);
    color: #22d3ee;
}

.lesson-theme-turkish .lesson-icon-box {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.36);
    color: #c084fc;
}

.lesson-theme-science .lesson-icon-box {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.36);
    color: #34d399;
}

.lesson-theme-general .lesson-icon-box {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.36);
    color: #fbbf24;
}

.lesson-crumb-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: block;
}

.lesson-title {
    margin: 2px 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

/* Konu Hızlı Atlama Çipleri */
.lesson-topic-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.topic-jump-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.topic-jump-chip:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.topic-jump-chip .chip-num {
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

/* 3. KONU BLOĞU */
.topic-block {
    background: rgba(17, 24, 39, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 18px 20px 22px;
    scroll-margin-top: 190px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.topic-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
    min-width: 0;
}

.topic-heading-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 200px;
}

.topic-bullet {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.topic-path-mini {
    display: block;
    font-size: 0.71rem;
    font-weight: 600;
    color: #94a3b8;
}

.topic-heading {
    margin: 1px 0 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.topic-counts {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    flex-wrap: wrap;
}

.topic-count-tag {
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.topic-count-tag.has-video {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #6ee7b7;
    font-weight: 600;
}

/* ---------- KONU ANLATIMI & OYUN KARTLARI IZGARASI ---------- */
.lecture-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.lecture-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.92) 0%, rgba(12, 17, 29, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.26s ease, box-shadow 0.26s ease;
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.65);
}

.lecture-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 20px 42px -14px rgba(0, 0, 0, 0.8), 0 0 24px rgba(14, 165, 233, 0.12);
}

.lecture-card.card-has-lecture {
    border-color: rgba(245, 158, 11, 0.28);
}

.lecture-card.card-has-lecture:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 20px 42px -14px rgba(0, 0, 0, 0.8), 0 0 28px rgba(245, 158, 11, 0.16);
}

/* Kart Medya Alanı */
.lcard-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.lcard-media.is-playable {
    cursor: pointer;
}

.lcard-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lecture-card:hover .lcard-thumb-img {
    transform: scale(1.05);
}

.lcard-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lcard-fallback.fallback-grad-0 { background: linear-gradient(135deg, #0e4f7a 0%, #2563eb 100%); }
.lcard-fallback.fallback-grad-1 { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%); }
.lcard-fallback.fallback-grad-2 { background: linear-gradient(135deg, #065f46 0%, #0d9488 100%); }
.lcard-fallback.fallback-grad-3 { background: linear-gradient(135deg, #9a3412 0%, #d97706 100%); }
.lcard-fallback.fallback-grad-4 { background: linear-gradient(135deg, #831843 0%, #db2777 100%); }
.lcard-fallback.fallback-grad-5 { background: linear-gradient(135deg, #1e3a8a 0%, #0891b2 100%); }

.lcard-fallback-bg-icon {
    position: absolute;
    right: -12px;
    bottom: -18px;
    font-size: 5.8rem;
    color: rgba(255, 255, 255, 0.14);
    transform: rotate(-14deg);
}

.lcard-fallback-emblem {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.lcard-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 18, 0.48) 0%, rgba(6, 8, 18, 0.08) 42%, rgba(6, 8, 18, 0.82) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Medya Üzeri Rozetler */
.lcard-top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
}

.lcard-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 68%;
}

.lcard-status-pill.status-ready {
    background: rgba(16, 185, 129, 0.9);
    border: 1px solid rgba(167, 243, 208, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.lcard-status-pill.status-soon {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
}

.lcard-top-right-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    flex-shrink: 0;
}

.lcard-howto-chip,
.lcard-admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lcard-howto-chip {
    background: rgba(139, 92, 246, 0.86);
    border: 1px solid rgba(216, 180, 254, 0.5);
    color: #ffffff;
}

.lcard-howto-chip:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.04);
}

.lcard-admin-chip {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

.lcard-admin-chip:hover {
    background: rgba(245, 158, 11, 0.92);
    color: #0f172a;
}

/* Thumbnail Ortası Oynat Butonu */
.lcard-center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(234, 88, 12, 0.92));
    color: #ffffff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(245, 158, 11, 0.5);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.lcard-center-play i {
    margin-left: 3px;
}

.lcard-media.is-playable:hover .lcard-center-play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Kart İçerik Alanı */
.lcard-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
    min-width: 0;
}

.lcard-hierarchy-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.71rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.35;
}

.lcard-hierarchy-line .sep {
    color: #475569;
}

.lcard-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.lcard-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.52;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* MEB Kazanım Maddeleri */
.lcard-outcomes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}

.lcard-outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.16);
    font-size: 0.75rem;
    line-height: 1.38;
    color: #e2e8f0;
    min-width: 0;
}

.lcard-outcome-item i {
    color: #10b981;
    font-size: 0.74rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.lcard-outcome-item span {
    min-width: 0;
    overflow-wrap: break-word;
}

.lcard-outcome-more {
    font-size: 0.71rem;
    font-weight: 600;
    color: #64748b;
    padding-left: 4px;
}

/* ---------- ÇİFT AKSİYONLU KART ALT ÇUBUĞU (KONU ANLATIMI + OYUNU OYNA) ---------- */
.lcard-actions {
    margin-top: auto;
    padding: 13px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
    min-width: 0;
}

/* 1. Konu Anlatımını İzle (Aktif) */
.btn-watch-lecture {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.38) 100%);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fef3c7;
    box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.35);
}

.btn-watch-lecture:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(245, 158, 11, 0.55);
}

/* 1b. Konu Anlatımı Hazırlanıyor (Pasif) */
.btn-watch-pending {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
    cursor: not-allowed;
}

/* 2. Oyunu Oyna */
.btn-play-game {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    border-color: rgba(125, 211, 252, 0.4);
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.5);
}

.btn-play-game:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(14, 165, 233, 0.7);
}

/* ---------- Boş Durumlar ---------- */
.lectures-empty-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 22px;
    padding: 44px 20px;
    text-align: center;
    max-width: 620px;
    margin: 24px auto;
    box-sizing: border-box;
}

.lectures-empty-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    margin: 0 auto 16px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lectures-empty-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

.lectures-empty-card p {
    margin: 0 auto 22px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 480px;
}

.btn-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -6px rgba(14, 165, 233, 0.55);
}

/* ---------- SİNEMA MODU KONU ANLATIMI VİDEO MODALI ---------- */
.lecture-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3, 6, 14, 0.88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.lecture-modal-backdrop.is-open {
    display: flex;
    opacity: 1;
}

.lecture-modal-dialog {
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    background: #0b0f1c;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 22px;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.92), 0 0 45px rgba(245, 158, 11, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lecture-modal-backdrop.is-open .lecture-modal-dialog {
    transform: translateY(0) scale(1);
}

.lmodal-header {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lmodal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 220px;
}

.lmodal-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.lmodal-icon.mode-howto {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.42);
    color: #d8b4fe;
}

.lmodal-crumb {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
}

.lmodal-title {
    margin: 2px 0 0;
    font-size: 1.04rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.lmodal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lmodal-mode-tabs {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.lmodal-mode-tabs.has-both {
    display: inline-flex;
}

.lmodal-tab-btn {
    padding: 6px 10px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.lmodal-tab-btn.active {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.lmodal-tab-btn.tab-howto.active {
    background: rgba(168, 85, 247, 0.28);
    color: #f3e8ff;
}

.lmodal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lmodal-close-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.lmodal-stage {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 62vh;
    background: #000000;
    position: relative;
}

.lmodal-player-mount,
.lmodal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.lmodal-footer {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lmodal-kazanim-box {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.lmodal-kazanim-box i {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.lmodal-kazanim-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.lmodal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-modal-secondary {
    padding: 10px 16px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-modal-play-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px -5px rgba(14, 165, 233, 0.55);
}

/* ==========================================================================
   TABLET & MOBİL DUYARLILIK (Sıfır Yatay Taşma Garantisi)
   ========================================================================== */
@media (max-width: 1080px) {
    .lectures-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 26px 24px;
        gap: 22px;
    }

    .lecture-selects-pair {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .lectures-universe {
        padding: 16px 0 105px;
    }

    .lectures-container {
        padding: 0 14px;
    }

    .lectures-topbar {
        gap: 8px;
        margin-bottom: 14px;
    }

    .btn-back-station,
    .topbar-admin-link {
        padding: 8px 12px;
        font-size: 0.76rem;
        border-radius: 11px;
    }

    /* Hero Kartı */
    .lectures-hero {
        padding: 20px 16px;
        border-radius: 20px;
        gap: 18px;
        margin-bottom: 18px;
    }

    .ak-lec-eyebrow {
        font-size: 0.66rem;
        padding: 5px 11px;
        margin-bottom: 10px;
        letter-spacing: 0.02em;
    }

    .lectures-hero-title {
        font-size: 1.42rem;
        line-height: 1.24;
        margin-bottom: 9px;
    }

    .lectures-hero-desc {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    /* İstatistik Kutuları (2x2 Kompakt Bento) */
    .ak-lec-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .ak-lec-stat-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 13px;
        gap: 8px;
        border-radius: 14px;
    }

    .ak-lec-stat-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 9px;
        font-size: 0.92rem;
    }

    .ak-lec-stat-num {
        font-size: 1.12rem;
    }

    .ak-lec-stat-caption {
        font-size: 0.68rem;
        line-height: 1.2;
    }

    /* Filtre Paneli */
    .lectures-filter-panel {
        position: relative;
        top: 0;
        padding: 14px;
        border-radius: 18px;
        margin-bottom: 22px;
        gap: 10px;
    }

    .lecture-search-box {
        flex: 1 1 100%;
    }

    /* iOS Safari otomatik yakınlaştırmasını (auto-zoom) önlemek için 16px taban font */
    .lecture-search-input,
    .lecture-select {
        font-size: 16px;
        height: 44px;
    }

    .lecture-selects-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .video-only-toggle {
        width: 100%;
        justify-content: space-between;
    }

    /* Sınıf Sekmeleri: Yatay Kaydırılabilir Şerit */
    .filter-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .grade-pills-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        margin: 0 -2px;
    }

    .filter-summary-info {
        width: 100%;
    }

    /* Hiyerarşi Katmanları */
    .curriculum-tree {
        gap: 28px;
    }

    .grade-section {
        gap: 16px;
    }

    .grade-banner {
        padding: 14px 15px;
        border-radius: 16px;
        gap: 10px;
    }

    .grade-emblem {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1rem;
    }

    .grade-banner-sub {
        font-size: 0.74rem;
    }

    .lesson-section {
        padding: 14px 12px;
        border-radius: 18px;
        gap: 16px;
    }

    .lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
    }

    /* Konu Çipleri: Mobilde Tek Satır Yatay Kaydırma */
    .lesson-topic-chips {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .topic-block {
        padding: 14px 12px 16px;
        border-radius: 16px;
    }

    .lecture-cards-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* Video Modalı Mobil */
    .lecture-modal-backdrop {
        padding: 10px;
    }

    .lmodal-header,
    .lmodal-footer {
        padding: 12px 14px;
    }

    .lmodal-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .lmodal-actions {
        width: 100%;
    }

    .btn-modal-play-game {
        flex: 1;
    }
}

@media (max-width: 380px) {
    .lecture-selects-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 340px) {
    .lcard-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lecture-card,
    .btn-card-action,
    .lecture-modal-dialog {
        transition: none !important;
    }
}
