
/* =========================================================
   Music FM Community — Glass Color Design
   Path: /community/assets/css/community.css
   ========================================================= */

:root{
    --mf-c-ink:#0f172a;
    --mf-c-muted:#64748b;
    --mf-c-blue:#147cff;
    --mf-c-cyan:#59c7ff;
    --mf-c-purple:#8b5cf6;
    --mf-c-pink:#ec4899;
    --mf-c-green:#10b981;
    --mf-c-orange:#f59e0b;
    --mf-c-line:rgba(255,255,255,.62);
    --mf-c-glass:rgba(255,255,255,.44);
    --mf-c-glass-strong:rgba(255,255,255,.58);
    --mf-c-shadow:0 18px 46px rgba(15,23,42,.08);
    --mf-c-shadow-hover:0 24px 58px rgba(15,23,42,.12);
}

.mf-community{
    width:min(1540px, calc(100% - 28px));
    margin:0 auto;
    padding:20px 0 36px;
    color:var(--mf-c-ink);
    direction:rtl;
}

.mf-community *{
    box-sizing:border-box;
}

.mf-community a{
    text-decoration:none;
}

.mf-community button,
.mf-community input,
.mf-community textarea,
.mf-community select{
    font-family:inherit;
}

/* Base glass cards */
.premium-community-hero,
.community-feature-strip article,
.community-daily-challenge,
.community-missions-board,
.experience-card,
.community-toolbar,
.community-box,
.new-post-card,
.community-post,
.community-alert,
.community-lightbox-close{
    background:
        linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.30)) !important;
    border:1px solid var(--mf-c-line) !important;
    box-shadow:var(--mf-c-shadow), inset 0 1px 0 rgba(255,255,255,.70) !important;
    backdrop-filter:blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(145%) !important;
}

/* Hero */
.premium-community-hero{
    position:relative;
    overflow:hidden;
    min-height:330px;
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);
    gap:24px;
    align-items:center;
    padding:34px;
    border-radius:34px;
    isolation:isolate;
}

.premium-community-hero::before{
    content:"";
    position:absolute;
    inset:auto 26px 0 26px;
    height:4px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--mf-c-cyan),var(--mf-c-blue),var(--mf-c-purple),var(--mf-c-pink));
    opacity:.86;
}

.premium-community-hero::after{
    content:"";
    position:absolute;
    width:240px;
    height:240px;
    top:-110px;
    left:-90px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(236,72,153,.18), transparent 68%);
    pointer-events:none;
    z-index:-1;
}

.community-badge,
.community-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    padding:9px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.50);
    border:1px solid rgba(255,255,255,.70);
    color:var(--mf-c-blue);
    font-weight:950;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}

.community-hero-content h1{
    margin:18px 0 12px;
    max-width:760px;
    font-size:clamp(2.2rem, 4vw, 4.4rem);
    line-height:1.05;
    font-weight:950;
    letter-spacing:-.04em;
    color:#0b1220;
}

.community-hero-content p{
    max-width:720px;
    margin:0;
    color:#475569;
    font-size:1.12rem;
    line-height:1.75;
    font-weight:700;
}

.community-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.community-main-btn,
.community-secondary-btn,
.daily-challenge-answer,
.daily-challenge-secondary,
.battle-login-link,
.community-login-box a,
.community-load-more,
.premium-composer-form button[type="submit"],
.now-playing-form button,
.comment-form button,
.reply-form button,
.edit-actions button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border:0;
    border-radius:16px;
    cursor:pointer;
    font-weight:950;
    transition:transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.community-main-btn,
.daily-challenge-answer,
.premium-composer-form button[type="submit"],
.now-playing-form button,
.comment-form button,
.reply-form button,
.community-load-more{
    background:linear-gradient(135deg,var(--mf-c-blue),#005bea);
    color:#fff;
    box-shadow:0 14px 28px rgba(20,124,255,.22);
}

.community-secondary-btn,
.daily-challenge-secondary,
.community-login-box a:nth-child(2),
.edit-actions button:first-child{
    color:#0f172a;
    background:rgba(255,255,255,.52);
    border:1px solid rgba(255,255,255,.70);
}

.community-main-btn:hover,
.community-secondary-btn:hover,
.daily-challenge-answer:hover,
.daily-challenge-secondary:hover,
.community-load-more:hover,
.premium-composer-form button[type="submit"]:hover{
    transform:translateY(-2px);
}

.community-hero-mini-stats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:10px;
    margin-top:22px;
    max-width:650px;
}

