/* ==========================================================================
   ilge Academy — Öğrenme deneyimi: ders oynatıcı, quiz, ders detayı sekmeleri,
   yorumlar, puan/kur, vitrin medya, blog ve SSS
   ========================================================================== */

/* ------------------------------------------------------------------ Ders oynatıcı */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.player-main { min-width: 0; }
/* Python / JavaScript görev dersi: çalışma ekranı tüm genişliği kullanır, ders listesi altta */
.player.is-workspace { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
@media (max-width: 1180px) {
  .player.is-workspace { grid-template-columns: minmax(0, 1fr); }
  .player.is-workspace .player-side { position: static; max-height: none; }
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050F0E; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #9EBDB5; text-align: center; }
.player-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-side { position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); display: flex; flex-direction: column; overflow: hidden; }
.player-curriculum { overflow-y: auto; border-top: 1px solid var(--border); scrollbar-width: thin; }
.pc-module + .pc-module { border-top: 1px solid var(--border); }
.pc-module summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; list-style: none; background: var(--surface-2); }
.pc-module summary::-webkit-details-marker { display: none; }
.pc-module summary .chev { margin-left: auto; color: var(--subtle); transition: transform .2s var(--ease); }
.pc-module[open] summary .chev { transform: rotate(180deg); }
.pc-lesson { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; font-size: 13.5px; border-left: 3px solid transparent; }
.pc-lesson:hover { background: #FBFDFC; }
.pc-lesson.is-current { background: var(--tint); border-left-color: var(--primary-green); }
.pc-lesson .pc-icon { color: var(--subtle); margin-top: 2px; }
.pc-lesson.is-done .pc-icon { color: var(--primary-green); }
.pc-lesson.is-current .pc-title { font-weight: 800; }
.pc-title { display: block; font-weight: 600; line-height: 1.35; }
.player-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--border); background: var(--surface-2); overflow-x: auto; }
.player-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.player-tabs button.is-active { color: var(--text); border-bottom-color: var(--primary-green); }
.qa + .qa { border-top: 1px solid var(--border); }
.qa-reply { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.qa-reply.staff { background: var(--tint); }
.locked-lesson { text-align: center; display: grid; justify-items: center; gap: 10px; }

.prose { font-size: 15.5px; line-height: 1.75; }
.prose h3, .prose h4, .prose h5 { margin: 20px 0 8px; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 4px 0; }
.md-code { background: var(--ink-7); color: #DDEFE8; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font: 13px/1.6 var(--font-mono); margin: 12px 0; }
.md-code code { background: none; border: 0; padding: 0; color: inherit; }

/* ------------------------------------------------------------------ Quiz */
.quiz-head { position: sticky; top: var(--topbar-h); background: #fff; padding: 8px 0 12px; z-index: 2; border-bottom: 1px solid var(--border); }
.quiz-timer { font-variant-numeric: tabular-nums; font-size: 14px; height: 32px; }
.quiz-timer.is-urgent { background: var(--danger-bg); color: var(--danger); }
.quiz-list { display: grid; gap: 14px; margin-top: 16px; }
.quiz-q { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.quiz-q fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.quiz-q legend { font-weight: 800; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.quiz-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--dark-green); font-size: 12.5px; font-weight: 800; flex: none; margin-right: 8px; }
.quiz-q legend .quiz-n { margin-right: 0; }
.quiz-opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border); cursor: pointer; font-size: 14.5px; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: var(--border-strong); background: #FBFDFC; }
.quiz-opt input { width: 18px; height: 18px; accent-color: var(--primary-green); flex: none; }
.quiz-opt:has(input:checked) { border-color: var(--primary-green); background: var(--tint); font-weight: 700; }
.quiz-res { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; }
.quiz-res.right { border-color: var(--brand-pale); background: #F3FCF7; color: var(--deep-green); font-weight: 700; }
.quiz-res.right .i { color: var(--primary-green); }
.quiz-res.wrong { border-color: #F5CAC6; background: #FFF7F6; color: var(--danger); }

/* ------------------------------------------------------------------ Ders detay sekmeleri, yorumlar */
.detail-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; margin-top: 32px; position: sticky; top: var(--topbar-h); background: var(--background); z-index: 3; scrollbar-width: none; }
.detail-tabs a { padding: 12px 16px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-tabs a:hover { color: var(--text); }
.detail-tabs a.is-active { color: var(--text); border-bottom-color: var(--primary-green); }
.tab-panel { padding-top: 24px; }
.stars { display: inline-flex; gap: 2px; color: #E8A317; vertical-align: middle; }
.stars .i { fill: currentColor; width: 16px; height: 16px; }
.stars .i.off { fill: none; color: #D2DEDA; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #D2DEDA; display: inline-flex; }
.star-input label .i { width: 30px; height: 30px; fill: currentColor; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #E8A317; }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 6px; }
.rating-bars { display: grid; gap: 6px; }
.rating-bars .row { gap: 10px; font-size: 13px; }
.rating-bars .progress > span { background: #E8A317; }
.review + .review { border-top: 1px solid var(--border); }
.review { padding: 16px 0; }

/* ------------------------------------------------------------------ Puan / Kur / Yıldızlar */
.level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--sidebar); color: #CFEBDD; font-size: 12.5px; font-weight: 800; }
.level-badge .i { color: var(--primary-green); width: 14px; height: 14px; }
.leader li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.leader li + li { border-top: 1px dashed var(--border); }
.leader .rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); flex: none; }
.leader .pts { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.leader li.is-me { background: var(--tint); border-radius: 10px; padding-left: 6px; padding-right: 6px; }

/* ------------------------------------------------------------------ Vitrin medya */
.media-box { border-radius: 18px; overflow: hidden; background: var(--ink-7); }
.media-box img { width: 100%; max-height: 640px; object-fit: contain; background: var(--ink-7); }
.media-box video, .media-box iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; background: #fff; }
.media-box video { background: #000; }
.media-audio { padding: 32px; display: grid; gap: 16px; justify-items: center; color: #CFE3DC; }
.media-audio audio { width: 100%; }
.cover > img.cover-img { width: 100%; height: 100%; object-fit: cover; }
.type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.type-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); background: #fff; }
.type-chips a:hover { color: var(--text); border-color: var(--border-strong); }
.type-chips a.is-active { background: var(--sidebar); color: #fff; border-color: var(--sidebar); }

/* ------------------------------------------------------------------ Blog & SSS */
.blog-card .cover { aspect-ratio: 16 / 8; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.faq details + details { margin-top: 10px; }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; color: var(--subtle); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 18px; color: var(--muted); }
.sidebar-links { display: flex; gap: 14px; padding: 12px 12px 0; font-size: 12.5px; }
.sidebar-links a { color: #7FA49B; font-weight: 700; }
.sidebar-links a:hover { color: #fff; }

/* ------------------------------------------------------------------ İçerik editörü */
.ce-module { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
.ce-module + .ce-module { margin-top: 14px; }
.ce-module > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ce-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.ce-lesson + .ce-lesson { border-top: 1px dashed var(--border); }
.ce-warn { color: var(--warning); font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.kind-fields[hidden] { display: none; }

@media (max-width: 1100px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .player-side { position: static; max-height: 520px; }
}
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .player-nav { flex-wrap: wrap; }
  .player-nav form { order: -1; flex: 1 1 100%; }
  .player-nav form .btn { width: 100%; }
  .video-frame { border-radius: 12px; }
}

/* ---------------------------------------------------------------- Ders kilidi (oynatıcı) */
.lock-screen { text-align: center; display: grid; justify-items: center; gap: 12px; background:
  radial-gradient(120% 90% at 50% 0%, var(--surface-2), var(--surface) 60%); }
.lock-screen.is-waiting { background: radial-gradient(120% 90% at 50% 0%, #FFF8EA, var(--surface) 62%); border-color: #F3DDB0; }
.lock-orb { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.lock-orb .i { width: 32px; height: 32px; }
.is-waiting .lock-orb { background: var(--warning-bg); color: var(--warning); border-color: #F3DDB0; animation: lock-breathe 2.4s var(--ease-in-out, ease-in-out) infinite; }
.is-waiting .lock-orb .i { animation: hourglass-turn 2.4s var(--ease-smooth-out, ease) infinite; }
@keyframes lock-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(154, 91, 0, .14); } 50% { box-shadow: 0 0 0 12px rgba(154, 91, 0, 0); } }
@keyframes hourglass-turn { 0%, 60% { transform: rotate(0); } 80%, 100% { transform: rotate(180deg); } }
.lock-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lock-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.lock-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.lock-steps li.ok { color: var(--dark-green); border-color: var(--tint-strong); }
.lock-steps li.ok > span { background: var(--primary-green); color: #fff; }
.lock-steps li.now { color: var(--text); border-color: var(--text); }
.lock-steps li.now > span { background: var(--text); color: #fff; }
.is-waiting .lock-steps li.now { color: var(--warning); border-color: #E9C98A; }
.is-waiting .lock-steps li.now > span { background: var(--warning); }

.btn-locked { color: var(--muted); background: var(--surface-2); border-style: dashed; }
.btn-locked:hover { color: var(--text); }
.pc-lesson.is-locked .pc-title { color: var(--muted); font-weight: 500; }
.pc-lesson.is-locked .pc-icon { color: var(--border-strong); }
.pc-lesson.is-waiting .pc-icon { color: var(--warning); }
.pc-lesson.is-waiting .xs { color: var(--warning); font-weight: 700; }
.pc-mode { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .is-waiting .lock-orb, .is-waiting .lock-orb .i { animation: none; }
}
.pc-more { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-top: 1px dashed var(--border-strong); font-size: 13.5px; background: var(--surface-2); }
.pc-more .pc-icon { color: var(--subtle); margin-top: 2px; }
.pc-more.is-waiting { background: #FFF8EA; }
.pc-more.is-waiting .pc-icon, .pc-more.is-waiting .xs { color: var(--warning); }

/* ==========================================================================
   Ders oynatıcısı: devre animasyonlu zemin (circuitBg → panels.css .cb-*), üstte kurs bilgisi ve ilerleme kartları (.lp-*),
   sağda haftalara bölünmüş müfredat. Yazılar okunaklı boyutta; içerik kartları beyaz kalır.
   ========================================================================== */
.lp-hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 26px; color: #CFE3DB; }
.lp-hero-text { min-width: 0; flex: 1 1 360px; }
.lp-hero .breadcrumb { margin: 0 0 10px; font-size: 14.5px; }
.lp-course { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.2; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.lp-course-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14.5px; color: #A9C9BE; }
.lp-course-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Ders başlığı */
.lp-head { margin-bottom: 14px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 13px; border-radius: 99px; font-size: 14px; font-weight: 700; color: #DCEDE6; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.lp-chip.is-success { color: var(--brand-soft); background: rgba(var(--brand-rgb),  .16); border-color: rgba(var(--brand-rgb),  .4); }
.lp-chip.is-warning { color: #F6D58E; background: rgba(240, 180, 76, .14); border-color: rgba(240, 180, 76, .4); }
.lp-chip.is-info { color: #9DCBF6; background: rgba(76, 158, 235, .14); border-color: rgba(76, 158, 235, .4); }
.lp-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
body.has-circuit .player-main > p.muted, body.has-circuit .player-main > .xs.muted { color: #A9C9BE; }
.lock-date { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; padding: 6px 14px; border-radius: 99px; background: var(--tint); color: var(--deep-green); font-size: 14.5px; }

/* İçerik okunaklı */
.player-main .prose { font-size: 16.5px; line-height: 1.75; }
.player-main .prose h3, .player-main .prose h4 { margin-top: 1.2em; }

/* Müfredat */
body.has-circuit .player-side { border-color: rgba(255, 255, 255, .08); box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .7); }
.lp-side-head { display: grid; gap: 4px; padding: 20px 20px 16px; }
.lp-side-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-green); }
.lp-side-title { font-size: 18px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.lp-side-meta { font-size: 14px; color: var(--muted); }
.lp-side-head .pc-mode { font-size: 13px; }
.pc-module summary { padding: 14px 20px; }
.pc-module-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.pc-module-title { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text); }
.pc-module-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.pc-module-bar { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pc-module-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--primary-green); }
.pc-lesson { align-items: center; gap: 12px; padding: 12px 20px 12px 17px; font-size: 15px; }
.pc-lesson .pc-icon { margin-top: 0; align-self: flex-start; padding-top: 2px; }
.pc-lesson .pc-title { font-size: 15px; }
.pc-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pc-lesson.is-waiting .pc-meta { color: var(--warning); font-weight: 700; }
.pc-task { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pc-task.is-success { background: var(--success-bg); color: var(--success); }
.pc-task.is-warning { background: var(--warning-bg); color: var(--warning); }
.pc-task.is-info { background: var(--info-bg); color: var(--info); }
.pc-now { flex: none; align-self: center; padding: 3px 9px; border-radius: 99px; background: var(--primary-green); color: #fff; font-size: 12px; font-weight: 800; }

@media (max-width: 640px) {
  .lp-hero { margin-bottom: 18px; }
  .lp-chip { font-size: 13px; min-height: 30px; }
  .player-main .prose { font-size: 16px; }
}

/* Kurs tanıtım sayfası (course-detail) devre zemininde: üst bilgi açık renk, sekmeler koyu cam, kartlar beyaz */
body.has-circuit .detail-hero > div > .row .chip:not(.chip-success):not(.chip-info) { background: rgba(255, 255, 255, .08); color: #DCEDE6; }
body.has-circuit .detail-hero .h1 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.03em; }
body.has-circuit .detail-hero > div > .lead { color: #B2CFC5; font-size: 18px; }
body.has-circuit .detail-hero > div > .row .author .n { color: #fff; font-size: 15px; }
body.has-circuit .detail-hero > div > .row .author .r { color: #93B7AB; }
body.has-circuit .detail-hero > div > .row .meta { font-size: 14.5px; color: #A9C9BE; gap: 8px 18px; }
body.has-circuit .detail-hero > div > .row .meta .i { color: var(--brand-soft); }
body.has-circuit .detail-hero > div > .row .rating { color: #fff; } body.has-circuit .detail-hero > div > .row .rating .muted { color: #93B7AB; }
body.has-circuit .detail-tabs { background: rgba(var(--ink-3-rgb),  .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgba(255, 255, 255, .1); border-radius: 14px 14px 0 0; padding: 0 6px; }
body.has-circuit .detail-tabs a { color: #A9C9BE; font-size: 15px; }
body.has-circuit .detail-tabs a:hover { color: #fff; }
body.has-circuit .detail-tabs a.is-active { color: #fff; border-bottom-color: var(--primary-green); }
body.has-circuit .tab-panel > .section-head h2, body.has-circuit .tab-panel > .section .section-head h2 { color: #fff; }
body.has-circuit .tab-panel > .section-head p, body.has-circuit .tab-panel > .section .section-head p { color: #A9C9BE; }
body.has-circuit .tab-panel > .section-head .muted, body.has-circuit .tab-panel > .section-head strong { color: #DCEDE6; }
body.has-circuit .tab-panel > .section .section-head .eyebrow { color: var(--brand-soft); }
body.has-circuit .tab-panel .module { border-color: rgba(255, 255, 255, .08); }
body.has-circuit .tab-panel .lesson { font-size: 15px; }
body.has-circuit .tab-panel .lesson .dur { font-size: 13.5px; }
body.has-circuit .buy-card { border-color: rgba(255, 255, 255, .08); box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .7); }
a.lp-course { display: inline-flex; align-items: center; gap: 8px; }
a.lp-course .i { color: var(--brand-soft); opacity: .7; transition: opacity .15s, transform .15s; }
a.lp-course:hover .i { opacity: 1; transform: translate(2px, -2px); }
.task-desc { font-size: 15.5px; line-height: 1.7; }

/* ==========================================================================
   İlerleme hattı (partials/circuit-progress.ejs): devre kartı gibi iki hat. Üstte DERSLER, altta ÖDEVLER;
   düğümler kurs sırasına göre hizalı, her ödev ders hattına dikey kolla bağlanır, haftalar kesik çizgiyle ayrılır.
   Ders = yuvarlak pad · ödev = bacaklı çip · quiz = elmas. Tamamlananlar arası hat yeşil yanar, sıradakine akım akar.
   ========================================================================== */
.lp-hero > .cp { flex: 1 1 100%; min-width: 0; }
.cp { margin-top: 4px; padding: 20px 22px 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(var(--ink-rgb),  .8), rgba(var(--ink-3-rgb),  .8)); border: 1px solid rgba(var(--brand-rgb),  .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px -28px rgba(0, 0, 0, .8); color: #CFE3DB; }
.detail-hero .cp { margin: 26px 0 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-soft); }
.cp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 15px; color: #A9C9BE; }
.cp-sum li { display: inline-flex; align-items: center; gap: 8px; }
.cp-sum strong { font-size: 16px; color: #fff; }
.cp-sum .is-warn { color: #F6D58E; font-weight: 700; }
.cp-pct strong { font-size: 19px; color: var(--brand-soft); }

.cp-body { --h: 260px; display: grid; grid-template-columns: 136px minmax(0, 1fr); margin-top: 8px; }
.cp-body.is-single { --h: 180px; }
.cp-lanes { position: relative; height: var(--h); }
.cp-lane { position: absolute; left: 0; right: 12px; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
.cp-lane-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(var(--brand-rgb),  .14); border: 1px solid rgba(var(--brand-rgb),  .4); color: var(--brand-soft); }
.cp-lane-ico .i { width: 20px; height: 20px; }
.cp-lane.k-task .cp-lane-ico { background: rgba(110, 196, 240, .12); border-color: rgba(110, 196, 240, .4); color: #9DD8F6; }
.cp-lane b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.cp-lane em { display: block; font-style: normal; font-size: 18px; font-weight: 800; color: var(--brand-soft); }
.cp-lane.k-task em { color: #9DD8F6; }

.cp-scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(var(--brand-soft-rgb),  .3) transparent; }
.cp-board { position: relative; height: var(--h); min-width: calc(var(--n) * 80px); }
.cp-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-sep { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; }
.cp-trace { fill: none; stroke: rgba(var(--brand-soft-rgb),  .17); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cp-trace.is-stub { stroke: rgba(var(--brand-soft-rgb),  .1); stroke-dasharray: 3 9; }
.cp-trace.is-branch { stroke-width: 4; }
.cp-trace.is-lit { stroke: var(--primary-green); filter: drop-shadow(0 0 6px rgba(var(--brand-rgb),  .9)); }
.cp-trace.is-flow { stroke: var(--brand-soft); stroke-dasharray: 16 12; animation: cp-flow 1s linear infinite; }
@keyframes cp-flow { to { stroke-dashoffset: -28; } }
.cp-week { position: absolute; top: 2px; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #A9C9BE; }
.cp-via { position: absolute; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink-2); border: 3px solid rgba(var(--brand-soft-rgb),  .4); }
.cp-via.is-lit { background: var(--brand-soft); border-color: var(--primary-green); box-shadow: 0 0 10px rgba(var(--brand-rgb),  .9); }

.cp-node { position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; color: #DCEDE6; text-decoration: none; }
.cp-pad { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ink-2); border: 3px solid rgba(var(--brand-soft-rgb),  .5); transition: transform .15s, box-shadow .15s, background .15s; }
.cp-pad .i { width: 22px; height: 22px; }
/* Ödev: bacaklı çip */
.cp-node.k-task .cp-pad { border-radius: 11px; }
.cp-node.k-task .cp-pad::before, .cp-node.k-task .cp-pad::after { content: ''; position: absolute; top: 9px; bottom: 9px; width: 8px; background: repeating-linear-gradient(180deg, rgba(var(--brand-soft-rgb),  .6) 0 3px, transparent 3px 7px); }
.cp-node.k-task .cp-pad::before { left: -11px; }
.cp-node.k-task .cp-pad::after { right: -11px; }
/* Quiz: elmas */
.cp-node.k-quiz .cp-pad { width: 40px; height: 40px; border-radius: 8px; transform: rotate(45deg); }
.cp-node.k-quiz .cp-pad .i { transform: rotate(-45deg); }

.cp-node.is-done .cp-pad { background: var(--primary-green); border-color: var(--brand-soft); color: var(--ink-3); box-shadow: 0 0 0 5px rgba(var(--brand-rgb),  .16), 0 0 20px rgba(var(--brand-rgb),  .75); }
.cp-node.is-open .cp-pad { border-color: var(--brand-soft); color: #fff; }
.cp-node.is-pending .cp-pad { background: rgba(240, 180, 76, .18); border-color: #F0B44C; color: #F6D58E; box-shadow: 0 0 14px rgba(240, 180, 76, .5); }
.cp-node.is-warn .cp-pad { background: rgba(240, 120, 76, .16); border-color: #F08A4C; color: #F8B694; }
.cp-node.is-waiting .cp-pad, .cp-node.is-locked .cp-pad { border-style: dashed; border-color: rgba(255, 255, 255, .3); color: rgba(220, 237, 230, .6); background: rgba(11, 38, 35, .8); }
.cp-node.is-next .cp-pad { animation: cp-pulse 2.2s ease-out infinite; }
.cp-node.is-current .cp-pad { box-shadow: 0 0 0 4px var(--ink-3), 0 0 0 7px #fff, 0 0 22px rgba(255, 255, 255, .45); }
.cp-node.is-current.is-done .cp-pad { box-shadow: 0 0 0 4px var(--ink-3), 0 0 0 7px #fff, 0 0 22px rgba(var(--brand-rgb),  .85); }
a.cp-node:hover .cp-pad, a.cp-node:focus-visible .cp-pad { transform: scale(1.1); }
a.cp-node.k-quiz:hover .cp-pad, a.cp-node.k-quiz:focus-visible .cp-pad { transform: rotate(45deg) scale(1.1); }
a.cp-node:focus-visible { outline: none; }
a.cp-node:focus-visible .cp-pad { outline: 3px solid #F6D58E; outline-offset: 4px; }
@keyframes cp-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-soft-rgb),  .6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(var(--brand-soft-rgb),  0); } }

/* Düğüm bilgisi: ders hattındakiler aşağı, ödev hattındakiler yukarı açılır (kaydırma alanı dışına taşmasın) */
.cp-tip { position: absolute; left: 50%; z-index: 5; display: grid; gap: 3px; width: max-content; max-width: 250px; padding: 9px 12px; border-radius: 11px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.35; text-align: left; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s; }
.cp-tip strong { font-weight: 800; }
.cp-tip small { color: var(--muted); font-size: 13px; }
.cp-node.lane-lesson .cp-tip { top: calc(100% + 12px); }
.cp-node.lane-task .cp-tip { bottom: calc(100% + 12px); }
.cp-node.tip-l .cp-tip { left: -6px; transform: none; }
.cp-node.tip-r .cp-tip { left: auto; right: -6px; transform: none; }
.cp-node:hover, .cp-node:focus-visible { z-index: 10; }
.cp-node:hover .cp-tip, .cp-node:focus-visible .cp-tip { opacity: 1; }

.cp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; color: #93B7AB; }
.cp-legend li { display: inline-flex; align-items: center; gap: 7px; }
.cp-key { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid var(--brand-soft); border-radius: 50%; }
.cp-key.k-task { border-radius: 4px; border-color: #9DD8F6; }
.cp-key.k-quiz { width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); }
.cp-dot { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; }
.cp-dot.is-done { background: var(--primary-green); box-shadow: 0 0 8px rgba(var(--brand-rgb),  .8); }
.cp-dot.is-pending { background: #F0B44C; }
.cp-dot.is-current { background: #fff; }
.cp-dot.is-locked { border: 1.5px dashed rgba(255, 255, 255, .45); }
@media (prefers-reduced-motion: reduce) {
  .cp-trace.is-flow, .cp-node.is-next .cp-pad { animation: none; }
}
@media (max-width: 640px) {
  .cp { padding: 16px 12px 12px; }
  .cp-body { --h: 240px; grid-template-columns: 54px minmax(0, 1fr); }
  .cp-body.is-single { --h: 170px; }
  .cp-lane { flex-direction: column; align-items: flex-start; gap: 4px; right: 6px; }
  .cp-lane b { display: none; }
  .cp-lane-ico { width: 36px; height: 36px; }
  .cp-lane em { font-size: 15px; }
  .cp-board { min-width: calc(var(--n) * 70px); }
  .cp-sum { gap: 4px 14px; font-size: 14px; }
}

/* Ders sayfası üst alanı: Soru-Cevap bağlantısı */
.lp-qa { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: border-color .15s, background .15s; }
.lp-qa > .i:first-child { color: var(--brand-soft); }
.lp-qa strong { display: block; font-size: 14.5px; }
.lp-qa small { display: block; font-size: 12.5px; color: #A9C9BE; }
.lp-qa:hover { border-color: rgba(var(--brand-soft-rgb),  .5); background: rgba(var(--brand-rgb),  .12); }

/* Dersin altındaki soru-cevap özeti ve notlar */
.lq-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 18px; padding: 20px 22px; }
.lq-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.lq-text p { margin: 0; font-size: 14.5px; color: var(--muted); }
.lq-text .lq-last { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 14px; }
.lq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-ico { align-self: start; }
.lq-note-label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
@media (max-width: 760px) {
  .lq-card { grid-template-columns: auto minmax(0, 1fr); }
  .lq-actions { grid-column: 1 / -1; }
}

/* ==========================================================================
   Kursun Soru-Cevap sayfası (/dersler/:slug/sorular)
   ========================================================================== */
.qa-hero { align-items: center; }
.qa-hero .lp-title { margin: 6px 0 0; }
.qa-hero .is-warn { color: #F6D58E; }
.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.qa-main { display: grid; gap: 16px; min-width: 0; }
.qa-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.qa-h2 .i { color: var(--dark-green); }
.qa-ask { padding: 22px; }
.qa-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.qa-filters a { padding: 8px 14px; border-radius: 10px; color: #CFE3DB; font-size: 14px; font-weight: 700; }
.qa-filters a:hover { background: rgba(var(--brand-rgb),  .16); color: #fff; }
.qa-filters a.is-active { background: var(--primary-green); color: #fff; }
.qa-filters a.qa-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: rgba(255, 255, 255, .1); color: #fff; }
.qa-list { display: grid; gap: 12px; }
.qa-item { padding: 18px 20px; border-left: 4px solid #F0B44C !important; scroll-margin-top: calc(var(--topbar-h) + 20px); }
.qa-item.is-answered { border-left-color: var(--primary-green) !important; }
.qa-item:target { box-shadow: 0 0 0 3px rgba(var(--brand-soft-rgb),  .6), 0 22px 48px -28px rgba(0, 0, 0, .7); }
.qa-q { display: flex; gap: 12px; }
.qa-q-main { flex: 1; min-width: 0; }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.qa-meta .chip { height: 22px; }
.qa-state { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.qa-state.is-ok { background: var(--success-bg); color: var(--success); }
.qa-state.is-wait { background: var(--warning-bg); color: var(--warning); }
.qa-lesson { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--dark-green); }
.qa-lesson:hover { text-decoration: underline; text-underline-offset: 3px; }
.qa-body { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.qa-replies { display: grid; gap: 10px; margin: 14px 0 0 52px; }
.qa-reply { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.qa-reply.is-staff { background: var(--tint); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),  .3); }
.qa-reply .qa-body { font-size: 15px; margin-top: 4px; }
.qa-reply-form { margin: 12px 0 0 52px; }
.qa-reply-form summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.qa-reply-form summary::-webkit-details-marker { display: none; }
.qa-side { position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow: auto; padding: 20px; }
.qa-side-all, .qa-side li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--text); }
.qa-side-all:hover, .qa-side li a:hover { background: var(--surface-2); }
.qa-side .is-active { background: var(--tint); color: var(--deep-green); font-weight: 800; }
.qa-side-week { margin: 14px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.qa-count { flex: none; min-width: 24px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 800; text-align: center; }
.qa-side .is-active .qa-count { background: #fff; color: var(--deep-green); }
@media (max-width: 1000px) {
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-side { position: static; order: -1; max-height: 230px; }
}
@media (max-width: 640px) {
  .qa-item { padding: 14px; }
  .qa-replies, .qa-reply-form { margin-left: 0; }
  .qa-state { margin-left: 0; }
  .qa-filters a.qa-chip { margin-left: 0; }
}

/* ------------------------------------------------------------------ Ödev: Gönder düğmesi kod alanının başlığında, Çalıştır'ın yanında
   (eski teslim düğmesi kod alanının altında kalıyordu; öğrenci görmeyebiliyordu) */
.editor-send { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px;
  background: #fff; color: var(--deep-green); font: 800 13px var(--font-body); cursor: pointer; transition: transform .12s, background .15s; }
.editor-send:hover { background: var(--tint); transform: translateY(-1px); }
.editor-send:focus-visible { outline: 2px solid var(--brand-soft-2); outline-offset: 2px; }
.editor-send .spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.editor-send.is-loading .spinner { display: inline-block; }
.editor-send.is-loading .btn-icon { display: none; }
.odv-head { flex-wrap: wrap; row-gap: 6px; }

/* Ödev gönderildi → ders tamamlandı, sonraki derse geç (görev panelinin en üstünde) */
.task-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tint), #F4FBF7); border: 1px solid #BFE6CF; }
.task-next-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-green); color: #fff; }
.task-next strong { display: block; font-size: 15px; color: var(--deep-green); }
.task-next .small { color: var(--muted); }
@media (max-width: 640px) {
  .task-next { grid-template-columns: auto minmax(0, 1fr); }
  .task-next > .btn, .task-next > .chip { grid-column: 1 / -1; justify-content: center; }
}

/* ------------------------------------------------------------------ Ders planı sıralama (kurs içeriği) */
.ce-plan-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 13.5px; }
.ce-plan-hint .i { margin-top: 3px; flex: none; }
.ce-mmove { display: flex; gap: 2px; }
.ce-list { min-height: 8px; transition: background .15s; }
.ce-list.is-target { background: var(--tint); }
.ce-empty { margin: 0; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.ce-grip { display: grid; place-items: center; width: 22px; height: 34px; margin-left: -6px; border-radius: 6px; color: var(--subtle); cursor: grab; touch-action: none; }
.ce-grip:hover { background: var(--surface-2); color: var(--text); }
.ce-order { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.ce-lesson { background: #fff; }
.ce-lesson.is-task { box-shadow: inset 3px 0 0 #E0A21A; }
.ce-lesson.is-task .ce-order { background: #FFF4E0; color: var(--warning); }
.ce-lesson.is-dragging { opacity: .5; background: var(--tint); }
.ce-lesson.is-moved { animation: ce-moved 1.2s var(--ease); }
@keyframes ce-moved { 0% { background: rgba(var(--brand-rgb), .25); } 100% { background: #fff; } }
.is-sorting .ce-lesson:not(.is-dragging) { transition: transform .12s; }
.ce-move { position: relative; }
.ce-move > summary { list-style: none; }
.ce-move > summary::-webkit-details-marker { display: none; }
.ce-move-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(340px, 80vw); display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.ce-move-pop .label { font-size: 13px; }

/* ------------------------------------------------------------------ Ödev çalışma ekranı: dört pencere yan yana
   1 Kod · 2 Çıktı · 3 Animasyon · Ders planı. Görev sayfasında içerik genişliği büyür (1360 → 1800 px) ki
   üç çalışma penceresi sıkışmadan sığsın; ders planı daha dar sütunda yanında durur. */
body:has(.player.is-workspace) .content { max-width: 1800px; }
@media (min-width: 1181px) { .player.is-workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; } }
.player.is-workspace .task-panel { padding: 20px 20px 22px; }
.player.is-workspace .odv { --ws-h: clamp(520px, 76vh, 820px); gap: 10px; }
.player.is-workspace .player-side { border-radius: 18px; }
.player.is-workspace .player-side .player-curriculum { font-size: 14px; }
/* Pencere başlıkları aynı yükseklikte, köşeler aynı yuvarlaklıkta */
.player.is-workspace .odv-code, .player.is-workspace .odv-run { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.player.is-workspace .odv-head { min-height: 50px; }
@media (max-width: 1180px) {
  body:has(.player.is-workspace) .content { max-width: 1360px; }
}
/* Dar kod penceresinde başlık tek satır kalsın: düğmeler biraz sıkışır */
.player.is-workspace .odv--wide .odv-head { gap: 6px; padding-right: 6px; }
.player.is-workspace .odv--wide .editor-run, .player.is-workspace .odv--wide .editor-send { padding: 7px 11px; }
/* Kod penceresi 400 px'ten darsa başlıkta yalnızca ikonlar ve ana düğmeler kalır (tek satır) */
.player.is-workspace .odv-code { container-type: inline-size; }
@container (max-width: 400px) {
  .odv-head h3, .odv-head .odv-live span { display: none; }
  .odv-head .editor-run, .odv-head .editor-send { padding: 7px 10px; }
}

/* ------------------------------------------------------------------ Ders oynatıcı: geniş yerleşim
   Sayfa ekranın genişliğini kullanır; ders listesi daha geniş; video ve açıklaması aralıksız tek kart. */
.content:has(> .player) { max-width: 1760px; }
.player { grid-template-columns: minmax(0, 1fr) clamp(360px, 26vw, 460px); gap: 28px; }
.lp-stage { overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .75); }
body.has-circuit .lp-stage { border: 1px solid rgba(255, 255, 255, .08); }
.lp-stage .video-frame { border-radius: 0; box-shadow: none; }
.lp-stage-body { padding: 22px 28px 26px; }
.lp-resume { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 28px; font-size: 13.5px; color: var(--muted); background: var(--surface-2); }
.lp-stage-body { border-bottom: 1px solid var(--border); }
.lp-stage > .video-frame:last-child { border-radius: 0; }
/* Ders listesi: ferah satırlar, şu anki ders belirgin */
.player-side { border-radius: 20px; }
.lp-side-head { padding: 22px 24px 18px; }
.pc-module summary { padding: 15px 24px; }
.pc-lesson { padding: 13px 24px 13px 21px; transition: background .15s ease; }
.pc-lesson:hover { background: var(--surface-2); }
.pc-lesson.is-current { background: linear-gradient(90deg, var(--tint), transparent 120%); }
.pc-lesson.is-current .pc-icon { color: var(--primary-green); }
.pc-lesson.is-locked { opacity: .72; }
@media (max-width: 1100px) {
  .player { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lp-stage { border-radius: 14px; }
  .lp-stage-body { padding: 18px; }
  .lp-resume { padding: 10px 18px; }
}

/* ------------------------------------------------------------------ Ders planı (sağ sütun): daha geniş, okunaklı, kart görünümlü satırlar
   Görev (kod) sayfasında da dar kalmasın; uzun ders adları kesilmeden alt satıra geçer. */
@media (min-width: 1181px) { .player.is-workspace { grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 420px); gap: 22px; } }
.player.is-workspace .player-side .player-curriculum { font-size: inherit; }
.player-side { background: var(--surface); }
.lp-side-head { gap: 6px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }
.lp-side-title { font-size: 19px; }
.lp-side-meta { font-size: 14.5px; }
.player-curriculum { border-top: 0; padding: 6px 0 10px; }
.pc-module + .pc-module { border-top: 0; }
.pc-module summary { margin: 6px 12px 2px; padding: 14px 14px; border-radius: 14px; background: var(--surface-2); transition: background .15s ease; }
.pc-module summary:hover { background: var(--tint); }
.pc-module[open] summary { background: var(--tint); }
.pc-module-title { font-size: 15.5px; line-height: 1.35; }
.pc-module-meta { font-size: 13.5px; }
.pc-lesson { margin: 2px 12px; padding: 12px 14px; border-left: 0; border-radius: 12px; align-items: flex-start; gap: 12px; }
.pc-lesson:hover { background: var(--surface-2); }
.pc-lesson .pc-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pc-lesson .pc-meta { font-size: 13.5px; margin-top: 3px; }
.pc-lesson .pc-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-top: 0; padding: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.pc-lesson.is-done .pc-icon { background: var(--tint); color: var(--primary-green); }
.pc-lesson.is-done .pc-title { color: var(--muted); }
.pc-lesson.is-current { position: relative; background: var(--tint); }
/* Etkin ders çubuğu: inset gölge 12 px köşede kıvrılıyordu; düz çubuk */
.pc-lesson.is-current::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-green); }
.pc-lesson.is-current .pc-icon { background: var(--primary-green); color: #fff; }
.pc-lesson.is-current .pc-title { font-weight: 800; color: var(--text); }
.pc-lesson.is-locked { opacity: .7; }
.pc-now { align-self: flex-start; margin-top: 4px; }
.pc-more { margin: 6px 12px 0; border-radius: 12px; border-top: 0; }
@media (max-width: 1100px) { .pc-lesson { margin: 2px 8px; } .pc-module summary { margin: 6px 8px 2px; } }
/* ---------------------------------------------------------------- İlerleme kuralları: izleme göstergesi ve final sınavı (services/course-rules.js) */
.watch-meter { padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.watch-meter .progress > span { transition: width .4s var(--ease, ease); }
.final-tasks { display: grid; gap: 6px; width: min(100%, 560px); margin: 4px 0 0; padding: 0; list-style: none; text-align: left; }
.final-tasks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 14px; }
.final-tasks li > .link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.final-tasks li .i { color: var(--muted); }
.final-tasks li.ok .i { color: var(--primary-green); }
.final-rights { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--tint); color: var(--deep-green); font-size: 14px; }
.final-rights.is-empty { background: var(--warning-bg); color: var(--warning); }
@media (max-width: 560px) { .final-tasks li { grid-template-columns: auto minmax(0, 1fr) auto; } .final-tasks li > .xs { grid-column: 2 / -1; } }
