/* =========================================================
   FAN Club™ Community — public directory & social profiles

   Its own token set rather than borrowing vegas.css, which is a
   flat override sheet with no custom properties. Everything is
   prefixed .cm- so nothing can collide with the eventflow theme.
   ========================================================= */

:root {
    --cm-bg:        #07080d;
    --cm-surface:   #111420;
    --cm-surface-2: #171b2b;
    --cm-border:    #232840;
    --cm-border-lit:#343b5c;
    --cm-text:      #eef0f8;
    --cm-soft:      #9aa0bd;
    --cm-dim:       #6d7392;
    --cm-gold:      #FFD700;
    --cm-gold-dim:  rgba(255, 215, 0, 0.12);
    --cm-green:     #22c55e;
    --cm-radius:    16px;
}

.cm-page {
    background: var(--cm-bg);
    padding-bottom: 90px;
    color: var(--cm-text);
    overflow-x: hidden;
}

/* ── Hero ─────────────────────────────────────────────── */

.cm-hero {
    position: relative;
    padding: 34px 0 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(236, 72, 153, .20), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, .18), transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(255, 215, 0, .13), transparent 55%),
        linear-gradient(180deg, #0c0e17 0%, var(--cm-bg) 100%);
    border-bottom: 1px solid var(--cm-border);
}

/* Slow-drifting colour blooms. Purely decorative, so they sit behind
   everything and never intercept a click. */
.cm-hero::before,
.cm-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(78px);
    opacity: .45;
    pointer-events: none;
    z-index: 0;
}
.cm-hero::before { top: -170px; left: -110px;  background: #7c3aed; animation: cmFloat 17s ease-in-out infinite; }
.cm-hero::after  { bottom: -180px; right: -100px; background: #db2777; animation: cmFloat 21s ease-in-out infinite reverse; }

@keyframes cmFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(38px, -26px) scale(1.14); }
}
/* One place that switches every animation on this page off. Entrance effects
   must resolve to their END state, not stay hidden — anything using cmRise or
   cmPop animates opacity from 0, so `animation: none` alone would erase the
   content for these users. */
@media (prefers-reduced-motion: reduce) {
    .cm-hero::before,
    .cm-hero::after,
    .cm-hero__title span,
    .cm-live::after,
    .cm-ring::before,
    .fd-post__play::after,
    .cm-card:hover .cm-card__cover::before {
        animation: none !important;
    }
    .cm-rise,
    .cm-face {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    .fd-post__media:hover .fd-post__poster { transform: none; }
    .cm-hero__title span {
        /* Without the sheen animation the 220% background would sit off-centre. */
        background-size: 100% 100%;
    }
}

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

/* Title block and counts share one row; search and filters share the next. */
.cm-hero__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
}
.cm-hero__lead { min-width: 0; }

.cm-hero__bar {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Faces on the left, a join prompt on the right for visitors, divided from the
   title block so the header reads as two clear tiers rather than one stack. */
.cm-hero__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.cm-hero__join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    background: linear-gradient(94deg, #FFE55C, #FFD700 55%, #d4a017);
    color: #0a0800;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s, box-shadow .16s;
}
.cm-hero__join:hover {
    color: #0a0800; text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 215, 0, .3);
}

.cm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    margin-bottom: 11px;
    border-radius: 50px;
    background: var(--cm-gold-dim);
    border: 1px solid rgba(255, 215, 0, .34);
    color: var(--cm-gold);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cm-hero__title {
    margin: 0 0 7px;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.6px;
    color: #fff;
}
/* Gold that drifts across the word rather than sitting flat. 200% background
   with a shifting position — no repaint of anything but this element. */
.cm-hero__title span {
    background: linear-gradient(94deg, #f0a500, #FFE55C 25%, #fff8d0 40%, #FFD700 60%, #f0a500);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cmSheen 7s ease-in-out infinite;
}
@keyframes cmSheen {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Social signals ──────────────────────────────────── */

/* Overlapping real avatars: the clearest "people are here" cue available, and
   it reuses images the cards already load. */
.cm-faces {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.cm-faces__stack { display: flex; }
.cm-face {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--cm-bg);
    background: var(--g);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    /* Stack right-to-left so earlier faces sit on top. */
    margin-left: -9px;
    z-index: calc(20 - var(--i));
    position: relative;
    transition: transform .2s, border-color .2s;
    animation: cmPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
    animation-delay: calc(var(--i) * 70ms);
}
.cm-face:first-child { margin-left: 0; }
.cm-face img { width: 100%; height: 100%; object-fit: cover; }
.cm-face:hover {
    transform: translateY(-4px) scale(1.12);
    border-color: var(--cm-gold);
    z-index: 30;
    text-decoration: none;
}
@keyframes cmPop {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: scale(1); }
}

.cm-faces__txt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cm-soft);
}