.community-hero-mini-stats span{
    padding:12px 14px;
    border-radius:18px;
    background:rgba(255,255,255,.46);
    border:1px solid rgba(255,255,255,.62);
    color:#475569;
    font-weight:800;
}

.community-hero-mini-stats strong{
    display:block;
    color:#0f172a;
    font-size:1.25rem;
}

.community-hero-panel{
    padding:26px;
    border-radius:28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,.26)) !important;
    border:1px solid rgba(255,255,255,.65);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.hero-panel-label{
    display:inline-flex;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(139,92,246,.12);
    color:#6d28d9;
    font-weight:950;
    font-size:.85rem;
}

.community-hero-panel h3{
    margin:18px 0 8px;
    font-size:1.75rem;
    line-height:1.25;
    color:#0f172a;
}

.community-hero-panel p{
    color:#64748b;
    line-height:1.65;
    font-weight:700;
}

.hero-panel-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.hero-panel-tags span,
.community-hashtag,
.hot-tags a{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(89,199,255,.15);
    color:#075fc5;
    font-weight:900;
}

/* Feature strip */
.community-feature-strip{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin:16px 0;
}

.community-feature-strip article{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:92px;
    padding:18px;
    border-radius:26px;
}

.community-feature-strip article span{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(255,255,255,.52);
    border:1px solid rgba(255,255,255,.62);
    font-size:1.45rem;
}

.community-feature-strip strong{
    display:block;
    color:#0f172a;
    font-size:1.05rem;
}

.community-feature-strip small{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-weight:750;
}

/* Daily challenge */
.community-daily-challenge{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    padding:24px;
    border-radius:30px;
    margin-bottom:16px;
}

.daily-challenge-kicker{
    display:flex;
    align-items:center;
    gap:10px;
    color:#0f172a;
    font-weight:950;
}

.daily-challenge-kicker span{
    color:#d97706;
}

.daily-challenge-kicker small{
    color:#64748b;
}

.community-daily-challenge h2{
    margin:12px 0 8px;
    font-size:1.65rem;
    color:#0f172a;
}

.community-daily-challenge p{
    margin:0;
    color:#64748b;
    line-height:1.7;
    font-weight:700;
}

.daily-challenge-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.daily-challenge-meta a,
.daily-challenge-meta span{
    display:inline-flex;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.48);
    border:1px solid rgba(255,255,255,.65);
    color:#475569;
    font-weight:850;
}

.daily-challenge-meta a{
    color:#075fc5;
}

.daily-challenge-actions{
    display:grid;
    gap:10px;
}

/* Missions and experience */
.community-missions-board,
.community-experience-grid{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);
    gap:16px;
    margin-bottom:16px;
}

.community-experience-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.community-missions-board{
    padding:0;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
}

.missions-main,
.missions-fame,
.experience-card{
    border-radius:30px;
    padding:22px;
}

.missions-main,
.missions-fame{
    background:linear-gradient(145deg, rgba(255,255,255,.50), rgba(255,255,255,.30));
    border:1px solid rgba(255,255,255,.62);
    box-shadow:var(--mf-c-shadow), inset 0 1px 0 rgba(255,255,255,.70);
    backdrop-filter:blur(22px) saturate(145%);
}

.missions-head,
.experience-head{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:16px;
}

.missions-head > span,
.experience-head > span{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(255,255,255,.54);
    border:1px solid rgba(255,255,255,.68);
    font-size:1.45rem;
}

.missions-head strong,
.experience-head strong,
.missions-fame h3{
    display:block;
    color:#0f172a;
    font-size:1.18rem;
}

.missions-head small,
.experience-head small{
    display:block;
    color:#64748b;
    font-weight:750;
    margin-top:3px;
}

