:root {
    --site-bg: #f5f7fb;
    --site-bg-gradient: radial-gradient(circle at top right, #eff6ff 0%, #f5f7fb 55%);
    --site-surface: #ffffff;
    --site-surface-2: #eef3fb;
    --site-text: #0f172a;
    --site-text-muted: #64748b;
    --site-border: #cfd8e5;
    --site-accent: #0f766e;
    --site-accent-contrast: #ffffff;
    --site-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    /*
     * Échelle z-index centralisée (mur blog + topbar + modales).
     * Objectif: éviter les valeurs arbitraires dispersées.
     */
    --z-blog-content: 1;
    --z-blog-card-local: 850;
    --z-blog-card-local-open: 860;
    --z-blog-card-popover: 870;
    --z-blog-composer-sticky: 900;
    --z-site-topbar: 2000;
    --z-blog-modal-backdrop: 110070;
    --z-blog-modal: 110080;
    --z-blog-submodal: 110090;
    --z-blog-article-overlay: 120060;
}

:root[data-theme="dark"] {
    --site-bg: #070d18;
    --site-bg-gradient: radial-gradient(circle at top right, #17233d 0%, #0d1526 48%, #070d18 100%);
    --site-surface: #111a2c;
    --site-surface-2: #1a253b;
    --site-text: #e6ebf5;
    --site-text-muted: #98a8c4;
    --site-border: #30415d;
    --site-accent: #36c8ff;
    --site-accent-contrast: #07111f;
    --site-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html,
body {
    background: var(--site-bg);
    color: var(--site-text);
}

body {
    background-image: var(--site-bg-gradient);
}

#site-shell-root,
.site-public-shell {
    color: var(--site-text);
}

.site-shell {
    max-width: 1180px;
}

#site-shell-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-site-topbar, 2000);
}

#site-shell-header .navbar {
    margin-bottom: 0 !important;
}

/*
 * Uniformisation "pill" des actions de topbar.
 *
 * Objectif:
 * - tous les boutons de navigation (Blog, Musique, Offres Borg, Mon compte),
 * - le bouton notifications,
 * - Déconnexion,
 * - le bouton thème,
 * utilisent la même base ovale que la recherche.
 *
 * Important:
 * - on ne change pas la logique JS,
 * - on ne change pas les couleurs métier day/dark déjà définies plus bas,
 * - on harmonise uniquement forme / padding / alignement.
 */
#site-shell-header .navbar .btn {
    border-radius: 999px !important;
    min-height: 2.25rem;
    padding: 0.35rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.1;
}

/*
 * Le bouton thème est visuellement plus compact,
 * mais reste bien ovale comme les autres.
 */
#site-shell-header .navbar .site-theme-toggle {
    min-width: 2.25rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

/*
 * Bloc logo + recherche de la topbar publique.
 *
 * Ce bloc remplace le texte "wow.alexborg.us" par:
 * - un logo rond à gauche,
 * - un champ de recherche ovale à droite.
 *
 * Important:
 * - uniquement visuel pour cette V1.
 * - aucune logique de recherche backend ici.
 */
.site-topbar-brand-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-topbar-logo-link {
    text-decoration: none;
    flex: 0 0 auto;
}

.site-topbar-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-topbar-logo-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.site-topbar-search {
    min-width: 180px;
    max-width: 260px;
    width: min(36vw, 260px);
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.8rem;
    margin: 0;
}

.site-topbar-search-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.82;
}

.site-topbar-search-input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    padding: 0;
}

.site-topbar-search-input::placeholder {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .site-topbar-search {
        width: min(44vw, 240px);
    }
}

:root[data-theme="light"] #site-shell-header .navbar {
    background: #f8fbff !important;
    border-bottom: 1px solid #cfd8e5 !important;
}

:root[data-theme="light"] .site-topbar-logo-circle {
    background: #259ef1;
}

:root[data-theme="light"] .site-topbar-search {
    background: #d7dbe1;
}

:root[data-theme="light"] .site-topbar-search-icon {
    color: #3f4a59;
}

:root[data-theme="light"] .site-topbar-search-input,
:root[data-theme="light"] .site-topbar-search-input::placeholder {
    color: #2f3a48;
}

:root[data-theme="light"] #site-shell-header .navbar .navbar-brand,
:root[data-theme="light"] #site-shell-header .navbar a {
    color: #0f172a !important;
}

:root[data-theme="light"] #site-shell-header .btn-outline-secondary,
:root[data-theme="light"] #site-shell-header .btn-outline-light {
    color: #1f3653;
    border-color: #8ea8c8;
    background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] #site-shell-header .btn-outline-secondary:hover,
:root[data-theme="light"] #site-shell-header .btn-outline-light:hover {
    color: #11263f;
    border-color: #6f95bf;
    background: #eaf3ff;
}

:root[data-theme="dark"] #site-shell-header .navbar {
    background: #111a2c !important;
    border-bottom: 1px solid #30415d !important;
}

:root[data-theme="dark"] .site-topbar-logo-circle {
    background: #0058b5;
}

:root[data-theme="dark"] .site-topbar-search {
    background: #0f1830;
}

:root[data-theme="dark"] .site-topbar-search-icon {
    color: #c7d3ea;
}

:root[data-theme="dark"] .site-topbar-search-input,
:root[data-theme="dark"] .site-topbar-search-input::placeholder {
    color: #e0e8f7;
}

:root[data-theme="dark"] #site-shell-header .navbar .navbar-brand,
:root[data-theme="dark"] #site-shell-header .navbar a {
    color: #e6ebf5 !important;
}

:root[data-theme="dark"] #site-shell-header .btn-outline-secondary,
:root[data-theme="dark"] #site-shell-header .btn-outline-light {
    color: #d9e5f8;
    border-color: #486084;
    background: rgba(17, 30, 49, 0.38);
}

:root[data-theme="dark"] #site-shell-header .btn-outline-secondary:hover,
:root[data-theme="dark"] #site-shell-header .btn-outline-light:hover,
:root[data-theme="dark"] #site-shell-header .btn-outline-secondary:focus-visible,
:root[data-theme="dark"] #site-shell-header .btn-outline-light:focus-visible {
    color: #edf4ff;
    border-color: #6f91be;
    background: rgba(52, 77, 115, 0.62);
}

#site-shell-header .navbar a.btn.is-shell-active,
#site-shell-header .navbar .btn.is-shell-active {
    color: #ffffff !important;
    background: #1f6feb !important;
    border-color: #1f6feb !important;
}

#site-shell-header .navbar a.btn.is-shell-active:hover,
#site-shell-header .navbar a.btn.is-shell-active:focus-visible,
#site-shell-header .navbar .btn.is-shell-active:hover,
#site-shell-header .navbar .btn.is-shell-active:focus-visible {
    color: #ffffff !important;
    background: #1a5ed0 !important;
    border-color: #1a5ed0 !important;
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.24);
}

/* Auth buttons: Connexion/Inscription are neutral unless active */
:root[data-theme="light"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active),
:root[data-theme="light"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active) {
    color: #1f3653 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: #8ea8c8 !important;
}

:root[data-theme="dark"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active),
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active) {
    color: #d9e5f8 !important;
    background: rgba(17, 30, 49, 0.7) !important;
    border-color: #486084 !important;
}

:root[data-theme="light"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active):hover,
:root[data-theme="light"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active):hover,
:root[data-theme="light"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active):focus-visible,
:root[data-theme="light"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active):focus-visible,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active):hover,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active):hover,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/connexion"]:not(.is-shell-active):focus-visible,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/inscription"]:not(.is-shell-active):focus-visible {
    color: inherit !important;
    filter: none;
}

/* Deconnexion must stay yellow/black in all themes */
:root[data-theme="light"] #site-shell-header .navbar a[href$="/deconnexion"],
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/deconnexion"],
:root[data-theme="light"] #site-shell-header .navbar a[href$="/deconnexion"].is-shell-active,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/deconnexion"].is-shell-active {
    color: #111111 !important;
    background: #facc15 !important;
    border-color: #facc15 !important;
}

