/* presence.css
----------------------------------------
Online players 名单 + "全部在线"弹窗 + 小提示的样式，两个站共用。
颜色走 CSS 变量：默认值配 Numerith 首页的深色主题；Orbit 的浅色主题
在 orbit.css 的 :root 里覆盖这几个变量。
---------------------------------------- */

.op-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    font-size: 13px;
    border-bottom: 1px solid var(--op-line, rgba(127, 127, 127, 0.18));
}

.op-row:last-child { border-bottom: none; }

.op-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--op-idle, #5fb86a);
}

.op-dot.op-dot-playing { background: var(--op-playing, #e0862c); }

/* 名字一层、"等级分 · 所在站"一层 */
.op-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.op-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.op-meta {
    font-size: 11px;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-meta .op-rating,
.op-meta .op-site {
    opacity: 1;
    font-size: inherit;
}

.op-self .op-name { font-weight: 700; }

.op-rating { font-size: 12px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.op-site { font-size: 11px; opacity: 0.55; white-space: nowrap; }
.op-action { flex-shrink: 0; min-width: 62px; text-align: right; }
.op-self .op-action { min-width: 0; }

.op-btn {
    display: inline-block;
    font-size: 11px;
    line-height: 1.4;
    padding: 2px 9px;
    border-radius: 10px;
    border: 1px solid currentColor;
    background: none;
    color: var(--op-accent, #8fc3e0);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.op-btn:hover { background: var(--op-hover, rgba(127, 127, 127, 0.15)); }
.op-watch { color: var(--op-watch, #e0a060); }
.op-you { font-size: 11px; opacity: 0.5; }
.op-empty { padding: 10px 2px 2px; font-size: 12px; opacity: 0.55; }

/* ---- 全部在线（more →） ---- */

.op-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.op-modal[hidden] { display: none; }

.op-modal-card {
    width: min(420px, 92vw);
    max-height: 72vh;
    overflow-y: auto;
    padding: 14px 18px 12px;
    border-radius: 10px;
    background: var(--op-card-bg, #2b2927);
    color: var(--op-card-fg, #ddd6ce);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.op-modal-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.op-modal-count { font-size: 12px; font-weight: 400; opacity: 0.6; }

.op-modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

/* ---- 小提示 ---- */

.op-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 210;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    background: rgba(30, 28, 26, 0.9);
    color: #fff;
}

.op-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
