/* [BEERLEAGUE] Servers Status module - v1.0.15
   Compact equal-height top-row tile layout with integrated carousel controls and collapsible player list. */
.blsrv-status-module {
    --blsrv-bg: rgba(1, 18, 12, .98);
    --blsrv-bg-2: rgba(4, 55, 35, .96);
    --blsrv-bg-soft: rgba(255, 255, 255, .07);
    --blsrv-border: rgba(0, 232, 154, .46);
    --blsrv-border-soft: rgba(255, 255, 255, .13);
    --blsrv-green: #00dc9a;
    --blsrv-green-dark: #007b5e;
    --blsrv-orange: #ffb000;
    --blsrv-red: #d12c43;
    --blsrv-text: #f8fafc;
    --blsrv-muted: rgba(248, 250, 252, .76);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--blsrv-text) !important;
    font-size: 12px;
    line-height: 1.25;
    container-type: inline-size;
}
.blsrv-status-module,
.blsrv-status-module * { box-sizing: border-box; }
.blsrv-status-module a,
.blsrv-status-module button,
.blsrv-status-module span,
.blsrv-status-module div,
.blsrv-status-module p,
.blsrv-status-module strong,
.blsrv-status-module em,
.blsrv-status-module b { font-family: inherit; }
.blsrv-status-module-shell {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}
.blsrv-status-row {
    width: min(96vw, 1450px) !important;
    margin: 0 auto 12px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}
.blsrv-status-row > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}
.blsrv-status-module-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 5px;
    padding: 0 2px;
}
.blsrv-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--blsrv-green);
    box-shadow: 0 0 12px rgba(0, 220, 154, .88);
}
.blsrv-status-heading {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e9f5ee !important;
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
}
.blsrv-status-count {
    margin-left: auto;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(255, 176, 0, .42);
    background: rgba(255, 176, 0, .14);
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
}
.blsrv-status-slider,
.blsrv-status-slide { min-width: 0; width: 100%; overflow: visible; }
.blsrv-status-slide[hidden] { display: none !important; }
.blsrv-status-card {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    border: 1px solid var(--blsrv-border);
    border-left: 4px solid var(--blsrv-orange);
    border-radius: 12px;
    background:
        radial-gradient(circle at top left, rgba(0, 220, 154, .16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 176, 0, .08), transparent 32%),
        linear-gradient(135deg, var(--blsrv-bg), var(--blsrv-bg-2));
    color: var(--blsrv-text) !important;
    padding: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}
.blsrv-status-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, var(--blsrv-orange), var(--blsrv-green));
}
.blsrv-status-card.is-offline {
    --blsrv-border: rgba(209, 44, 67, .50);
    border-left-color: var(--blsrv-red);
    background:
        radial-gradient(circle at top left, rgba(209, 44, 67, .18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 176, 0, .08), transparent 32%),
        linear-gradient(135deg, rgba(27, 6, 11, .98), rgba(46, 11, 18, .97));
}
.blsrv-status-card.is-offline::before { background: linear-gradient(90deg, var(--blsrv-red), var(--blsrv-orange)); }
.blsrv-status-statusline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 0;
    margin-bottom: 8px;
}
.blsrv-status-state {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.blsrv-status-kicker {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--blsrv-orange) !important;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .10em;
    line-height: 1;
    text-transform: uppercase;
}
.blsrv-status-pill {
    margin-left: auto;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85) !important;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    padding: 3px 7px;
}
.blsrv-status-card.is-online .blsrv-status-pill {
    border-color: rgba(0, 220, 154, .60);
    background: rgba(0, 220, 154, .16);
    color: #a8ffe5 !important;
}
.blsrv-status-card.is-offline .blsrv-status-pill {
    border-color: rgba(209, 44, 67, .58);
    background: rgba(209, 44, 67, .20);
    color: #ffd2d8 !important;
}
.blsrv-status-address {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    color: var(--blsrv-muted) !important;
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.blsrv-status-address span { color: rgba(255, 255, 255, .84) !important; }
.blsrv-status-address em {
    color: rgba(255, 176, 0, .95) !important;
    font-style: normal;
}
.blsrv-status-tile {
    display: grid;
    grid-template-columns: minmax(88px, 108px) minmax(122px, .8fr) minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
    min-width: 0;
}
.blsrv-status-mapbox {
    position: relative;
    min-width: 0;
    height: 86px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 176, 0, .18), transparent 34%),
        radial-gradient(circle at 70% 75%, rgba(0, 220, 154, .18), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.22));
}
.blsrv-status-mapbox.is-muted {
    background:
        radial-gradient(circle at 25% 20%, rgba(209, 44, 67, .20), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.28));
}
.blsrv-status-mapbox img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blsrv-status-map-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px 8px 7px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.88));
}
.blsrv-status-mapbox.no-image .blsrv-status-map-overlay {
    position: static;
    height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    padding: 8px;
}
.blsrv-status-map-overlay span,
.blsrv-status-stat span {
    display: block;
    color: var(--blsrv-muted) !important;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}
