/* FischRadio — online members panel. Mirrors the SYNK online-members.css
   component: member cards, avatar presence dots, counts, detail popover,
   loading skeletons, responsive breakpoints. */

.v2online { min-width: 0; padding: 24px; border: 1px solid #ffffff12; border-radius: 16px; background: #121212; }
.v2online-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.v2online-intro { min-width: 0; }
.v2online h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; }
.v2online h2 > iconify-icon { font-size: 24px; color: var(--v2-accent); }
.v2online-intro > p { margin: 6px 0 0; color: #a6a6a6; font-size: 13px; line-height: 1.5; }
.v2online-counts { display: flex; align-items: stretch; flex-shrink: 0; margin: 0; padding: 0; border: 1px solid #ffffff12; border-radius: 12px; background: #171717; }
.v2online-counts > div { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 8px; padding: 10px 16px; }
.v2online-counts > div + div { border-left: 1px solid #ffffff12; }
.v2online-counts dt { font-size: 13px; line-height: 1.4; color: #a6a6a6; }
.v2online-counts dd, .v2online #onlineMembersCount { margin: 0; font-size: 22px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: #e8e3d8; }
.v2online-body { min-width: 0; }
.v2online #onlineMembersList { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 4px 16px; align-items: start; list-style: none; padding: 0; margin: 0 -8px; min-height: 0; color: #fff; font-size: 14px; }
.v2online-member { min-width: 0; position: relative; }
.v2online-member-row { --row: #121212; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 8px; border-radius: 12px; background: var(--row); transition: background-color .18s ease; }
.v2online-member-row:has(.v2online-profile:hover), .v2online-member-row:has([aria-expanded=true]) { --row: #1b1b1b; }
.v2online-profile { display: flex; align-items: center; min-width: 0; flex: 1; gap: 16px; padding: 0; border-radius: 10px; text-decoration: none; color: #fff; }
.v2online-avatar-wrap { position: relative; display: block; flex: 0 0 60px; }
.v2online-avatar-wrap:after { content: ''; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border: 3px solid var(--row); box-sizing: content-box; border-radius: 50%; background: #e8e3d8; transition: border-color .18s ease; }
.v2online-avatar { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 50%; background: #252525; }
.v2online-avatar.v2online-fallback, .v2online-detail-avatar.v2online-fallback { object-fit: contain; padding: 13px; }
.v2online-member[data-staff=true] .v2online-avatar { box-shadow: 0 0 0 2px var(--row), 0 0 0 4px #e8e3d880; }
.v2online-name-group { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.v2online-name { max-width: 100%; font-size: 15px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2online-username { max-width: 100%; margin-top: 1px; font-size: 12px; line-height: 1.4; color: #8f8f8f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2online-summary-role { max-width: 100%; margin-top: 7px; padding: 2px 9px; border-radius: 999px; background: #ffffff0d; color: #c8c4bb; font-size: 11.5px; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2online-member[data-staff=true] .v2online-summary-role { background: #e8e3d81f; color: #e8e3d8; }
.v2online-details-toggle { width: 36px; height: 36px; flex: 0 0 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #999; cursor: pointer; opacity: .35; transition: background-color .18s ease, color .18s ease, opacity .18s ease; }
.v2online-member-row:hover .v2online-details-toggle, .v2online-member-row:focus-within .v2online-details-toggle, .v2online-details-toggle[aria-expanded=true] { opacity: 1; }
.v2online-details-toggle:hover, .v2online-details-toggle[aria-expanded=true] { background: #ffffff0f; color: #e8e3d8; }
.v2online-details-toggle iconify-icon { display: block; font-size: 18px; }
.v2online a:focus-visible, .v2online button:focus-visible, .v2online h2:focus-visible { outline: 2px solid #e8e3d8 !important; outline-offset: 3px; }
.v2online-details { position: fixed; inset: auto; margin: 0; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #ffffff24; border-radius: 16px; overflow: auto; overscroll-behavior: contain; background: #181818; color: #efeee7; box-shadow: 0 12px 45px #0007; z-index: 120; animation: v2online-panel-in .16s ease both; }
.v2online-details::backdrop { background: transparent; pointer-events: none; }
.v2online-banner { display: block; width: 100%; height: 86px; object-fit: cover; background: #252525; }
.v2online-details-close { position: absolute; top: 9px; right: 9px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff1a; border-radius: 50%; background: #171717; color: #efeee7; cursor: pointer; }
.v2online-details-close:hover { background: #303030; }
.v2online-details-close iconify-icon { font-size: 17px; }
.v2online-details-content { position: relative; padding: 0 20px 18px; }
.v2online-detail-avatar { display: block; width: 64px; height: 64px; margin-top: -28px; border: 4px solid #181818; border-radius: 50%; object-fit: cover; background: #252525; }
.v2online-detail-name { margin: 10px 0 0; color: #efeee7; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; overflow-wrap: anywhere; }
.v2online-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; line-height: 1.5; color: #b6b5b0; }
.v2online-role { display: inline-flex; align-items: center; gap: 5px; color: #e8e3d8; font-weight: 500; overflow-wrap: anywhere; max-width: 100%; }
.v2online-role iconify-icon { font-size: 13px; }
.v2online-pronouns { padding-left: 8px; border-left: 1px solid #ffffff20; overflow-wrap: anywhere; }
.v2online-location { display: flex; align-items: flex-start; gap: 6px; color: #b6b5b0; font-size: 12px; line-height: 1.5; margin: 13px 0 0; overflow-wrap: anywhere; }
.v2online-location iconify-icon { flex: 0 0 13px; margin-top: 2px; font-size: 13px; }
.v2online-bio { margin: 14px 0 0; color: #bcbcbc; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.v2online-view-profile { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e8e3d8; font-size: 12px; font-weight: 500; text-decoration: none; min-height: 42px; padding-top: 13px; margin-top: 17px; border-top: 1px solid #ffffff12; }
.v2online-view-profile:hover { text-decoration: underline; text-underline-offset: 3px; }
.v2online-view-profile iconify-icon { font-size: 16px; }
.v2online-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0 4px; }
.v2online-list:not(:empty) ~ .v2online-notice { margin-top: 12px; padding-top: 12px; }
.v2online-notice p { margin: 0; color: #a6a6a6; font-size: 14px; line-height: 1.55; }
.v2online-notice button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; background: #ffffff0a; color: #e8e3d8; border: 1px solid #ffffff14; border-radius: 8px; padding: 7px 12px; min-height: 36px; font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color .18s ease; }
.v2online-notice button:hover { background: #ffffff14; }
.v2online-notice button iconify-icon { font-size: 14px; }
.v2online-notice button[aria-disabled=true] { opacity: .6; cursor: wait; }
.v2online-skeletons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 4px 16px; margin: 0 -8px; }
.v2online-skeletons > div { position: relative; height: 76px; border-radius: 12px; background: linear-gradient(#ffffff0a, #ffffff0a) 84px 20px / 42% 11px no-repeat, linear-gradient(#ffffff06, #ffffff06) 84px 41px / 28% 9px no-repeat; animation: v2online-loading 1.8s ease-in-out infinite; }
.v2online-skeletons > div:before { content: ''; position: absolute; left: 8px; top: 8px; width: 60px; height: 60px; border-radius: 50%; background: #ffffff0a; }
.v2online-skeletons:not([hidden]) ~ .v2online-notice { padding: 10px 0 0; }
.v2online-limit { margin: 16px 0 0; color: #a6a6a6; font-size: 12px; line-height: 1.5; }
.v2online-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.v2online-new { animation: v2online-reveal .28s ease both; animation-delay: var(--v2online-delay, 0ms); }
@keyframes v2online-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v2online-panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v2online-loading { 50% { opacity: .45; } }

@media (max-width: 767px) {
  .v2online { padding: 20px; }
  .v2online-heading { flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .v2online h2 { font-size: 20px; }
  .v2online-counts { width: 100%; }
  .v2online-counts > div { flex: 1; justify-content: center; padding: 10px 12px; }
}
@media (max-width: 539px) {
  .v2online { padding: 16px; border-radius: 14px; }
  .v2online #onlineMembersList, .v2online-skeletons { grid-template-columns: minmax(0, 1fr); }
  .v2online-avatar-wrap { flex-basis: 56px; }
  .v2online-avatar { width: 56px; height: 56px; }
  .v2online-profile { gap: 14px; }
  .v2online-details-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  .v2online-details-close { width: 36px; height: 36px; }
  .v2online-view-profile, .v2online-notice button { min-height: 44px; }
  .v2online-notice { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (pointer: coarse), (hover: none) {
  .v2online-details-toggle { opacity: .8; width: 44px; height: 44px; flex-basis: 44px; }
  .v2online-details-close { width: 44px; height: 44px; }
  .v2online-view-profile, .v2online-notice button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2online-new, .v2online-details, .v2online-skeletons > div { animation: none; }
  .v2online a, .v2online button, .v2online-member-row, .v2online-avatar-wrap:after, .v2online iconify-icon { transition: none; }
}
