/* ATJ Music — Communauté & Loisirs (aligné charte site : #1c1b22 / #e6c43c) */
.community-hub {
    --ch-bg: #14131a;
    --ch-deep: #1c1b22;
    --ch-surface: #2d2a35;
    --ch-surface-2: #353140;
    --ch-accent: #e6c43c;
    --ch-accent-soft: #f4dc71;
    --ch-accent-glow: rgba(230, 196, 60, 0.22);
    --ch-border: rgba(230, 196, 60, 0.22);
    --ch-border-strong: rgba(230, 196, 60, 0.42);
    --ch-text: rgba(255, 255, 255, 0.92);
    --ch-muted: rgba(255, 255, 255, 0.62);
    background: var(--ch-bg);
    min-height: 60vh;
    padding-bottom: 5rem;
    color: var(--ch-text);
    overflow-x: clip;
    max-width: 100%;
}

/* —— Hero —— */
.community-hero {
    background: linear-gradient(135deg, var(--ch-deep) 0%, #2a2530 48%, rgba(230, 196, 60, 0.1) 100%);
    border-bottom: 1px solid var(--ch-border);
    padding: 2.75rem 0 2.25rem;
    position: relative;
    overflow: hidden;
}

.community-hero--bottom {
    border-bottom: none;
    border-top: 1px solid var(--ch-border);
    margin-top: 0.5rem;
}

.community-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(230, 196, 60, 0.08), transparent 55%);
    pointer-events: none;
}

.community-hero__inner {
    position: relative;
    z-index: 1;
}

.community-hero__eyebrow {
    color: var(--ch-accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-bottom: 0.55rem;
}

.community-hero__title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.community-hero__lead {
    color: var(--ch-muted);
    max-width: 44rem;
    margin-bottom: 1.15rem;
    font-size: 1rem;
    line-height: 1.55;
}

.community-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.community-stats-bar {
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--ch-border);
}

.community-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(230, 196, 60, 0.12), rgba(28, 27, 34, 0.6));
    border: 1px solid rgba(230, 196, 60, 0.25);
}

.community-stat__icon {
    color: var(--ch-accent);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.community-stat__value {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
}

.community-stat__label {
    color: var(--ch-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.community-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(230, 196, 60, 0.1);
    border: 1px solid var(--ch-border);
    color: var(--ch-accent-soft);
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.community-pill i {
    color: var(--ch-accent);
}

/* —— Layout sidebar + contenu —— */
.community-shell {
    max-width: 1280px;
    overflow-x: clip;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
    min-width: 0;
}

.community-sidebar {
    position: sticky;
    top: 1rem;
}

.community-sidebar__title {
    margin: 0 0 0.65rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ch-accent);
}

.community-sidebar__title i {
    margin-right: 0.35rem;
}

.community-main {
    min-width: 0;
    overflow-x: clip;
}

.community-section-head {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(45, 42, 53, 0.65), rgba(28, 27, 34, 0.92));
    border: 1px solid var(--ch-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    word-wrap: break-word;
}

.community-section-head__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ch-accent);
}

.community-section-head__title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
}

.community-section-head__lead {
    margin: 0;
    color: var(--ch-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 40rem;
}

/* —— Navigation sidebar —— */
.community-nav-block {
    margin-bottom: 0.85rem;
}

.community-nav-block--community {
    margin-bottom: 0;
}

.community-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(45, 42, 53, 0.88), rgba(22, 21, 28, 0.98));
    border: 1px solid var(--ch-border);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.community-nav__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ch-muted);
    border-radius: 14px;
    padding: 0.7rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    overflow: hidden;
}

.community-nav__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.community-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.community-nav__label {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.2;
}

.community-nav__hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.25;
}

.community-nav__active-bar {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #f4dc71, #e6c43c);
    box-shadow: 0 0 12px rgba(230, 196, 60, 0.65);
}

.community-nav__btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.community-nav__btn:hover .community-nav__icon {
    color: var(--ch-accent-soft);
    border-color: rgba(230, 196, 60, 0.25);
}

.community-nav__btn.is-active {
    background: linear-gradient(135deg, rgba(230, 196, 60, 0.28), rgba(230, 196, 60, 0.1));
    border-color: rgba(230, 196, 60, 0.55);
    box-shadow: 0 6px 22px rgba(230, 196, 60, 0.22), inset 0 0 0 1px rgba(244, 220, 113, 0.15);
    transform: translateX(4px);
}

