/* --- מיכל השיר --- */
.scc-song-container {
    position: relative;
}
/* --- עוטף מילה עם אקורדים - אסור לשבור --- */
.scc-no-break {
    display: inline-block;
    white-space: nowrap;
}
/* --- העוגן של האקורד בתוך הטקסט --- */
.scc-chord-wrapper {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    overflow: visible;
    vertical-align: baseline;
}
/* --- עיצוב האקורד הצף בכתום --- */
.scc-chord-name {
    position: absolute;
    bottom: 1.2em;
    left: 50%;
    transform: translateX(-50%);
    color: #D84315 !important;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block !important;
    text-align: center;
    line-height: 1;
}
/* --- קו ההצבעה אל האות המדויקת --- */
.scc-chord-name::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: var(--line-height, 0.4em);
    background-color: #D84315;
    opacity: 0.8;
}
/* --- בועת הטולטיפ --- */
.tippy-box[data-theme~='scc-theme'] {
    background-color: #FFFDF9;
    border: 1px solid #EBE1D8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px !important;
    z-index: 999999 !important; 
}
/* --- מיכל הדיאגרמה --- */
.scc-diagram-container {
    width: 175px; 
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}
.scc-diagram-container svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    overflow: visible !important;
}
.scc-diagram-container svg * {
    vector-effect: non-scaling-stroke;
}
/* ── Transpose + Chord Panel Bar ── */
.scc-controls-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: #fff9f5;
    border: 1px solid #f0e0d6;
    border-radius: 8px;
    direction: ltr;
}

/* Transpose */
.scc-transpose-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.scc-transpose-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #D84315;
    border-radius: 6px;
    background: #fff;
    color: #D84315;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}
.scc-transpose-btn:hover {
    background: #D84315;
    color: #fff;
}
.scc-key-select {
    height: 32px;
    border: 1px solid #D84315;
    border-radius: 6px;
    color: #D84315;
    font-weight: bold;
    font-size: 14px;
    padding: 0 6px;
    cursor: pointer;
    background: #fff;
    min-width: 58px;
}

/* Chord Panel */
.scc-chord-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}
.scc-panel-chord {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #e0c8bc;
    border-radius: 14px;
    background: #fff;
    color: #D84315 !important;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
}
.scc-panel-chord:hover {
    background: #D84315;
    color: #fff !important;
}
.scc-panel-chord::after {
    display: none !important;
}



/* Reset button */
.scc-reset-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    margin-right: 4px;
}
.scc-reset-btn:hover {
    background: #666;
    color: #fff;
}

/* ── LTR — שפה נוספת ── */
.scc-ltr,
.scc-ltr .scc-song-container {
    direction: ltr;
    text-align: left;
}

/* ── מילון אקורדים [scc_chord_dictionary] ── */
.scc-preview-wrapper {
    direction: ltr;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
.scc-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.scc-preview-tab {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.scc-preview-tab:hover,
.scc-preview-tab.active {
    background: #D84315;
    color: #fff;
    border-color: #D84315;
}
.scc-preview-group {
    margin-bottom: 30px;
}
.scc-preview-group.hidden {
    display: none;
}
.scc-preview-letter {
    font-size: 18px;
    font-weight: bold;
    color: #D84315;
    border-bottom: 2px solid #D84315;
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.scc-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.scc-preview-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-align: center;
    width: 140px;
}
.scc-preview-item svg {
    width: 130px !important;
    height: auto !important;
}
.scc-preview-item.scc-preview-error {
    border-color: #ffccbc;
    background: #fff8f6;
    color: #D84315;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* ריווח בין אקורדים ברצף ללא מילים (תחילת/סוף/אמצע שורה) */
.scc-chord-only .scc-chord-wrapper {
    min-width: 23px;
}