/* Breathing dot. Two rings so the pulse reads without moving layout. */
.cm-live {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cm-green);
    flex-shrink: 0;
}
.cm-live::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--cm-green);
    animation: cmPulse 2s ease-out infinite;
}
@keyframes cmPulse {
    0%   { transform: scale(.6); opacity: .9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.cm-hero__sub {
    margin: 0;
    max-width: 540px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--cm-soft);
}

/* Search + filters */
.cm-search { flex: 1 1 300px; max-width: 430px; margin: 0; }
.cm-search__row { position: relative; display: flex; gap: 8px; }
.cm-search__field { position: relative; flex: 1; min-width: 0; }
.cm-search__field > i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--cm-dim);
    font-size: 14px;
    pointer-events: none;
}
.cm-search__input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border-radius: 50px;
    border: 1px solid var(--cm-border-lit);
    background: rgba(255, 255, 255, .05);
    color: var(--cm-text);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.cm-search__input::placeholder { color: var(--cm-dim); }
.cm-search__input:focus {
    outline: none;
    background: rgba(255, 255, 255, .08);
    border-color: var(--cm-gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .14);
}
.cm-search__go {
    flex-shrink: 0;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(94deg, #FFE55C, #FFD700 55%, #d4a017);
    color: #0a0800;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s;
}
.cm-search__go:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 215, 0, .3); }

.cm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 50px;
    border: 1px solid var(--cm-border-lit);
    background: rgba(255, 255, 255, .04);
    color: var(--cm-soft);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .16s;
}
.cm-chip:hover { color: var(--cm-text); border-color: var(--cm-gold); text-decoration: none; }
.cm-chip.is-on {
    background: var(--cm-gold);
    border-color: var(--cm-gold);
    color: #0a0800;
}
.cm-chip.is-on:hover { color: #0a0800; }
.cm-chip__x { font-size: 10px; opacity: .8; }

/* Counts sit beside the title now, so they read as a stat strip rather than a
   third stacked band. Divider between them instead of wide gaps. */
.cm-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid var(--cm-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
}
.cm-stat {
    padding: 9px 18px;
    text-align: center;
}
.cm-stat + .cm-stat { border-left: 1px solid var(--cm-border); }
.cm-stat__n {
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}
.cm-stat__l {
    display: block;
    margin-top: 2px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--cm-dim);
}

/* ── Member grid ──────────────────────────────────────── */

.cm-body { padding-top: 30px; }

.cm-toolbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cm-toolbar__count { margin: 0; font-size: 14px; color: var(--cm-soft); }
.cm-toolbar__count strong { color: var(--cm-text); }

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 20px;
}

.cm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--cm-radius);
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cm-card:hover {
    transform: translateY(-5px);
    border-color: var(--cm-border-lit);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
    text-decoration: none;
}

/* --g is a per-member gradient from rb_social_gradient(), so every card
   looks designed without anyone uploading a banner. */
.cm-card__cover { height: 78px; background: var(--g); position: relative; }
.cm-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(17, 20, 32, .85) 100%);
}