.blsrv-status-map-overlay strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 2px #000;
}
.blsrv-status-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}
.blsrv-status-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.blsrv-status-stat {
    min-width: 0;
    border: 1px solid var(--blsrv-border-soft);
    border-radius: 9px;
    background: var(--blsrv-bg-soft);
    padding: 7px 8px;
}
.blsrv-status-stat strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.blsrv-status-player-bar {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(0, 0, 0, .30);
}
.blsrv-status-player-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blsrv-green), var(--blsrv-orange));
}
.blsrv-status-error,
.blsrv-status-empty {
    display: grid;
    gap: 3px;
    border: 1px solid rgba(209, 44, 67, .45);
    border-radius: 9px;
    background: rgba(209, 44, 67, .14);
    color: #ffd7dc !important;
    padding: 7px 8px;
}
.blsrv-status-error strong,
.blsrv-status-empty strong {
    color: #fff !important;
    font-size: 11px;
    font-weight: 950;
}
.blsrv-status-error span,
.blsrv-status-empty span {
    color: #ffd7dc !important;
    font-size: 10px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.blsrv-status-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}
.blsrv-status-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 232, 154, .58);
    border-radius: 8px;
    background: linear-gradient(180deg, #00b885, #007a5d);
    color: #fff !important;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .05em;
    padding: 7px 11px;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px rgba(0,0,0,.18);
}
.blsrv-status-connect:hover,
.blsrv-status-connect:focus {
    color: #fff !important;
    filter: brightness(1.12);
    text-decoration: none !important;
}
.blsrv-status-server-id,
.blsrv-status-refresh {
    color: var(--blsrv-muted) !important;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}