.community-nav__btn.is-active .community-nav__icon {
    background: linear-gradient(145deg, #f4dc71, #e6c43c);
    border-color: #f4dc71;
    color: #1c1b22;
    box-shadow: 0 4px 14px rgba(230, 196, 60, 0.35);
}

.community-nav__btn.is-active .community-nav__label {
    color: #fff;
    font-weight: 800;
}

.community-nav__btn.is-active .community-nav__hint {
    color: rgba(255, 255, 255, 0.72);
}

.community-nav__btn:focus-visible {
    outline: 2px solid var(--ch-accent);
    outline-offset: 2px;
}

/* —— Grille cartes accueil —— */
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.25rem;
}

.community-grid--playlists {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.community-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 190px;
    border: 1px solid var(--ch-border);
    background: linear-gradient(155deg, rgba(53, 49, 64, 0.95) 0%, rgba(28, 27, 34, 0.98) 55%, rgba(20, 19, 26, 1) 100%);
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--ch-text);
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ch-accent), transparent);
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    border-color: var(--ch-border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 0 24px var(--ch-accent-glow);
}

.community-card:hover::before {
    opacity: 1;
}

.community-card:focus-visible {
    outline: 2px solid var(--ch-accent);
    outline-offset: 3px;
}

.community-card--static {
    cursor: default;
}

.community-card--static:hover {
    transform: none;
    box-shadow: none;
}

.community-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(230, 196, 60, 0.2), rgba(230, 196, 60, 0.06));
    border: 1px solid rgba(230, 196, 60, 0.28);
    color: var(--ch-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
    flex-shrink: 0;
}

.community-card__title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.45rem;
}

.community-card__text {
    color: var(--ch-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.community-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ch-accent-soft);
    letter-spacing: 0.02em;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.community-card:hover .community-card__cta {
    opacity: 1;
    transform: translateX(3px);
}

/* —— Panneaux contenu —— */
.community-panel {
    border: 1px solid var(--ch-border);
    background: linear-gradient(180deg, rgba(45, 42, 53, 0.55), rgba(22, 21, 28, 0.98));
    border-radius: 20px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    max-width: 100%;
}

.community-panel--compact {
    padding: 1rem 1.1rem;
}

.community-panel .form-control,
.community-panel textarea,
.community-referral-box .form-control {
    max-width: 100%;
}

.community-panel .table-responsive {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    -webkit-overflow-scrolling: touch;
}

.community-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(230, 196, 60, 0.12);
}

.community-panel__head h2 {
    color: #fff;
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0;
}

.community-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 0;
}

.community-list-item > div:first-child,
.community-list-item > span:first-child {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
}

.community-list-item:hover {
    background: rgba(230, 196, 60, 0.05);
    border-color: rgba(230, 196, 60, 0.18);
}

.community-list-item:last-child {
    margin-bottom: 0;
}

/* —— Quiz / options —— */
.community-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.community-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.community-option__marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s, background 0.18s;
}

.community-option__marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--ch-accent);
    transform: scale(0);
    transition: transform 0.18s ease;
}

.community-option__label {
    font-weight: 600;
    font-size: 0.92rem;
}