.missions-progress{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.missions-progress span,
.rank-progress{
    flex:1;
    height:10px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.55);
    border:1px solid rgba(255,255,255,.64);
}

.missions-progress i,
.rank-progress i{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--mf-c-green),var(--mf-c-cyan),var(--mf-c-blue));
}

.missions-list{
    display:grid;
    gap:10px;
}

.mission-row,
.fame-row,
.now-playing-row,
.recent-point-row,
.top-user-row{
    display:flex;
    gap:10px;
    align-items:center;
    padding:12px;
    border-radius:18px;
    background:rgba(255,255,255,.42);
    border:1px solid rgba(255,255,255,.62);
}

.mission-row.done{
    background:rgba(16,185,129,.10);
    border-color:rgba(16,185,129,.22);
}

.mission-row b,
.fame-row b,
.mini-avatar,
.np-wave{
    width:38px;
    height:38px;
    min-width:38px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:rgba(255,255,255,.58);
    border:1px solid rgba(255,255,255,.66);
}

.mission-row div,
.fame-row div,
.top-user-row div,
.now-playing-row div{
    min-width:0;
    flex:1;
}

.mission-row strong,
.fame-row strong,
.top-user-row strong,
.now-playing-row strong{
    display:block;
    color:#0f172a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.mission-row small,
.fame-row small,
.top-user-row span,
.now-playing-row small{
    display:block;
    color:#64748b;
    font-weight:750;
    margin-top:2px;
}

.mission-row em{
    font-style:normal;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(255,255,255,.55);
    color:#64748b;
    font-size:.82rem;
    font-weight:900;
}

.missions-login,
.mini-login-note,
.comment-login,
.muted{
    color:#64748b;
    font-weight:750;
    line-height:1.65;
}

.fame-row{
    color:inherit;
    margin-bottom:10px;
}

.fame-row > span{
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#fff,var(--mf-c-cyan));
    color:#075fc5;
    font-weight:950;
}

/* Experience cards colors */
.experience-card{
    position:relative;
    overflow:hidden;
}

.experience-card::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:3px;
    background:linear-gradient(90deg,var(--mf-c-blue),var(--mf-c-purple),var(--mf-c-pink));
    opacity:.72;
}