:root[data-theme="light"] #site-shell-header .navbar a[href$="/deconnexion"]:hover,
:root[data-theme="light"] #site-shell-header .navbar a[href$="/deconnexion"]:focus-visible,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/deconnexion"]:hover,
:root[data-theme="dark"] #site-shell-header .navbar a[href$="/deconnexion"]:focus-visible {
    color: #111111 !important;
    background: #eab308 !important;
    border-color: #eab308 !important;
    box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.28);
}

#site-shell-main {
    padding-top: calc(64px + 1rem);
}

@media (min-width: 992px) {
    .site-shell-main-member {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding-bottom: 0 !important;
    }

    #site-shell-content[data-shell-page="member"] {
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
    }
}

.site-public-shell .theme-surface {
    background: var(--site-surface);
    color: var(--site-text);
    border-color: var(--site-border) !important;
}

.site-public-shell .theme-muted {
    color: var(--site-text-muted) !important;
}

.site-theme-toggle {
    min-width: 2.2rem;
    font-weight: 600;
}

.site-theme-toggle:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

/* Blog layout rules must be global because <head> styles are not swapped by shell Ajax */
#site-shell-content[data-shell-page="blog"] .blog-post-card {
    overflow: hidden;
}

#site-shell-content[data-shell-page="blog"] .blog-post-image-link {
    display: block;
    text-decoration: none;
}

#site-shell-content[data-shell-page="blog"] .blog-post-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9eef8;
}

#site-shell-content[data-shell-page="blog"] .blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#site-shell-content[data-shell-page="blog"] .blog-post-featured-image {
    max-height: 460px;
    object-fit: cover;
}

#site-shell-content[data-shell-page="blog"] .blog-post-view {
    padding-bottom: 170px;
}

#site-shell-content[data-shell-page="blog"] .access-cta {
    border-left: 4px solid #0f766e;
    background: #eefbf8;
}

#site-shell-content[data-shell-page="blog"] .comments-access-alert {
    background: #f7fbff;
    border: 1px solid #b8d6fb;
    color: #0b223d;
}

#site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link {
    color: #0b63b4;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link:hover,
#site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link:focus-visible {
    color: #084d8b;
    text-decoration-thickness: 2px;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .card {
    background: #111a2c;
    color: #e6ebf5;
    border-color: #30415d !important;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .text-muted,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .small.text-muted {
    color: #9ab0cb !important;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .bg-light {
    background-color: #1a253b !important;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .access-cta {
    background: #1a253b;
    border-left-color: #36c8ff;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-post-image-wrap {
    background: #0f1728;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .comments-access-alert {
    background: #17243a;
    border-color: #385072;
    color: #e6eefb;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link {
    color: #9bd9ff;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link:hover,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .comments-access-alert .alert-link:focus-visible {
    color: #b6e5ff;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .form-control,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .form-control:focus,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form textarea.form-control {
    background: #0f1728;
    color: #e6ebf5;
    border-color: #30415d;
    box-shadow: none;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .form-control::placeholder,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form textarea.form-control::placeholder {
    color: #8fa2bf;
    opacity: 1;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .btn-outline-primary {
    color: #d6e9ff;
    border-color: #4f6f9d;
    background: rgba(21, 34, 55, 0.55);
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .btn-outline-primary:hover,
:root[data-theme="dark"] #site-shell-content[data-shell-page="blog"] .blog-comment-form .btn-outline-primary:focus-visible {
    color: #eaf4ff;
    border-color: #6c93c8;
    background: rgba(33, 51, 80, 0.78);
}

/* Member/account dark readability */
:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .card {
    background: #111a2c;
    color: #e6ebf5;
    border-color: #30415d !important;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .text-muted,
:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .small.text-muted {
    color: #9ab0cb !important;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .form-control,
:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .form-control:focus,
:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .form-select {
    background: #0f1728;
    border-color: #30415d;
    color: #e6ebf5;
}

:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] .form-control::placeholder,
:root[data-theme="dark"] #site-shell-content[data-shell-page="member"] textarea.form-control::placeholder {
    color: #8fa2bf;
    opacity: 1;
}

/* Navbar notifications */
#navbarNotificationsPanel {
    background: color-mix(in srgb, var(--site-surface) 92%, #ffffff 8%);
    color: var(--site-text);
    border-color: var(--site-border) !important;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(12, 23, 43, 0.14);
    padding: .7rem !important;
    backdrop-filter: saturate(130%) blur(4px);
}

#navbarNotificationsPanel .text-muted,
#navbarNotificationsPanel .small.text-muted {
    color: var(--site-text-muted) !important;
}

#navbarNotificationsPanel > .d-flex {
    border-bottom: 1px solid color-mix(in srgb, var(--site-border) 88%, transparent);
    padding-bottom: .48rem;
    margin-bottom: .56rem !important;
}

#navbarNotificationsPanel > .d-flex strong {
    font-size: .78rem;
    letter-spacing: .01em;
}

.navbar-notifications-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .54rem;
}

.navbar-notifications-filters {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    padding: .14rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--site-border) 84%, transparent);
    background: color-mix(in srgb, var(--site-surface-2) 84%, transparent);
}

.navbar-notifications-filter-btn {
    border: 0;
    background: transparent;
    color: var(--site-text-muted);
    font-size: .69rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .22rem .56rem;
    line-height: 1.2;
}

.navbar-notifications-filter-btn.is-active {
    color: var(--site-text);
    background: color-mix(in srgb, #ffffff 78%, var(--site-link) 22%);
    box-shadow: 0 1px 2px rgba(12, 23, 43, .12);
}

.navbar-notifications-menu-wrap {
    position: relative;
}

.navbar-notifications-menu-button {
    width: 1.84rem;
    height: 1.84rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--site-border) 84%, transparent);
    background: color-mix(in srgb, var(--site-surface-2) 84%, transparent);
    color: var(--site-text-muted);
    font-size: .96rem;
    font-weight: 700;
    line-height: 1;
}

.navbar-notifications-menu {
    position: absolute;
    top: calc(100% + .36rem);
    right: 0;
    min-width: 212px;
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--site-border) 84%, transparent);
    background: color-mix(in srgb, var(--site-surface) 95%, #fff 5%);
    box-shadow: 0 14px 24px rgba(12, 23, 43, .15);
    padding: .28rem;
    z-index: 8;
}

.navbar-notifications-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: .42rem .56rem;
    font-size: .72rem;
    text-align: left;
}

.navbar-notifications-menu-item:hover,
.navbar-notifications-menu-item:focus-visible {
    background: color-mix(in srgb, var(--site-surface-2) 78%, var(--site-link) 22%);
    color: inherit;
}

#navbarNotificationsList {
    max-height: min(68vh, 520px);
    overflow-y: auto;
    padding-right: .2rem;
}

#navbarNotificationsList .navbar-notification-item {
    background: var(--site-surface-2);
    border-color: var(--site-border) !important;
    color: var(--site-text);
    padding: .72rem .78rem;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#navbarNotificationsList .navbar-notification-item.is-unread {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--site-link) 28%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--site-surface-2) 82%, var(--site-link) 18%), var(--site-surface-2));
}

#accountNotificationsList .account-notification-item {
    background: var(--site-surface-2);
    border-color: var(--site-border) !important;
    color: var(--site-text);
    padding: .84rem .92rem;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#accountNotificationsList .account-notification-item.is-unread {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--site-link) 26%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--site-surface-2) 84%, var(--site-link) 16%), var(--site-surface-2));
}

#accountNotificationsCard .text-muted,
#accountNotificationsCard .small.text-muted {
    color: var(--site-text-muted) !important;
}

#accountNotificationsList .account-notification-item.is-clickable,
#navbarNotificationsList .navbar-notification-item.is-clickable {
    cursor: pointer;
}

#accountNotificationsList .account-notification-item.is-clickable:hover,
#accountNotificationsList .account-notification-item.is-clickable:focus-visible,
#navbarNotificationsList .navbar-notification-item.is-clickable:hover,
#navbarNotificationsList .navbar-notification-item.is-clickable:focus-visible {
    background: color-mix(in srgb, var(--site-surface-2) 72%, var(--site-link) 28%);
    border-color: color-mix(in srgb, var(--site-border) 44%, var(--site-link) 56%) !important;
    box-shadow: 0 8px 18px rgba(12, 23, 43, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.notification-item-layout {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .72rem;
    align-items: flex-start;
}

.notification-avatar-wrap {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
}

.notification-avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: color-mix(in srgb, var(--site-link) 16%, var(--site-surface));
    color: color-mix(in srgb, var(--site-link) 64%, var(--site-text));
    border: 1px solid color-mix(in srgb, var(--site-border) 74%, var(--site-link) 26%);
}

