/* Version: 1.2.0 */
/* ===========================================================
   Repertoire Styles  |  /childtheme/includes/repertoire.css
   =========================================================== */

/* Layout-Wrapper */
.rep-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 60px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Toolbar: Suche + Filter horizontal */
.rep-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e0cc;
    flex-wrap: wrap;
}

/* Suchfeld + Filter direkt nebeneinander gruppieren */
.rep-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

/* Suchfeld – Flex-Wrapper damit Icon sauber zentriert */
.rep-search-wrap {
    display: flex;
    align-items: center;
    width: 300px;
    height: 38px;
    border: 1.5px solid #d4af37;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.rep-search-wrap:focus-within {
    border-color: #CD7456 !important;
    box-shadow: 0 0 0 3px rgba(205, 116, 86, 0.2) !important;
    outline: none !important;
}

.rep-search-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin: 0 0.5rem 0 0.75rem;
    color: #bbb;
    pointer-events: none;
    display: block;
}

.rep-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 0.9rem 0 0;
    height: 100%;
    font-size: 0.9rem;
    color: #333;
    background: transparent;
}

.rep-search-input::placeholder {
    color: #bbb;
}

/* Browser-Defaults entfernen */
.rep-search-input { -webkit-appearance: none; appearance: none; }
.rep-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #333 !important;
}
.rep-search-input:invalid {
    box-shadow: none !important;
    outline: none !important;
    color: #333 !important;
}

/* Filter-Wrap – gleicher Ansatz */
.rep-filter-wrap {
    display: flex;
    align-items: center;
    height: 38px;
    box-sizing: border-box;
    border: 1.5px solid #d4af37;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.rep-filter-wrap:focus-within {
    border-color: #CD7456;
    box-shadow: 0 0 0 3px rgba(205, 116, 86, 0.2);
}

.rep-filter-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin: 0 0.4rem 0 0.75rem;
    color: #bbb;
    pointer-events: none;
    display: block;
}

.rep-filter-select {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23d4af37' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: none;
    outline: none;
    color: #333;
    padding: 0 2.2rem 0 0;
    height: 34px;
    box-sizing: border-box;
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 240px;
    align-self: center;
}

.rep-filter-select:focus { outline: none; }

/* Ergebnis-Zaehler */
.rep-filter-count {
    font-size: 0.82rem;
    color: #aaa;
    margin-left: auto;
    white-space: nowrap;
}

/* Sticky ABC-Navigation */
.rep-abc-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-left: 2px solid #d4af37;
    padding: 0.5rem 0;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
    scrollbar-width: none;
}

.rep-abc-nav::-webkit-scrollbar {
    display: none;
}

.rep-abc-link {
    display: block;
    width: 36px;
    text-align: center;
    padding: 0.2rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.rep-abc-link:hover {
    color: #d4af37;
}

/* Song-Sektionen */
.rep-content {
    width: 100%;
}

.rep-section {
    margin-bottom: 1.5rem;
}

.rep-letter-head {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Zweispaltiges Grid pro Buchstabe */
.rep-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
}

/* Song-Zeile */
.rep-song {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0ece0;
    transition: background 0.1s;
    line-height: 1.3;
    min-width: 0;
    gap: 0;
}

.rep-song:hover {
    background: #fdf9ee;
}

/* Song-Textblock (Titel + Artist) */
.rep-song-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.rep-song-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rep-song-title::after { content: ""; }

.rep-song-artist {
    margin: 0;
    font-size: 0.88em;
    font-weight: 400;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Anlass-Icons */
.rep-anlass-icons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 0.4rem;
    align-self: center;
    order: 4;
}

.rep-anlass-emoji {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.rep-anlass-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
    filter: sepia(1) saturate(2) hue-rotate(340deg) brightness(0.85);
    transition: opacity 0.2s, transform 0.15s;
}

.rep-anlass-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Dauer */
.rep-song-dauer {
    padding-left: 0.5rem;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    flex-shrink: 0;
    order: 3;
}

/* YouTube-Icon */
.rep-yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 6px;
    margin-top: -6px;
    margin-bottom: -6px;
    box-sizing: content-box;
    color: #aaa;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.9;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rep-yt-btn:hover {
    opacity: 1;
    color: #888;
}