.battle-card::before{background:linear-gradient(90deg,#ef4444,var(--mf-c-orange));}
.now-card::before{background:linear-gradient(90deg,var(--mf-c-cyan),var(--mf-c-blue));}
.poll-card::before{background:linear-gradient(90deg,var(--mf-c-purple),var(--mf-c-pink));}
.rank-card::before{background:linear-gradient(90deg,var(--mf-c-orange),#facc15);}

.battle-date,
.poll-total{
    color:#64748b;
    font-weight:850;
}

.battle-songs{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:12px;
    margin-top:16px;
}

.battle-song-btn,
.poll-option{
    position:relative;
    overflow:hidden;
    width:100%;
    border:1px solid rgba(255,255,255,.62);
    border-radius:20px;
    padding:14px;
    background:rgba(255,255,255,.44);
    cursor:pointer;
    text-align:right;
    color:#0f172a;
}

.battle-song-btn i,
.poll-option i{
    position:absolute;
    inset:auto 0 0 auto;
    height:4px;
    background:linear-gradient(90deg,var(--mf-c-cyan),var(--mf-c-blue));
}

.battle-song-btn.selected,
.poll-option.voted{
    border-color:rgba(20,124,255,.38);
    background:rgba(89,199,255,.12);
}

.battle-song-btn:disabled,
.poll-option:disabled{
    cursor:not-allowed;
    opacity:.78;
}

.battle-vs{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#0f172a;
    color:#fff;
    font-weight:950;
}

.battle-voted-note{
    margin-top:12px;
    color:#64748b;
    font-weight:850;
}

.now-playing-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.now-playing-form input,
.community-search input,
.premium-composer-form textarea,
.premium-composer-form select,
.comment-form input,
.reply-form input,
.edit-post-form textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.70);
    border-radius:18px;
    background:rgba(255,255,255,.52);
    color:#0f172a;
    outline:none;
    padding:13px 15px;
    font:inherit;
    font-weight:750;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.70);
}

.now-playing-form input:focus,
.community-search input:focus,
.premium-composer-form textarea:focus,
.comment-form input:focus,
.reply-form input:focus,
.edit-post-form textarea:focus{
    border-color:rgba(20,124,255,.35);
    box-shadow:0 0 0 5px rgba(20,124,255,.08), inset 0 1px 0 rgba(255,255,255,.70);
}

.now-playing-form input[name="youtube_url"],
.now-playing-form button{
    grid-column:1 / -1;
}

.now-playing-list{
    display:grid;
    gap:10px;
    margin-top:14px;
}

.now-playing-row a{
    padding:7px 11px;
    border-radius:999px;
    background:rgba(20,124,255,.10);
    color:#075fc5;
    font-weight:950;
}

.poll-card h3{
    margin:0 0 12px;
}

.poll-options{
    display:grid;
    gap:10px;
}

.poll-option{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.rank-badge{
    display:grid;
    gap:8px;
    justify-items:center;
    text-align:center;
    padding:18px;
    border-radius:24px;
    background:rgba(255,255,255,.42);
    border:1px solid rgba(255,255,255,.62);
}

.rank-badge > span{
    font-size:2.4rem;
}

.rank-badge strong{
    color:#0f172a;
    font-size:1.35rem;
}

.rank-badge small,
.rank-badge em{
    color:#64748b;
    font-style:normal;
    font-weight:800;
}

.achievement-strip{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.achievement-strip span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.50);
    border:1px solid rgba(255,255,255,.64);
    color:#475569;
    font-weight:850;
}

.recent-points-box{
    margin-top:14px;
}

.recent-points-box h4{
    margin:0 0 10px;
}

.recent-point-row{
    margin-bottom:8px;
}

.recent-point-row span{
    color:#16a34a;
    font-weight:950;
}

/* Toolbar */
.community-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,320px);
    gap:14px;
    align-items:center;
    padding:14px;
    border-radius:26px;
    margin:16px 0;
    position:sticky;
    top:92px;
    z-index:8;
}

.community-categories{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-width:0;
}

.community-categories a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:10px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.44);
    border:1px solid rgba(255,255,255,.62);
    color:#475569;
    font-weight:950;
    white-space:nowrap;
}

