/* בראבו קורסים · מערכת הלמידה */
.lms-body { background: var(--bg-2); }

/* ---------- סרגל עליון ---------- */
.lbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.lbar__in { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 10px 16px; max-width: 1500px; margin-inline: auto; }
.lbar__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-l); font-weight: 700; font-size: 15px; }
.lbar__back:hover { background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.lbar .logo__mark { height: 40px; width: auto; }
.lbar .logo__name { font-size: 19px; }

.pick { position: relative; }
.pick__btn { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; text-align: start; min-height: 48px; padding: 6px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); max-width: 360px; }
.pick__lbl { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.pick__cur { grid-row: 2; font-family: var(--font-head); font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick__chev { grid-row: span 2; grid-column: 2; color: var(--gold); transition: transform .3s; }
.pick__btn[aria-expanded="true"] .pick__chev { transform: rotate(180deg); }
.pick__menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: min(380px, calc(100vw - 32px)); padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); z-index: 5; }
.pick__head { font-size: 13px; font-weight: 700; color: var(--gold); padding: 8px 10px 4px; }
.pick__item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; }
.pick__item:hover { background: rgb(255 255 255 / .06); }
.pick__item.is-on { background: color-mix(in srgb, var(--yellow) 14%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pick__num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); font-weight: 800; flex: none; }
.pick__num .ico { width: 19px; height: 19px; }
.pick__item strong { display: block; font-size: 15.5px; line-height: 1.3; }
.pick__item small { color: var(--muted); font-size: 13.5px; }

.prog { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; min-width: 220px; }
.prog__txt { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.prog__pct { font-family: var(--font-head); font-size: 22px; color: var(--gold-l); }
.prog__bar { flex: 1; height: 10px; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; min-width: 120px; }
.prog__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-l), var(--gold)); transition: width .6s ease; }
@media (max-width: 720px) {
  .lbar__back span { display: none; }
  .lbar .logo__name { display: none; }
  .pick { flex: 1; } .pick__btn { width: 100%; max-width: none; }
  .prog { order: 5; width: 100%; margin: 0; }
}

/* ---------- פריסה ---------- */
.lms { display: grid; gap: 22px; padding: 18px 16px 40px; max-width: 1500px; margin-inline: auto; }
@media (min-width: 1024px) { .lms { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; padding: 24px; } }

/* ---------- נגן ---------- */
.player { position: relative; border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow-card); border: 2px solid color-mix(in srgb, var(--yellow) 30%, transparent); scroll-margin-top: 90px; }
.player__screen { position: relative; aspect-ratio: 16/9; background: #000; }
.player__screen video, .player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player.is-full { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.player.is-full .player__screen { flex: 1; aspect-ratio: auto; }
.poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; overflow: hidden; padding: 20px;
  background: radial-gradient(800px 400px at 70% 20%, color-mix(in srgb, var(--teal) 70%, transparent), transparent 70%), var(--ink); }
.poster__glow { position: absolute; width: 50%; aspect-ratio: 1; border-radius: 50%; bottom: -30%; left: -10%; background: color-mix(in srgb, var(--yellow) 35%, transparent); filter: blur(70px); }
.poster__brand { position: absolute; inset: auto 0 -6%; font-family: 'Archivo Black', sans-serif; font-size: 22vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--yellow) 20%, transparent); pointer-events: none; }
@media (min-width: 1024px) { .poster__brand { font-size: 15vw; } }
.poster__in { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 640px; }
.poster__ch { font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.poster__t { font-family: var(--font-head); font-weight: 900; font-size: clamp(20px, 3.6vw, 40px); line-height: 1.15; text-wrap: balance; }
.poster__wave { height: 34px; margin-top: 6px; }
.poster__msg { color: var(--muted); font-size: clamp(15px, 1.8vw, 17px); max-width: 460px; }
.poster__play { position: relative; order: -1; width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--ink); box-shadow: 0 0 0 12px color-mix(in srgb, var(--yellow) 18%, transparent), var(--shadow-gold); transition: transform .2s; }
.poster__play:hover { transform: scale(1.06); }
.poster__play .ico { width: 34px; height: 34px; margin-inline-start: -4px; }
@media (max-width: 560px) { .poster__play { width: 64px; height: 64px; } .poster__play .ico { width: 26px; height: 26px; } .poster__msg { font-size: 14px; } .poster__wave { display: none; } .poster { gap: 8px; } .poster__t { font-size: 18px; } }