.notification-avatar-wrap img.notification-avatar {
    display: block;
    object-fit: cover;
}

.notification-avatar-image {
    background: color-mix(in srgb, var(--site-surface) 76%, #d6e2f2 24%);
}

.notification-avatar-fallback {
    background:
        radial-gradient(circle at 26% 20%, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 54%),
        linear-gradient(155deg, color-mix(in srgb, var(--notification-avatar-bg, #3b82f6) 94%, #ffffff 6%), color-mix(in srgb, var(--notification-avatar-bg, #3b82f6) 74%, #111827 26%));
    color: #f8fafc;
    border-color: color-mix(in srgb, var(--notification-avatar-ring, #2563eb) 72%, #0f172a 28%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 8px rgba(15, 23, 42, .18);
    text-transform: uppercase;
}

.notification-avatar-wrap.is-hoverable {
    cursor: pointer;
}

.notification-avatar-wrap.is-hoverable .notification-avatar {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.notification-avatar-wrap.is-hoverable:hover .notification-avatar,
.notification-avatar-wrap.is-hoverable:focus-within .notification-avatar {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .24);
}

.notification-type-badge {
    position: absolute;
    right: -.18rem;
    bottom: -.1rem;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid color-mix(in srgb, var(--site-border) 50%, #ffffff 50%);
    background: color-mix(in srgb, var(--site-surface) 76%, #ffffff 24%);
    color: var(--site-text-muted);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .24);
}

.notification-type-badge.notification-type-reply {
    color: #ffffff;
    background: linear-gradient(145deg, #2c9cd6, #0f7fb0);
    border-color: #0f7fb0;
}

.notification-type-badge.notification-type-reaction {
    color: #ffffff;
    background: linear-gradient(145deg, #2dbd7e, #1f9a67);
    border-color: #1f9a67;
}

.notification-type-badge.notification-type-report {
    color: #ffffff;
    background: linear-gradient(145deg, #c99334, #a96d15);
    border-color: #a96d15;
}

.notification-type-badge.notification-type-generic {
    color: #ffffff;
    background: linear-gradient(145deg, #8092ac, #60748d);
    border-color: #60748d;
}

.notification-type-icon {
    width: .68rem;
    height: .68rem;
    display: block;
}

.notification-type-icon path,
.notification-type-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-type-icon.notification-type-icon-heart path {
    fill: currentColor;
    stroke: none;
}

.notification-main {
    min-width: 0;
}

.notification-main-top {
    display: flex;
    align-items: center;
    gap: .44rem;
    min-height: 1.15rem;
    margin-bottom: .2rem;
}

.notification-actor {
    font-size: .77rem;
    font-weight: 650;
    color: var(--site-text);
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-action-text {
    font-size: .72rem;
    color: var(--site-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.account-notification-item.is-unread .notification-actor,
.navbar-notification-item.is-unread .notification-actor {
    color: color-mix(in srgb, var(--site-text) 84%, var(--site-link) 16%);
}

.notification-type-label {
    font-size: .67rem;
    color: var(--site-text-muted);
    border: 1px solid var(--site-border);
    border-radius: 999px;
    padding: .03rem .42rem;
    line-height: 1.3;
}

.notification-unread-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-link) 92%, #7de2ff 8%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-link) 24%, transparent);
    margin-left: auto;
    flex: 0 0 auto;
}

.notification-message {
    font-size: .835rem;
    line-height: 1.46;
    color: var(--site-text);
    margin-bottom: .4rem;
}

.notification-context {
    display: inline-flex;
    align-items: center;
    font-size: .67rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .04rem .42rem;
    margin-right: .22rem;
    background: color-mix(in srgb, var(--site-surface-2) 84%, var(--site-link) 16%);
    border: 1px solid color-mix(in srgb, var(--site-border) 72%, var(--site-link) 28%);
    color: color-mix(in srgb, var(--site-text) 70%, var(--site-link) 30%);
}

.notification-context-sep {
    display: none;
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.notification-meta time {
    font-size: .73rem;
    color: var(--site-text-muted);
}

.notification-read-state {
    font-size: .66rem;
    color: var(--site-text-muted);
    border: 1px solid var(--site-border);
    border-radius: 999px;
    padding: .04rem .46rem;
}

.notification-group-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .075em;
    font-weight: 700;
    color: var(--site-text-muted);
    margin: .28rem .08rem .14rem;
}

.notification-group-label + .account-notification-item,
.notification-group-label + .navbar-notification-item {
    margin-top: .1rem;
}

.notification-group-empty {
    font-size: .72rem;
    color: var(--site-text-muted);
    margin: 0 .1rem .32rem;
    padding: .06rem 0 .02rem;
}

#accountNotificationsList .js-notification-read,
#navbarNotificationsList .js-navbar-notification-read {
    border-radius: 999px;
    padding: .22rem .58rem;
    font-size: .68rem;
    white-space: nowrap;
}

:root[data-theme="dark"] #navbarNotificationsPanel {
    box-shadow: 0 16px 34px rgba(3, 7, 14, .48);
}

:root[data-theme="dark"] .navbar-notifications-filters,
:root[data-theme="dark"] .navbar-notifications-menu-button {
    border-color: #355173;
    background: #112035;
    color: #9fb3cd;
}

:root[data-theme="dark"] .navbar-notifications-filter-btn {
    color: #9fb3cd;
}

:root[data-theme="dark"] .navbar-notifications-filter-btn.is-active {
    color: #e6eef9;
    background: color-mix(in srgb, #1b3556 72%, var(--site-link) 28%);
}

:root[data-theme="dark"] .navbar-notifications-menu {
    border-color: #355173;
    background: #0f1b2f;
    box-shadow: 0 16px 28px rgba(2, 8, 18, .55);
}

:root[data-theme="dark"] .notification-avatar {
    background: color-mix(in srgb, var(--site-link) 20%, #0d1c31 80%);
    color: #d7ebff;
}

:root[data-theme="dark"] .notification-avatar-fallback {
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 5px 14px rgba(2, 8, 18, .42);
}

:root[data-theme="dark"] .notification-type-badge {
    box-shadow: 0 3px 8px rgba(2, 8, 18, .5);
}

:root[data-theme="dark"] .notification-action-text,
:root[data-theme="dark"] .notification-context,
:root[data-theme="dark"] .notification-context-sep,
:root[data-theme="dark"] .notification-group-label,
:root[data-theme="dark"] .notification-group-empty {
    color: #9fb3cd;
}

:root[data-theme="dark"] .notification-context {
    background: color-mix(in srgb, #13243b 78%, var(--site-link) 22%);
    border-color: color-mix(in srgb, #335071 72%, var(--site-link) 28%);
    color: #c7dbf5;
}

:root[data-theme="dark"] #accountNotificationsList .account-notification-item.is-clickable:hover,
:root[data-theme="dark"] #accountNotificationsList .account-notification-item.is-clickable:focus-visible,
:root[data-theme="dark"] #navbarNotificationsList .navbar-notification-item.is-clickable:hover,
:root[data-theme="dark"] #navbarNotificationsList .navbar-notification-item.is-clickable:focus-visible {
    box-shadow: 0 10px 22px rgba(2, 8, 18, 0.46);
}

/* Music page in light theme */
:root[data-theme="light"] body.music-page-shell {
    --music-bg-start: var(--site-bg);
    --music-bg-end: var(--site-bg);
    --music-card: var(--site-surface);
    --music-card-soft: var(--site-surface-2);
    --music-border: var(--site-border);
    --music-text: var(--site-text);
    --music-muted: var(--site-text-muted);
    --music-accent: #1a97d3;
    --music-accent-soft: #1a97d3;
}

:root[data-theme="light"] body.music-page-shell .card {
    background: var(--site-surface) !important;
    color: var(--site-text) !important;
    border-color: var(--site-border) !important;
}

:root[data-theme="light"] body.music-page-shell .text-secondary {
    color: var(--site-text-muted) !important;
}

:root[data-theme="light"] body.music-page-shell .music-context-bar,
:root[data-theme="light"] body.music-page-shell .music-track-comments,
:root[data-theme="light"] body.music-page-shell .music-comment-item {
    background: var(--site-surface) !important;
    border-color: var(--site-border) !important;
    color: var(--site-text) !important;
}

:root[data-theme="light"] body.music-page-shell .music-track-comments .form-control,
:root[data-theme="light"] body.music-page-shell .music-track-comments .form-control:focus,
:root[data-theme="light"] body.music-page-shell .music-track-comments .js-comment-reply-content {
    background: #ffffff !important;
    color: #12263f !important;
    border-color: #b8cade !important;
    box-shadow: none;
}

:root[data-theme="light"] body.music-page-shell .music-track-comments .form-control::placeholder,
:root[data-theme="light"] body.music-page-shell .music-track-comments .js-comment-reply-content::placeholder {
    color: #6b819f !important;
    opacity: 1;
}

:root[data-theme="light"] body.music-page-shell .music-comment-replies {
    border-left-color: #c3d3e8 !important;
}

:root[data-theme="light"] body.music-page-shell .music-comment-ts {
    color: #0b6aa7 !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-subtle,
:root[data-theme="light"] body.music-page-shell .music-comment-reactions .btn {
    color: #2f4766 !important;
    border-color: #9cb3cc !important;
    background: #f4f8fe !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-subtle:hover,
:root[data-theme="light"] body.music-page-shell .music-comment-reactions .btn:hover,
:root[data-theme="light"] body.music-page-shell .music-btn-subtle:focus-visible,
:root[data-theme="light"] body.music-page-shell .music-comment-reactions .btn:focus-visible {
    color: #1c3552 !important;
    border-color: #6f92b8 !important;
    background: #eaf2fb !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-comment {
    color: #0b6aa7 !important;
    border-color: #7fb7de !important;
    background: #edf7ff !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-comment:hover,
:root[data-theme="light"] body.music-page-shell .music-btn-comment:focus-visible {
    color: #075786 !important;
    border-color: #4e98c9 !important;
    background: #dcf0ff !important;
}

:root[data-theme="light"] body.music-page-shell .music-comment-reactions .btn.is-active {
    color: #0d6335 !important;
    border-color: #35ab6f !important;
    background: #e9f9f0 !important;
}

:root[data-theme="light"] body.music-page-shell .placeholder-cover,
:root[data-theme="light"] body.music-page-shell .track-cover-placeholder {
    background: #dfe8f5 !important;
}

:root[data-theme="light"] body.music-page-shell .album-cover,
:root[data-theme="light"] body.music-page-shell .album-detail-cover,
:root[data-theme="light"] body.music-page-shell .track-cover-thumb {
    border-color: #b9cce3 !important;
}

:root[data-theme="light"] body.music-page-shell .music-track-table {
    --bs-table-color: var(--site-text);
    --bs-table-border-color: var(--site-border);
    --bs-table-striped-bg: rgba(15, 23, 42, 0.015);
    --bs-table-hover-bg: rgba(15, 118, 110, 0.055);
}

:root[data-theme="light"] body.music-page-shell .music-track-row:hover {
    background: rgba(15, 23, 42, 0.03) !important;
}

:root[data-theme="light"] body.music-page-shell .music-track-row:hover a,
:root[data-theme="light"] body.music-page-shell .music-track-row:hover .fw-semibold,
:root[data-theme="light"] body.music-page-shell .music-track-row:hover .text-decoration-none {
    color: #11263f !important;
}

:root[data-theme="light"] body.music-page-shell .music-track-row.is-track-playing {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), rgba(15, 23, 42, 0.03)) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.25);
}

:root[data-theme="light"] body.music-page-shell .music-track-row.is-track-paused {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(15, 23, 42, 0.02)) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.15);
}

:root[data-theme="light"] body.music-page-shell a {
    color: #0b6aa7 !important;
}

:root[data-theme="light"] body.music-page-shell a:hover {
    color: #0a5b8f !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-like,
:root[data-theme="light"] body.music-page-shell #global-player-like {
    color: #a11836 !important;
    border-color: #d35b78 !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-ghost,
:root[data-theme="light"] body.music-page-shell .music-track-actions .btn-outline-secondary,
:root[data-theme="light"] body.music-page-shell .music-track-actions .btn-outline-success {
    color: #153454 !important;
    border-color: #8ca9ca !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-ghost:hover,
:root[data-theme="light"] body.music-page-shell .music-track-actions .btn-outline-secondary:hover,
:root[data-theme="light"] body.music-page-shell .music-track-actions .btn-outline-success:hover {
    color: #0f2b47 !important;
    border-color: #668dba !important;
    background: rgba(236, 245, 255, 0.98) !important;
}

:root[data-theme="light"] body.music-page-shell .js-music-play-trigger.btn-warning {
    color: #39250a !important;
    border-color: #df9e37 !important;
    background: linear-gradient(120deg, #ffd87f 0%, #ffc469 100%) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-favorite,
:root[data-theme="light"] body.music-page-shell #global-player-favorite {
    color: #70511b !important;
    border-color: #d0b27a !important;
    background: rgba(255, 251, 240, 0.96) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-favorite.is-active,
:root[data-theme="light"] body.music-page-shell #global-player-favorite.is-active {
    color: #5f420f !important;
    border-color: #c4912b !important;
    background: rgba(255, 236, 192, 0.95) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-comment,
:root[data-theme="light"] body.music-page-shell #global-player-comments {
    color: #0a5f89 !important;
    border-color: #70afd5 !important;
    background: rgba(238, 247, 255, 0.94) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-comment:hover,
:root[data-theme="light"] body.music-page-shell #global-player-comments:hover {
    color: #08496a !important;
    border-color: #4e93c1 !important;
    background: rgba(222, 240, 255, 0.98) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-like:hover,
:root[data-theme="light"] body.music-page-shell #global-player-like:hover,
:root[data-theme="light"] body.music-page-shell .music-btn-like:focus-visible,
:root[data-theme="light"] body.music-page-shell #global-player-like:focus-visible {
    color: #8f0d2c !important;
    border-color: #b9274f !important;
    background: rgba(255, 233, 239, 0.95) !important;
}

:root[data-theme="light"] body.music-page-shell .music-btn-like.is-active,
:root[data-theme="light"] body.music-page-shell #global-player-like.is-active {
    color: #8f0d2c !important;
    border-color: #c43a5f !important;
    background: rgba(255, 220, 230, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(196, 58, 95, 0.24) inset;
}

/* Global persistent player theme */
:root[data-theme="light"] .global-music-player {
    background: linear-gradient(180deg, #f3f7fd 0%, #e8eff9 100%) !important;
    border-top-color: #c8d6e9 !important;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12) !important;
}

:root[data-theme="light"] .global-music-player__cover {
    background: #dce7f6 !important;
    border-color: #b9cce3 !important;
}

:root[data-theme="light"] .global-music-player__title {
    color: #12263f !important;
}

:root[data-theme="light"] .global-music-player__subtitle,
:root[data-theme="light"] .global-music-player__times {
    color: #4a6484 !important;
}

/* Player visual baseline must stay identical across Music/Blog/Member pages */
:root[data-theme="light"] .global-music-player[data-display-mode="dock-right"] .global-music-player__title {
    color: #14375f !important;
}

:root[data-theme="light"] .global-music-player[data-display-mode="dock-right"] .global-music-player__subtitle {
    color: #4d6f95 !important;
}

:root[data-theme="dark"] .global-music-player[data-display-mode="dock-right"] .global-music-player__title {
    color: #e6ebf5 !important;
}

:root[data-theme="dark"] .global-music-player[data-display-mode="dock-right"] .global-music-player__subtitle {
    color: #98a8c4 !important;
}

:root[data-theme="light"] .global-music-player .btn-outline-light,
:root[data-theme="light"] .global-music-player .btn-outline-secondary {
    color: #1d3553;
    border-color: #8ea8c8;
    background: rgba(255, 255, 255, 0.7);
}

:root[data-theme="light"] .global-music-player #global-player-toggle,
:root[data-theme="light"] .global-music-player #global-player-prev,
:root[data-theme="light"] .global-music-player #global-player-next,
:root[data-theme="light"] .global-music-player #global-player-shuffle,
:root[data-theme="light"] .global-music-player #global-player-volume {
    color: #173657 !important;
    border-color: #7ea0c8 !important;
    background: linear-gradient(180deg, #ffffff, #edf4ff) !important;
}

:root[data-theme="light"] .global-music-player #global-player-loop[data-loop-mode="none"] {
    color: #3f5f87 !important;
    border-color: #84a5cb !important;
    background: linear-gradient(180deg, #ffffff, #edf4ff) !important;
}

:root[data-theme="light"] .global-music-player #global-player-loop[data-loop-mode="track"] {
    color: #9b5b12 !important;
    border-color: #e1b56b !important;
    background: linear-gradient(180deg, #fff6e7, #ffe8c4) !important;
}

:root[data-theme="light"] .global-music-player #global-player-loop[data-loop-mode="album"] {
    color: #0f4f77 !important;
    border-color: #78afd4 !important;
    background: linear-gradient(180deg, #eef8ff, #d9effd) !important;
}

:root[data-theme="light"] .global-music-player #global-player-shuffle[data-shuffle-mode="local"] {
    color: #9b5b12 !important;
    border-color: #e1b56b !important;
    background: linear-gradient(180deg, #fff6e7, #ffe8c4) !important;
}

:root[data-theme="light"] .global-music-player #global-player-shuffle[data-shuffle-mode="global"] {
    color: #0f4f77 !important;
    border-color: #78afd4 !important;
    background: linear-gradient(180deg, #eef8ff, #d9effd) !important;
}

:root[data-theme="light"] .global-music-player .music-loop-badge {
    border-color: rgba(167, 115, 35, 0.45) !important;
    background: rgba(255, 220, 170, 0.85) !important;
    color: #7d4d10 !important;
}

:root[data-theme="light"] .global-music-player #global-player-toggle:hover,
:root[data-theme="light"] .global-music-player #global-player-prev:hover,
:root[data-theme="light"] .global-music-player #global-player-next:hover,
:root[data-theme="light"] .global-music-player #global-player-shuffle:hover,
:root[data-theme="light"] .global-music-player #global-player-volume:hover {
    color: #0f2a46 !important;
    border-color: #5c83b2 !important;
    background: linear-gradient(180deg, #ffffff, #dfeeff) !important;
}

:root[data-theme="light"] .global-music-player .music-btn-like.is-active,
:root[data-theme="light"] .global-music-player .music-btn-favorite.is-active,
:root[data-theme="light"] .global-music-player #global-player-like.is-active,
:root[data-theme="light"] .global-music-player #global-player-favorite.is-active {
    background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .global-music-player #global-player-like {
    color: #a11836 !important;
    border-color: #d35b78 !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

:root[data-theme="light"] .global-music-player #global-player-like:hover,
:root[data-theme="light"] .global-music-player #global-player-like:focus-visible {
    color: #8f0d2c !important;
    border-color: #b9274f !important;
    background: rgba(255, 233, 239, 0.95) !important;
}

:root[data-theme="light"] .global-music-player #global-player-like.is-active {
    color: #8f0d2c !important;
    border-color: #c43a5f !important;
    background: rgba(255, 220, 230, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(196, 58, 95, 0.24) inset !important;
}

:root[data-theme="light"] .global-music-player #global-player-favorite {
    color: #70511b !important;
    border-color: #d0b27a !important;
    background: rgba(255, 251, 240, 0.96) !important;
}

:root[data-theme="light"] .global-music-player #global-player-favorite:hover,
:root[data-theme="light"] .global-music-player #global-player-favorite:focus-visible {
    color: #5f420f !important;
    border-color: #bf984f !important;
    background: rgba(255, 242, 216, 0.96) !important;
}

:root[data-theme="light"] .global-music-player #global-player-favorite.is-active {
    color: #5f420f !important;
    border-color: #c4912b !important;
    background: rgba(255, 236, 192, 0.95) !important;
}

:root[data-theme="light"] .global-music-player .btn-outline-light:hover,
:root[data-theme="light"] .global-music-player .btn-outline-secondary:hover {
    color: #10243d;
    border-color: #5f84ad;
    background: rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .global-music-player .music-btn-like-icon {
    color: #c1244e;
}

:root[data-theme="light"] .global-music-player .music-btn-favorite-icon {
    color: #acb8cb;
}

:root[data-theme="light"] .global-music-player #global-player-favorite.is-active .music-btn-favorite-icon {
    color: #cc8b11;
    filter: drop-shadow(0 0 5px rgba(209, 146, 18, 0.3));
}

:root[data-theme="light"] .global-music-player .global-music-player__volume-popover {
    border-color: #abc3de;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(236, 244, 253, 0.98));
    box-shadow: 0 14px 28px rgba(20, 44, 77, 0.2);
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-popover {
    border-color: #abc3de;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(236, 244, 253, 0.98));
    box-shadow: 0 14px 28px rgba(20, 44, 77, 0.2);
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item {
    border-color: rgba(125, 152, 186, 0.48);
    background: rgba(255, 255, 255, 0.88);
    color: #173657;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item:hover {
    border-color: rgba(93, 133, 179, 0.76);
    background: rgba(243, 249, 255, 0.97);
    color: #10243d;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item.is-active {
    border-color: rgba(219, 167, 95, 0.7);
    background: rgba(255, 238, 205, 0.9);
    color: #7e4e15;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item .global-music-player__overflow-loop-state {
    border-color: rgba(126, 152, 186, 0.32);
    color: #496486;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-loop"][data-loop-mode="track"] {
    border-color: rgba(219, 167, 95, 0.7);
    background: rgba(255, 238, 205, 0.9);
    color: #7e4e15;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-loop"][data-loop-mode="track"] .global-music-player__overflow-loop-state {
    border-color: rgba(195, 147, 74, 0.45);
    background: rgba(255, 220, 164, 0.88);
    color: #8f5310;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-loop"][data-loop-mode="album"] {
    border-color: rgba(100, 165, 206, 0.76);
    background: rgba(221, 241, 255, 0.95);
    color: #13517a;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-loop"][data-loop-mode="album"] .global-music-player__overflow-loop-state {
    border-color: rgba(90, 157, 199, 0.42);
    background: rgba(203, 234, 252, 0.92);
    color: #1a628f;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-shuffle"][data-shuffle-mode="local"] {
    border-color: rgba(219, 167, 95, 0.7);
    background: rgba(255, 238, 205, 0.9);
    color: #7e4e15;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-shuffle"][data-shuffle-mode="local"] .global-music-player__overflow-shuffle-state {
    border-color: rgba(195, 147, 74, 0.45);
    background: rgba(255, 220, 164, 0.88);
    color: #8f5310;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-shuffle"][data-shuffle-mode="global"] {
    border-color: rgba(100, 165, 206, 0.76);
    background: rgba(221, 241, 255, 0.95);
    color: #13517a;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-overflow-target="global-player-shuffle"][data-shuffle-mode="global"] .global-music-player__overflow-shuffle-state {
    border-color: rgba(90, 157, 199, 0.42);
    background: rgba(203, 234, 252, 0.92);
    color: #1a628f;
}

:root[data-theme="light"] .global-music-player #global-player-volume[data-volume-level="muted"] {
    color: #7f96b4 !important;
}

:root[data-theme="light"] .global-music-player #global-player-volume[data-volume-level="low"] {
    color: #a66218 !important;
}

:root[data-theme="light"] .global-music-player #global-player-volume[data-volume-level="high"] {
    color: #0f6798 !important;
}

:root[data-theme="light"] .global-music-player__wave-wrap {
    border-color: #b8cade !important;
    background: linear-gradient(180deg, #eef4fd, #e6eef9) !important;
}

:root[data-theme="light"] .global-music-player__seek {
    --seek-played: #de6f43;
    --seek-unplayed: rgba(116, 144, 188, 0.5);
    --seek-thumb: #d95d36;
    --seek-thumb-ring: #fff9f1;
}

:root[data-theme="light"] .global-music-player__marker {
    background: rgba(30, 143, 211, 0.85) !important;
}

:root[data-theme="light"] .global-music-player__wave-hover {
    background: rgba(21, 64, 110, 0.24) !important;
}

:root[data-theme="light"] .global-music-player__wave-time {
    background: rgba(248, 252, 255, 0.96) !important;
    border-color: #b6cbe3 !important;
    color: #0f223a !important;
}

:root[data-theme="light"] .global-music-player__tooltip {
    background: #f8fbff !important;
    border-color: #b8cade !important;
    color: #0f223a !important;
}

/* Playlist modal theme */
#music-playlist-modal .card {
    background: var(--site-surface);
    color: var(--site-text);
    border-color: var(--site-border) !important;
}

#music-playlist-modal .music-playlist-modal-panel {
    max-width: 640px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: var(--site-surface);
    color: var(--site-text);
    border: 1px solid var(--site-border);
}

#music-playlist-modal .music-playlist-modal-header,
#music-playlist-modal .music-playlist-modal-body,
#music-playlist-modal .music-playlist-modal-create {
    background: var(--site-surface);
    color: var(--site-text);
    border-color: var(--site-border) !important;
}

#music-playlist-modal .text-muted,
#music-playlist-modal .small.text-muted {
    color: var(--site-text-muted) !important;
}

:root[data-theme="dark"] #music-playlist-modal .btn-outline-secondary {
    color: #d9e5f8;
    border-color: #486084;
}

:root[data-theme="dark"] #music-playlist-modal .form-control,
:root[data-theme="dark"] #music-playlist-modal .form-control:focus {
    background: #0f1728;
    border-color: #30415d;
    color: #e6ebf5;
}

:root[data-theme="dark"] #music-playlist-modal .form-control::placeholder {
    color: #8fa2bf;
    opacity: 1;
}

:root[data-theme="dark"] body.music-page-shell .music-track-comments .form-control,
:root[data-theme="dark"] body.music-page-shell .music-track-comments .form-control:focus,
:root[data-theme="dark"] body.music-page-shell .music-track-comments .js-comment-reply-content {
    background: #0f1728 !important;
    border-color: #30415d !important;
    color: #e6ebf5 !important;
    box-shadow: none;
}

:root[data-theme="dark"] body.music-page-shell .music-track-comments .form-control::placeholder,
:root[data-theme="dark"] body.music-page-shell .music-track-comments .js-comment-reply-content::placeholder {
    color: #8fa2bf !important;
    opacity: 1;
}

:root[data-theme="dark"] body.music-page-shell .music-btn-subtle,
:root[data-theme="dark"] body.music-page-shell .music-comment-reactions .btn {
    color: #d5dceb !important;
    border-color: rgba(112, 131, 168, 0.55) !important;
}

:root[data-theme="light"] .global-music-player #global-player-shuffle::after {
    border-color: transparent !important;
    background: transparent !important;
    color: transparent !important;
}

:root[data-theme="light"] .global-music-player #global-player-shuffle[data-shuffle-mode="local"]::after {
    border-color: rgba(195, 147, 74, 0.45) !important;
    background: rgba(255, 220, 164, 0.9) !important;
    color: #8f5310 !important;
}

:root[data-theme="light"] .global-music-player #global-player-shuffle[data-shuffle-mode="global"]::after {
    border-color: rgba(90, 157, 199, 0.42) !important;
    background: rgba(203, 234, 252, 0.92) !important;
    color: #1a628f !important;
}

:root[data-theme="light"] .global-music-player .global-music-player__visualizer {
    border-color: #9ab8da !important;
    background: radial-gradient(circle at 24% 22%, rgba(68, 148, 213, 0.26), rgba(220, 235, 251, 0.95)) !important;
}

:root[data-theme="light"] .global-music-player .global-music-player__visualizer-empty {
    color: rgba(31, 73, 117, 0.78) !important;
}

:root[data-theme="light"] .global-music-player #global-player-display-toggle[data-display-mode="dock-right"] {
    color: #0f4f77 !important;
    border-color: #78afd4 !important;
    background: linear-gradient(180deg, #eef8ff, #d9effd) !important;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-player-display-mode].is-active {
    border-color: rgba(100, 165, 206, 0.76) !important;
    background: rgba(221, 241, 255, 0.95) !important;
    color: #13517a !important;
}

:root[data-theme="light"] .global-music-player .global-music-player__overflow-item[data-player-display-mode].is-active .global-music-player__overflow-display-state {
    border-color: rgba(90, 157, 199, 0.42) !important;
    background: rgba(203, 234, 252, 0.92) !important;
    color: #1a628f !important;
    opacity: 1 !important;
}


.site-messaging-nav{position:relative;min-width:42px;display:inline-flex!important;align-items:center;justify-content:center;gap:.25rem}
.site-messaging-nav-icon{font-size:1.18rem;line-height:1}
.site-messaging-nav-badge{position:absolute;right:-.35rem;top:-.45rem;min-width:1.22rem;height:1.22rem;padding:0 .28rem;border-radius:999px;display:grid;place-items:center;background:#dc2626;color:#fff;font-size:.65rem;font-weight:900;box-shadow:0 0 0 2px var(--bs-body-bg,#fff)}
.site-messaging-nav-badge[hidden]{display:none!important}

/* ClubOS 8.9.1 — topbar bord à bord et rendu initial sans flash legacy */
#site-shell-header .navbar > .container.site-shell {
    width: 100%;
    max-width: none !important;
    padding-left: clamp(.8rem, 1.35vw, 1.5rem);
    padding-right: clamp(.8rem, 1.35vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#site-shell-header .navbar > .container.site-shell > .site-topbar-brand-search {
    margin-right: auto;
    min-width: 0;
}

#site-shell-header .navbar > .container.site-shell > .d-flex {
    margin-left: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
}

/*
 * Les vues PHP historiques contiennent encore les anciens contrôles.
 * Ils restent comme secours sans JavaScript, mais ne doivent plus flasher
 * avant que le menu compact n'ait fini sa réhydratation.
 */
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/mon-compte"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/mon-compte?"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/account"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/account?"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > .site-theme-toggle,
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > [data-theme-toggle] {
    display: none !important;
}

#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/deconnexion"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/deconnexion?"] {
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.7rem;
    min-height: 2.7rem;
    padding: 0 !important;
    overflow: hidden;
    color: transparent !important;
    border-radius: 999px !important;
    background: var(--site-surface-2) !important;
    border-color: var(--site-border) !important;
}