.community-categories a.active{
    background:linear-gradient(135deg,var(--mf-c-blue),#005bea);
    color:#fff;
    border-color:transparent;
}

.community-categories small{
    opacity:.75;
}

.community-search{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
}

.community-search button{
    border:0;
    border-radius:16px;
    padding:0 16px;
    background:#0f172a;
    color:#fff;
    font-weight:950;
}

/* Main layout */
.community-layout{
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    gap:18px;
    align-items:start;
}

.community-sidebar{
    position:sticky;
    top:170px;
    display:grid;
    gap:14px;
}

.community-feed{
    min-width:0;
}

.community-box{
    padding:18px;
    border-radius:26px;
}

.community-box h3{
    margin:0 0 14px;
    color:#0f172a;
    font-size:1.18rem;
}

.community-box ul{
    padding:0 18px 0 0;
    margin:0;
    color:#64748b;
    line-height:1.9;
    font-weight:750;
}

.community-stats-box{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.community-stats-box h3{
    grid-column:1 / -1;
}

.community-stat{
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.42);
    border:1px solid rgba(255,255,255,.62);
}

.community-stat strong{
    display:block;
    color:#0f172a;
    font-size:1.5rem;
}

.community-stat span{
    color:#64748b;
    font-weight:850;
}

.daily-prompt p{
    margin:0 0 12px;
    font-weight:950;
}

.daily-prompt a{
    color:#075fc5;
    font-weight:950;
}

.hot-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

/* Composer */
.new-post-card{
    padding:20px;
    border-radius:30px;
    margin-bottom:16px;
}

.premium-composer-form{
    display:grid;
    gap:14px;
}

.composer-top,
.composer-bottom{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.composer-top strong{
    display:block;
    color:#0f172a;
    font-size:1.15rem;
}

.composer-top span,
.composer-note{
    color:#64748b;
    font-weight:750;
}

.post-category-inline{
    width:max-content;
    min-width:170px;
}

.premium-composer-form textarea{
    min-height:110px;
    resize:vertical;
}

.composer-quick-ideas{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.composer-quick-ideas button,
.community-upload-box{
    border:1px solid rgba(255,255,255,.62);
    background:rgba(255,255,255,.42);
    color:#475569;
    border-radius:999px;
    padding:9px 12px;
    font-weight:900;
    cursor:pointer;
}

.community-upload-box{
    display:inline-flex;
    flex-direction:column;
    border-radius:18px;
}

.community-upload-box input{
    display:none;
}

.community-upload-box small{
    color:#64748b;
}

.community-upload-preview img{
    max-width:100%;
    max-height:320px;
    border-radius:22px;
}

/* Posts */
.posts-stream{
    display:grid;
    gap:16px;
}

.community-post{
    position:relative;
    padding:20px;
    border-radius:30px;
    overflow:visible;
    transition:transform .22s ease, box-shadow .22s ease;
}

.community-post:hover{
    transform:translateY(-2px);
    box-shadow:var(--mf-c-shadow-hover), inset 0 1px 0 rgba(255,255,255,.70) !important;
}

.community-post.featured-post{
    border-color:rgba(245,158,11,.30) !important;
}

.post-ribbon{
    display:inline-flex;
    width:max-content;
    margin-bottom:12px;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(245,158,11,.14);
    color:#b45309;
    font-weight:950;
}

.post-head{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    padding-left:56px;
}

.community-avatar-link{
    display:block;
}

.real-avatar,
.post-avatar{
    width:54px;
    height:54px;
    min-width:54px;
    display:grid;
    place-items:center;
    border-radius:18px;
    object-fit:cover;
    background:linear-gradient(135deg,var(--mf-c-blue),var(--mf-c-cyan));
    color:#fff;
    font-size:1.25rem;
    font-weight:950;
    box-shadow:0 12px 24px rgba(20,124,255,.16);
}

.post-meta{
    min-width:0;
}

.post-meta h3{
    margin:0;
    color:#0f172a;
    font-size:1.05rem;
}

.community-user-link{
    color:#0f172a;
}

.post-meta span{
    display:block;
    color:#64748b;
    font-size:.9rem;
    font-weight:750;
    margin-top:3px;
}

.post-category-badge{
    color:#075fc5;
    font-weight:950;
}

.post-menu-wrapper{
    position:absolute;
    left:0;
    top:0;
}

.post-menu-toggle{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.62);
    border-radius:16px;
    background:rgba(255,255,255,.48);
    cursor:pointer;
    font-size:1.4rem;
    font-weight:950;
}

.post-menu-dropdown{
    position:absolute;
    left:0;
    top:48px;
    min-width:160px;
    display:none;
    padding:8px;
    border-radius:18px;
    background:rgba(255,255,255,.88);
    border:1px solid rgba(255,255,255,.72);
    box-shadow:0 18px 40px rgba(15,23,42,.14);
    z-index:20;
}

.post-menu-wrapper.active .post-menu-dropdown,
.post-menu-wrapper:hover .post-menu-dropdown{
    display:grid;
    gap:6px;
}

.post-menu-dropdown button{
    width:100%;
    border:0;
    border-radius:12px;
    background:transparent;
    padding:10px;
    text-align:right;
    cursor:pointer;
    font-weight:900;
}

.post-menu-dropdown button:hover{
    background:rgba(20,124,255,.08);
}

.delete-post-btn{
    color:#dc2626;
}

.post-content{
    margin-top:14px;
}

.post-content p{
    margin:0;
    color:#243247;
    line-height:1.9;
    font-size:1.03rem;
    font-weight:650;
}

.community-video-embed{
    position:relative;
    overflow:hidden;
    margin-top:16px;
    border-radius:24px;
    background:#0f172a;
}

.community-video-embed iframe{
    width:100%;
    aspect-ratio:16/9;
    border:0;
    display:block;
}

.community-post-image{
    display:block;
    width:100%;
    margin-top:16px;
    padding:0;
    border:0;
    border-radius:24px;
    overflow:hidden;
    cursor:pointer;
    background:transparent;
}

.community-post-image img{
    display:block;
    width:100%;
    max-height:520px;
    object-fit:cover;
}

.post-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}

.post-actions button,
.community-comment-actions button,
.comment-like-btn,
.reply-toggle-btn{
    border:1px solid rgba(255,255,255,.62);
    background:rgba(255,255,255,.44);
    border-radius:999px;
    color:#475569;
    padding:9px 12px;
    cursor:pointer;
    font-weight:950;
}

.post-actions button:hover,
.community-comment-actions button:hover{
    background:rgba(255,255,255,.70);
}

.community-like-btn.liked,
.comment-like-btn.liked{
    background:rgba(236,72,153,.12);
    color:#be185d;
}

.edit-post-form{
    display:none;
    gap:10px;
    margin-top:14px;
}

.community-post.editing .edit-post-form{
    display:grid;
}

.community-post.editing .post-content{
    display:none;
}

.edit-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
}