.blsrv-status-server-id {
    border: 1px solid rgba(255, 176, 0, .34);
    border-radius: 999px;
    background: rgba(255, 176, 0, .10);
    color: rgba(255, 176, 0, .98) !important;
    padding: 4px 7px;
}
.blsrv-status-refresh { margin-left: auto; }
.blsrv-status-players {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(0, 0, 0, .13);
    padding: 8px;
}
.blsrv-status-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #fff !important;
    font-size: 11px;
    font-weight: 950;
    margin-bottom: 6px;
}
.blsrv-status-section-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff !important;
}
.blsrv-status-section-title b {
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid rgba(0, 220, 154, .42);
    border-radius: 999px;
    background: rgba(0, 220, 154, .11);
    color: #a8ffe5 !important;
    font-size: 9px;
    font-weight: 950;
    padding: 3px 6px;
}
.blsrv-status-players p,
.blsrv-status-more {
    margin: 0;
    color: var(--blsrv-muted) !important;
    font-size: 10px;
    line-height: 1.25;
}
.blsrv-status-player-list {
    display: grid;
    gap: 4px;
    max-height: 72px;
    overflow: auto;
    padding-right: 2px;
}
.blsrv-status-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    padding: 5px 6px;
}
.blsrv-status-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
}
.blsrv-status-player-score {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .72) !important;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.blsrv-status-more { margin-top: 4px; text-align: right; }
.blsrv-status-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.blsrv-status-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border: 1px solid rgba(255, 176, 0, .44);
    border-radius: 8px;
    background: rgba(255, 176, 0, .13);
    color: #ffcf64 !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    padding: 5px 9px;
    text-transform: uppercase;
}
.blsrv-status-nav-btn.is-main {
    flex: 1 1 auto;
    max-width: 145px;
    font-size: 9px;
    letter-spacing: .06em;
}
.blsrv-status-nav-btn:hover,
.blsrv-status-nav-btn:focus {
    background: rgba(255, 176, 0, .22);
    color: #fff !important;
}
@container (max-width: 470px) {
    .blsrv-status-tile { grid-template-columns: minmax(86px, 110px) minmax(0, 1fr); }
    .blsrv-status-players { grid-column: 1 / -1; }
}
@container (max-width: 340px) {
    .blsrv-status-tile { grid-template-columns: 1fr; }
    .blsrv-status-mapbox { height: 98px; }
}
@media (max-width: 1120px) {
    .blsrv-status-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)) !important; }
}
@media (max-width: 520px) {
    .blsrv-status-card { padding: 9px; }
    .blsrv-status-tile { grid-template-columns: 1fr; }
    .blsrv-status-mapbox { height: 98px; }
    .blsrv-status-player-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .blsrv-status-player-score { white-space: normal; }
}


/* v1.0.11 - tighter top tiles, integrated carousel controls, collapsible players. */
.blsrv-status-module-v1011 .blsrv-status-card {
    padding: 9px 10px 8px;
}
.blsrv-status-module-v1011 .blsrv-status-statusline {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 7px 10px;
    margin-bottom: 7px;
}
.blsrv-status-module-v1011 .blsrv-status-address {
    justify-content: flex-end;
    text-align: right;
    font-size: 9.5px;
}
.blsrv-status-module-v1011 .blsrv-status-tile {
    grid-template-columns: minmax(84px, 104px) minmax(128px, .92fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}
.blsrv-status-module-v1011 .blsrv-status-mapbox { height: 78px; }
.blsrv-status-module-v1011 .blsrv-status-mapbox.no-image .blsrv-status-map-overlay { height: 78px; }
.blsrv-status-module-v1011 .blsrv-status-details { gap: 6px; }
.blsrv-status-module-v1011 .blsrv-status-stat { padding: 6px 7px; }
.blsrv-status-module-v1011 .blsrv-status-stat strong { font-size: 11px; }
.blsrv-status-module-v1011 .blsrv-status-actions {
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}
.blsrv-status-module-v1011 .blsrv-status-connect {
    min-height: 24px;
    padding: 6px 9px;
    font-size: 9px;
}
.blsrv-status-module-v1011 .blsrv-status-refresh {
    margin-left: 0;
    white-space: nowrap;
}
.blsrv-status-nav-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
}
.blsrv-status-module-v1011 .blsrv-status-nav-btn {
    min-width: 24px;
    min-height: 22px;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 11px;
}
.blsrv-status-module-v1011 .blsrv-status-nav-btn.is-main {
    flex: 0 0 auto;
    max-width: none;
    min-width: 48px;
    font-size: 8px;
    letter-spacing: .05em;
}
.blsrv-status-module-v1011 .blsrv-status-players {
    padding: 0;
    overflow: hidden;
}
.blsrv-status-module-v1011 details.blsrv-status-players > summary {
    list-style: none;
    cursor: pointer;
    margin: 0;
    padding: 7px 8px;
    border-radius: 9px;
    user-select: none;
}
.blsrv-status-module-v1011 details.blsrv-status-players > summary::-webkit-details-marker { display: none; }
.blsrv-status-module-v1011 details.blsrv-status-players > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 220, 154, .42);
    color: #a8ffe5;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}
