/* ════════════════════════════════════════════════════════════════════════
   BANS — one list, every realm.

   Uses the cockpit's panel primitive and control tones so moderation looks
   like the rest of Overture rather than a bolt-on. The only thing allowed
   to shout is drift: a banned player who can still join somewhere.
   ════════════════════════════════════════════════════════════════════════ */

.ovt-bans { display: flex; flex-direction: column; gap: 1rem; }

.ovt-bans-muted { font-size: 0.78rem; color: var(--ovt-fg-dim); padding: 0.3rem 0; }
.ovt-bans-ok { font-size: 0.8rem; color: var(--ovt-green-soft); }

.ovt-bans-note {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--ovt-fg-dim);
}

/* ─── ban form ───────────────────────────────────────────────────────── */

.ovt-bans-form {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) minmax(7rem, auto) auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 820px) {
    .ovt-bans-form { grid-template-columns: minmax(0, 1fr); }
}

.ovt-bans-name,
.ovt-bans-reason,
.ovt-bans-dur {
    min-width: 0;
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--ovt-hairline);
    border-radius: 3px;
    background: var(--ovt-bg-deeper, #06080a);
    color: var(--ovt-fg);
    font-size: 0.78rem;
}

.ovt-bans-name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}

.ovt-bans-name:focus,
.ovt-bans-reason:focus,
.ovt-bans-dur:focus { outline: none; border-color: var(--ovt-red); }

/* ─── drift ──────────────────────────────────────────────────────────── */

.ovt-bans-drift {
    margin-top: 0.5rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--ovt-hairline);
    border-left: 2px solid var(--ovt-amber);
    border-radius: 0 3px 3px 0;
    background: rgba(251, 191, 36, 0.04);
}

/* a banned player who can still get in: the whole reason this page exists */
.ovt-bans-drift.is-bad {
    border-left-color: var(--ovt-red);
    background: rgba(248, 113, 113, 0.05);
}

.ovt-bans-drift-head {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ovt-amber);
    margin-bottom: 0.4rem;
}

.ovt-bans-drift.is-bad .ovt-bans-drift-head { color: var(--ovt-red); }

.ovt-bans-driftrow {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    font-size: 0.74rem;
    padding: 0.12rem 0;
}

.ovt-bans-driftrow .who {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--ovt-fg);
    min-width: 9rem;
}

.ovt-bans-driftrow .where { color: var(--ovt-fg-dim); }

/* ─── the list ───────────────────────────────────────────────────────── */

.ovt-bans-count {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--ovt-fg-dim);
}

.ovt-bans-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--ovt-fg-dim);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.ovt-bans-toggle input { accent-color: var(--ovt-green); }

.ovt-bans-row {
    display: grid;
    grid-template-columns:
        minmax(0, 12rem)   /* player */
        minmax(0, 1fr)     /* reason */
        minmax(0, 8rem)    /* by     */
        6rem               /* when   */
        auto;              /* action */
    align-items: center;
    gap: 0 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ovt-hairline);
    font-size: 0.76rem;
}

.ovt-bans-row:last-child { border-bottom: none; }
.ovt-bans-row.is-lifted { opacity: 0.45; }

.ovt-bans-colhead {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ovt-fg-dim);
}

.ovt-bans-who {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--ovt-fg);
}

.ovt-bans-tag {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.08rem 0.3rem;
    border: 1px solid var(--ovt-hairline);
    border-radius: 2px;
    color: var(--ovt-fg-dim);
    white-space: nowrap;
}

.ovt-bans-tag.is-temp { border-color: rgba(251, 191, 36, 0.4); color: var(--ovt-amber); }

.ovt-bans-reasoncell,
.ovt-bans-by {
    min-width: 0;
    color: var(--ovt-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ovt-bans-when {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    color: var(--ovt-fg-dim);
    white-space: nowrap;
}

.ovt-bans-act { display: flex; justify-content: flex-end; }

@media (max-width: 900px) {
    .ovt-bans-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.2rem 0.6rem;
    }
    .ovt-bans-reasoncell { grid-column: 1 / -1; white-space: normal; }
    .ovt-bans-by, .ovt-bans-when { font-size: 0.64rem; }
    .ovt-bans-colhead { display: none; }
}