/* Comments */
.post-comments-preview{
    display:none;
    margin-top:16px;
    padding:14px;
    border-radius:24px;
    background:rgba(255,255,255,.30);
    border:1px solid rgba(255,255,255,.55);
}

.community-post.show-comments .post-comments-preview{
    display:grid;
    gap:12px;
}

.community-comment{
    padding:12px;
    border-radius:20px;
    background:rgba(255,255,255,.42);
    border:1px solid rgba(255,255,255,.62);
}

.community-comment-body{
    color:#334155;
    line-height:1.7;
}

.community-comment-body strong,
.community-reply strong{
    color:#0f172a;
}

.community-comment-actions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:8px;
}

.reply-form,
.comment-form{
    display:flex;
    gap:8px;
}

.reply-form{
    display:none;
    margin-top:9px;
}

.reply-form.active{
    display:flex;
}

.comment-form{
    margin-top:4px;
}

.community-replies{
    display:grid;
    gap:7px;
    margin-top:10px;
    margin-right:18px;
    padding-right:12px;
    border-right:3px solid rgba(89,199,255,.28);
}

.community-reply{
    padding:10px 12px;
    border-radius:16px;
    background:rgba(255,255,255,.38);
    color:#334155;
}

/* Alerts and login */
.community-alert{
    padding:14px 18px;
    border-radius:22px;
    margin-bottom:14px;
    font-weight:950;
}

.community-alert.success{
    color:#047857;
    background:rgba(16,185,129,.12) !important;
    border-color:rgba(16,185,129,.24) !important;
}

.community-alert.error{
    color:#dc2626;
    background:rgba(239,68,68,.10) !important;
    border-color:rgba(239,68,68,.22) !important;
}

.community-login-box{
    display:grid;
    gap:10px;
    text-align:center;
    color:#64748b;
    font-weight:750;
}

.community-login-box strong{
    color:#0f172a;
    font-size:1.2rem;
}

.community-login-box div{
    display:flex;
    justify-content:center;
    gap:8px;
}

/* Load more and lightbox */
.community-load-more{
    width:100%;
    margin-top:16px;
}

.community-load-more[disabled]{
    opacity:.55;
    cursor:not-allowed;
}

.community-loader{
    display:none;
    text-align:center;
    margin-top:10px;
    color:#64748b;
    font-weight:950;
}

.community-loader.active{
    display:block;
}

.community-lightbox{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:22px;
    background:rgba(6,23,43,.72);
    backdrop-filter:blur(14px);
}

.community-lightbox.active{
    display:flex;
}

.community-lightbox img{
    max-width:min(100%,980px);
    max-height:86vh;
    border-radius:26px;
    box-shadow:0 24px 80px rgba(0,0,0,.35);
}

.community-lightbox-close{
    position:absolute;
    top:22px;
    left:22px;
    width:46px;
    height:46px;
    border-radius:16px;
    color:#102136;
    font-size:1.4rem;
    font-weight:950;
    cursor:pointer;
}