.blsrv-status-module-v1011 details.blsrv-status-players[open] > summary::before { content: "–"; }
.blsrv-status-player-panel {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 7px 8px 8px;
}
.blsrv-status-module-v1011 .blsrv-status-player-list {
    max-height: 110px;
}
.blsrv-status-module-v1011 .blsrv-status-players p,
.blsrv-status-module-v1011 .blsrv-status-more {
    font-size: 9.5px;
}
.blsrv-status-module-v1011 .blsrv-status-nav { display: none !important; }
@container (max-width: 470px) {
    .blsrv-status-module-v1011 .blsrv-status-statusline { grid-template-columns: 1fr; }
    .blsrv-status-module-v1011 .blsrv-status-address { justify-content: flex-start; text-align: left; }
    .blsrv-status-module-v1011 .blsrv-status-tile { grid-template-columns: minmax(86px, 110px) minmax(0, 1fr); }
    .blsrv-status-module-v1011 .blsrv-status-players { grid-column: 1 / -1; }
}
@container (max-width: 340px) {
    .blsrv-status-module-v1011 .blsrv-status-tile { grid-template-columns: 1fr; }
    .blsrv-status-module-v1011 .blsrv-status-mapbox { height: 92px; }
}



/* v1.0.12 - tighter top tiles, integrated carousel controls, collapsible players. */
.blsrv-status-module-v1012 .blsrv-status-card {
    padding: 9px 10px 8px;
}
.blsrv-status-module-v1012 .blsrv-status-statusline {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 7px 10px;
    margin-bottom: 7px;
}
.blsrv-status-module-v1012 .blsrv-status-address {
    justify-content: flex-end;
    text-align: right;
    font-size: 9.5px;
}
.blsrv-status-module-v1012 .blsrv-status-tile {
    grid-template-columns: minmax(84px, 104px) minmax(128px, .92fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}
.blsrv-status-module-v1012 .blsrv-status-mapbox { height: 78px; }
.blsrv-status-module-v1012 .blsrv-status-mapbox.no-image .blsrv-status-map-overlay { height: 78px; }
.blsrv-status-module-v1012 .blsrv-status-details { gap: 6px; }
.blsrv-status-module-v1012 .blsrv-status-stat { padding: 6px 7px; }
.blsrv-status-module-v1012 .blsrv-status-stat strong { font-size: 11px; }
.blsrv-status-module-v1012 .blsrv-status-actions {
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}
.blsrv-status-module-v1012 .blsrv-status-connect {
    min-height: 24px;
    padding: 6px 9px;
    font-size: 9px;
}
.blsrv-status-module-v1012 .blsrv-status-refresh {
    margin-left: 0;
    white-space: nowrap;
}
.blsrv-status-nav-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
}
.blsrv-status-module-v1012 .blsrv-status-nav-btn {
    min-width: 24px;
    min-height: 22px;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 11px;
}
.blsrv-status-module-v1012 .blsrv-status-nav-btn.is-main {
    flex: 0 0 auto;
    max-width: none;
    min-width: 48px;
    font-size: 8px;
    letter-spacing: .05em;
}
.blsrv-status-module-v1012 .blsrv-status-players {
    padding: 0;
    overflow: hidden;
}
.blsrv-status-module-v1012 details.blsrv-status-players > summary {
    list-style: none;
    cursor: pointer;
    margin: 0;
    padding: 7px 8px;
    border-radius: 9px;
    user-select: none;
}
.blsrv-status-module-v1012 details.blsrv-status-players > summary::-webkit-details-marker { display: none; }
.blsrv-status-module-v1012 details.blsrv-status-players > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 220, 154, .42);
    color: #a8ffe5;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}
