/* ============================================================================
   AVH Studios — Social layer styles
   Shared by community.html, messages.html and profile.html. Reads the same
   :root tokens as brand.css so the surfaces feel like one product.
   ========================================================================== */

/* ---- Avatars ------------------------------------------------------------- */
.soc-avatar {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff; font-weight: 800;
  letter-spacing: .02em; user-select: none; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.soc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.soc-avatar-fallback { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.soc-avatar-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.soc-avatar.online::after {
  content: ''; position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%;
  min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--accent-3);
  border: 2px solid var(--panel); box-sizing: border-box;
  animation: avh-online-blink 1.6s ease-in-out infinite;
}

/* ---- Online-now pill (profile hero) -------------------------------------- */
.online-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  letter-spacing: .02em; color: #d7ffe9; background: rgba(53, 255, 158, .12);
  border: 1px solid rgba(53, 255, 158, .45);
}
.online-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(53, 255, 158, .55); flex: 0 0 auto;
  animation: avh-online-blink 1.6s ease-in-out infinite;
}

/* ---- Nav unread badge ---------------------------------------------------- */
.soc-nav-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; background: var(--accent); color: #1a0d05;
  font-size: .68rem; font-weight: 900; line-height: 1; vertical-align: middle;
}
.soc-nav-badge[hidden] { display: none; }

/* ---- Toast --------------------------------------------------------------- */
.soc-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease;
  z-index: 200; max-width: 90vw; text-align: center;
}
.soc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.soc-toast.ok { border-color: rgba(53, 255, 158, .5); }
.soc-toast.err { border-color: rgba(255, 77, 94, .55); }

