/* Isoliert: Die bestehenden Bewertungs-, Audio- und Profil-Styles bleiben unverändert. */
#diboo-story-bookmark-root {
    display: block;
    margin: 18px 0;
    text-align: center;
    box-sizing: border-box;
}
#diboo-story-bookmark-root .diboo-bookmark-bar {
    display: flex;
    align-items: center;
    width: 98%;
    max-width: 100%;
    margin: 0 auto;
    padding: 7px 12px;
    gap: 0;
    box-sizing: border-box;
    background: linear-gradient(115deg, #22252b 0%, #292d35 48%, #202329 100%);
    border: 0;
    border-radius: 15px;
    box-shadow: none;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(38% - 30px);
    flex: 0 0 calc(38% - 30px);
    min-width: 0;
    min-height: 0;
    padding: 7px 8px;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font: 600 14px/1.2 'Diboo Roboto', sans-serif;
    cursor: pointer;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-button:hover { background: rgba(255,255,255,.04); }
#diboo-story-bookmark-root .diboo-bookmark-bar-button:focus-visible,
.diboo-bookmark-profile button:focus-visible,
.diboo-bookmark-profile a:focus-visible { outline: 2px solid #ff6565; outline-offset: 3px; }
#diboo-story-bookmark-root .diboo-bookmark-bar-button:disabled { cursor: wait; opacity: .65; }
#diboo-story-bookmark-root .diboo-bookmark-bar-icon { display: inline-flex; flex: 0 0 auto; color: #ff1a1a; }
#diboo-story-bookmark-root .diboo-bookmark-bar-icon svg { display: block; width: 20px; height: 20px; }
#diboo-story-bookmark-root .diboo-bookmark-bar-separator {
    display: block;
    width: 1px;
    height: 34px;
    flex: 0 0 1px;
    margin: 0 14px;
    background: #858b96;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    color: #fff;
    font: 400 14px/1.5 'Diboo Roboto', sans-serif;
    text-align: left;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-text strong,
#diboo-story-bookmark-root .diboo-bookmark-bar-text span {
    display: block;
    color: #fff;
    font: 400 14px/1.5 'Diboo Roboto', sans-serif;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-notice {
    margin-top: 12px;
    padding: 16px 18px;
    background: #25282e;
    color: #eee;
    border: 1px solid #41454d;
    border-radius: 10px;
    font: 400 14px/1.6 'Diboo Roboto', sans-serif;
    text-align: left;
}
#diboo-story-bookmark-root [hidden], .diboo-bookmark-profile [hidden] { display: none !important; }
#diboo-story-bookmark-root .diboo-bookmark-bar-notice p { margin: 8px 0 14px; }
#diboo-story-bookmark-root .diboo-bookmark-bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#diboo-story-bookmark-root .diboo-bookmark-bar-actions a {
    display: inline-flex;
    justify-content: center;
    padding: 9px 14px;
    background: #b30000;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
#diboo-story-bookmark-root .diboo-bookmark-bar-actions a:last-child { background: #393d45; }
#diboo-story-bookmark-root .diboo-bookmark-bar-close { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #c5c5c5; font-size: 12px; cursor: pointer; }
#diboo-story-bookmark-root .diboo-bookmark-status { margin: 10px 0 0; font-size: 13px; color: #e4e4e4; }

/* Bestätigter Chrome-Test: Nur den Geschichtentext 6 px optisch anheben.
   Merkliste, Leserbewertung und die übrigen Layout-Abstände bleiben unverändert.
   Das Stylesheet wird nur auf Beitrags- und der privaten Profilseite geladen. */
body.single-post .post-content .entry-content {
    position: relative !important;
    top: -6px !important;
}

/* Private list: eigener Bereich, keine Änderungen an Mitgliederdaten oder Formularen. */
.diboo-bookmark-profile {
    margin: 32px 0 0;
    padding: 20px 22px;
    box-sizing: border-box;
    background: linear-gradient(115deg, #22252b, #292d35 48%, #202329);
    border-radius: 14px;
    color: #eee;
}
.diboo-bookmark-profile h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: #fff; font-size: 22px; }
.diboo-bookmark-profile h3 span { color: #ff1a1a; }
.diboo-bookmark-profile-intro { margin: 0 0 18px; color: #c0c3c9; font-size: 14px; }
.diboo-bookmark-empty { padding: 20px 0 4px; border-top: 1px solid #454951; color: #ccc; }
.diboo-bookmark-item {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid #454951;
}
.diboo-bookmark-thumb { display: block; width: 100px; height: 70px; overflow: hidden; border-radius: 5px; }
.diboo-bookmark-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.diboo-bookmark-thumb-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: #353941; font-size: 24px; }
.diboo-bookmark-item-main { min-width: 0; }
.diboo-bookmark-item-main h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.diboo-bookmark-item-main h4 a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.diboo-bookmark-item-main h4 a:hover { color: #ff6666; }
.diboo-bookmark-audio { margin: 6px 0 0; font-size: 12px; color: #b7bac3; }
.diboo-bookmark-item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.diboo-bookmark-read, .diboo-bookmark-remove {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 12px; min-height: 36px; box-sizing: border-box;
    border-radius: 5px; border: 1px solid #b30000;
    background: #b30000; color: white !important;
    font: 600 13px/1.2 'Diboo Roboto', sans-serif;
    text-decoration: none !important; cursor: pointer;
}
.diboo-bookmark-remove { background: transparent; border-color: #5c606a; color: #d0d0d0 !important; }
.diboo-bookmark-remove:hover { background: #343841; }
.diboo-bookmark-remove:disabled { opacity: .6; cursor: wait; }
.diboo-bookmark-profile-status { font-size: 13px; }
.diboo-bookmark-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; border-top: 1px solid #454951; }
.diboo-bookmark-pages a, .diboo-bookmark-pages span { padding: 5px 9px; color: #eee; }
.diboo-bookmark-pages .current { color: #fff; background: #b30000; border-radius: 4px; }

@media (max-width: 767px) {
    #diboo-story-bookmark-root .diboo-bookmark-bar { flex-direction: column; padding: 8px 10px; }
    #diboo-story-bookmark-root .diboo-bookmark-bar-button { width: 100%; flex: 0 0 auto; padding: 6px 8px; }
    #diboo-story-bookmark-root .diboo-bookmark-bar-separator { position: relative; top: -2px; width: 75%; height: 0.5px; flex: 0 0 0.5px; margin: 7px 0; }
    #diboo-story-bookmark-root .diboo-bookmark-bar-text { align-items: center; text-align: center; }
    .diboo-bookmark-profile { padding: 16px 14px; }
    .diboo-bookmark-item { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
    .diboo-bookmark-thumb { width: 76px; height: 68px; }
    .diboo-bookmark-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Nur für die private Merkliste: jeweils sechs weitere Geschichten nachladen. */
.diboo-bookmark-more-wrap { display: flex; justify-content: center; padding: 18px 0 0; }
.diboo-bookmark-more {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 38px; padding: 9px 18px;
    color: #fff; background: #292d35; border: 1px solid #858b96;
    border-radius: 6px; cursor: pointer;
    font: 600 13px/1.3 'Diboo Roboto', sans-serif;
}
.diboo-bookmark-more:hover { background: #343841; }
.diboo-bookmark-more:disabled { opacity: .65; cursor: wait; }
.diboo-bookmark-more-wrap[hidden] { display: none !important; }


/* DIBOO-EMPTY-PROFILE-DESIGN-FINAL */

.diboo-bookmark-profile:has(
    .diboo-bookmark-empty:not([hidden])
):not(:has(.diboo-bookmark-item)) {
    background: #191c21 !important;
    border: 1px solid #444751 !important;
    border-radius: 9px !important;
    padding: 20px 22px !important;
    box-shadow: none !important;
}

.diboo-bookmark-profile:has(
    .diboo-bookmark-empty:not([hidden])
):not(:has(.diboo-bookmark-item))
#diboo-bookmark-profile-title {
    font-size: 23px !important;
    font-weight: 600 !important;
}

.diboo-bookmark-profile:has(
    .diboo-bookmark-empty:not([hidden])
):not(:has(.diboo-bookmark-item))
.diboo-bookmark-profile-intro {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 12px 0 16px !important;
}

.diboo-bookmark-profile:has(
    .diboo-bookmark-empty:not([hidden])
):not(:has(.diboo-bookmark-item))
.diboo-bookmark-empty:not([hidden]) {
    background: #292b32 !important;
    border: 1px solid #34383f !important;
    border-radius: 7px !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #b9bdc3 !important;
    text-align: left !important;
}

#diboo-follow-profile[data-follow-empty-design]:has(
    .follow-authors[aria-busy="false"]:empty
) + .diboo-bookmark-profile:has(
    .diboo-bookmark-empty:not([hidden])
):not(:has(.diboo-bookmark-item)) {
    margin-top: 44px !important;
}

@media (max-width: 767px) {
    .diboo-bookmark-profile:has(
        .diboo-bookmark-empty:not([hidden])
    ):not(:has(.diboo-bookmark-item)) {
        padding: 16px 14px !important;
    }
}


/* DIBOO-FILLED-PROFILE-DESIGN-FINAL */

.diboo-bookmark-profile:has(.diboo-bookmark-item) {
    overflow: hidden;
}

.diboo-bookmark-profile:has(.diboo-bookmark-item)
#diboo-bookmark-profile-title {
    background: #191c21 !important;
    margin: -20px -22px 0 !important;
    padding: 20px 22px 12px !important;
}

.diboo-bookmark-profile:has(.diboo-bookmark-item)
.diboo-bookmark-profile-intro {
    background: #191c21 !important;
    margin: 0 -22px 18px !important;
    padding: 0 22px 16px !important;
}

@media (max-width: 767px) {
    .diboo-bookmark-profile:has(.diboo-bookmark-item)
    #diboo-bookmark-profile-title {
        margin: -16px -14px 0 !important;
        padding: 16px 14px 12px !important;
    }

    .diboo-bookmark-profile:has(.diboo-bookmark-item)
    .diboo-bookmark-profile-intro {
        margin: 0 -14px 18px !important;
        padding: 0 14px 16px !important;
    }
}