#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/deconnexion"]::before,
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/deconnexion?"]::before {
    content: "";
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-text-muted) 38%, transparent);
}

#site-shell-header a[href$="/messages"]:not(.site-messaging-nav),
#site-shell-header a[href*="/messages?"]:not(.site-messaging-nav) {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    min-height: 2.55rem;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0;
}

#site-shell-header a[href$="/messages"]:not(.site-messaging-nav)::before,
#site-shell-header a[href*="/messages?"]:not(.site-messaging-nav)::before {
    content: "✉";
    font-size: 1.05rem;
    line-height: 1;
}

@media (max-width: 760px) {
    #site-shell-header .navbar > .container.site-shell {
        gap: .55rem;
        padding-left: .55rem;
        padding-right: .55rem;
    }

    #site-shell-header .navbar > .container.site-shell > .d-flex {
        gap: .35rem !important;
    }
}

/* ClubOS 8.9.1 — espace du player conservé hors de la Music Room. */
body.music-player-persistent {
    padding-bottom: 136px;
}

@media (max-width: 767.98px) {
    body.music-player-persistent {
        padding-bottom: 186px;
    }
}

#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/deconnexion"],
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/deconnexion?"] {
    display: inline-grid !important;
    place-items: center;
}

#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href$="/deconnexion"]::before,
#site-shell-header:not([data-compact-header-ready="1"]) .navbar > .container.site-shell > .d-flex > a[href*="/deconnexion?"]::before {
    display: block;
}