.rep-yt-btn svg {
    width: 24px;
    height: 17px;
    fill: currentColor;
    display: block;
}

/* Eigener YouTube-Button — Gold */
.rep-yt-btn--own {
    color: #d4af37;
}
.rep-yt-btn--own:hover {
    color: #b8932e;
}

/* YT-Buttons als Gruppe untereinander */
.rep-yt-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    order: 5;
}

/* Mobile */
@media (max-width: 768px) {
    /* ABC-Nav mobil */
    .rep-abc-nav {
        width: 37px;
        padding: 0.4rem 0;
        border-left: 2px solid #d4af37;
    }
    .rep-abc-link {
        width: 37px;
        font-size: 0.66rem;
        padding: 0.13rem 0;
        line-height: 1.3;
        transition: none;
    }

    /* Trichter-Effekt */
    .rep-abc-link.rep-abc-near-1 { font-size: 0.88rem; color: #c0a050; }
    .rep-abc-link.rep-abc-near-2 { font-size: 0.75rem; color: #bbb; }
    .rep-abc-link.rep-abc-active {
        font-size: 1.1rem;
        color: #d4af37;
        font-weight: 900;
    }

    /* Wrapper */
    .rep-wrap {
        padding-right: calc(37px + 7px);
    }

    .rep-section-grid {
        grid-template-columns: 1fr;
    }

    .rep-toolbar {
        gap: 0.5rem;
        flex-direction: column;
    }
    .rep-toolbar-group {
        width: 100%;
    }
    .rep-search-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .rep-filter-wrap {
        flex: 1 1 100%;
    }
    .rep-filter-select {
        width: 100%;
        font-size: 0.78rem;
    }
    .rep-search-input {
        font-size: 0.78rem;
    }
    .rep-search-input::placeholder {
        font-size: 0.78rem;
    }

    .rep-song {
        align-items: center;
        padding: 0.4rem 0;
    }
    .rep-song-text {
        min-width: 0;
        flex: 1 1 auto;
    }
    .rep-song-title {
        font-size: 0.95rem;
    }
    .rep-song-artist {
        font-size: 0.8rem;
    }
    .rep-song-dauer {
        font-size: 0.75rem;
        padding-left: 0.3rem;
    }

    .rep-yt-btn {
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
}


/* ── PDF Viewer ─────────────────────────────────────────────────────────────── */
#rep-pdf-viewer {
    position: fixed;
    /* Startet unterhalb der Betheme-Navbar (typisch 60–80px) */
    top: var(--navbar-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: stretch;
    justify-content: center;
}
#rep-pdf-viewer[hidden] { display: none !important; }

#rep-pdf-modal {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    height: 100%;
}

#rep-pdf-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    min-height: 52px;
    background: #111;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

#rep-pdf-title {
    flex: 1;
    font-size: 0.9rem;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#rep-pdf-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #444;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#rep-pdf-close:hover,
#rep-pdf-close:active { background: #d4af37 !important; color: #111 !important; }

#rep-pdf-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    min-height: 0;
}

#rep-pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1rem;
}

#rep-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    background: #fff;
}


/* ── Suchfeld: Browser-Defaults neutralisieren ──────────────────────────────── */
.rep-search-input,
.rep-search-input:focus,
.rep-search-input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 0.9rem 0 0 !important;
}