.player__ctrl { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: color-mix(in srgb, var(--ink) 94%, #000); direction: rtl; }
.player.is-embed .player__ctrl { display: none; }
.pc { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.pc:hover { background: rgb(255 255 255 / .08); }
.pc--play { background: var(--gold); color: var(--ink); border-radius: 50%; }
.pc--play:hover { background: var(--gold-l); }
.pc--speed { width: auto; padding: 0 10px; font-weight: 800; font-size: 14px; direction: ltr; }
.pc--vol.is-muted { opacity: .45; }
.pc__time { font-size: 14px; color: var(--muted); white-space: nowrap; direction: ltr; padding: 0 6px; font-variant-numeric: tabular-nums; }
.pc__seek { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.pc__seek::before, .pc__buf, .pc__fill { content: ""; position: absolute; top: 50%; translate: 0 -50%; right: 0; height: 6px; border-radius: 99px; }
.pc__seek::before { left: 0; background: rgb(255 255 255 / .14); }
.pc__buf { background: rgb(255 255 255 / .22); width: 0; }
.pc__fill { background: linear-gradient(270deg, var(--gold-l), var(--gold)); width: 0; }
.pc__fill::after { content: ""; position: absolute; left: -7px; top: 50%; translate: 0 -50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--gold); }
.player.is-empty .pc__seek, .player.is-empty .pc--vol, .player.is-empty .pc--speed { opacity: .4; pointer-events: none; }
@media (max-width: 480px) { .pc--speed { display: none; } .pc__time { font-size: 13px; padding: 0 2px; } }

/* ---------- מידע על השיעור ---------- */
.info { margin-top: 22px; display: grid; gap: 16px; }
.info__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.info__ch { font-size: 15px; font-weight: 700; color: var(--gold); }
.info__title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-top: 4px; }
.info__nav .btn:disabled { opacity: .35; pointer-events: none; }
.info__sum { color: var(--muted); font-size: 17.5px; max-width: 760px; }
.info__done { justify-self: start; white-space: normal; text-align: center; }
.info__done.is-done { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); color: #d4f7e3; box-shadow: none; border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
@media (max-width: 560px) { .info__done { width: 100%; font-size: 16px; } .info__nav .btn { padding: 8px 12px; } }

.ltabs { display: flex; gap: 6px; overflow-x: auto; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); margin-top: 10px; scrollbar-width: none; }
.ltabs::-webkit-scrollbar { display: none; }
.ltab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; flex: none; }
.ltab .ico { width: 19px; height: 19px; }
.ltab.is-on { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--ink); }
.lpanel { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-soft); display: grid; gap: 14px; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.files { display: grid; gap: 10px; }
.file { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.file__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--yellow) 16%, transparent); color: var(--gold); flex: none; }
.file__txt { flex: 1 1 160px; display: grid; line-height: 1.35; }
.file__txt small { color: var(--muted); font-size: 14px; }
.file--soon .file__txt small { color: var(--gold-l); }

.keys { display: grid; gap: 10px; counter-reset: k; }
.keys li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); }
.keys__n { font-family: var(--font-head); font-weight: 900; color: var(--gold); font-size: 18px; min-width: 26px; }
.lpanel .js-print { justify-self: start; }