/* ClubOS 8.9.2 — contrastes musique et protection des liens du menu de compte. */
:root[data-theme="light"] body.music-page-shell .btn-primary,
:root[data-theme="light"] body.music-page-shell a.btn-primary,
:root[data-theme="light"] body.music-page-shell .music-btn-primary {
    color: #ffffff !important;
}

:root[data-theme="light"] body.music-page-shell .btn-primary:hover,
:root[data-theme="light"] body.music-page-shell .btn-primary:focus-visible,
:root[data-theme="light"] body.music-page-shell a.btn-primary:hover,
:root[data-theme="light"] body.music-page-shell a.btn-primary:focus-visible {
    color: #ffffff !important;
}

/* Les liens internes du menu de compte ne sont jamais des boutons de topbar. */
#site-shell-header .site-account-menu a,
#site-shell-header .site-account-menu button {
    font-size: inherit;
}

#site-shell-header .site-account-menu-footer a {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: inherit !important;
}

#site-shell-header .site-account-menu-footer a::before {
    content: none !important;
    display: none !important;
}


/* ========================================================================== */
/* ClubOS B.3.2 — commentaires Musique alignés sur les fils Publications.     */
/* ========================================================================== */
body.music-page-shell .music-comment-thread {
    --comment-rail-width: 44px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: .25rem 0 .75rem;
}

