.ncdf-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    color: #222;
}
.ncdf-header { display: flex; gap: 2rem; flex-wrap: wrap; }
.ncdf-col { flex: 1; min-width: 180px; }
.ncdf-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #666;
    margin-bottom: .4rem;
}
.ncdf-meta { color: #444; font-size: .95rem; margin-top: .25rem; }

.ncdf-stars-static {
    position: relative;
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1;
    letter-spacing: 3px;
    user-select: none;
}
.ncdf-stars-static .ncdf-stars-empty { color: #ddd; }
.ncdf-stars-static .ncdf-stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
}

.ncdf-vote { border-top: 1px solid #eee; padding-top: 1rem; }
.ncdf-stars-input { display: inline-flex; gap: 4px; direction: rtl; }
.ncdf-stars-input .ncdf-star { order: 1; }
.ncdf-star {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color .12s ease-in-out;
}
.ncdf-star.is-on { color: #f5a623; }
.ncdf-stars-input:hover .ncdf-star:hover,
.ncdf-stars-input:hover .ncdf-star:hover ~ .ncdf-star { color: #f5a623; }
.ncdf-star:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; border-radius: 2px; }

.ncdf-feedback { margin-top: .5rem; font-size: .9rem; color: #555; min-height: 1.2em; }

.ncdf-reviews { border-top: 1px solid #eee; padding-top: 1rem; }
.ncdf-reviews-title { margin: 0 0 1rem; font-size: 1.2rem; }

.ncdf-review-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 6px;
}
.ncdf-review-form label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .9rem;
    color: #333;
}
.ncdf-review-form input,
.ncdf-review-form textarea {
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}
.ncdf-submit-review {
    align-self: flex-start;
    background: #1d4ed8;
    color: #fff;
    border: none;
    padding: .6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}
.ncdf-submit-review:hover { background: #1e40af; }
.ncdf-submit-review:disabled { opacity: .6; cursor: default; }
.ncdf-hint { font-size: .85rem; color: #666; margin: 0; }

.ncdf-review {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    background: #fff;
}
.ncdf-review header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.ncdf-review-author { font-size: .85rem; color: #777; margin: .25rem 0; }
.ncdf-review-content { font-size: .95rem; line-height: 1.5; }

.ncdf-login-prompt {
    background: #f7f7f7;
    padding: .75rem 1rem;
    border-radius: 4px;
    font-size: .9rem;
}
.ncdf-no-reviews { color: #777; font-style: italic; }
.ncdf-success {
    color: #166534;
    background: #dcfce7;
    padding: .75rem 1rem;
    border-radius: 4px;
    margin: 0;
}

.ncdf-inline { display: inline-flex; align-items: center; gap: .5rem; }
.ncdf-inline-meta { font-size: .9rem; color: #555; }

/* « J'ai chanté ce chant » */
/* HIDE pour refacto v3 — retirer cette règle quand le bouton « J'ai chanté » revient */
.ncdf-sang,
.ncdf-sang-count-inline { display: none !important; }
.ncdf-sang {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font: inherit;
}
.ncdf-sang-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #1d4ed8;
    border-radius: 999px;
    padding: .45rem .9rem;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, transform .1s;
}
.ncdf-sang-btn:hover { background: #eff3ff; }
.ncdf-sang-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.ncdf-sang-btn:active { transform: scale(.97); }
.ncdf-sang.is-marked .ncdf-sang-btn {
    background: #1d4ed8;
    color: #fff;
}
.ncdf-sang.is-marked .ncdf-sang-btn:hover { background: #1e40af; }
.ncdf-sang-icon { font-size: 1.1rem; line-height: 1; }
.ncdf-sang-count {
    font-weight: 600;
    color: #444;
    background: #f3f4f6;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .85rem;
    min-width: 1.5rem;
    text-align: center;
}
.ncdf-sang-count-inline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}
.ncdf-sang-count-inline .ncdf-sang-count-label { color: #555; }

/* Listes My Account : « Mes notes » & « Mes chants chantés » */
.ncdf-empty { color: #777; font-style: italic; }
.ncdf-my-notes,
.ncdf-my-sang {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.ncdf-my-notes-item,
.ncdf-my-sang-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
}
.ncdf-my-notes-title,
.ncdf-my-sang-title {
    flex: 1 1 220px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}
.ncdf-my-notes-title:hover,
.ncdf-my-sang-title:hover { text-decoration: underline; }
.ncdf-my-notes-meta,
.ncdf-my-sang-meta { font-size: .85rem; color: #666; }