/* ── Noten-Icon (Clipboard mit Rand) ────────────────────────────────────────── */
.rep-song--has-noten { cursor: pointer; }
.rep-song--has-noten:hover { background: #fdf7e8; }

.rep-song .rep-noten-icon {
    order: -1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.4rem;
    font-size: 1rem;
    pointer-events: none;
    color: #c8a96e;
}

/* Version-Badge in Toolbar */
.rep-version-badge {
    font-size: 0.65rem;
    color: #ccc;
    font-family: monospace;
    margin-left: 0.5rem;
    opacity: 0.6;
}




/* ── Ultimate Guitar Button ─────────────────────────────────────────────────── */
.rep-ug-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0.4rem;
    flex-shrink: 0;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.rep-ug-btn:hover { opacity: 1; }


/* Betheme: [hidden] sicherstellen */
#rep-wishlist-sticky[hidden],
#rep-wishlist-modal[hidden],
#rep-wishlist-sticky-warning[hidden],
#rep-wishlist-preview[hidden] { display: none !important; }

/* Herzen ausblenden bis Wunschliste aktiviert */
body.rep-wishlist-off .rep-wish-btn:not(.rep-noten-icon-btn) { display: none !important; }
.rep-wish-btn { display: inline-flex; }

/* ══════════════════════════════════════════════════════════════════════════════
   WUNSCHLISTE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Aktivierungs-Button */
#rep-wishlist-bar {
    margin: 0 0 1.5rem;
}

.rep-wishlist-activate-btn {
    display: block;
    width: 100%;
    background: #bd9a75;
    color: #fff;
    border: 2px solid #bd9a75;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(189,154,117,0.3);
    transition: background 0.2s, color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}