body.music-page-shell .music-comment-thread .music-comment-item {
    --c-avatar-size: 32px;
    position: relative;
    z-index: 1;
    padding: .15rem 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.music-page-shell .music-comment-thread .music-comment-item.is-reply {
    --c-avatar-size: 24px;
}

body.music-page-shell .music-comment-thread .c-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

body.music-page-shell .music-comment-thread .av {
    width: var(--c-avatar-size);
    height: var(--c-avatar-size);
    min-width: var(--c-avatar-size);
    min-height: var(--c-avatar-size);
    flex: 0 0 var(--c-avatar-size);
    border-radius: 50%;
}

body.music-page-shell .music-comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--site-link) 18%, var(--site-surface-2));
    color: var(--site-text);
    font-size: .78rem;
    font-weight: 800;
}

body.music-page-shell .music-comment-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.music-page-shell .music-comment-bubble {
    min-width: 0;
    width: 100%;
    padding: .5rem .72rem;
    border-radius: 16px;
    background: var(--site-surface-2);
    color: var(--site-text);
}

body.music-page-shell .music-comment-heading {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
    font-size: .82rem;
}

body.music-page-shell .music-comment-heading strong {
    color: var(--site-text);
}

body.music-page-shell .music-comment-date {
    overflow: hidden;
    color: var(--site-text-muted);
    font-size: .74rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.music-page-shell .music-comment-ts {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-link);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

body.music-page-shell .music-comment-content {
    margin-top: .28rem;
    color: var(--site-text);
    font-size: .86rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.music-page-shell .music-comment-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 1.85rem;
    margin: .1rem 0 0 calc(var(--c-avatar-size) + 8px);
    color: var(--site-text-muted);
    font-size: .76rem;
    font-weight: 700;
}

body.music-page-shell .music-comment-action,
body.music-page-shell .music-comment-reaction-trigger {
    min-height: 30px;
    padding: .18rem .28rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--site-text-muted);
    font: inherit;
    font-weight: 750;
    touch-action: manipulation;
}