/* Mobile */
@media(max-width:1100px){
    .premium-community-hero,
    .community-missions-board,
    .community-experience-grid,
    .community-layout{
        grid-template-columns:1fr;
    }

    .community-sidebar{
        position:relative;
        top:auto;
        order:2;
    }

    .community-feed{
        order:1;
    }

    .community-toolbar{
        position:relative;
        top:auto;
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .mf-community{
        width:100%;
        padding:12px 10px 96px;
    }

    .premium-community-hero{
        padding:22px;
        border-radius:26px;
        min-height:0;
    }

    .community-hero-content h1{
        font-size:2.2rem;
    }

    .community-hero-mini-stats,
    .community-feature-strip,
    .community-stats-box{
        grid-template-columns:1fr;
    }

    .community-daily-challenge,
    .community-toolbar,
    .new-post-card,
    .community-post,
    .community-box,
    .experience-card{
        border-radius:24px;
    }

    .community-daily-challenge{
        grid-template-columns:1fr;
    }

    .battle-songs{
        grid-template-columns:1fr;
    }

    .battle-vs{
        margin:auto;
    }

    .composer-top,
    .composer-bottom,
    .reply-form,
    .comment-form{
        flex-direction:column;
        align-items:stretch;
    }

    .post-category-inline,
    .composer-bottom button[type="submit"],
    .comment-form button,
    .reply-form button{
        width:100%;
    }

    .post-head{
        align-items:flex-start;
    }

    .post-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .post-actions button:last-child{
        grid-column:1 / -1;
    }

    .community-categories{
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:2px;
        scrollbar-width:none;
    }

    .community-categories::-webkit-scrollbar{
        display:none;
    }
}

@media(max-width:480px){
    .community-hero-actions,
    .community-login-box div{
        display:grid;
    }

    .community-main-btn,
    .community-secondary-btn{
        width:100%;
    }

    .now-playing-form{
        grid-template-columns:1fr;
    }

    .community-post-image img{
        max-height:360px;
    }
}
/* FIX — Community battle glass readability */

.battle-card{
    background:rgba(255,255,255,.42) !important;
    border:1px solid rgba(255,255,255,.65) !important;
    backdrop-filter:blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(140%) !important;
    box-shadow:0 18px 45px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

.battle-song-btn{
    background:rgba(255,255,255,.50) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    color:#0f172a !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.battle-song-btn strong,
.battle-song-btn small,
.battle-song-btn span{
    color:#0f172a !important;
    position:relative;
    z-index:2;
}

.battle-song-btn i{
    opacity:.28 !important;
    background:linear-gradient(90deg,#59c7ff,#147cff) !important;
}

.battle-song-btn.selected{
    background:rgba(255,255,255,.62) !important;
    border-color:rgba(20,124,255,.28) !important;
}

.battle-vs{
    background:#0f172a !important;
    color:#fff !important;
}

/* =========================================================
   Music FM — Final unified neutral glass overrides
   ========================================================= */
:root{--mf-c-blue:#31b7ff;--mf-c-cyan:#54d7ff;--mf-c-purple:#7c8cff;--mf-c-pink:#e879f9;--mf-c-line:rgba(255,255,255,.68);--mf-c-glass:rgba(255,255,255,.54);--mf-c-glass-strong:rgba(255,255,255,.68);--mf-c-shadow:0 14px 38px rgba(15,23,42,.07);--mf-c-shadow-hover:0 20px 48px rgba(15,23,42,.10)}
.community-compact-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 14px;padding:16px 18px;border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.62),rgba(255,255,255,.36));border:1px solid rgba(255,255,255,.68);box-shadow:var(--mf-c-shadow),inset 0 1px 0 rgba(255,255,255,.76);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%)}
.community-compact-head span{display:block;color:#147cff;font-weight:950;font-size:.9rem}.community-compact-head h1{margin:3px 0 0;font-size:clamp(1.25rem,2.4vw,2rem);line-height:1.2;color:#0f172a}.community-compact-head a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:15px;background:#0f172a;color:#fff;font-weight:950;text-decoration:none;white-space:nowrap}
.community-feature-strip{margin-top:0!important}.community-feature-strip article,.community-daily-challenge,.missions-main,.missions-fame,.experience-card,.community-toolbar,.community-box,.new-post-card,.community-post{background:linear-gradient(145deg,rgba(255,255,255,.62),rgba(255,255,255,.36))!important;border-color:rgba(255,255,255,.68)!important;box-shadow:var(--mf-c-shadow),inset 0 1px 0 rgba(255,255,255,.76)!important}
.community-main-btn,.daily-challenge-answer,.premium-composer-form button[type="submit"],.now-playing-form button,.comment-form button,.reply-form button,.community-load-more,.community-search button{background:#0f172a!important;color:#fff!important;box-shadow:0 12px 24px rgba(15,23,42,.12)!important}.community-secondary-btn,.daily-challenge-secondary,.composer-quick-ideas button,.community-upload-box,.post-actions button,.community-comment-actions button{background:rgba(255,255,255,.52)!important;border:1px solid rgba(255,255,255,.68)!important;color:#475569!important}.experience-card::before{opacity:.35!important;background:linear-gradient(90deg,#31b7ff,rgba(49,183,255,.12))!important}.battle-card::before,.now-card::before,.poll-card::before,.rank-card::before{background:linear-gradient(90deg,#31b7ff,rgba(49,183,255,.12))!important}.community-categories a.active{background:rgba(49,183,255,.16)!important;color:#147cff!important;border-color:rgba(49,183,255,.24)!important}.battle-vs{background:#0f172a!important;color:#fff!important}.battle-song-btn i,.poll-option i,.missions-progress i,.rank-progress i{background:linear-gradient(90deg,#31b7ff,#147cff)!important}.hero-panel-tags span,.community-hashtag,.hot-tags a{background:rgba(49,183,255,.12)!important;color:#147cff!important}
@media(max-width:760px){.community-compact-head{align-items:flex-start;flex-direction:column}.community-compact-head a{width:100%}.community-feature-strip article,.community-daily-challenge,.missions-main,.missions-fame,.experience-card,.community-toolbar,.community-box,.new-post-card,.community-post{padding:16px!important;border-radius:22px!important}}


/* =========================================================
   MUSIC FM — Community unified premium override
   ========================================================= */
.mf-community{
    background:transparent !important;
}

.premium-community-hero{
    display:grid !important;
    background:linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.48)) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    box-shadow:0 16px 42px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.82) !important;
    backdrop-filter:blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter:blur(18px) saturate(145%) !important;
}

