/* ============ VİDEO DERSLER ============ */
.vid-add-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--primary-soft); }
.vid-add-bar p { margin: 0; font-weight: 600; }

.vid-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.vid-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cc); }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 55%, #000)); color: #fff; }
.vt-ic { font-size: 2.6rem; font-weight: 800; opacity: .25; position: absolute; left: 14px; top: 8px; }
.vt-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; background: rgba(255,255,255,.95); color: var(--cc); box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.vid-card:hover .vt-play { transform: scale(1.08); }
.vt-src { position: absolute; right: 10px; bottom: 8px; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.45); }
.vt-done { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--green); }
.vid-body { display: grid; gap: 3px; padding: 14px 16px 16px; }
.vid-body b { font-size: 1rem; line-height: 1.3; }
.vid-ders { color: var(--cc, var(--primary)); font-weight: 700; font-size: .8rem; }

/* İzleme sayfası */
.vid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.vid-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0a12; }
.vid-player iframe, .vid-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vp-start { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--cc), color-mix(in srgb, var(--cc) 45%, #000)); }
.vp-start .vt-ic { font-size: 5rem; }
.vp-btn { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; padding-left: 6px; background: #fff; color: var(--cc); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s; }
.vp-start:hover .vp-btn, .vp-start:focus-visible .vp-btn { transform: scale(1.08); }
.vp-note { position: absolute; bottom: 12px; font-size: .78rem; opacity: .85; }
.vp-load { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #ddd; }
.vid-info { margin-top: 14px; }
.vi-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.vi-head h1 { font-size: 1.35rem; margin: 2px 0 4px; }
.vi-head p { margin: 0; }
.vi-act { display: flex; gap: 8px; flex-wrap: wrap; }
.vi-desc { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.7; }
.vid-side { display: grid; gap: 14px; }
.vs-list, .vs-tests { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vs-list a, .vs-tests a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text); }
.vs-list a:hover, .vs-tests a:hover { background: var(--bg-alt); }
.vs-list span:last-child, .vs-tests span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.vs-list small, .vs-tests small { color: var(--muted); }
.vs-ic { width: 52px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .8rem; background: var(--cc); }
.vs-tests a > span:first-child { font-size: 1.2rem; }

/* Video ekleme formu */
.vf-src { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.vf-src label { position: relative; cursor: pointer; }
.vf-src input { position: absolute; opacity: 0; }
.vf-src span { display: block; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.vf-src input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.vf-src input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

@media (max-width: 1000px) { .vid-layout { grid-template-columns: minmax(0, 1fr); } }

/* ============ ANİMASYONLU DERS OYNATICI ============ */
.dp { border-radius: 18px; overflow: hidden; background: #0b0a12; color: #fff; outline: none; }
.dp:focus-visible { box-shadow: 0 0 0 3px var(--primary); }
.dp-stage {
  position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden;
  background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--cc, #1e3a8a) 45%, transparent), transparent 55%),
              linear-gradient(135deg, color-mix(in srgb, var(--cc, #1e3a8a) 50%, #0b0a12), #0b0a12);
}
.dp-scene { position: absolute; inset: 0; padding: 5cqw 6cqw; display: grid; align-content: center; font-size: clamp(13px, 2.6cqw, 34px); line-height: 1.35; }
.dp-big { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; background: rgba(11,10,18,.45); cursor: pointer; }
.dp-big span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; padding-left: 6px; background: #fff; color: #0b0a12; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s; }
.dp-big:hover span, .dp-big:focus-visible span { transform: scale(1.08); }
.dp-big:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.dp-big[hidden] { display: none; }

/* Alt yazı: sahnenin altında, her zaman okunur (görüntünün üstüne binmez) */
.dp-cc { min-height: 3.6em; padding: 12px 18px; background: #000; color: #fff; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; line-height: 1.45; text-align: center; display: grid; place-items: center; }
.dp-cc[hidden] { display: none; }

.dp-prog { display: flex; gap: 3px; padding: 10px 14px 0; background: #14131d; }
.dp-seg { position: relative; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; min-width: 8px; }
.dp-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 3px; background: #3b3a4e; }
.dp-seg i { position: absolute; left: 0; top: 6px; height: 6px; border-radius: 3px; background: #93c5fd; width: 0; }
.dp-seg[aria-current] i { background: #fff; }
.dp-seg:hover::before { background: #555470; }
.dp-seg:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.dp-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px 10px; background: #14131d; }
.dp-btn { min-width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 1.15rem; cursor: pointer; }
.dp-btn:hover { background: #1a3268; }
.dp-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.dp-btn:disabled { opacity: .45; cursor: not-allowed; }
.dp-btn:disabled:hover { background: transparent; }
.dp-play { background: #fff; color: #0b0a12; }
.dp-play:hover { background: #e7e5f4; }
.dp-txt { font-size: .85rem; font-weight: 800; letter-spacing: .04em; }
.dp-txt[aria-pressed="true"] { background: #93c5fd; color: #0b0a12; }
.dp-time { font-variant-numeric: tabular-nums; font-size: .9rem; color: #d6d4e6; margin: 0 6px; }
.dp-ad { flex: 1; min-width: 0; font-size: .85rem; color: #b9b7cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-hiz select { height: 40px; border-radius: 10px; border: 1px solid #3b3a4e; background: #1d1c2a; color: #fff; padding: 0 8px; font: inherit; font-size: .9rem; }
.dp-hiz select:focus-visible { outline: 3px solid #93c5fd; }

/* Tam ekran */
.dp:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.dp:fullscreen .dp-stage { flex: 1; aspect-ratio: auto; }
.dp:fullscreen .dp-cc { font-size: 1.6rem; }

/* Sahne öğeleri: sırayla belirir (Hareketleri azalt açıksa animasyon yok) */
.ani { animation: dpIn .6s ease both; animation-delay: calc(var(--i, 0) * .7s); }
@keyframes dpIn { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ani, .sema-ok { animation: none !important; } .sema-ok { stroke-dashoffset: 0; } }

.sc-kapak { text-align: center; display: grid; gap: .4em; }
.sc-kapak small { font-size: .7em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; }
.sc-kapak h2 { font-size: 2.3em; line-height: 1.1; margin: 0; font-weight: 800; color: #fff; }
.sc-kapak p { margin: 0; font-size: .9em; color: #e7e5f4; }
.sc-tanim { display: grid; gap: .45em; }
.sc-tanim h3, .sc-soru h3 { margin: 0; font-size: 1.45em; font-weight: 800; color: #fff; }
.sc-kutu { margin: 0; padding: .55em .8em; border-radius: .5em; background: rgba(255,255,255,.1); border-left: .22em solid #93c5fd; color: #fff; }
.sc-kutu b { color: #bfdbfe; }
.sc-madde { font-size: .9em; color: #f1f0f8; }
.sc-madde small { color: #c9c7da; }
.sc-formul { display: inline-block; font-family: inherit; font-weight: 600; font-size: 1.1em; padding: .25em .7em; border-radius: .4em; background: rgba(147,197,253,.16); color: #fff; }
.sc-formul b { color: #93c5fd; }
.sc-formul-alt { font-size: .7em; color: #c9c7da; margin-top: .2em; }
.sc-soru { display: grid; gap: .45em; justify-items: start; }
.sc-cevap .sc-formul { background: #93c5fd; color: #0b0a12; }
.sc-cevap .sc-formul b { color: #0b0a12; }
.sc-iki { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.sc-iki p { margin: .3em 0 0; font-size: .9em; color: #f1f0f8; }
.sc-etiket { font-weight: 800; font-size: 1.1em !important; }
.sc-etiket.ok { color: #86efac !important; }
.sc-etiket.hayir { color: #fca5a5 !important; }
.sc-sema { width: 100%; height: auto; color: #fff; }
.sc-sema ellipse { fill: rgba(255,255,255,.08); stroke: #93c5fd; stroke-width: 2.5; }
.sc-sema text { fill: #fff; font-size: 19px; font-weight: 700; font-family: inherit; }
.sema-ok { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 200; stroke-dashoffset: 200; animation: dpCiz .7s ease forwards; animation-delay: calc(.6s + var(--i, 0) * .45s); }
@keyframes dpCiz { to { stroke-dashoffset: 0; } }
html.reduce-motion .sema-ok { stroke-dashoffset: 0; }

/* Dersin tam metni */
.vi-metin { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.vi-metin summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.vi-metin-ic { display: grid; gap: 12px; margin-top: 10px; }
.vi-metin-ic h3 { font-size: 1rem; margin: 0 0 2px; }
.vi-metin-ic p { margin: 0; line-height: 1.7; }
.vi-not { margin: 12px 0 0; }

@media (max-width: 560px) {
  .dp-time { display: none; }
  .dp-btn { min-width: 40px; height: 40px; }
  .sc-iki { grid-template-columns: 1fr; gap: 1cqw; }
  .sc-iki .sc-sema { max-height: 34cqw; }
}

.vp-file { gap: 10px; align-content: center; justify-items: center; line-height: 1.5; }
.vp-file b { font-size: 1.1rem; color: #fff; }
.vp-file span { max-width: 52ch; }