.cm-card__lock {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    background: rgba(7, 8, 13, .72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .17);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cm-card__av {
    width: 68px;
    height: 68px;
    margin: -38px auto 0;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    border: 3px solid var(--cm-surface);
    background: var(--cm-surface-2);
    /* Deliberately not overflow:hidden — the story ring below is a pseudo-element
       that sits outside this box, and clipping here would erase it. The image
       rounds itself instead. */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 900;
    color: var(--cm-gold);
}
.cm-card__av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Motion ──────────────────────────────────────────── */

/* Story-style ring, drawn as a rotating conic gradient behind the avatar.
   ::before sits under the image because the avatar has its own background. */
.cm-ring::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f97316, #ec4899, #8b5cf6, #38bdf8, #f97316);
    z-index: -1;
    opacity: .75;
    transition: opacity .2s;
    animation: cmSpin 6s linear infinite;
    animation-play-state: paused;
}
.cm-ring--fan::before {
    background: conic-gradient(from 0deg, #22c55e, #38bdf8, #a3e635, #22c55e);
}
.cm-card:hover .cm-ring::before { opacity: 1; animation-play-state: running; }
@keyframes cmSpin { to { transform: rotate(360deg); } }

/* Cards arrive in sequence. `both` fill so they hold the end state, and the
   reduced-motion block below drops them straight to visible. */
.cm-rise {
    animation: cmRise .5s cubic-bezier(.22, .8, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cmRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* A slow sheen crossing the cover on hover — the "sexy" bit, and it is one
   transform on a pseudo-element rather than anything that repaints the card. */
.cm-card__cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    z-index: 1;
}
.cm-card:hover .cm-card__cover::before { animation: cmSweep .85s ease-out; }
@keyframes cmSweep {
    0%   { left: -60%; opacity: 0; }
    35%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

.cm-card__body { padding: 12px 18px 18px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.cm-card__name {
    margin: 0 0 7px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--cm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cm-role {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
}
.cm-role--artist { background: var(--cm-gold-dim); color: var(--cm-gold); }
.cm-role--fan    { background: rgba(34, 197, 94, .14); color: #4ade80; }

.cm-card__head {
    margin: 11px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cm-soft);
    /* Two lines then ellipsis, so uneven headlines can't stagger the grid. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cm-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: auto;
    padding-top: 14px;
}
.cm-chipico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    color: #fff;
    background: var(--b, #94a3b8);
    transition: transform .16s;
}
.cm-card:hover .cm-chipico { transform: translateY(-2px); }
.cm-chipico--more {
    background: rgba(255, 255, 255, .08);
    color: var(--cm-soft);
    font-size: 11px;
    font-weight: 800;
}

/* ── Empty state ──────────────────────────────────────── */

.cm-empty {
    padding: 70px 24px;
    text-align: center;
    border: 1px dashed var(--cm-border-lit);
    border-radius: var(--cm-radius);
    background: var(--cm-surface);
}
.cm-empty i { font-size: 38px; color: var(--cm-dim); margin-bottom: 16px; display: block; }
.cm-empty p { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--cm-text); }
.cm-empty small { display: block; font-size: 13.5px; color: var(--cm-soft); }

/* ── Profile page ─────────────────────────────────────── */

.cm-prof__cover {
    height: 132px;
    background: var(--g);
    position: relative;
}
.cm-prof__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 8, 13, .12) 0%, rgba(7, 8, 13, .92) 100%);
}

/* One band: who this is on the left, what you can do on the right. Aligned to
   the baseline of the avatar so the name sits level with the buttons. */
.cm-prof__head {
    position: relative;
    z-index: 1;
    margin-top: -40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 24px;
    flex-wrap: wrap;
    padding-bottom: 18px;
}
.cm-prof__id {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    min-width: 0;
}
.cm-prof__av {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--cm-bg);
    background: var(--cm-surface-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    color: var(--cm-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
.cm-prof__av img { width: 100%; height: 100%; object-fit: cover; }

/* min-width:0 so a long name wraps instead of stretching the band. */
.cm-prof__who { min-width: 0; padding-bottom: 4px; }

.cm-prof__name {
    margin: 0 0 7px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 900;
    letter-spacing: -.4px;
    line-height: 1.15;
    color: #fff;
}

/* Role, connection, counts and join date read as one line of credentials. */
.cm-prof__meta {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
}
.cm-prof__headline {
    max-width: 620px;
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cm-soft);
}
.cm-prof__since { font-size: 12.5px; color: var(--cm-dim); }
.cm-role--linked { background: rgba(56, 189, 248, .14); color: #38bdf8; }

.cm-prof__acts {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}
/* A third, lower-emphasis action — it leaves the page, so it should not compete
   with sharing or editing. */
.cm-btn--quiet { background: transparent; color: var(--cm-dim); }
.cm-btn--quiet:hover { color: var(--cm-text); }

.cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--cm-border-lit);
    border-radius: 50px;
    background: rgba(255, 255, 255, .05);
    color: var(--cm-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .17s;
}
.cm-btn:hover { border-color: var(--cm-gold); color: #fff; text-decoration: none; transform: translateY(-2px); }
.cm-btn--gold {
    background: linear-gradient(94deg, #FFE55C, #FFD700 55%, #d4a017);
    border-color: transparent;
    color: #0a0800;
}
.cm-btn--gold:hover { color: #0a0800; box-shadow: 0 10px 26px rgba(255, 215, 0, .3); }
.cm-btn:disabled, .cm-btn.is-off { opacity: .55; cursor: default; transform: none; }

/* Link tiles */
.cm-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.cm-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border-radius: 13px;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    text-decoration: none;
    transition: transform .17s, border-color .17s, box-shadow .17s;
    position: relative;
    overflow: hidden;
}
/* The brand colour washes in from the left on hover — enough personality
   without 12 hand-written rules. */
.cm-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--b) 0%, transparent 62%);
    opacity: 0;
    transition: opacity .2s;
}
.cm-link:hover {
    transform: translateY(-3px);
    border-color: var(--b);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    text-decoration: none;
}
.cm-link:hover::before { opacity: .13; }
.cm-link__ic {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    background: var(--b);
}
.cm-link__txt { position: relative; min-width: 0; flex: 1; }
.cm-link__plat {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cm-dim);
    margin-bottom: 2px;
}
.cm-link__val {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cm-link__go { position: relative; color: var(--cm-dim); font-size: 12px; transition: color .17s, transform .17s; }
.cm-link:hover .cm-link__go { color: var(--b); transform: translate(3px, -3px); }

/* Locked state */
.cm-locked {
    max-width: 560px;
    margin: 0 auto;
    padding: 46px 32px;
    text-align: center;
    border-radius: var(--cm-radius);
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
}
.cm-locked__ic {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    color: var(--cm-gold);
    background: var(--cm-gold-dim);
    border: 1px solid rgba(255, 215, 0, .3);
}
.cm-locked h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; color: var(--cm-text); }
.cm-locked p  { margin: 0 0 22px; font-size: 14.5px; line-height: 1.7; color: var(--cm-soft); }
.cm-locked__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--cm-border);
    font-size: 13.5px;
    color: var(--cm-soft);
}
.cm-locked__field {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 15px;
    border-radius: 11px;
    border: 1px solid var(--cm-border-lit);
    background: rgba(255, 255, 255, .04);
    color: var(--cm-text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}
.cm-locked__field:focus { outline: none; border-color: var(--cm-gold); }

.cm-section-title {
    margin: 40px 0 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--cm-dim);
    display: flex;
    align-items: center;
    gap: 11px;
}
.cm-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cm-border);
}

