/**
 * Radio Chartlisten – Grundgerüst
 *
 * Farben, Rahmen und Schrift kommen aus den Grafikeinstellungen der Liste und
 * stehen als style-Angabe direkt am Element. Hier steht nur das Layout.
 */

.cl-list { margin: 0 0 18px; }

.cl-intro { margin-bottom: 12px; }

.cl-note {
    margin: 0 0 12px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: .92rem;
}
.cl-note-ok { background: #e8f6ee; color: #1f7a45; border: 1px solid #b9e3ca; }
.cl-note-error { background: #fdecea; color: #b4312a; border: 1px solid #f4c3bf; }

.cl-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cl-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.cl-item:has(.cl-cover) { grid-template-columns: auto auto 1fr auto; }

.cl-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    line-height: 1.1;
    text-align: center;
}
.cl-rank-number { display: block; }
.cl-trend { font-size: .72em; display: block; margin-top: 2px; }
.cl-trend-up { color: #2e9e5b; }
.cl-trend-down { color: #d6453c; }
.cl-trend-new { color: #d8901f; }
.cl-trend-same { opacity: .55; }

.cl-cover {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(127, 127, 127, .12);
}
.cl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-cover-empty { font-size: 22px; opacity: .5; }

.cl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-artist { font-weight: 700; }
.cl-title { }
.cl-meta { font-size: .82em; opacity: .75; }

.cl-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.cl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.cl-btn:hover { filter: brightness(1.12); text-decoration: none; }
.cl-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.cl-vote-form { margin: 0; display: inline; }
.cl-play.is-playing { font-weight: 700; }

.cl-empty { opacity: .7; }

/* ------------------------------------------------------------ Wunschbox */
.cl-wishbox { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(127, 127, 127, .25); }
.cl-wishbox-title { margin: 0 0 4px; font-size: 1.02rem; }
.cl-wishbox-intro { margin: 0 0 10px; font-size: .9rem; opacity: .8; }
.cl-wishbox-form { display: grid; gap: 8px; }
.cl-wishbox-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-wishbox-form input,
.cl-wishbox-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    font: inherit;
    font-size: .9rem;
}
.cl-wishbox-form textarea { resize: vertical; }
.cl-wish-send { align-self: start; padding: 8px 16px; }
.cl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
    .cl-item { grid-template-columns: auto auto 1fr; }
    .cl-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .cl-wishbox-row { grid-template-columns: 1fr; }
}