.notes { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.notes textarea { width: 100%; min-height: 150px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-soft); background: var(--bg-2); color: #fff; font-size: 16px; resize: vertical; }
.notes textarea:focus { outline: none; border-color: var(--gold); }
.notes__ok { font-size: 14px; color: var(--ok); min-height: 1.2em; }

.help { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.help__ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #25D366; color: #fff; flex: none; }
.help__ico .ico { width: 30px; height: 30px; }
.help > div { flex: 1 1 240px; }
.help h3 { font-size: 20px; }
.help p { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* ---------- סרגל הסילבוס ---------- */
.side { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 18px 14px; }
@media (min-width: 1024px) { .side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-d) transparent; } }
.side__head { display: grid; gap: 4px; padding: 0 6px 12px; }
.side__kicker { font-size: 14px; font-weight: 700; color: var(--gold); }
.side__title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.side__count { font-size: 14px; color: var(--muted); }
.side__search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-soft); margin-bottom: 12px; }
.side__search .ico { width: 19px; height: 19px; color: var(--muted); }
.side__search input { flex: 1; min-height: 46px; background: none; border: 0; color: #fff; font-size: 16px; min-width: 0; }
.side__search input:focus { outline: none; }
.side__search:focus-within { border-color: var(--gold); }
.side__empty { text-align: center; color: var(--muted); padding: 18px; }

.ch { border-radius: 18px; }
.ch + .ch { margin-top: 6px; }
.ch__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-align: start; }
.ch__head:hover { background: rgb(255 255 255 / .05); }
.ch.is-open > .ch__head { background: var(--bg-2); }
.ch__num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 15px; background: var(--ink); color: var(--gold); border: 1px solid var(--line); flex: none; }
.ch.is-done .ch__num { background: var(--ok); color: #05281a; border-color: transparent; }
.ch__txt { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.ch__t { font-size: 15.5px; }
.ch__meta { font-size: 13px; color: var(--muted); }
.ch__chev { width: 20px; height: 20px; color: var(--gold); transition: transform .3s; }
.ch.is-open .ch__chev { transform: rotate(180deg); }
.ch__lessons { display: none; padding: 6px 0 6px; }
.ch.is-open .ch__lessons { display: grid; gap: 2px; }

.les { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 8px; border-radius: 14px; text-align: start; position: relative; }
.les:hover { background: rgb(255 255 255 / .05); }
.les.is-cur { background: color-mix(in srgb, var(--yellow) 14%, transparent); box-shadow: inset -3px 0 0 var(--gold); }
.les__st { width: 24px; height: 24px; border-radius: 50%; border: 2px solid color-mix(in srgb, #fff 30%, transparent); flex: none; position: relative; margin-inline-start: 7px; }
.les[data-st="seen"] .les__st { border-color: var(--gold); background: conic-gradient(var(--gold) 0 50%, transparent 50% 100%); }
.les[data-st="done"] .les__st { border-color: var(--ok); background: var(--ok); }
.les[data-st="done"] .les__st::after { content: ""; position: absolute; inset: 4px 6px 7px 5px; border: solid #05281a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.les__txt { flex: 1; display: grid; min-width: 0; line-height: 1.35; }
.les__t { font-size: 15.5px; }
.les[data-st="done"] .les__t { color: var(--muted); }
.les__sub { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.les__sub .ico { width: 14px; height: 14px; }
.les__play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line); flex: none; }
.les__play .ico { width: 13px; height: 13px; margin-inline-start: -2px; }
.les.is-cur .les__play { background: var(--gold); color: var(--ink); border-color: transparent; }

.lfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 24px 90px; max-width: 1500px; margin-inline: auto; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.lfoot a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1100px) { .adm-open .lms { grid-template-columns: 1fr; } .adm-open .side { position: static; max-height: none; } }

/* ---------- הדפסה: סיכום השיעור ---------- */
@media print {
  body, .lms-body { background: #fff; color: #000; }
  .lbar, .player, .side, .lfoot, .ltabs, .info__done, .info__nav, .js-print, [data-lp="files"], [data-lp="notes"], [data-lp="help"], .adm { display: none !important; }
  .lms { display: block; padding: 0; }
  [data-lp="sum"] { display: grid !important; background: #fff; border: 0; padding: 0; }
  .info__ch { color: #555; } .info__sum { color: #222; }
  .keys li { background: #f4f1e8; color: #000; } .keys__n { color: #7a6a3a; }
}
