/* ג׳אז - מצגת. שפה חזותית: מועדון לילה - שחור חם, שמנת, פליז כהדגשה יחידה, Heebo, RTL */
@font-face { font-family: "Heebo"; src: url("fonts/Heebo.ttf") format("truetype"); font-weight: 100 900; }

:root {
  --bg0: #0b0907; --bg1: #1a140e; --ink: #f3ead9; --dim: #a8987f; --line: #3d3226;
  --blue: #d8c7a6; --red: #e3a23b; --amber: #ffcf7a;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body { font-family: "Heebo", Arial, sans-serif; color: var(--ink); direction: rtl; }

/* במה קבועה 1920x1080 שמוקטנת לחלון */
#stage { position: absolute; width: 1920px; height: 1080px; left: 50%; top: 50%; transform-origin: 0 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, var(--bg1), var(--bg0) 70%); }
.slide { position: absolute; inset: 0; padding: 110px 120px 170px; opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease), visibility 0s .8s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* רקע צילום עם Ken Burns */
.bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.slide.active .bg { animation: kb 22s linear forwards; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11,9,7,.92) 0%, rgba(11,9,7,.55) 55%, rgba(11,9,7,.25) 100%); }
.shade.full { background: rgba(11,9,7,.62); }

/* טיפוגרפיה */
.kicker { font-size: 26px; font-weight: 500; letter-spacing: .02em; color: var(--red); display: flex; align-items: center; gap: 18px; }
.kicker::before { content: ""; width: 64px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease) .1s; }
.slide.active .kicker::before { transform: scaleX(1); }
h1 { font-size: 168px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
h2 { font-size: 72px; font-weight: 700; line-height: 1.08; margin-top: 18px; }
h3 { font-size: 36px; font-weight: 600; line-height: 1.2; }
p, li { font-size: 30px; font-weight: 300; line-height: 1.45; color: #ddd0bb; }
.dim { color: var(--dim); }
.red { color: var(--red); }
.en { direction: ltr; unicode-bidi: isolate; font-weight: 400; }

/* טיפוגרפיה קינטית: מילים/אותיות שעולות מטשטוש, לפי --i */
.kt .w, .kt .c { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(10px); }
.slide.active .kt .w, .slide.active .kt .c { animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + var(--i) * var(--s, 60ms)); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.kt-scale .c { transform: scale(1.6); filter: blur(18px); }
.kt-wipe { clip-path: inset(0 0 0 100%); }
.slide.active .kt-wipe { animation: wipe 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* כניסה כללית */
.in { opacity: 0; transform: translateY(24px); }
.slide.active .in { animation: rise 1s var(--ease) forwards; animation-delay: var(--d, .2s); }
.rule { height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; }
.slide.active .rule { transition: transform 1.1s var(--ease) var(--d, .6s); transform: scaleX(1); }

/* שלבים בתוך שקופית (לחיצה) */
[data-step] { opacity: 0; transform: translateX(-30px); filter: blur(6px); transition: all .7s var(--ease); }
[data-step].shown { opacity: 1; transform: none; filter: none; }

/* כרטיסים */
.card { background: linear-gradient(180deg, rgba(40,31,22,.72), rgba(20,15,10,.72)); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 34px; backdrop-filter: blur(6px); }
.num { font-size: 22px; font-weight: 700; color: var(--red); letter-spacing: .08em; }

/* מסגרת וידאו */
.vframe { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(227,162,59,.08); background: #000; }
.vframe video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vframe .tag { position: absolute; top: 18px; right: 18px; background: rgba(11,9,7,.8); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 16px; font-size: 20px; color: var(--dim); }
.vframe .tag b { color: var(--red); font-weight: 700; }

/* מספרים גדולים */
.big { font-size: 150px; font-weight: 800; line-height: .95; color: var(--ink); font-variant-numeric: tabular-nums; }
.unit { font-size: 34px; font-weight: 400; color: var(--dim); }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat .v { font-size: 56px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 22px; color: var(--dim); margin-top: 6px; }

/* ציר הזמן הקבוע בתחתית - "בכל שקופית את ציר הזמן" */
#timeline { position: absolute; left: 290px; right: 120px; bottom: 54px; height: 70px; z-index: 40; direction: ltr; }
#timeline .track { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
#timeline .fill { position: absolute; left: 0; top: 30px; height: 2px; background: var(--red); width: 0; transition: width 1.2s var(--ease); }
#timeline .tick { position: absolute; top: 22px; transform: translateX(-50%); text-align: center; transition: opacity .6s; }
#timeline .tick i { display: block; width: 18px; height: 18px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line); background: var(--bg0); transition: all .6s var(--ease); }
#timeline .tick span { display: block; margin-top: 6px; font-size: 18px; color: var(--dim); white-space: nowrap; direction: rtl; }
#timeline .tick.past i { border-color: var(--red); background: var(--red); }
#timeline .tick.now i { border-color: var(--red); background: var(--bg0); box-shadow: 0 0 0 6px rgba(227,162,59,.25); transform: scale(1.25); }
#timeline .tick.now span { color: var(--ink); font-weight: 600; }
#timeline.off { opacity: .25; }
#timeline.hide { opacity: 0; }
#timeline .tick.up span { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); margin: 0; }
#timeline .clock { position: absolute; left: -170px; top: 14px; direction: rtl; font-size: 22px; color: var(--dim); }
#timeline .clock b { color: var(--ink); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 8px; }

/* מספר שקופית */
#pager { position: absolute; right: 120px; top: 54px; direction: ltr; z-index: 40; font-size: 20px; color: var(--dim); letter-spacing: .1em; }

#tlband { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 39; pointer-events: none;
  background: linear-gradient(0deg, rgba(11,9,7,.92) 0%, rgba(11,9,7,.7) 55%, rgba(11,9,7,0) 100%); transition: opacity .6s; }

/* ===== תבניות נוספות (גרסה מלאה) ===== */
.credit { position: absolute; left: 10px; bottom: 8px; font-size: 13px; color: rgba(243,234,217,.72); background: rgba(11,9,7,.55);
  padding: 2px 8px; border-radius: 6px; direction: ltr; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.ph { position: relative; overflow: hidden; border-radius: 14px; background: #16110c; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide.active .ph img.kb { animation: kb 18s linear forwards; }

/* פתיח פרק */
.chapter .num-big { font-size: 300px; font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(227,162,59,.85); }
.chapter h2 { font-size: 110px; margin-top: 10px; }

/* כרטיס עם תמונה */
.pcard { display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(40,31,22,.75), rgba(20,15,10,.85));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pcard .ph { border-radius: 0; }
.pcard .body { padding: 18px 22px 22px; }
.pcard h3 { font-size: 30px; }
.pcard .en-sub { font-size: 19px; color: var(--blue); direction: ltr; text-align: right; margin-top: 2px; }
.pcard p { font-size: 21px; line-height: 1.4; margin-top: 8px; color: #cbbda6; }

/* תרשים זרימה */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow .node { flex: 1; text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(26,20,14,.8); position: relative; }
.flow .node h3 { font-size: 30px; } .flow .node p { font-size: 21px; color: var(--dim); margin-top: 8px; }
.flow .node .ic { font-size: 20px; color: var(--red); font-weight: 700; letter-spacing: .08em; }
.flow .arr { width: 64px; display: grid; place-items: center; color: var(--red); font-size: 40px; }

/* הצהרה */
.statement { font-size: 76px; font-weight: 700; line-height: 1.18; max-width: 1500px; }
.statement em { font-style: normal; color: var(--red); }

/* תיבת "הידעת" */
.fact { border-right: 4px solid var(--red); padding: 10px 22px; background: rgba(227,162,59,.07); border-radius: 0 12px 12px 0; }
.fact b { color: var(--red); font-weight: 700; display: block; font-size: 20px; letter-spacing: .06em; margin-bottom: 4px; }
.fact p { font-size: 24px; }

/* טבלה */
table.t { border-collapse: collapse; width: 100%; font-size: 26px; }
table.t th { text-align: right; color: var(--dim); font-weight: 500; font-size: 20px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
table.t td { padding: 14px 16px; border-bottom: 1px solid rgba(61,50,38,.5); color: #e6dac6; }
table.t td.k { color: var(--ink); font-weight: 600; }

/* קרדיטים */
.credits-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 28px; font-size: 13px; line-height: 1.45; color: #b3a58e; direction: ltr; text-align: left; }
.credits-list div { break-inside: avoid; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credits-list b { color: #ece0cc; font-weight: 600; }

/* ===== מעבדת צליל: מקלדת, שריג גיטרה, שבבי דוגמה ===== */
.labgrid { display: grid; grid-template-columns: 560px 1fr; gap: 56px; height: 100%; align-items: start; }
.lab { direction: rtl; display: flex; flex-direction: column; gap: 22px; }
.lab-ctl { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 22px "Heebo", Arial; color: var(--ink); background: rgba(40,31,22,.8); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 20px 8px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all .25s; }
.chip:hover { border-color: var(--red); }
.chip.act { border-color: var(--red); background: rgba(227,162,59,.14); }
.chip .pl { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--red); }
.chip.playing .pl { width: 11px; height: 13px; border: 0; border-left: 4px solid var(--red); border-right: 4px solid var(--red); }
.chip.playing { background: rgba(227,162,59,.25); box-shadow: 0 0 0 4px rgba(227,162,59,.15); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.seg button { font: 500 20px "Heebo", Arial; color: var(--dim); background: transparent; border: 0; padding: 8px 20px; cursor: pointer; }
.seg button.sel { background: var(--red); color: #1a1208; font-weight: 700; }
.view { position: relative; background: rgba(20,15,10,.7); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; direction: ltr; }
.view .vl { position: absolute; top: -13px; right: 18px; background: var(--bg0); padding: 0 10px; font-size: 18px; color: var(--dim); direction: rtl; }
.kb, .fb { display: block; }
.kb .w rect { fill: #efe6d4; stroke: #2a2118; }
.kb .b rect { fill: #17120d; stroke: #000; }
.kb text { font: 700 18px "Heebo", Arial; fill: #1a1208; }
.kb .b text { fill: #f3ead9; font-size: 13px; }
.kb .oct { font-weight: 400; font-size: 11px; fill: #8b7b63; }
.kb .w.mk rect { fill: #f1c97c; } .kb .b.mk rect { fill: #a86d14; }
.kb .w.char rect { fill: #ff9a5c; } .kb .b.char rect { fill: #d4572a; }
.kb .k rect { transition: fill .15s, transform .12s; }
.kb .k.on rect { fill: #ffe7a8 !important; filter: drop-shadow(0 0 10px rgba(255,200,90,.95)); }
.kb .b.on rect { fill: #ffbe4a !important; }
.kb .k { cursor: pointer; }
.fb .wood { fill: #2b1d12; stroke: #4a3722; }
.fb .fret { stroke: #b9ab94; stroke-width: 2.5; } .fb .nut { stroke: #efe6d4; stroke-width: 7; }
.fb .str { stroke: #d9cbb2; }
.fb .inlay { fill: #6c5a42; }
.fb .fnum { font: 15px "Heebo", Arial; fill: #8b7b63; } .fb .sname { font: 600 17px "Heebo", Arial; fill: #a8987f; }
.fb .mute { font: 700 26px "Heebo", Arial; fill: #8b7b63; }
.fb .dot circle { fill: #e3a23b; stroke: #1a1208; stroke-width: 2; transition: all .15s; }
.fb .dot text { font: 700 15px "Heebo", Arial; fill: #1a1208; pointer-events: none; }
.fb .dot.char circle { fill: #ff8a4c; }
.fb .dot.on circle { fill: #ffe7a8; r: 21; filter: drop-shadow(0 0 10px rgba(255,200,90,.95)); }
.fb .dot { cursor: pointer; }
.chart { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; }
.chart .cell { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 3px 10px; background: rgba(20,15,10,.7); min-width: 0; transition: all .2s; }
.chart .cell b { font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.chart .cell i { font-style: normal; font-size: 15px; color: var(--dim); }
.chart .cell.now { border-color: var(--red); background: rgba(227,162,59,.22); transform: translateY(-3px); }
.lab-cap { font-size: 23px; color: var(--dim); min-height: 34px; margin-top: 4px; }
.lab-cap b { color: var(--ink); font-weight: 600; }
.formula { display: flex; gap: 8px; direction: ltr; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.formula span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 22px; color: var(--ink); }
.formula span.h { border-color: var(--red); color: var(--red); }
.hint { font-size: 19px; color: var(--dim); margin-top: 16px; }
.legend { display: flex; gap: 22px; font-size: 19px; color: var(--dim); margin-top: 14px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -2px; margin-left: 8px; }

/* חמשה */
.st .sl { stroke: #b9ab94; stroke-width: 1.6; }
.st .clef { font: 92px "Segoe UI Symbol", "Noto Music", serif; fill: #e9dcc4; }
.st .ksig { font: 34px "Segoe UI Symbol", "Noto Music", serif; fill: #e9dcc4; }
.st .nh ellipse { fill: #f3ead9; transition: fill .15s; }
.st .nh .acc { font: 30px "Segoe UI Symbol", "Noto Music", serif; fill: #f3ead9; }
.st .nh .acc.chg { fill: #ff9a5c; }
.st .nh .nl { font: 600 17px "Heebo", Arial; fill: #a8987f; }
.st .nh.on ellipse { fill: #ffd27a; filter: drop-shadow(0 0 9px rgba(255,200,90,.95)); }
.st .nh.on .nl { fill: #ffd27a; }
.lab.withstaff { gap: 16px; }
.lab.withstaff .view { padding: 10px 14px 6px; }
/* סרגל הפרקים מימין לשמאל */
#timeline .fill { left: auto !important; right: 0; }

/* שמות התווים, כללים, מעגל הקווינטות */
.names { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; }
.names span { border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 6px 0 4px; background: rgba(40,31,22,.6); }
.names b { display: block; font-size: 26px; color: var(--ink); } .names i { font-style: normal; font-size: 18px; color: var(--red); }
.rules { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.rules > div { border-right: 4px solid var(--red); background: rgba(227,162,59,.07); border-radius: 0 12px 12px 0; padding: 8px 18px; }
.rules b { display: block; color: var(--red); font-size: 21px; } .rules p { font-size: 21px; line-height: 1.4; }
.cof .ring { fill: none; stroke: var(--line); }
.cof .hub { fill: rgba(20,15,10,.9); stroke: var(--line); }
.cof .key path { fill: rgba(40,31,22,.85); stroke: #0b0907; stroke-width: 3; transition: fill .2s; cursor: pointer; }
.cof .key[data-q="m"] path { fill: rgba(28,22,15,.9); }
.cof .key:hover path { fill: rgba(227,162,59,.35); }
.cof .key.hot path { fill: #e3a23b; }
.cof text { text-anchor: middle; dominant-baseline: central; pointer-events: none; font-family: "Heebo", "Segoe UI Symbol", Arial; }
.cof .kM { font-size: 32px; font-weight: 700; fill: var(--ink); } .cof .km { font-size: 21px; fill: #cbbda6; }
.cof .ka { font-size: 21px; fill: var(--red); font-weight: 600; } .cof .kc { font-size: 18px; fill: var(--dim); }
.cof .key.hot text { fill: #1a1208; }

.cof, .st, .kb, .fb { direction: ltr; }
.cof text { unicode-bidi: plaintext; }

table.t.sm td { padding: 6px 10px; } table.t.sm th { padding: 5px 10px; font-size: 17px; }
.st .cl { font-size: 19px; fill: #cbbda6; }

/* טבלת סימני ההיתק */
.ksrow { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; margin-top: 30px; }
.ksrl b { display: block; font-size: 30px; color: var(--red); } .ksrl span { display: block; font-size: 19px; color: var(--dim); margin-top: 4px; line-height: 1.35; }
.ksg { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.kscell { border: 1px solid var(--line); border-radius: 12px; background: rgba(20,15,10,.7); padding: 8px 6px 8px; text-align: center; cursor: pointer; transition: all .2s; }
.kscell:hover { border-color: var(--red); } .kscell.hot { background: rgba(227,162,59,.25); border-color: var(--red); }
.kscell svg { display: block; margin: 0 auto; overflow: visible; }
.kscell b { display: block; font-size: 25px; color: var(--ink); margin-top: 4px; } .kscell i { display: block; font-style: normal; font-size: 16px; color: var(--dim); }
.cof .st text { text-anchor: start; dominant-baseline: auto; }
.cof .st .sl { stroke-width: 1.1; }
/* ציר סימני ההיתק */
.nline { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; direction: ltr; margin-top: 18px; }
.nline span { text-align: center; font-size: 18px; padding: 9px 0; transition: all .25s; border-radius: 6px; background: rgba(40,31,22,.8); color: var(--ink); font-family: "Heebo", "Segoe UI Symbol", Arial; }
.nline .fl { background: rgba(120,140,190,.18); } .nline .sh { background: rgba(227,162,59,.18); } .nline .z { box-shadow: inset 0 0 0 2px var(--dim); } .nline .cur { background: var(--red) !important; color: #1a1208; font-weight: 800; transform: scale(1.18); }
.nlab { display: flex; justify-content: space-between; direction: ltr; font-size: 19px; color: var(--dim); margin-top: 4px; }
.cof .st .ksig { fill: #f1c97c; }
.rules p b.in2 { display: inline; color: var(--ink); font-size: inherit; }
[data-lab="keys"] .chip, [data-lab="keysmin"] .chip { padding: 5px 13px 5px 12px; font-size: 20px; gap: 7px; }
[data-lab="keys"] .chips, [data-lab="keysmin"] .chips { gap: 7px; }
.chips .brk { flex-basis: 100%; height: 0; }
.keybadge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 150px; padding: 4px 18px 8px;
  border: 1px solid var(--red); border-radius: 14px; background: rgba(227,162,59,.1); }
.keybadge b { font: 700 56px/1.05 "Heebo", "Segoe UI Symbol", Arial; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.keybadge span { font-size: 20px; color: var(--red); font-weight: 600; white-space: nowrap; }
.lab-ctl:has(.keybadge) { gap: 14px; }

/* מקרא סימולים */
.symlegend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 21px; color: #ddd0bb; }
.symlegend span { display: inline-flex; align-items: center; gap: 10px; }
.symlegend b { font: 700 32px/1 "Heebo", "Segoe UI Symbol", Arial; color: var(--red); min-width: 34px; text-align: center; }
.symgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.symc { border: 1px solid var(--line); border-radius: 12px; background: rgba(20,15,10,.75); padding: 10px 12px 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.symc:hover { border-color: var(--red); } .symc.hot { background: rgba(227,162,59,.25); border-color: var(--red); }
.symc .sy { display: flex; flex-wrap: wrap; gap: 2px 12px; direction: ltr; justify-content: flex-end; min-height: 38px; }
.symc .sy span { font: 700 26px/1.25 "Heebo", "Segoe UI Symbol", Arial; color: var(--ink); }
.symc .sy span:first-child { color: var(--red); }
.symc b { display: block; font-size: 21px; color: var(--ink); margin-top: 6px; }
.symc i { display: block; font-style: normal; font-size: 15px; color: var(--dim); margin-top: 2px; }
.symc .sy span { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* מנוע אקורדים */
.enggrid { display: grid; grid-template-columns: 640px 1fr; gap: 50px; height: 100%; }
.eng-ctl { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.eg label { display: block; font-size: 17px; color: var(--dim); margin-bottom: 4px; }
.ebtns { display: flex; flex-wrap: wrap; gap: 7px; }
.ebtns button { font: 600 20px "Heebo", "Segoe UI Symbol", Arial; color: var(--ink); background: rgba(40,31,22,.8); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; cursor: pointer; min-width: 46px; }
.ebtns button:hover { border-color: var(--red); }
.ebtns button.sel { background: var(--red); color: #1a1208; border-color: var(--red); }
.ebtns button:disabled { opacity: .3; cursor: default; }
.eng-out { display: flex; flex-direction: column; gap: 14px; }
.eng-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eng-sym b { display: block; font: 800 88px/1 "Heebo", "Segoe UI Symbol", Arial; color: var(--ink); direction: ltr; unicode-bidi: isolate; text-align: right; }
.eng-sym span { display: block; font-size: 24px; color: var(--red); margin-top: 6px; }
.eng-play { font: 700 24px "Heebo", Arial; background: var(--red); color: #1a1208; border: 0; border-radius: 999px; padding: 12px 30px; cursor: pointer; flex: none; }
.eng-notes { display: flex; gap: 10px; direction: ltr; flex-wrap: wrap; }
.eng-notes span { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; text-align: center; background: rgba(20,15,10,.7); }
.eng-notes b { display: block; font: 700 24px "Heebo", "Segoe UI Symbol", Arial; color: var(--ink); } .eng-notes i { display: block; font-style: normal; font-size: 16px; color: var(--red); }

/* אינדקס */
#idxbtn { position: absolute; left: 120px; top: 44px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(20,15,10,.8); color: var(--dim); font: italic 700 26px Georgia, serif; cursor: pointer; transition: all .2s; }
#idxbtn:hover { color: var(--ink); border-color: var(--red); }
#index { position: absolute; inset: 0; z-index: 60; background: rgba(5,4,3,.72); backdrop-filter: blur(6px); display: none; }
#index.open { display: block; }
.ipanel { position: absolute; left: 160px; right: 160px; top: 90px; bottom: 90px; background: #15100b; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.ihead { display: flex; align-items: baseline; gap: 24px; padding: 22px 34px 16px; border-bottom: 1px solid var(--line); }
.ihead h3 { font-size: 38px; color: var(--ink); } .ihead span { font-size: 19px; color: var(--dim); flex: 1; }
.iclose { font-size: 40px; line-height: 1; background: none; border: 0; color: var(--dim); cursor: pointer; }
.ibody { flex: 1; display: grid; grid-template-columns: 330px 1fr; min-height: 0; }
.itabs { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.itab { display: flex; align-items: center; gap: 14px; text-align: right; font: 500 24px "Heebo", Arial; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.itab b { color: var(--red); font-size: 20px; } .itab i { margin-right: auto; font-style: normal; font-size: 17px; color: var(--dim); }
.itab:hover { border-color: var(--line); } .itab.sel { background: rgba(227,162,59,.16); border-color: var(--red); }
.ilist { padding: 16px 20px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; align-content: start; }
.iitem { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; text-align: right; background: rgba(40,31,22,.55); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-family: "Heebo", Arial; }
.iitem b { grid-row: span 2; font-size: 22px; color: var(--red); align-self: center; } .iitem span { font-size: 22px; color: var(--ink); font-weight: 600; }
.iitem i { font-style: normal; font-size: 16px; color: var(--dim); }
.iitem:hover { border-color: var(--red); } .iitem.now { background: rgba(227,162,59,.2); border-color: var(--red); }

/* מנוע סולמות */
.sc-ctl { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; align-items: flex-start; }
.sc-ctl .ebtns .brk { flex-basis: 100%; height: 0; }
.sc-out { display: flex; flex-direction: column; gap: 14px; }
.sc-cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; direction: ltr; }
.scc { font-family: "Heebo", "Segoe UI Symbol", Arial; background: rgba(40,31,22,.8); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; cursor: pointer; text-align: center; }
.scc b { display: block; font-size: 22px; color: var(--red); } .scc span { display: block; font-size: 25px; font-weight: 700; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.scc i { display: block; font-style: normal; font-size: 15px; color: var(--dim); }
.scc:hover { border-color: var(--red); } .scc.sel { background: rgba(227,162,59,.22); border-color: var(--red); }
.st .chd.act ellipse { fill: #ffd27a; } .st .chd.act .cl { fill: #ffd27a; font-weight: 700; }

/* דיאגרמות אקורד לגיטרה */
.gview { padding: 12px 14px 8px !important; }
.gdiags { display: flex; gap: 14px; justify-content: center; direction: ltr; min-height: 196px; align-items: center; }
.gcard { background: rgba(40,31,22,.6); border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px 6px; cursor: pointer; font-family: "Heebo", Arial; }
.gcard:hover { border-color: var(--red); } .gcard.on { background: rgba(227,162,59,.22); border-color: var(--red); }
.gdg { display: block; } .gdg .gst { stroke: #d9cbb2; stroke-width: 1.6; } .gdg .gfr { stroke: #8b7b63; stroke-width: 1.6; } .gdg .gnut { stroke: #efe6d4; stroke-width: 6; }
.gdg .gdot { fill: #e3a23b; } .gdg .gdot.rt { fill: #ff8a4c; } .gdg .gdl { font: 700 12px "Heebo", Arial; fill: #1a1208; }
.gdg .gop { fill: none; stroke: #e3a23b; stroke-width: 2; } .gdg .gop.rt { stroke: #ff8a4c; }
.gdg .gmx { font: 700 20px "Heebo", Arial; fill: #8b7b63; } .gdg .gbase { font: 700 17px "Heebo", Arial; fill: #e3a23b; }
.gdg .glab { font: 600 12px "Heebo", Arial; fill: #a8987f; }
.gfrets { font: 600 16px "Heebo", Arial; color: var(--dim); text-align: center; letter-spacing: .04em; }
.gnone { font-size: 20px; color: var(--dim); direction: rtl; }
.eng-out { gap: 12px !important; }

/* מפתח וסימני היתק כצורות (לא תווי גופן) */
.st path.clef, .st path.ksig { fill: #e9dcc4; stroke: none; }
.st .nh path.acc { fill: #f3ead9; } .st .nh path.acc.chg { fill: #ff9a5c; }
.cof .st path.ksig { fill: #f1c97c; }

/* מעגל קווינטות מורחב */
.cof .key[data-q="d"] path { fill: rgba(20,15,10,.95); }
.cof .kd { font-size: 17px; fill: #b3a58e; }
.cof .key.ing path { fill: rgba(227,162,59,.3) !important; stroke: #e3a23b; }
.cof .key.ing text { fill: #fff3dc; }
.cof .key.hot path { fill: #e3a23b !important; } .cof .key.hot text { fill: #1a1208; }
.cof .rn { font-size: 15px; font-weight: 700; fill: #ffcf7a !important; }
.cof .key.hot .rn { fill: #1a1208 !important; }
.cof .kcen { font-size: 34px; font-weight: 800; fill: var(--ink); } .cof .kcen2 { font-size: 15px; fill: var(--red); }
.btn { display: inline-block; background: var(--red); color: #1a1208; font: 700 22px "Heebo", Arial; border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; }