.community-option.is-selected,
.community-option:hover {
    border-color: var(--ch-accent);
    background: rgba(230, 196, 60, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(230, 196, 60, 0.12);
}

.community-option.is-selected .community-option__marker {
    border-color: var(--ch-accent);
}

.community-option.is-selected .community-option__marker::after {
    transform: scale(1);
}

.community-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.community-audio {
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
}

/* —— Classements —— */
.community-rank {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-rank li {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    padding: 0.55rem 0;
    color: var(--ch-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    min-width: 0;
}

.community-rank li > :not(.community-rank__pos):not(.community-rank__score) {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
}

.community-rank__pos {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(230, 196, 60, 0.15);
    border: 1px solid rgba(230, 196, 60, 0.35);
    color: var(--ch-accent);
    font-weight: 800;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-rank__score {
    margin-left: auto;
    color: var(--ch-accent-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

/* —— Live / parrainage —— */
.community-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--ch-border);
}

.community-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.community-referral-box .form-control {
    font-size: 0.85rem;
    min-width: 0;
}

.community-clip-card {
    border: 1px solid var(--ch-border);
    border-radius: 12px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    height: 100%;
}

.community-alert {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #9fdfb0;
    border-radius: 12px;
}

/* —— Responsive —— */
@media (min-width: 992px) {
    .community-nav-block .community-nav {
        border-radius: 0;
        box-shadow: none;
    }

    .community-nav-block:first-child .community-nav {
        border-radius: 18px 18px 0 0;
        padding-bottom: 0.35rem;
    }

    .community-nav-block--community .community-nav {
        border-radius: 0 0 18px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.35rem;
    }

    .community-nav-block:first-child {
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .community-hub {
        padding-bottom: 4rem;
    }

    .community-shell.container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .community-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .community-sidebar {
        position: static;
        min-width: 0;
    }

    .community-nav-block {
        margin-bottom: 0.65rem;
    }

    .community-nav__group {
        margin: 0 0 0.35rem;
        padding: 0 0.15rem;
    }

    .community-nav--strip {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.45rem;
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }

    .community-nav--strip .community-nav__btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        max-width: 168px;
        padding: 0.55rem 0.65rem;
        scroll-snap-align: start;
    }

    .community-nav--strip .community-nav__btn:hover,
    .community-nav--strip .community-nav__btn.is-active {
        transform: none;
    }

    .community-nav--strip .community-nav__hint {
        display: none;
    }

    .community-nav--strip .community-nav__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .community-nav--strip .community-nav__label {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-nav--strip .community-nav__active-bar {
        top: auto;
        bottom: 0;
        left: 10px;
        right: 10px;
        width: auto;
        height: 3px;
        border-radius: 3px 3px 0 0;
    }

    .community-panel {
        padding: 1.15rem 1rem;
        border-radius: 16px;
    }

    .community-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-panel__head h2 {
        font-size: 1.05rem;
        word-break: break-word;
    }

    .community-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .community-list-item > div:last-child,
    .community-list-item .text-nowrap {
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
    }

    .community-option:hover,
    .community-option.is-selected {
        transform: none;
    }

    .community-rank__score {
        margin-left: 0;
        flex: 1 1 100%;
        padding-left: 2.45rem;
    }

    .fan-library-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .fan-library-tabs__btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .fan-library-list__row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .fan-library-list__row--play {
        flex-direction: column;
        align-items: stretch;
    }

    .fan-library-list__row--play .fan-library-list__meta {
        width: 100%;
    }

    .fan-library-list__actions {
        width: 100%;
    }

    .fan-library-list__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .profile-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.65rem;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .community-nav--strip .community-nav__btn {
        max-width: 190px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .community-grid,
    .community-grid--playlists {
        grid-template-columns: 1fr;
    }

    .community-card {
        min-height: auto;
    }

    .community-section-head {
        padding: 0.85rem 0.9rem;
        border-radius: 14px;
    }

    .community-section-head__title {
        font-size: 1.15rem;
    }

    .community-section-head__lead {
        font-size: 0.86rem;
    }

    .community-stat {
        min-width: 76px;
        padding: 0.45rem 0.6rem;
    }

    .community-hero {
        padding: 2rem 0 1.75rem;
    }

    .community-hero__stats {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .profile-cover {
        min-height: 160px;
        border-radius: 14px;
    }

    .profile-cover__body {
        padding: 1rem;
    }

    .profile-avatar {
        width: 76px;
        height: 76px;
    }

    .profile-identity__name {
        font-size: 1.25rem;
    }

    .profile-identity__meta span {
        display: block;
        margin-left: 0 !important;
        margin-bottom: 0.25rem;
    }

    .profile-stat-card__value {
        font-size: 1.25rem;
    }

    .fan-library-notify__actions {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .fan-library-notify__actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .community-referral-box .input-group {
        flex-wrap: wrap;
    }

    .community-referral-box .input-group .form-control {
        flex: 1 1 100%;
        border-radius: 0.25rem 0.25rem 0 0 !important;
        font-size: 0.78rem;
    }

    .community-referral-box .input-group-append {
        flex: 1 1 100%;
        width: 100%;
    }

    .community-referral-box .input-group-append .btn {
        width: 100%;
        border-radius: 0 0 0.25rem 0.25rem !important;
    }
}

/* —— Promo (autres pages) —— */
.community-promo--banner .community-promo__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--ch-border);
    background: linear-gradient(135deg, var(--ch-deep) 0%, #2a2530 60%, rgba(230, 196, 60, 0.1) 100%);
}

.community-promo__eyebrow {
    color: var(--ch-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
}

.community-promo__title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.community-promo__text {
    color: var(--ch-muted);
    margin: 0;
    font-size: 0.9rem;
    max-width: 36rem;
}

.community-promo--compact .community-promo__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--ch-border);
    background: rgba(28, 27, 34, 0.95);
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.community-promo--compact .community-promo__link:hover {
    border-color: var(--ch-border-strong);
    transform: translateY(-2px);
}

.community-promo__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 196, 60, 0.15);
    color: var(--ch-accent-soft);
    flex-shrink: 0;
}

.community-promo--compact strong {
    color: #fff;
    display: block;
}

.community-promo__cta {
    margin-left: auto;
    color: var(--ch-deep);
    background: var(--ch-accent);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.community-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(12, 11, 16, 0.82);
    backdrop-filter: blur(4px);
}

.community-auth-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--ch-panel, #26242c);
    border: 1px solid rgba(230, 196, 60, 0.25);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.community-auth-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.community-auth-modal__close:hover {
    color: var(--ch-accent, #e6c43c);
}

.community-auth-modal__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.community-auth-modal__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.community-auth-modal__hint {
    text-align: center;
}

.community-nav__btn.is-active .community-nav__hint {
    color: rgba(255, 255, 255, 0.72);
}

.community-nav__group {
    margin: 0.15rem 0.5rem 0.35rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(230, 196, 60, 0.72);
}

/* ===== Bibliothèque fan (onglet intégré) ===== */
.fan-library-tab {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fan-library-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-width: 100%;
}

.fan-library-notify__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.fan-library-list__row--play {
    align-items: stretch;
}

.fan-library-list__title {
    display: block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.fan-library-list__title:hover {
    color: var(--ch-accent);
}

.fan-library-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--ch-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ch-muted);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fan-library-tabs__btn:hover,
.fan-library-tabs__btn.is-active {
    color: #fff;
    border-color: rgba(230, 196, 60, 0.55);
    background: rgba(230, 196, 60, 0.12);
}

.fan-library-tabs__btn.is-active {
    box-shadow: 0 0 0 1px rgba(230, 196, 60, 0.2);
}

.fan-library-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(230, 196, 60, 0.18);
    color: var(--ch-accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.fan-library-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fan-library-list__row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ch-border);
    min-width: 0;
    max-width: 100%;
}

.fan-library-list__row--card {
    flex-direction: column;
    align-items: stretch;
}

.fan-library-list__cover {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
}

.fan-library-list__cover--sm {
    width: 48px;
    height: 48px;
}

.fan-library-list__meta {
    min-width: 0;
    flex: 1 1 auto;
}

.fan-library-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .fan-library-list__row {
        flex-wrap: wrap;
    }

    .fan-library-list__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== Mon espace / Profil ===== */
.community-greeting {
    font-weight: 600;
}

.profile-cover {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(230, 196, 60, 0.25), transparent 55%),
        linear-gradient(135deg, #1a1a24, #26262f);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 190px;
    display: flex;
    align-items: flex-end;
}

.profile-cover__body {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.profile-avatar {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ch-accent, #e6c43c);
    background: #14141b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar__initials {
    color: var(--ch-accent, #e6c43c);
    font-size: 2rem;
    font-weight: 700;
}

.profile-identity {
    flex: 1 1 220px;
    min-width: 0;
}

.profile-identity__name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.profile-identity__meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    word-break: break-word;
}

.profile-identity__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-actions {
    flex: 0 0 auto;
    align-self: flex-end;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-stat-card__icon {
    color: var(--ch-accent, #e6c43c);
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.profile-stat-card__value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.profile-stat-card__label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.9rem;
}

.profile-media-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.6rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-media-card:hover {
    transform: translateY(-3px);
    border-color: var(--ch-accent, #e6c43c);
    text-decoration: none;
}

.profile-media-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #14141b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
}

.profile-media-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-media-card__title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-media-card__sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-media-card__tag {
    color: var(--ch-accent, #e6c43c);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 575px) {
    .profile-cover__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-identity__meta,
    .profile-identity__badges {
        justify-content: center;
    }

    .profile-actions {
        align-self: center;
    }
}