.cm-self {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 620px;
    margin: 0 auto 8px;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--cm-gold-dim);
    border: 1px solid rgba(255, 215, 0, .3);
    color: var(--cm-text);
    font-size: 13.5px;
    line-height: 1.6;
}
.cm-self i { color: var(--cm-gold); }

.cm-flash {
    max-width: 620px;
    margin: 0 auto 22px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cm-flash--ok  { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .34); color: #86efac; }
.cm-flash--err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .34); color: #fca5a5; }

/* ── Feed ─────────────────────────────────────────────── */

.cm-hero--slim { padding: 30px 0 22px; }

/* Below the member grid, so the rule separates it from what's above. */
.cm-strip {
    margin-top: 40px;
    padding: 34px 0 8px;
    border-top: 1px solid var(--cm-border);
}
.cm-strip__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--cm-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cm-strip__title i { color: var(--cm-gold); }

/* Horizontal rail for the "latest" strip — scrolls rather than wrapping, so
   the directory below stays the page's centre of gravity. */
.fd-rail {
    display: grid;
    grid-auto-flow: column;
    /* Fixed width, not 1fr: with only two clips a 1fr track stretches each card
       across half the page — the same runaway sizing the feed grid avoids.
       Fixed tracks keep a card a card and let the rail scroll when there are many. */
    grid-auto-columns: 276px;
    justify-content: start;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 14px;
}
.fd-rail > * { scroll-snap-align: start; }
.fd-rail::-webkit-scrollbar { height: 8px; }
.fd-rail::-webkit-scrollbar-thumb { background: var(--cm-border-lit); border-radius: 8px; }