.rep-wishlist-activate-btn:hover {
    background: transparent;
    color: #bd9a75;
}
.rep-wishlist-activate-btn:active { transform: scale(0.98); }
.rep-wishlist-activate-btn--active {
    background: #fff0f0;
    color: #c0392b;
    border: 1.5px solid #c0392b;
}
.rep-wishlist-deactivate-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    background: none;
    border: 1px solid #c0392b;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #c0392b;
    font-size: 0.85rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.rep-wishlist-deactivate-btn:hover { background: #fff0f0; }

/* Herz-Button am Song */
.rep-wish-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem 0.5rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    color: #ddd;
    transition: color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    order: -2;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;
    flex-shrink: 0;
}
.rep-wish-btn:hover { color: #e88; transform: scale(1.15); }
.rep-wish-btn.rep-wish-primary .rep-wish-heart { color: #c0392b; }
.rep-wish-btn.rep-wish-alt .rep-wish-heart { color: #d4af37; }

/* Sticky Bar */
#rep-wishlist-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10100;
    background: #3c4f48;
    color: #fff;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.rep-wishlist-sticky-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
#rep-wishlist-sticky-label {
    font-size: 0.95rem;
    flex: 1;
}
#rep-wishlist-sticky-warning {
    font-size: 0.8rem;
    color: #d4af37;
    width: 100%;
    order: 3;
}
.rep-wishlist-sticky-cta {
    background: #d4af37;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.rep-wishlist-sticky-cta:hover { background: #c8a020; }

/* Aktivierungs-Modal */
.rep-wishlist-modal-box {
    text-align: center;
    padding: 2rem 2rem 2.5rem;
    max-width: 560px;
    width: min(560px, 92vw);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-bottom: 2rem;
}
.rep-wishlist-modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.rep-wishlist-modal-title {
    font-size: 2rem;
    margin: 0 0 0.75rem;
    color: #dbc4a2;
}
.rep-wishlist-modal-text {
    font-size: 0.9rem;
    color: #dbc4a2;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.rep-wishlist-confirm-btn {
    display: block;
    width: 100%;
    background: #bd9a75;
    color: #fff;
    border: 2px solid #bd9a75;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.2s, color 0.2s;
}
.rep-wishlist-confirm-btn:hover {
    background: transparent;
    color: #bd9a75;
}
.rep-wishlist-cancel-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem;
}
.rep-wishlist-cancel-btn:hover { color: #555; }
.rep-wishlist-end-btn {
    display: block;
    width: 100%;
    background: #c0392b;
    border: 1.5px solid #c0392b;
    border-radius: 8px;
    padding: 0.65rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.2s, color 0.2s;
}
.rep-wishlist-end-btn:hover {
    background: transparent;
    color: #c0392b;
}



/* ── Scroll Shortcuts ───────────────────────────────────────────────────────── */
.rep-scroll-shortcuts {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.rep-scroll-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.rep-scroll-btn:hover { color: #d4af37; border-color: #d4af37; }




/* ── Sticky Bar Mobile Layout ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .rep-wishlist-sticky-inner {
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
    }
    #rep-wishlist-sticky-label {
        flex: 0 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 0.5rem);
        font-size: 0.9rem;
    }
    .rep-wishlist-share-btn,
    .rep-wishlist-sticky-cta {
        flex: 1 1 100%;
        text-align: center;
        padding: 0.55rem 0.5rem;
        font-size: 0.9rem;
    }
    #rep-wishlist-sticky-warning {
        flex: 0 0 100%;
        font-size: 0.78rem;
    }
}

/* ── Share Button ───────────────────────────────────────────────────────────── */
.rep-wishlist-share-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.rep-wishlist-share-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Share Toast ────────────────────────────────────────────────────────────── */
#rep-share-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #3c4f48;
    color: #dbc4a2;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    z-index: 10000;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    animation: rep-toast-in 0.2s ease;
}
#rep-share-toast[hidden] { display: none !important; }
@keyframes rep-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}



/* CF7 form z-index (below sticky bar) */
.wpcf7 { position: relative; z-index: 100; }

/* ── Nach-oben Button (Ende der Liste) ─────────────────────────────────────── */
.rep-scroll-up-btn {
    display: block;
    margin: 2rem auto 1rem;
    background: none;
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #d4af37;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.rep-scroll-up-btn:hover { background: rgba(212,175,55,0.1); }

/* ── Mobile Scroll-Up Button ───────────────────────────────────────────────── */
#rep-scroll-up-mobile {
    display: none;
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3c4f48;
    color: #d4af37;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
}
#rep-scroll-up-mobile:not([hidden]) { display: flex; }
@media (min-width: 601px) { #rep-scroll-up-mobile { display: none !important; } }

/* ── Wunschliste Preview Box (neben CF7) ────────────────────────────────────── */
#rep-wishlist-preview {
    background: #fffdf5;
    border: 1.5px solid #d4af37;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.rep-wl-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.rep-wl-clear-all {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #888;
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}
.rep-wl-clear-all:hover { color: #c0392b; border-color: #c0392b; }

.rep-wl-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rep-wl-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #333;
}

.rep-wl-badge {
    font-size: 0.75rem;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    flex-shrink: 0;
}
.rep-wl-badge--primary { background: #fde8e8; color: #c0392b; }
.rep-wl-badge--alt     { background: #fdf6d8; color: #a07800; }

.rep-wl-artist { color: #888; }

.rep-wl-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #bbb;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    flex-shrink: 0;
}
.rep-wl-remove:hover { color: #c0392b; }

.rep-wl-preview-empty {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0;
}

/* ── Noten Login-Screen ─────────────────────────────────────────────────────── */

#rep-noten-auth {
    max-width: 420px;
    margin: 60px auto;
    text-align: center;
    font-family: inherit;
}

#rep-noten-auth .rep-noten-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#rep-noten-auth h2 {
    margin: 0 0 .5rem;
}

#rep-noten-auth .rep-noten-subtitle {
    color: #888;
    margin: 0 0 2rem;
    font-size: .95rem;
}

.rep-btn-login {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 1rem;
    font-family: inherit;
}

.rep-btn-login:disabled {
    opacity: .6;
}

#rep-invite-section {
    margin-top: 1.5rem;
}

#rep-invite-section.rep-no-creds {
    margin-top: 0;
}

.rep-toggle-invite {
    background: none;
    border: none;
    color: #888;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

#rep-invite-form {
    margin-top: 1rem;
}

.rep-invite-hint {
    color: #666;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.rep-invite-input {
    width: 100%;
    padding: .8rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .75rem;
    font-family: inherit;
}

.rep-device-input {
    width: 100%;
    padding: .8rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    margin-bottom: .75rem;
    font-family: inherit;
}

.rep-btn-register {
    display: block;
    width: 100%;
    padding: .9rem;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.rep-btn-register:disabled {
    opacity: .6;
}

#rep-auth-msg {
    margin-top: 1.5rem;
    font-size: .9rem;
    color: #c0392b;
    min-height: 1.5rem;
}

/* ── Noten-Liste ─────────────────────────────────────────────────────────────── */

.rep-noten-logout {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: .35rem .75rem;
    font-size: .8rem;
    color: #888;
    cursor: pointer;
    font-family: inherit;
}