.blsrv-status-module-v1012 details.blsrv-status-players[open] > summary::before { content: "–"; }
.blsrv-status-player-panel {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 7px 8px 8px;
}
.blsrv-status-module-v1012 .blsrv-status-player-list {
    max-height: 110px;
}
.blsrv-status-module-v1012 .blsrv-status-players p,
.blsrv-status-module-v1012 .blsrv-status-more {
    font-size: 9.5px;
}
.blsrv-status-module-v1012 .blsrv-status-nav { display: none !important; }
@container (max-width: 470px) {
    .blsrv-status-module-v1012 .blsrv-status-statusline { grid-template-columns: 1fr; }
    .blsrv-status-module-v1012 .blsrv-status-address { justify-content: flex-start; text-align: left; }
    .blsrv-status-module-v1012 .blsrv-status-tile { grid-template-columns: minmax(86px, 110px) minmax(0, 1fr); }
    .blsrv-status-module-v1012 .blsrv-status-players { grid-column: 1 / -1; }
}
@container (max-width: 340px) {
    .blsrv-status-module-v1012 .blsrv-status-tile { grid-template-columns: 1fr; }
    .blsrv-status-module-v1012 .blsrv-status-mapbox { height: 92px; }
}


/* v1.0.12 - equal-height top server tiles.
   Joomla may render each module with a different amount of content depending on
   cycling controls or selected server count. These rules make all three top
   server-status cards stretch to the tallest card in the row without clipping. */
.blsrv-status-row {
    align-items: stretch !important;
}
.blsrv-status-row > *,
.blsrv-status-row .blsrv-status-module-shell,
.blsrv-status-row .moduletable,
.blsrv-status-row .module,
.blsrv-status-row .card,
.blsrv-status-row .well,
.bl-server-status-row .bl-server-status-slot,
.bl-server-status-row > *,
.bl-server-status-row .blsrv-status-module-shell,
.bl-server-status-row .moduletable,
.bl-server-status-row .module,
.bl-server-status-row .card,
.bl-server-status-row .well {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
}
.blsrv-status-row .blsrv-status-module,
.blsrv-status-row .blsrv-status-slider,
.blsrv-status-row .blsrv-status-slide,
.bl-server-status-row .blsrv-status-module,
.bl-server-status-row .blsrv-status-slider,
.bl-server-status-row .blsrv-status-slide {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
}
.blsrv-status-row .blsrv-status-card,
.bl-server-status-row .blsrv-status-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 166px !important;
    overflow: visible !important;
}
.blsrv-status-row .blsrv-status-tile,
.bl-server-status-row .blsrv-status-tile {
    flex: 1 1 auto !important;
    align-items: stretch !important;
}
.blsrv-status-row .blsrv-status-details,
.bl-server-status-row .blsrv-status-details,
.blsrv-status-row .blsrv-status-players,
.bl-server-status-row .blsrv-status-players {
    height: 100%;
}
.blsrv-status-row .blsrv-status-actions,
.bl-server-status-row .blsrv-status-actions {
    min-height: 27px;
}
.blsrv-status-row .blsrv-status-nav-inline,
.bl-server-status-row .blsrv-status-nav-inline {
    flex: 0 0 auto;
}
@container (max-width: 470px) {
    .blsrv-status-row .blsrv-status-card,
    .bl-server-status-row .blsrv-status-card {
        height: auto !important;
        min-height: 0 !important;
    }
}