/* One grid for both the community feed and a member's own feed, so a profile
   with three clips looks like the rest of the site rather than three billboards.

   auto-fill, never auto-fit: auto-fit collapses the empty tracks, which makes a
   single video stretch to the full container width — exactly the runaway card
   this replaces. auto-fill keeps the tracks, so one clip stays one card. */
.fd-masonry,
.fd-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 18px;
    align-items: start;
}

.fd-post {
    border-radius: var(--cm-radius);
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.fd-post:hover { border-color: var(--cm-border-lit); box-shadow: 0 14px 36px rgba(0, 0, 0, .45); }

.fd-post__by {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    text-decoration: none;
}
.fd-post__by:hover { text-decoration: none; }
.fd-post__av {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--g);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}
.fd-post__av img { width: 100%; height: 100%; object-fit: cover; }
.fd-post__byline { min-width: 0; }
.fd-post__byline strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--cm-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fd-post__byline small { display: block; font-size: 11.5px; color: var(--cm-dim); margin-top: 1px; }

.fd-post__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--g);
    cursor: pointer;
    overflow: hidden;
}
.fd-post__media:focus-visible { outline: 2px solid var(--cm-gold); outline-offset: -2px; }
.fd-post__poster { width: 100%; height: 100%; object-fit: cover; display: block; }