.rep-noten-logout:hover {
    border-color: #aaa;
    color: #555;
}

.rep-noten-hint {
    font-size: .85rem;
    color: #888;
    margin: .25rem 0 1rem;
}

.rep-noten-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: 1.5px solid #c8a96e;
    border-radius: 6px;
    color: #c8a96e;
    padding: .25rem .6rem;
    font-size: .8rem;
    cursor: pointer;
    vertical-align: middle;
    font-family: inherit;
    transition: background .15s, color .15s;
}

.rep-noten-pdf-btn:hover {
    background: #c8a96e;
    color: #fff;
}

.rep-noten-pdf-btn:disabled {
    opacity: .5;
}

/* ── ABC Bubble ──────────────────────────────────────────────────────────────── */

.rep-abc-bubble {
    position: fixed;
    z-index: 99999;
    background: #fffdf5;
    color: #1a1a1a;
    border: 2px solid #d4af37;
    font-size: 2.6rem;
    font-weight: 900;
    width: 62px;
    height: 62px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Spitze zeigt nach rechts → zur Nav */
.rep-abc-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-left-color: #d4af37;
    border-right: none;
}
.rep-abc-bubble::before {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-left-color: #fffdf5;
    border-right: none;
    z-index: 1;
}

.rep-abc-bubble[hidden] { display: none; }

/* ── YouTube Modal ──────────────────────────────────────────────────────────── */

.rep-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: max(80px, var(--navbar-height, 80px));
    overflow-y: auto;
}

.rep-modal[hidden] {
    display: none;
}

.rep-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.rep-modal-box {
    position: relative;
    z-index: 1;
    background: #3c4f48;
    border-radius: 10px;
    overflow: hidden;
    width: min(860px, 94vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.rep-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #2e3d39;
}

.rep-modal-title {
    color: #eee;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.rep-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 1rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.rep-modal-close:hover {
    color: #CD7456;
}

.rep-modal-player {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

.rep-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Button-Reset für YT-Buttons (waren <a>, jetzt <button>) */
.rep-yt-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* ── Noten-Icon-Button (identische Position wie rep-wish-btn) ──────────────── */
.rep-noten-icon-btn {
    visibility: visible !important;
    cursor: default;
    font-size: 1.1rem;
}
.rep-noten-icon-btn .rep-wish-heart {
    display: block;
    min-width: 1.5rem;
    text-align: center;
}
.rep-song--has-noten .rep-noten-icon-btn {
    cursor: pointer;
}

/* ── Login-Screen ──────────────────────────────────────────────────────────── */
.rep-noten-auth {
    max-width: 420px;
    margin: 60px auto;
    text-align: center;
    font-family: inherit;
}
.rep-noten-auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.rep-noten-auth-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #222;
}
.rep-noten-auth-subtitle {
    color: #888;
    margin: 0 0 2rem;
    font-size: 0.95rem;
}
.rep-btn-login {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #3c4f48;
    color: #dbc4a2;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.2s;
}
.rep-btn-login:hover { background: #2e3d39; }
.rep-invite-section { margin-top: 0; }
.rep-invite-section--secondary { margin-top: 1.5rem; }
.rep-toggle-invite {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}
.rep-invite-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.rep-invite-form { margin-top: 1rem; }
.rep-invite-form[hidden] { display: none; }
.rep-invite-code-input,
.rep-device-label-input {
    width: 100%;
    padding: 0.8rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: inherit;
}
.rep-invite-code-input {
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.rep-device-label-input { font-size: 0.95rem; }
.rep-btn-register {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: #d4af37;
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.rep-btn-register:hover { background: #c8a020; }
.rep-auth-msg {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #c0392b;
    min-height: 1.5rem;
}
.rep-auth-msg--ok { color: #2e7d32; }

/* ── Noten-spezifisch ──────────────────────────────────────────────────────── */
.rep-version-badge {
    font-size: 0.75rem;
    color: #bbb;
    margin-left: 0.25rem;
}
.rep-noten-logout {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.rep-noten-logout:hover { color: #c0392b; border-color: #c0392b; }