/* v1.0.13 - repaired carousel visibility and compact status metadata row. */
.blsrv-status-module-v1013 .blsrv-status-slide[hidden],
.blsrv-status-row .blsrv-status-module-v1013 .blsrv-status-slide[hidden],
.bl-server-status-row .blsrv-status-module-v1013 .blsrv-status-slide[hidden],
.blsrv-status-row .blsrv-status-module-v1013 article[hidden],
.bl-server-status-row .blsrv-status-module-v1013 article[hidden] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden !important;
}
.blsrv-status-module-v1013 .blsrv-status-slide:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}
.blsrv-status-module-v1013 .blsrv-status-card {
    padding: 9px 10px 8px;
    min-height: 148px !important;
}
.blsrv-status-module-v1013 .blsrv-status-statusline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 7px;
}
.blsrv-status-module-v1013 .blsrv-status-meta-left,
.blsrv-status-module-v1013 .blsrv-status-meta-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.blsrv-status-module-v1013 .blsrv-status-meta-right {
    justify-content: flex-end;
}
.blsrv-status-module-v1013 .blsrv-status-server-id {
    flex: 0 0 auto;
    padding: 3px 7px;
    font-size: 9px;
}
.blsrv-status-module-v1013 .blsrv-status-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.84) !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.blsrv-status-module-v1013 .blsrv-status-address span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.blsrv-status-module-v1013 .blsrv-status-refresh {
    margin-left: 0;
    white-space: nowrap;
    color: rgba(255,255,255,.72) !important;
    font-size: 9px;
    font-weight: 900;
}
.blsrv-status-module-v1013 .blsrv-status-pill {
    margin-left: 0;
}
.blsrv-status-module-v1013 .blsrv-status-tile {
    display: grid;
    grid-template-columns: minmax(86px, 108px) minmax(170px, .85fr) minmax(160px, 1fr);
    grid-template-rows: auto auto;
    gap: 7px 8px;
    align-items: stretch;
}
.blsrv-status-module-v1013 .blsrv-status-mapbox {
    height: 78px;
}
.blsrv-status-module-v1013 .blsrv-status-mapbox.no-image .blsrv-status-map-overlay { height: 78px; }
.blsrv-status-module-v1013 .blsrv-status-details { gap: 6px; }
.blsrv-status-module-v1013 .blsrv-status-stat { padding: 6px 7px; }
.blsrv-status-module-v1013 .blsrv-status-stat strong { font-size: 11px; }
.blsrv-status-module-v1013 .blsrv-status-error {
    padding: 6px 7px;
    max-height: 58px;
    overflow: auto;
}
.blsrv-status-module-v1013 .blsrv-status-actions {
    grid-column: 2 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin-top: 0;
    min-width: 0;
    align-self: end;
}
.blsrv-status-module-v1013 .blsrv-status-connect {
    min-height: 24px;
    padding: 6px 11px;
    font-size: 9px;
    flex: 0 0 auto;
}
.blsrv-status-module-v1013 .blsrv-status-nav-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
    min-width: 0;
    flex: 0 0 auto;
}
.blsrv-status-module-v1013 .blsrv-status-nav-btn {
    min-width: 24px;
    min-height: 22px;
    border-radius: 7px;
    padding: 4px 7px;
    font-size: 11px;
}
.blsrv-status-module-v1013 .blsrv-status-nav-btn.is-main {
    flex: 0 0 auto;
    max-width: none;
    min-width: 48px;
    font-size: 8px;
    letter-spacing: .05em;
}
.blsrv-status-module-v1013 .blsrv-status-players {
    padding: 0;
    overflow: hidden;
}
.blsrv-status-module-v1013 details.blsrv-status-players > summary {
    list-style: none;
    cursor: pointer;
    margin: 0;
    padding: 7px 8px;
    border-radius: 9px;
    user-select: none;
}
.blsrv-status-module-v1013 details.blsrv-status-players > summary::-webkit-details-marker { display: none; }
.blsrv-status-module-v1013 details.blsrv-status-players > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 220, 154, .42);
    color: #a8ffe5;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}
.blsrv-status-module-v1013 details.blsrv-status-players[open] > summary::before { content: "–"; }
.blsrv-status-module-v1013 .blsrv-status-player-list { max-height: 110px; }
.blsrv-status-module-v1013 .blsrv-status-players p,
.blsrv-status-module-v1013 .blsrv-status-more { font-size: 9.5px; }
.blsrv-status-module-v1013 .blsrv-status-nav { display: none !important; }
@container (max-width: 470px) {
    .blsrv-status-module-v1013 .blsrv-status-statusline { grid-template-columns: 1fr; }
    .blsrv-status-module-v1013 .blsrv-status-meta-right { justify-content: flex-start; }
    .blsrv-status-module-v1013 .blsrv-status-tile { grid-template-columns: minmax(86px, 110px) minmax(0, 1fr); }
    .blsrv-status-module-v1013 .blsrv-status-players,
    .blsrv-status-module-v1013 .blsrv-status-actions { grid-column: 1 / -1; }
}
@container (max-width: 340px) {
    .blsrv-status-module-v1013 .blsrv-status-tile { grid-template-columns: 1fr; }
    .blsrv-status-module-v1013 .blsrv-status-mapbox { height: 92px; }
}