.fd-post__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    font-size: 16px;
    color: #0a0800;
    background: rgba(255, 215, 0, .94);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
    transition: transform .18s, background .18s;
}
.fd-post__media:hover .fd-post__play { transform: translate(-50%, -50%) scale(1.09); background: #FFD700; }

/* Halo that breathes out of the play button on hover — reads as "this is live"
   without touching the poster image. */
.fd-post__play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, .6);
    opacity: 0;
}
.fd-post__media:hover .fd-post__play::after { animation: cmHalo 1.6s ease-out infinite; }
@keyframes cmHalo {
    0%   { transform: scale(1);   opacity: .85; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Slow push-in on the poster. Scaling the image, not the card, so nothing
   around it shifts. */
.fd-post__poster { transition: transform .5s ease; }
.fd-post__media:hover .fd-post__poster { transform: scale(1.06); }

.fd-post__tag,
.fd-post__dur {
    position: absolute;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.fd-post__tag { left: 10px; }
.fd-post__dur { right: 10px; }

/* Once a player is inserted the overlays would sit on top of the controls. */
.fd-post__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.fd-post__media.is-playing .fd-post__play,
.fd-post__media.is-playing .fd-post__tag,
.fd-post__media.is-playing .fd-post__dur,
.fd-post__media.is-playing .fd-post__poster { display: none; }
.fd-post__media.is-playing { cursor: default; }

.fd-post__body { padding: 13px 15px 15px; }

/* Both clamped to two lines: in a grid, one long caption would otherwise drag
   its whole row taller than the cards beside it. */
.fd-post__title,
.fd-post__cap {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.fd-post__title { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; color: var(--cm-text); line-height: 1.4; }
.fd-post__cap { margin: 0; font-size: 13px; line-height: 1.6; color: var(--cm-soft); }
.fd-post__when { margin: 9px 0 0; font-size: 11.5px; color: var(--cm-dim); display: flex; align-items: center; gap: 6px; }

/* ── Profile: feed + links ────────────────────────────── */

/* Inline with the badges now, not a row of its own. */
.cm-prof__stats {
    display: inline-flex;
    gap: 12px;
    font-size: 12.5px;
    color: var(--cm-soft);
}
.cm-prof__stats strong { color: var(--cm-text); font-weight: 800; }

.cm-prof__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    padding-top: 8px;
}
/* Aside is first in the DOM so it stacks above the feed on phones; on desktop
   it is placed into the right-hand column. */
.cm-prof__aside { grid-column: 2; grid-row: 1; }
.cm-prof__feed  { grid-column: 1; grid-row: 1; min-width: 0; }

.cm-panel {
    border-radius: var(--cm-radius);
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    padding: 18px;
}
.cm-panel--sticky { position: sticky; top: 96px; }
.cm-panel__title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--cm-dim);
    display: flex;
    align-items: center;
    gap: 9px;
}
.cm-panel__empty { margin: 0; font-size: 13.5px; color: var(--cm-soft); line-height: 1.6; }
.cm-panel__empty a { color: var(--cm-gold); }

.cm-links--stack { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }

.cm-card__vids {
    display: inline-flex;
    align-items: center;
    /* The card body is a column flexbox, so without this the pill stretches to
       the full card width instead of hugging its own label. */
    align-self: center;
    gap: 5px;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(255, 215, 0, .1);
    border: 1px solid rgba(255, 215, 0, .28);
    color: var(--cm-gold);
    font-size: 11px;
    font-weight: 700;
}

.cm-chip--feed { border-color: rgba(255, 215, 0, .4); color: var(--cm-gold); }
.cm-chip--feed b {
    background: var(--cm-gold);
    color: #0a0800;
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 11px;
}

.cm-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.cm-pager__label { font-size: 13.5px; color: var(--cm-soft); }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {
    .cm-prof__grid { grid-template-columns: 1fr; gap: 18px; }
    /* min-width:0 lets the slider clip and scroll. A grid item defaults to
       min-width:auto, so the row of link cards would instead stretch the aside
       past the viewport and take the whole page with it. */
    .cm-prof__aside { grid-column: 1; grid-row: 1; min-width: 0; }
    .cm-prof__feed  { grid-column: 1; grid-row: 2; min-width: 0; }
    .cm-panel--sticky { position: static; }
    .cm-panel { padding: 14px 14px 10px; }

    /* Stacked, the links sit above the feed — as a column they pushed the
       posts most of a screen down. One swipeable row keeps them one gesture
       away and the feed near the top. */
    .cm-links--stack {
        display: grid;
        /* .cm-links sets grid-template-columns; it has to be cleared or the
           items are placed into those explicit tracks and stretched to a tall
           row instead of flowing sideways. */
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 210px;
        align-items: start;
        justify-content: start;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
        margin-bottom: -4px;
    }
    .cm-links--stack .cm-link { scroll-snap-align: start; padding: 12px 13px; }
    .cm-links--stack .cm-link__ic { width: 36px; height: 36px; font-size: 15px; }

    /* No vertical lift inside the slider. overflow-x:auto also clips vertically,
       so a hovered card slid upward and had its top cut off. The brand-colour
       border and wash still give the feedback, without moving anything. */
    .cm-links--stack .cm-link:hover { transform: none; box-shadow: none; }
    .cm-links--stack .cm-link:hover::before { opacity: .18; }
    .cm-links--stack::-webkit-scrollbar { height: 4px; }
    .cm-links--stack::-webkit-scrollbar-thumb { background: var(--cm-border-lit); border-radius: 4px; }

    /* A hint that there is more to the right. */
    .cm-panel__title { margin-bottom: 11px; }
    .cm-panel__title::after {
        content: "swipe";
        margin-left: auto;
        font-size: 9.5px;
        letter-spacing: .8px;
        color: var(--cm-dim);
        opacity: .8;
    }
}

@media (max-width: 767px) {
    /* The header was taking most of the first screen. Everything here is about
       giving that space back to the feed while keeping the same information. */
    .cm-hero { padding: 16px 0 14px; }
    .cm-hero__top { align-items: flex-start; gap: 10px; }
    .cm-hero__bar { margin-top: 14px; }
    .cm-hero__badge { padding: 4px 10px; margin-bottom: 8px; font-size: 9.5px; letter-spacing: 1.2px; }
    .cm-hero__title { font-size: 25px; margin-bottom: 5px; }
    .cm-hero__sub {
        font-size: 13px;
        line-height: 1.5;
        /* Two lines at most — the full sentence pushed the feed down on its own. */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Counts become one borderless inline row: same numbers, a third of the
       height of the three bordered cells. */
    .cm-stats {
        width: 100%;
        border: 0;
        background: none;
        border-radius: 0;
        gap: 18px;
        justify-content: flex-start;
    }
    .cm-stat { flex: none; padding: 0; text-align: left; display: flex; align-items: baseline; gap: 5px; }
    .cm-stat + .cm-stat { border-left: 0; }
    .cm-stat__n { font-size: 15px; }
    .cm-stat__l { margin-top: 0; font-size: 9.5px; letter-spacing: .8px; }

    .cm-hero__foot { margin-top: 12px; padding-top: 11px; gap: 10px; }
    .cm-face { width: 26px; height: 26px; font-size: 10.5px; margin-left: -8px; }
    .cm-faces__txt { font-size: 11.5px; }
    .cm-hero__join { padding: 8px 15px; font-size: 12.5px; }

    .cm-search { flex: 1 1 100%; max-width: none; }
    /* Filters scroll in one row rather than wrapping onto three — the usual
       mobile treatment, and it keeps ~40px out of the header. */
    .cm-chips {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 5px;
    }
    .cm-chip { flex-shrink: 0; }
    .cm-chips::-webkit-scrollbar { height: 4px; }
    .cm-chips::-webkit-scrollbar-thumb { background: var(--cm-border-lit); border-radius: 4px; }
    .cm-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
    .cm-card__av { width: 56px; height: 56px; margin-top: -32px; font-size: 21px; }
    .cm-card__name { font-size: 14.5px; }
    .cm-card__body { padding: 10px 12px 15px; }
    /* The band keeps its shape on a phone — avatar beside the name, not above
       it — just tighter. The actions drop to their own full-width row. */
    .cm-prof__cover { height: 88px; }
    .cm-prof__head { margin-top: -30px; padding-bottom: 14px; gap: 12px; }
    .cm-prof__id { gap: 12px; align-items: center; }
    .cm-prof__av { width: 68px; height: 68px; font-size: 25px; border-width: 3px; }
    .cm-prof__who { padding-bottom: 0; }
    .cm-prof__name { margin-bottom: 5px; font-size: 19px; }
    .cm-prof__meta { gap: 6px 9px; font-size: 11.5px; }
    .cm-prof__stats { gap: 9px; font-size: 11.5px; }
    .cm-prof__since { font-size: 11.5px; }
    .cm-prof__headline {
        margin-top: 8px;
        font-size: 13px; line-height: 1.55;
        /* Two lines is enough to set the tone; the rest is on their own page. */
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cm-prof__acts { width: 100%; padding-bottom: 0; gap: 7px; }
    /* Three across at 360px, so they never take a second row. nowrap keeps a
       label on one line — wrapping made the row twice as tall. */
    .cm-prof__acts .cm-btn {
        flex: 1 1 0; min-width: 0; justify-content: center;
        padding: 9px 8px; font-size: 11.5px; gap: 5px;
        white-space: nowrap;
    }
    .cm-section-title { margin: 20px 0 12px; }
    /* :not(--stack) matters — this rule is later in the file than the slider's
       `grid-template-columns: none`, so without the exclusion it wins and leaves
       the first link in a collapsed 1fr track while the rest flow past it. */
    .cm-links:not(.cm-links--stack) { grid-template-columns: 1fr; }
    .cm-locked { padding: 34px 20px; }
    /* Narrower cards on a phone so a second one peeks in and the row reads
       as scrollable. grid-auto-columns, not template — this is the slider. */
    .cm-links--stack { grid-auto-columns: 178px; }
    /* Small tablets: two per row. */
    .fd-masonry,
    .fd-list { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 13px; }
    .fd-rail { grid-auto-columns: 224px; gap: 12px; }
    .fd-post__by { padding: 11px 12px; }
    .fd-post__av { width: 32px; height: 32px; font-size: 13px; }
    .fd-post__byline strong { font-size: 13px; }
    .fd-post__byline small { font-size: 11px; }
    .fd-post__body { padding: 11px 12px 13px; }
    .fd-post__title { font-size: 13.5px; }
    .fd-post__cap { font-size: 12.5px; }
    .fd-post__tag, .fd-post__dur { bottom: 7px; padding: 3px 7px; font-size: 9.5px; }
    .fd-post__tag { left: 7px; }
    .fd-post__dur { right: 7px; }
}

/* Phones: one card per row at full width — the standard for a video feed, and
   the only size where a single clip doesn't read as an orphaned thumbnail.
   A 350px-wide card is nothing like the runaway desktop card this replaces. */
@media (max-width: 560px) {
    .fd-masonry,
    .fd-list { grid-template-columns: 1fr; gap: 14px; }
    .fd-post__play { width: 50px; height: 50px; font-size: 16px; }
    .fd-post__title { font-size: 15px; }
    .fd-post__cap { font-size: 13px; }
    .cm-strip { margin-top: 28px; padding: 26px 0 6px; }
}