/* ---- Page shell ---------------------------------------------------------- */
.soc-wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 70px; }
.soc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.soc-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 4px; }
.soc-head p { margin: 0; color: var(--text-dim); }
.soc-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.soc-search {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; min-width: 240px;
}
.soc-search input { background: transparent; border: 0; color: var(--text); outline: none; width: 100%; font-size: .95rem; }
.soc-search .ico { color: var(--text-dim); }
.soc-chip {
  border: 1px solid var(--border); background: var(--panel); color: var(--text-dim);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.soc-chip.active { color: var(--text); border-color: var(--accent); background: rgba(255, 107, 53, .12); }

/* ---- Community grid ------------------------------------------------------ */
.soc-columns { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.creator-card {
  background: linear-gradient(180deg, var(--panel) 0%, #14171d 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 12px; transition: .16s ease;
}
.creator-card:hover { border-color: rgba(255, 107, 53, .4); transform: translateY(-3px); }
.creator-top { display: flex; align-items: center; gap: 12px; }
.creator-id { min-width: 0; }
.creator-name { font-weight: 800; font-size: 1.02rem; color: var(--text); display: flex; align-items: center; gap: 6px; }
.creator-name:hover { color: var(--accent); }
.creator-handle { color: var(--text-dim); font-size: .85rem; }
.creator-bio { color: var(--text-dim); font-size: .9rem; margin: 0; min-height: 2.6em; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-tag {
  font-size: .72rem; font-weight: 700; color: #c9ecff; border: 1px solid rgba(53, 194, 255, .35);
  background: rgba(53, 194, 255, .1); border-radius: 999px; padding: 3px 9px;
}
.creator-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.creator-actions .btn { padding: 8px 14px; font-size: .84rem; }
.badge-pro { font-size: .66rem; font-weight: 900; letter-spacing: .04em; color: #ffd9c6; border: 1px solid rgba(255, 107, 53, .5); background: rgba(255, 107, 53, .14); border-radius: 6px; padding: 2px 6px; }
.badge-open { font-size: .68rem; font-weight: 700; color: #c6ffe4; }

/* ---- Feed ---------------------------------------------------------------- */
.feed-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 84px; }
.feed-panel h3 { margin: 0 0 4px; font-size: 1rem; }
.feed-panel .sub { color: var(--text-dim); font-size: .82rem; margin: 0 0 14px; }
.feed-list { display: flex; flex-direction: column; gap: 4px; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 6px; border-radius: 10px; }
.feed-item:hover { background: var(--panel-2); }
.feed-item .txt { font-size: .88rem; color: var(--text); line-height: 1.35; }
.feed-item .txt a { font-weight: 700; }
.feed-item .when { color: var(--text-dim); font-size: .76rem; margin-top: 2px; }
.feed-empty { color: var(--text-dim); font-size: .88rem; padding: 8px 4px; }

/* ---- Messages ------------------------------------------------------------ */
.dm-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; height: calc(100vh - 150px); min-height: 520px; }
.dm-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.dm-panel-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-panel-head h3 { margin: 0; font-size: 1rem; }
.dm-tabs { display: flex; gap: 6px; }
.dm-tabs button { background: transparent; border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.dm-tabs button.active { color: var(--text); border-color: var(--accent-2); background: rgba(53, 194, 255, .12); }
.dm-list { overflow-y: auto; flex: 1; }
.dm-item { display: flex; gap: 11px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid rgba(42, 47, 58, .5); align-items: center; }
.dm-item:hover { background: var(--panel-2); }
.dm-item.active { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.dm-item .meta { min-width: 0; flex: 1; }
.dm-item .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dm-item .nm { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item .when { color: var(--text-dim); font-size: .72rem; flex: 0 0 auto; }
.dm-item .prev { color: var(--text-dim); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item .unread { background: var(--accent); color: #1a0d05; font-weight: 900; font-size: .7rem; border-radius: 999px; padding: 1px 7px; }
.dm-empty { color: var(--text-dim); text-align: center; padding: 40px 18px; font-size: .9rem; }

.dm-thread { display: flex; flex-direction: column; }
.dm-thread-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.dm-thread-head .nm { font-weight: 800; }
.dm-thread-head .hd { color: var(--text-dim); font-size: .82rem; }
.dm-thread-head .spacer { margin-left: auto; display: flex; gap: 8px; }
.dm-scroll { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.dm-bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; }
.dm-bubble.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.dm-bubble.me { align-self: flex-end; background: linear-gradient(92deg, rgba(255, 107, 53, .9), rgba(255, 138, 76, .9)); color: #1a0d05; border-bottom-right-radius: 5px; font-weight: 600; }
.dm-bubble .stamp { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; }
.dm-bubble.event { align-self: center; background: transparent; border: 1px dashed var(--border); color: var(--text-dim); font-size: .82rem; max-width: 88%; text-align: center; }
.dm-bubble.event a { font-weight: 700; }
.dm-compose { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 10px; align-items: flex-end; }
.dm-compose textarea {
  flex: 1; resize: none; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 14px; padding: 11px 14px; font: inherit; font-size: .93rem; max-height: 140px; min-height: 44px; outline: none;
}
.dm-compose textarea:focus { border-color: var(--accent-2); }
.dm-placeholder { flex: 1; display: grid; place-items: center; color: var(--text-dim); text-align: center; padding: 30px; }

/* ---- Requests ------------------------------------------------------------ */
.req-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 12px; background: var(--panel-2); }
.req-card .top { display: flex; gap: 11px; align-items: center; margin-bottom: 8px; }
.req-card .msg { color: var(--text); font-size: .9rem; margin: 0 0 12px; }
.req-card .acts { display: flex; gap: 8px; }
.req-status { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.req-status.pending { color: #ffe6c9; border-color: rgba(255, 178, 122, .5); }
.req-status.accepted { color: #c6ffe4; border-color: rgba(53, 255, 158, .5); }
.req-status.declined { color: #ffc9cf; border-color: rgba(255, 77, 94, .5); }

/* ---- Profile page -------------------------------------------------------- */
.profile-hero {
  background: linear-gradient(180deg, var(--panel) 0%, #12151b 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
}
.profile-cover { aspect-ratio: 3 / 1; min-height: 120px; background:
  radial-gradient(120% 140% at 12% 0%, rgba(255, 107, 53, .35) 0%, rgba(7, 8, 10, 0) 60%),
  radial-gradient(120% 140% at 92% 10%, rgba(53, 194, 255, .32) 0%, rgba(7, 8, 10, 0) 60%),
  linear-gradient(120deg, #1a1f29, #0e1116); }
.profile-cover.has-banner { background-size: cover; background-position: center; background-repeat: no-repeat; }
.profile-body { padding: 0 26px 24px; margin-top: -52px; }
.profile-top { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.profile-avatar { border: 4px solid var(--panel); border-radius: 50%; }
.profile-id { flex: 1; min-width: 220px; padding-bottom: 6px; }
.profile-id h1 { margin: 0; font-size: 1.7rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-id .handle { color: var(--text-dim); font-size: .95rem; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.profile-stats { display: flex; gap: 26px; margin: 18px 0 6px; flex-wrap: wrap; }
.profile-stats .stat b { font-size: 1.25rem; }
.profile-stats .stat span { color: var(--text-dim); font-size: .82rem; display: block; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: .88rem; margin: 10px 0; }
.profile-bio { max-width: 720px; margin: 12px 0; }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-links a { font-size: .85rem; font-weight: 700; border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; background: var(--panel-2); color: var(--text); }
.profile-links a:hover { border-color: var(--accent-2); text-decoration: none; }
.profile-grid { display: grid; grid-template-columns: 1fr 384px; gap: 22px; align-items: start; }
.mini-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.mini-card h3 { margin: 0 0 12px; font-size: 1rem; }

/* ---- Account profile tab additions -------------------------------------- */
.avatar-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatar-editor .hint { color: var(--text-dim); font-size: .82rem; }
.banner-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.banner-editor > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.banner-editor .hint { color: var(--text-dim); font-size: .82rem; }
#pf-banner-preview { display: flex; align-items: center; justify-content: center; width: 280px; max-width: 100%; height: 92px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background:
  radial-gradient(120% 140% at 12% 0%, rgba(255, 107, 53, .35) 0%, rgba(7, 8, 10, 0) 60%),
  radial-gradient(120% 140% at 92% 10%, rgba(53, 194, 255, .32) 0%, rgba(7, 8, 10, 0) 60%),
  linear-gradient(120deg, #1a1f29, #0e1116); }
#pf-banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pf-banner-preview .banner-editor-empty { color: var(--text-dim); font-size: .8rem; }

/* ---- Banner crop editor (§220) ------------------------------------------ */
.crop-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; }
.crop-modal.open { display: flex; }
.crop-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 11, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.crop-dialog { position: relative; z-index: 1; width: min(680px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.crop-dialog h3 { margin: 0 0 4px; font-size: 1.15rem; }
.crop-sub { margin: 0 0 16px; color: var(--text-dim); font-size: .84rem; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 3 / 1; border-radius: var(--radius); overflow: hidden; background: #0b0d11; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1px var(--border); }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.crop-zoom-ico { color: var(--text-dim); font-weight: 900; width: 12px; text-align: center; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--accent); }
.crop-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.crop-spacer { flex: 1; }
@media (max-width: 620px) {
  .crop-dialog { padding: 16px; }
  .crop-actions { flex-wrap: wrap; }
}
.tag-input { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-input input { flex: 1; min-width: 140px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(53, 194, 255, .12); border: 1px solid rgba(53, 194, 255, .35); color: #c9ecff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; }
.tag-chip button { background: transparent; border: 0; color: inherit; cursor: pointer; font-weight: 900; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(42, 47, 58, .5); }
.switch-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; transition: .18s; cursor: pointer; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--text-dim); transition: .18s; }
.switch input:checked + .slider { background: rgba(255, 107, 53, .3); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--accent); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .soc-columns, .profile-grid { grid-template-columns: 1fr; }
  .feed-panel { position: static; }
  .dm-layout { grid-template-columns: 1fr; height: auto; }
  .dm-list { max-height: 340px; }
  .dm-thread { min-height: 460px; }
}
@media (max-width: 620px) {
  .soc-head { flex-direction: column; align-items: stretch; }
  .creator-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .creator-grid { grid-template-columns: 1fr; }
}

/* ---- Profile: Songs & instrumentals (verified studio productions) -------- */
.psongs-note { font-size: .82rem; line-height: 1.55; margin: 0 0 14px; }
.psongs-list { margin-top: 4px; }
.psong .psong-main { flex: 1; min-width: 0; }
.psong .psong-main .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psong .psong-main .mt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psong-play {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font-size: .85rem; line-height: 1; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.psong-play:hover { border-color: var(--accent); transform: translateY(-1px); }
.psong-play.playing {
  border-color: transparent; color: #0b0d11;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.psong .rm { margin-left: auto; }
.psongs-add-btn { margin-top: 14px; }
.psongs-picker { margin-top: 14px; }
.psongs-cert .radio-cert-fields { margin-top: 10px; }
.psongs-cert .radio-cert-fields .btn { align-self: stretch; }

/* ============================================================================
   Music posts — the shared player, the composer's "New Music" picker and the
   community "New Music" feed (full songs, infinite scroll, auto-play in view).
   ========================================================================== */

/* ---- composer: New Music picker ------------------------------------------ */
.post-music {
  margin-top: 12px; padding: 14px; border-radius: 14px;
  border: 1px solid rgba(53, 255, 158, .3);
  background: linear-gradient(180deg, rgba(53, 255, 158, .06), rgba(53, 194, 255, .05));
}
.post-music-label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 8px; color: #d7ffe9; }
.post-music-select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 11px 13px; font: inherit; font-size: .95rem; outline: none;
}
.post-music-select:focus { border-color: var(--accent-3); }
.post-music-hint { margin: 9px 0 0; color: var(--text-dim); font-size: .8rem; line-height: 1.5; }
.post-music-hint a { color: var(--accent-3); font-weight: 700; }

/* ---- New Music badge on a wall / feed post -------------------------------- */
.post-vis-badge.music { color: #c6ffe4; border-color: rgba(53, 255, 158, .45); background: rgba(53, 255, 158, .12); }

/* ---- shared music player card -------------------------------------------- */
.music-player {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
  padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(53, 194, 255, .08), rgba(255, 107, 53, .06));
}
.music-play {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; line-height: 1; transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.music-play:hover { border-color: var(--accent); transform: translateY(-1px); }
.music-play.playing { border-color: transparent; color: #0b0d11; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.music-info { min-width: 0; flex: 1; }
.music-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; min-width: 0; }
.music-title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.music-hybrid-badge {
  flex: 0 0 auto; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  color: #ffe6b3; border: 1px solid rgba(255, 196, 110, .5); background: rgba(255, 196, 110, .12);
}
.music-meta { color: var(--text-dim); font-size: .8rem; margin-top: 2px; }
.music-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; flex: 0 0 auto; }
.music-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--text-dim); opacity: .5; }
.music-player:has(.music-play.playing) .music-bars i { opacity: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); animation: musicBar .9s ease-in-out infinite; }
.music-bars i:nth-child(2) { animation-delay: .15s; }
.music-bars i:nth-child(3) { animation-delay: .3s; }
.music-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes musicBar { 0%, 100% { height: 6px; } 50% { height: 20px; } }
@media (prefers-reduced-motion: reduce) { .music-player:has(.music-play.playing) .music-bars i { animation: none; } }

/* ---- community: Live Feed / New Music tabs -------------------------------- */
.feed-tabs { display: inline-flex; gap: 6px; margin-top: 14px; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--panel); }
.feed-tab {
  border: 0; background: transparent; color: var(--text-dim); cursor: pointer;
  border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .88rem; transition: .15s ease;
}
.feed-tab:hover { color: var(--text); }
.feed-tab.active { color: #0b0d11; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---- community: New Music panel ------------------------------------------ */
.nm-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.nm-sub { margin: 0; color: var(--text-dim); font-size: .95rem; max-width: 620px; }
.nm-mute {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  cursor: pointer; font-size: 1.1rem; line-height: 1; transition: .15s ease;
}
.nm-mute:hover { border-color: var(--accent-2); }
.nm-mute.muted { border-color: rgba(255, 77, 94, .5); color: #ffc9cf; }
.new-music-list { display: flex; flex-direction: column; gap: 20px; }
.music-post {
  position: relative; padding: 20px 22px 22px; border-radius: 20px;
  border: 1px solid transparent; background: linear-gradient(180deg, #232935 0%, #191d26 100%);
  background-clip: padding-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 46px -26px rgba(0, 0, 0, .95);
  transition: transform .28s cubic-bezier(.2, .8, .25, 1), box-shadow .28s ease;
}
.music-post::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(53, 255, 158, .35), rgba(255, 255, 255, .02) 45%, rgba(53, 194, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.music-post .fp-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.music-post .fp-av { flex: 0 0 auto; display: inline-flex; border-radius: 50%; }
.music-post .fp-id { min-width: 0; flex: 1; }
.music-post .fp-name { font-weight: 800; font-size: 1.05rem; }
.music-post .fp-name a { color: var(--text); }
.music-post .fp-name a:hover { color: var(--accent); }
.music-post .fp-sub { color: var(--text-dim); font-size: .8rem; margin-top: 2px; }
.music-post .fp-body { font-size: 1rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; color: #f1f3f6; margin-bottom: 4px; }
.nm-badge {
  flex: 0 0 auto; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  color: #c6ffe4; border: 1px solid rgba(53, 255, 158, .45); background: rgba(53, 255, 158, .12);
  border-radius: 999px; padding: 4px 10px;
}
.nm-player { margin-top: 14px; }
.nm-sentinel { height: 1px; }
.nm-end { text-align: center; color: var(--text-dim); font-size: .9rem; padding: 22px 0 4px; }
.feed-music-player { margin-top: 14px; }

@media (max-width: 560px) {
  .music-player { gap: 11px; padding: 11px; }
  .music-play { width: 42px; height: 42px; }
  .music-post { padding: 16px; }
  .feed-tab { padding: 7px 12px; font-size: .82rem; }
}

/* ---- 🔴 Live now: community broadcast rail ------------------------------- */
.soc-live { margin: 26px 0 8px; }
.live-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-card { position: relative; display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.live-card:hover { transform: translateY(-2px); border-color: rgba(255,77,94,.55); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.live-thumb { position: relative; aspect-ratio: 16 / 9; background: #05060a; overflow: hidden; }
.live-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,77,94,.14), transparent 62%), #0b0d12; }
.live-thumb-ico { font-size: 2.4rem; opacity: .8; }
.live-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,77,94,.92); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live-blink 1.4s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.live-viewers { position: absolute; bottom: 10px; right: 10px; font-size: .72rem; font-weight: 700; color: #fff;
  padding: 3px 9px; border-radius: 999px; background: rgba(5,6,10,.72); backdrop-filter: blur(4px); }
.live-meta { padding: 12px 13px 14px; }
.live-title { font-weight: 800; font-size: .98rem; line-height: 1.25; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-host { font-size: .8rem; color: var(--text-dim); margin-bottom: 9px; }
.live-people { display: flex; align-items: center; }
.live-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .64rem;
  font-weight: 800; color: #0b0d11; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid var(--panel); margin-left: -8px; }
.live-av:first-child { margin-left: 0; }
.live-av.more { background: var(--panel-2); color: var(--text-dim); }
.live-watch { position: absolute; right: 12px; bottom: 12px; font-size: .76rem; font-weight: 800;
  color: #fff; padding: 6px 11px; border-radius: 999px; background: linear-gradient(135deg, #ff4d5e, #ff6b35);
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.live-card:hover .live-watch { opacity: 1; transform: translateY(0); }
@media (max-width: 560px) { .live-rail { grid-template-columns: 1fr 1fr; gap: 11px; } .live-title { font-size: .88rem; } }

/* ---- ▶ Replays: recordings of past broadcasts ------------------------------ */
.soc-replays { margin: 22px 0 8px; }
.replay-card:hover { border-color: rgba(53,194,255,.55); }
.replay-badge { background: rgba(53,194,255,.92); }
.replay-badge i { animation: none; }
.replay-dur { position: absolute; bottom: 10px; left: 10px; font-size: .72rem; font-weight: 700; color: #fff;
  padding: 3px 9px; border-radius: 999px; background: rgba(5,6,10,.72); backdrop-filter: blur(4px); }
.replay-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.replay-play span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5,6,10,.55); backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,.85);
  color: #fff; font-size: 1.1rem; padding-left: 4px; transition: transform .15s ease, background .15s ease; }
.replay-card:hover .replay-play span { transform: scale(1.08); background: rgba(53,194,255,.85); border-color: #fff; }
.replay-watch { background: linear-gradient(135deg, #35c2ff, #7a5cff); }

/* ---- Profile: "Live replays" list ---------------------------------------- */
.preplays-note { font-size: .82rem; margin: 0 0 12px; }
.preplays-list { display: flex; flex-direction: column; gap: 10px; }
.preplay-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: var(--panel-2);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.preplay-row:hover { border-color: rgba(53,194,255,.55); background: #171b22; transform: translateY(-1px); }
.preplay-thumb {
  position: relative; flex: 0 0 auto; width: 132px; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #05060a;
}
.preplay-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preplay-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #35c2ff; font-size: 1.4rem; }
.preplay-dur {
  position: absolute; bottom: 6px; left: 6px; font-size: .68rem; font-weight: 700; color: #fff;
  padding: 2px 7px; border-radius: 999px; background: rgba(5,6,10,.72); backdrop-filter: blur(4px);
}
.preplay-play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: #fff; font-size: 1rem; opacity: 0; transition: opacity .15s ease;
  background: rgba(5,6,10,.35);
}
.preplay-play { padding-left: 2px; }
.preplay-row:hover .preplay-play { opacity: 1; }
.preplay-main { flex: 1 1 auto; min-width: 0; }
.preplay-title {
  font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preplay-meta { color: var(--text-dim); font-size: .8rem; margin-top: 3px; }
.preplay-people { display: flex; align-items: center; margin-top: 7px; }
.preplay-av {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  font-size: .62rem; font-weight: 800; color: #fff; background: #2a2f3a; border: 2px solid var(--panel-2);
  margin-left: -6px;
}
.preplay-av:first-child { margin-left: 0; }
.preplay-av.more { background: var(--panel); color: var(--text-dim); }
.preplay-watch {
  flex: 0 0 auto; font-size: .78rem; font-weight: 800; color: #fff; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; background: linear-gradient(135deg, #35c2ff, #7a5cff);
}
@media (max-width: 560px) {
  .preplay-thumb { width: 104px; }
  .preplay-watch { display: none; }
}
/* ============================================================================
   Collab Board — "Open Call" beacons (community page)
   The rail above Featured artists, the board tab, the create/detail/inbox
   modals, and the gated-preview player. Reads the same :root tokens.
   ========================================================================== */

/* ---- rail above Featured artists ----------------------------------------- */
.soc-opencalls { margin: 26px 0 8px; }
.soc-opencalls .soc-section-title { flex-wrap: wrap; }
.oc-new-btn { margin-left: auto; }
.oc-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ---- board tab ----------------------------------------------------------- */
.oc-board-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.oc-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.oc-select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.oc-select:focus { outline: none; border-color: var(--accent-2); }
.oc-search {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; min-width: 220px;
}
.oc-search input { background: transparent; border: 0; color: var(--text); outline: none; width: 100%; font-size: .9rem; }
.oc-search .ico { color: var(--text-dim); }
.oc-board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* ---- the call card ------------------------------------------------------- */
.oc-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--panel) 0%, #14171d 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.oc-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 53, .4); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.oc-card-compact { padding: 15px; gap: 10px; }
.oc-card-head { display: flex; align-items: center; gap: 11px; }
.oc-av { flex: 0 0 auto; display: inline-flex; border-radius: 50%; }
.oc-card-id { min-width: 0; flex: 1; }
.oc-name { font-weight: 800; font-size: 1rem; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-name:hover { color: var(--accent); }
.oc-handle { color: var(--text-dim); font-size: .82rem; }
.oc-status {
  flex: 0 0 auto; font-size: .66rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim);
}
.oc-status.oc-st-live { color: #c6ffe4; border-color: rgba(53, 255, 158, .45); background: rgba(53, 255, 158, .12); }
.oc-status.oc-st-filled { color: #ffd9c6; border-color: rgba(255, 107, 53, .5); background: rgba(255, 107, 53, .14); }
.oc-status.oc-st-expired, .oc-status.oc-st-closed { color: var(--text-dim); opacity: .8; }
.oc-title { margin: 0; font-size: 1.08rem; line-height: 1.3; cursor: pointer; }
.oc-title:hover { color: var(--accent); }
.oc-card-compact .oc-title { font-size: 1rem; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.oc-preview-tag {
  font-size: .68rem; font-weight: 800; color: #ffe6b3; border: 1px solid rgba(255, 196, 110, .5);
  background: rgba(255, 196, 110, .12); border-radius: 999px; padding: 3px 9px;
}
.oc-lines { display: flex; flex-direction: column; gap: 7px; }
.oc-line { display: flex; align-items: flex-start; gap: 8px; }
.oc-line-k { flex: 0 0 auto; width: 44px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.oc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.oc-chip { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }
.oc-chip-have { color: #c6ffe4; border-color: rgba(53, 255, 158, .35); background: rgba(53, 255, 158, .1); }
.oc-chip-need { color: #ffd9c6; border-color: rgba(255, 107, 53, .38); background: rgba(255, 107, 53, .1); }
.oc-meta { color: var(--text-dim); font-size: .8rem; }
.oc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.oc-foot-info { color: var(--text-dim); font-size: .78rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-card-foot .btn { flex: 0 0 auto; padding: 8px 14px; font-size: .84rem; }
.oc-applied { color: #c6ffe4; font-weight: 800; font-size: .84rem; }

/* ---- create form --------------------------------------------------------- */
.oc-modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 22px; }
.oc-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.oc-modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}
.oc-modal-wide { max-width: 660px; }
.oc-modal-x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim);
  cursor: pointer; font-size: .95rem; line-height: 1;
}
.oc-modal-x:hover { color: var(--text); border-color: var(--accent); }
.oc-modal-title { margin: 0 0 6px; font-size: 1.3rem; }
.oc-modal-sub { margin: 0 0 18px; color: var(--text-dim); font-size: .9rem; }
.oc-form { display: flex; flex-direction: column; gap: 16px; }
.oc-field { display: flex; flex-direction: column; gap: 7px; }
.oc-flabel { font-size: .82rem; font-weight: 800; color: var(--text); }
.oc-fhint { font-weight: 600; color: var(--text-dim); font-size: .76rem; }
.oc-input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 11px 13px; font: inherit; font-size: .92rem;
}
.oc-input:focus { outline: none; border-color: var(--accent-2); }
.oc-file { padding: 9px 11px; }
.oc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oc-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.oc-chip-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.oc-pick {
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: .12s ease;
}
.oc-pick:hover { color: var(--text); }
.oc-pick.on { color: #0b0d11; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.oc-check { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-dim); }
.oc-addref {
  align-self: flex-start; border: 1px dashed var(--border); background: transparent; color: var(--text-dim);
  border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.oc-addref:hover { color: var(--text); border-color: var(--accent-2); }
.oc-refrow { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.oc-refdel { width: 38px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim); border-radius: 10px; cursor: pointer; }
.oc-refdel:hover { color: #ffc9cf; border-color: rgba(255, 77, 94, .5); }
.oc-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---- detail modal -------------------------------------------------------- */
.oc-detail { display: flex; flex-direction: column; gap: 14px; }
.oc-detail-head { display: flex; align-items: center; gap: 12px; }
.oc-detail-sub { color: var(--text-dim); font-size: .82rem; margin-top: 2px; }
.oc-detail-title { margin: 0; font-size: 1.35rem; line-height: 1.28; }
.oc-detail-grid { display: flex; flex-direction: column; gap: 8px; }
.oc-refs { border-top: 1px solid var(--border); padding-top: 12px; }
.oc-refs-h { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.oc-refs ul { margin: 0; padding-left: 18px; }
.oc-refs li { font-size: .88rem; margin-bottom: 4px; }
.oc-preview { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--panel-2); }
.oc-preview-h { font-size: .82rem; font-weight: 800; margin-bottom: 9px; }
.oc-wm { font-size: .68rem; font-weight: 700; color: #ffe6b3; border: 1px solid rgba(255, 196, 110, .5); border-radius: 999px; padding: 2px 8px; }
.oc-preview audio { width: 100%; }
.oc-preview-dur { color: var(--text-dim); font-size: .78rem; margin-top: 6px; }
.oc-preview-locked {
  display: flex; align-items: center; gap: 10px; border: 1px dashed var(--border); border-radius: 14px;
  padding: 14px; color: var(--text-dim); font-size: .88rem; background: var(--panel-2);
}
.oc-apply-box { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.oc-apply-box textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 11px 13px; font: inherit; resize: vertical;
}
.oc-apply-box textarea:focus { outline: none; border-color: var(--accent-2); }
.oc-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.oc-detail-actions .btn { padding: 9px 15px; font-size: .86rem; }
.oc-danger { color: #ffc9cf; border-color: rgba(255, 77, 94, .45); }
.oc-danger:hover { background: rgba(255, 77, 94, .12); }
.oc-closed { color: var(--text-dim); font-size: .9rem; }

/* ---- applicant inbox ----------------------------------------------------- */
.oc-inbox { display: flex; flex-direction: column; gap: 12px; }
.oc-inbox-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2);
}
.oc-inbox-main { min-width: 0; flex: 1; }
.oc-inbox-msg { color: var(--text); font-size: .88rem; margin-top: 6px; white-space: pre-wrap; word-wrap: break-word; }
.oc-inbox-when { color: var(--text-dim); font-size: .74rem; margin-top: 5px; }
.oc-inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oc-inbox-actions .btn { padding: 7px 13px; font-size: .82rem; }
.oc-inbox-empty { color: var(--text-dim); text-align: center; padding: 30px 14px; font-size: .9rem; }
.oc-declined { color: var(--text-dim); font-weight: 800; font-size: .84rem; }

@media (max-width: 560px) {
  .oc-rail { grid-template-columns: 1fr; }
  .oc-board-list { grid-template-columns: 1fr; }
  .oc-row, .oc-row-3 { grid-template-columns: 1fr; }
  .oc-refrow { grid-template-columns: 1fr 1fr auto; }
  .oc-modal-card { padding: 18px; }
}

/* ============================================================================
   VOXSEAL character sheet (inside the profile About card)
   ----------------------------------------------------------------------------
   Layout decision: 2x2, not 4-across. The About column is 384px; four tiles
   across would give each figure ~78px, which is too small to read a face,
   hairline or lapel. 2x2 gives ~175px per tile. Four-across is kept in the
   lightbox, where there is room for it.
   ========================================================================== */
.cs-block { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cs-head h4 { margin: 0; font-size: .9rem; letter-spacing: .01em; }
.cs-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-3); background: rgba(53,255,158,.10);
  border: 1px solid rgba(53,255,158,.28); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.cs-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel-2); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.cs-tile:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.cs-tile:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.cs-tile img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.cs-lbl {
  position: absolute; left: 6px; bottom: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.62); border-radius: 5px; padding: 2px 6px;
  backdrop-filter: blur(4px);
}
.cs-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.cs-foot .m { font-size: .72rem; color: var(--text-dim); }
.cs-vt {
  display: flex; align-items: center; gap: 8px; margin-top: 11px;
  font-size: .78rem; color: var(--text-dim);
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.cs-vt b { color: var(--text); }
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); flex: 0 0 auto; }

/* Lightbox */
.cs-lb {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,8,.86); backdrop-filter: blur(6px); padding: 24px;
}
.cs-lb-inner { position: relative; max-width: min(1100px, 96vw); width: 100%; }
.cs-lb-img {
  display: block; margin: 0 auto; max-height: 74vh; width: auto; max-width: 100%;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--panel);
}
.cs-lb-x {
  position: absolute; top: -6px; right: 0; z-index: 2;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: .9rem;
}
.cs-lb-x:hover { border-color: var(--danger); color: var(--danger); }
.cs-lb-cap { text-align: center; margin-top: 10px; font-size: .82rem; color: var(--text-dim); }
.cs-lb-strip { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.cs-lb-strip img {
  width: 58px; height: 87px; object-fit: cover; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; opacity: .55; transition: opacity .15s, border-color .15s;
}
.cs-lb-strip img:hover { opacity: .85; }
.cs-lb-strip img.on { opacity: 1; border-color: var(--accent); }

@media (max-width: 520px) {
  .cs-lb-strip img { width: 46px; height: 69px; }
  .cs-lb-img { max-height: 62vh; }
}

/* Self-only entry point into the vocal-identity wizard (profile About card). */
.vt-cta {
  display: inline-block; margin-top: 12px;
  font-size: .84rem; font-weight: 700; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.vt-cta:hover { border-bottom-color: var(--accent); }
.vt-cta-note {
  margin-top: 6px; font-size: .74rem; line-height: 1.45; color: var(--text-dim);
}