body.music-page-shell .music-comment-action:hover,
body.music-page-shell .music-comment-action:focus-visible,
body.music-page-shell .music-comment-reaction-trigger:hover,
body.music-page-shell .music-comment-reaction-trigger:focus-visible {
    background: color-mix(in srgb, var(--site-link) 10%, transparent);
    color: var(--site-link);
    outline: none;
}

body.music-page-shell .music-comment-reaction-trigger.is-active {
    color: var(--site-link);
}

body.music-page-shell .music-comment-reaction-trigger__emoji {
    margin-right: .2rem;
}

body.music-page-shell .music-comment-reaction-wrap {
    position: relative;
}

body.music-page-shell .music-comment-reaction-picker {
    position: absolute;
    z-index: 6500;
    left: 0;
    bottom: calc(100% + .4rem);
    display: flex;
    gap: .25rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: .42rem .5rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

body.music-page-shell .music-comment-reaction-picker[hidden] {
    display: none !important;
}

body.music-page-shell .music-comment-reaction-choice {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.08rem;
    transition: transform 120ms ease, background-color 120ms ease;
}

body.music-page-shell .music-comment-reaction-choice:hover,
body.music-page-shell .music-comment-reaction-choice:focus-visible,
body.music-page-shell .music-comment-reaction-choice.is-active {
    transform: translateY(-1px) scale(1.06);
    background: color-mix(in srgb, var(--site-link) 13%, transparent);
    outline: none;
}

body.music-page-shell .music-comment-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--site-text-muted);
    font-size: .73rem;
}

body.music-page-shell .music-comment-reaction-summary__icons {
    display: inline-flex;
    letter-spacing: -.18rem;
    padding-right: .12rem;
}

body.music-page-shell .music-comment-reply-form {
    margin: .35rem 0 .45rem calc(var(--c-avatar-size) + 8px);
    padding: .55rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface);
}

body.music-page-shell .music-comment-reply-form[hidden] {
    display: none !important;
}

body.music-page-shell .music-comment-reply-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
    margin-top: .4rem;
}

body.music-page-shell .music-comment-reply-submit {
    min-height: 34px;
    padding: .3rem .72rem;
    border: 0;
    border-radius: 9px;
    background: var(--site-link);
    color: #fff;
    font-weight: 800;
}

body.music-page-shell .music-comment-replies-toggle {
    margin: .28rem 0 0 calc(var(--c-avatar-size) + 8px);
    padding: .25rem .4rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--site-link);
    font-size: .76rem;
    font-weight: 800;
}

body.music-page-shell .music-comment-thread .c-node > svg.c-rails-collapsed {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}

body.music-page-shell .music-comment-thread .c-node > svg.c-rails-collapsed[hidden] {
    display: none !important;
}

body.music-page-shell .music-comment-thread .c-node > svg.c-rails-collapsed path {
    stroke: color-mix(in srgb, var(--site-text-muted) 38%, transparent);
    stroke-width: 2;
}

body.music-page-shell .music-comment-thread .c-node > .c-row,
body.music-page-shell .music-comment-thread .c-node > .actions,
body.music-page-shell .music-comment-thread .c-node > .music-comment-replies-toggle,
body.music-page-shell .music-comment-thread .c-node > .c-group {
    position: relative;
    z-index: 1;
}

body.music-page-shell .music-comment-thread .c-group {
    --comment-rail-width: 44px;
    position: relative;
    margin-top: .2rem;
    padding-left: var(--comment-rail-width);
    overflow: visible;
}

body.music-page-shell .music-comment-thread .c-group[hidden] {
    display: none !important;
}

body.music-page-shell .music-comment-thread .c-group > svg.c-rails {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--comment-rail-width);
    overflow: visible;
    pointer-events: none;
}

body.music-page-shell .music-comment-thread .c-group > svg.c-rails path {
    stroke: color-mix(in srgb, var(--site-text-muted) 38%, transparent);
    stroke-width: 2;
}

body.music-page-shell .music-comment-thread .c-item {
    position: relative;
    padding-top: 8px;
    overflow: visible;
}

body.music-page-shell .music-comment-thread .c-item-inner {
    position: relative;
    overflow: visible;
}

body.music-page-shell .music-comment-item.is-highlighted .music-comment-bubble {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--site-link) 55%, transparent);
}

:root[data-theme="dark"] body.music-page-shell .music-comment-bubble {
    background: color-mix(in srgb, var(--site-surface-2) 88%, #1b2a42 12%);
}

:root[data-theme="dark"] body.music-page-shell .music-comment-reaction-picker,
:root[data-theme="dark"] body.music-page-shell .music-comment-reply-form {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .38);
}