/* v1.0.14 - top metadata row and card actions layout cleanup.
   Keep server number/IP on the left, refresh/status on the top-right,
   and place carousel controls on the left side of the bottom action row
   while keeping Connect pinned to the far right. */
.blsrv-status-module-v1014 .blsrv-status-statusline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 7px !important;
}
.blsrv-status-module-v1014 .blsrv-status-meta-left,
.blsrv-status-module-v1014 .blsrv-status-meta-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}
.blsrv-status-module-v1014 .blsrv-status-meta-left {
    flex: 1 1 auto !important;
    overflow: hidden !important;
}
.blsrv-status-module-v1014 .blsrv-status-meta-right {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1014 .blsrv-status-address,
.blsrv-status-module-v1014 .blsrv-status-address span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1014 .blsrv-status-refresh {
    order: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: rgba(255,255,255,.78) !important;
}
.blsrv-status-module-v1014 .blsrv-status-pill {
    order: 2 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1014 .blsrv-status-tile {
    grid-template-columns: minmax(86px, 108px) minmax(170px, .85fr) minmax(160px, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: stretch !important;
}
.blsrv-status-module-v1014 .blsrv-status-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 1px !important;
    min-height: 26px !important;
    align-self: end !important;
}
.blsrv-status-module-v1014 .blsrv-status-nav-inline {
    order: 1 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}
.blsrv-status-module-v1014 .blsrv-status-connect {
    order: 2 !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
}
.blsrv-status-module-v1014 .blsrv-status-nav-btn.is-main {
    min-width: 52px !important;
}
@container (max-width: 470px) {
    .blsrv-status-module-v1014 .blsrv-status-statusline {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    .blsrv-status-module-v1014 .blsrv-status-meta-right {
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
    .blsrv-status-module-v1014 .blsrv-status-tile {
        grid-template-columns: minmax(86px, 110px) minmax(0, 1fr) !important;
    }
    .blsrv-status-module-v1014 .blsrv-status-players,
    .blsrv-status-module-v1014 .blsrv-status-actions {
        grid-column: 1 / -1 !important;
    }
}


/* v1.0.15 - force the compact top metadata row to stay on one line.
   The previous container query treated each top tile as narrow and stacked the
   refresh/status under the server IP. These rules keep server #/IP on the left
   and refresh/status on the top-right for the 3-across header tile layout. */
.blsrv-status-module-v1015 .blsrv-status-statusline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 7px !important;
}
.blsrv-status-module-v1015 .blsrv-status-meta-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1015 .blsrv-status-meta-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: max-content !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1015 .blsrv-status-address,
.blsrv-status-module-v1015 .blsrv-status-address span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1015 .blsrv-status-refresh {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: rgba(255,255,255,.78) !important;
    font-size: 9px !important;
}
.blsrv-status-module-v1015 .blsrv-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
.blsrv-status-module-v1015 .blsrv-status-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
}
.blsrv-status-module-v1015 .blsrv-status-nav-inline {
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 1 !important;
}
.blsrv-status-module-v1015 .blsrv-status-connect {
    margin-left: auto !important;
    order: 2 !important;
}
@container (max-width: 470px) {
    .blsrv-status-module-v1015 .blsrv-status-statusline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: 7px !important;
    }
    .blsrv-status-module-v1015 .blsrv-status-meta-right {
        justify-content: flex-end !important;
        margin-left: 0 !important;
    }
}
@container (max-width: 330px) {
    .blsrv-status-module-v1015 .blsrv-status-statusline {
        grid-template-columns: 1fr !important;
        row-gap: 4px !important;
    }
    .blsrv-status-module-v1015 .blsrv-status-meta-right {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
    }
}