.community-feature-strip article,
.community-daily-challenge,
.missions-main,
.missions-fame,
.experience-card,
.community-toolbar,
.community-box,
.new-post-card,
.community-post,
.community-comment,
.post-comments-preview{
    background:linear-gradient(145deg, rgba(255,255,255,.74), rgba(255,255,255,.46)) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    box-shadow:0 16px 42px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.82) !important;
    backdrop-filter:blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter:blur(18px) saturate(145%) !important;
}

.community-compact-head{
    display:none !important;
}

.community-badge,
.hero-panel-label,
.hero-panel-tags span,
.community-hashtag,
.hot-tags a,
.daily-challenge-meta a,
.daily-challenge-meta span,
.community-categories a,
.post-actions button,
.community-comment-actions button{
    background:rgba(255,255,255,.58) !important;
    border:1px solid rgba(255,255,255,.74) !important;
    color:#147cff !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.78) !important;
}

.community-categories a.active{
    background:rgba(20,124,255,.12) !important;
    color:#147cff !important;
    border-color:rgba(20,124,255,.20) !important;
}

.experience-card::before,
.battle-card::before,
.now-card::before,
.poll-card::before,
.rank-card::before{
    background:linear-gradient(90deg,#59c7ff,#147cff,rgba(89,199,255,.18)) !important;
    opacity:.42 !important;
}

.community-main-btn,
.daily-challenge-answer,
.premium-composer-form button[type="submit"],
.now-playing-form button,
.comment-form button,
.reply-form button,
.community-load-more,
.community-search button{
    background:linear-gradient(135deg,#147cff,#005bea) !important;
    color:#fff !important;
}