@media (max-width: 767.98px) {
    body.music-page-shell .music-comment-thread .c-group {
        --comment-rail-width: 36px;
    }

    body.music-page-shell .music-comment-thread .music-comment-item {
        --c-avatar-size: 30px;
    }

    body.music-page-shell .music-comment-thread .music-comment-item.is-reply {
        --c-avatar-size: 24px;
    }

    body.music-page-shell .music-comment-actions {
        gap: .45rem;
    }

    body.music-page-shell .music-comment-reaction-picker {
        left: -.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.music-page-shell .music-comment-reaction-choice {
        transition: none;
    }
}

/* ========================================================================== */
/* ClubOS 8.14.0-B.3.2.2 — colonne racine et rails Musique mesurés.          */
/* ========================================================================== */
body.music-page-shell .music-comment-thread {
    position: relative;
    isolation: isolate;
}
body.music-page-shell .music-comment-thread > svg.c-root-spine {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}
body.music-page-shell .music-comment-thread > svg.c-root-spine[hidden] {
    display: none !important;
}
body.music-page-shell .music-comment-thread > svg.c-root-spine path {
    stroke: color-mix(in srgb, var(--site-text-muted) 38%, transparent);
    stroke-width: 2;
}

/* ========================================================================== */
/* ClubOS 8.14.0-B.3.2.3 — neutralisation de l’ancienne gouttière Musique.   */
/*                                                                            */
/* Le renderer historique ajoute encore margin-left, padding-left et une      */
/* bordure pointillée à .music-comment-replies. Le nouvel arbre SVG possède   */
/* déjà sa propre gouttière mesurée : conserver les deux systèmes décale les  */
/* rails et produit une deuxième ligne verticale à côté des avatars.          */
/* ========================================================================== */
body.music-page-shell .music-comment-thread .music-comment-replies.c-group {
    margin-left: 0 !important;
    padding-left: var(--comment-rail-width) !important;
    border-left: 0 !important;
    border-inline-start: 0 !important;
    box-sizing: border-box;
}


/* ClubOS 8.14.0-B.3.2.4 — le niveau zéro Musique garde sa géométrie racine. */
body.music-page-shell .music-comment-thread > .music-comment-item,
body.music-page-shell .music-comment-thread > .music-comment-item.is-reply {
    --c-avatar-size: 32px;
}
@media (max-width: 767.98px) {
    body.music-page-shell .music-comment-thread > .music-comment-item,
    body.music-page-shell .music-comment-thread > .music-comment-item.is-reply {
        --c-avatar-size: 30px;
    }
}


/* ========================================================================== */
/* ClubOS 8.14.0-B.3.2.5 — spine racine Musique visible entre les fils.      */
/* Les anciennes règles Day/Night donnaient un fond opaque à l'article        */
/* complet. Le SVG racine existait bien, mais restait peint derrière ce fond. */
/* Les bulles conservent leur surface ; le conteneur d'arbre reste transparent.*/
/* ========================================================================== */
:root[data-theme="light"] body.music-page-shell .music-comment-thread > .music-comment-item,
:root[data-theme="dark"] body.music-page-shell .music-comment-thread > .music-comment-item,
body.music-page-shell .music-comment-thread > .music-comment-item {
    background: transparent !important;
    box-shadow: none !important;
}
body.music-page-shell .music-comment-thread > svg.c-root-spine {
    z-index: 1;
}
body.music-page-shell .music-comment-thread > .music-comment-item {
    z-index: auto;
}
body.music-page-shell .music-comment-thread > .music-comment-item > .c-row,
body.music-page-shell .music-comment-thread > .music-comment-item > .actions,
body.music-page-shell .music-comment-thread > .music-comment-item > .music-comment-replies-toggle,
body.music-page-shell .music-comment-thread > .music-comment-item > .c-group,
body.music-page-shell .music-comment-thread > .music-comment-item > .music-comment-reply-form {
    position: relative;
    z-index: 2;
}
body.music-page-shell .music-comment-thread > svg.c-root-spine path,
body.music-page-shell .music-comment-thread .c-group > svg.c-rails path,
body.music-page-shell .music-comment-thread .c-node > svg.c-rails-collapsed path {
    stroke: color-mix(in srgb, var(--site-text-muted) 45%, transparent);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

/* Club Alex Borg 9.8.0B — accès Push depuis la cloche */
.navbar-notifications-tools {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.navbar-notifications-preferences-button {
    display: inline-grid;
    place-items: center;
    width: 1.84rem;
    height: 1.84rem;
    border: 1px solid color-mix(in srgb, var(--site-border) 84%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-surface-2) 84%, transparent);
    color: var(--site-text-muted);
    text-decoration: none;
}

.navbar-notifications-preferences-button:hover,
.navbar-notifications-preferences-button:focus-visible {
    background: color-mix(in srgb, var(--site-link) 11%, var(--site-surface-2));
    color: var(--site-link);
}

.navbar-notifications-preferences-button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-push-callout {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    margin: .25rem 0 .55rem;
    padding: .65rem;
    border: 1px solid color-mix(in srgb, var(--site-link) 22%, var(--site-border));
    border-radius: .8rem;
    background: color-mix(in srgb, var(--site-surface-2) 90%, var(--site-link) 10%);
}

.navbar-push-callout-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    background: color-mix(in srgb, var(--site-link) 12%, transparent);
    color: var(--site-link);
}

.navbar-push-callout-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar-push-callout-copy { display: grid; gap: .08rem; min-width: 0; }
.navbar-push-callout-copy strong { font-size: .73rem; line-height: 1.25; }
.navbar-push-callout-copy small { color: var(--site-text-muted); font-size: .65rem; line-height: 1.3; }
.navbar-push-callout-status { color: var(--site-text-muted); font-size: .64rem; }
.navbar-push-callout-actions { display: flex; align-items: center; gap: .2rem; }

.navbar-push-callout-activate {
    border: 0;
    border-radius: 999px;
    padding: .35rem .58rem;
    background: var(--site-link);
    color: #fff;
    font-size: .67rem;
    font-weight: 800;
}

.navbar-push-callout-dismiss {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--site-text-muted);
    font-size: 1rem;
}


/* Club Alex Borg 9.8.0D — activation Push directe depuis la cloche */
.navbar-push-callout {
    grid-template-columns: minmax(0, 1fr) auto;
    border-width: 1.5px;
    cursor: pointer;
    box-shadow: 0 .35rem 1rem color-mix(in srgb, var(--site-link) 10%, transparent);
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.navbar-push-callout.is-available {
    border-color: color-mix(in srgb, var(--site-link) 46%, var(--site-border));
    background: color-mix(in srgb, var(--site-surface-2) 80%, var(--site-link) 20%);
}
.navbar-push-callout:hover,
.navbar-push-callout:focus-within {
    border-color: color-mix(in srgb, var(--site-link) 62%, var(--site-border));
    box-shadow: 0 .45rem 1.2rem color-mix(in srgb, var(--site-link) 16%, transparent);
    transform: translateY(-1px);
}
.navbar-push-callout-main {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: .62rem;
    outline: none;
}
.navbar-push-callout-main:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-link) 25%, transparent);
}
.navbar-push-callout-more {
    width: fit-content;
    margin-top: .12rem;
    color: var(--site-link);
    font-size: .64rem;
    font-weight: 800;
}
.navbar-push-callout-activate {
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 .2rem .55rem color-mix(in srgb, var(--site-link) 18%, transparent);
}
.navbar-push-callout-activate:hover,
.navbar-push-callout-activate:focus-visible {
    filter: brightness(.96);
}
.navbar-push-callout.is-blocked {
    border-color: color-mix(in srgb, #c88428 42%, var(--site-border));
}
.navbar-push-callout.is-unavailable {
    opacity: .92;
}
.notifications-device-card.is-direct-focus {
    border-color: color-mix(in srgb, var(--site-link) 72%, var(--site-border)) !important;
    background: color-mix(in srgb, var(--site-surface-2) 76%, var(--site-link) 24%) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-link) 16%, transparent), 0 .6rem 1.45rem color-mix(in srgb, var(--site-link) 14%, transparent) !important;
    animation: clubosNotificationDeviceFocus 1.15s ease-in-out 2;
}
@keyframes clubosNotificationDeviceFocus {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@media (max-width: 640px) {
    .navbar-push-callout {
        grid-template-columns: 1fr;
        gap: .45rem;
    }
    .navbar-push-callout-main {
        grid-template-columns: 1.9rem minmax(0, 1fr);
    }
    .navbar-push-callout-actions {
        grid-column: 1;
        padding-left: 2.45rem;
        justify-content: flex-start;
    }
}
