
/**
 * /assets/css/pages/battlebit-live.css
 * BattleBit live scoreboard/dashboard styles only.
 * Shared hero, buttons, typography, sections and design tokens are global.
 */

.page-battlebit-live {
  --hero-min-height: 72vh;
  --hero-image-position: center;
  --hero-image-brightness: .40;
  --hero-image-saturation: .72;
  --hero-image-contrast: 1.10;
  --hero-accent-x: 30%;
  --hero-accent-y: 58%;
  --hero-accent-alpha: .18;
  --hero-lines-opacity: .28;
  --hero-mark-opacity: .04;

  --green: #58d68d;
  --amber: #f3c969;
  --blue: #67b7ff;
  --team-a: #67b7ff;
  --team-b: #ff746c;
  --border-strong: rgba(255,255,255,.14);
  --faint: rgba(255,255,255,.26);
}

.battlebit-live-pulse {
  animation: battlebit-live-pulse 1.7s infinite;
}

@keyframes battlebit-live-pulse {
  70% { box-shadow: 0 0 0 9px rgba(224,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,0,0,0); }
}

.live-page {
  width: min(calc(100% - 32px), 1540px);
  margin-inline: auto;
  padding: 28px 0 80px;
}

.server-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(189,0,0,.065), transparent 34%),
    #0f0f0f;
}

.server-selector-kicker {
  color: var(--red-bright);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.server-selector-title {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
}

.server-selector-text {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.65;
}

.server-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 9px;
}

.server-btn {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  background: rgba(255,255,255,.025);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.server-btn:hover {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.055);
}

.server-btn.active {
  border-color: var(--red);
  background: rgba(189,0,0,.16);
  box-shadow: inset 3px 0 0 var(--red-bright);
}

.server-btn-region {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.server-btn.active .server-btn-region {
  background: var(--red);
}

.server-btn-name {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}





        .match-overview {
            margin-top: 14px;
            border: 1px solid var(--border);
            background: #0f0f0f;
        }
        .match-overview-server {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 15px 18px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(120deg, rgba(189,0,0,.055), #101010 38%);
        }
        .match-overview-server-main {
            min-width: 0;
        }
        .match-overview-server-label {
            color: var(--faint);
            font-size: .50rem;
            font-weight: 800;
            letter-spacing: .13em;
            text-transform: uppercase;
        }
        .match-overview-server-name {
            margin-top: 5px;
            overflow: hidden;
            color: #fff;
            font-size: .88rem;
            font-weight: 750;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .live-state {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--green);
            font-size: .63rem;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .live-state::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 10px currentColor;
        }
        .live-state.offline {
            color: #ff7770;
        }
        .match-overview-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0,1fr));
            background: var(--border);
            gap: 1px;
        }
        .status-cell {
            min-width: 0;
            padding: 15px 17px;
            background: #0f0f0f;
        }
        .status-label {
            color: var(--faint);
            font-size: .50rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
        .status-value {
            margin-top: 6px;
            overflow: hidden;
            color: #fff;
            font-size: .86rem;
            font-weight: 750;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .status-value.online { color: var(--green); }
        .status-value.offline { color: #ff7770; }

        .dashboard-grid {
            display: grid;
            grid-template-columns: minmax(0,1fr) 390px;
            gap: 14px;
            margin-top: 14px;
            align-items: start;
        }
        .panel {
            border: 1px solid var(--border);
            background: var(--panel);
        }
        .panel-head {
            min-height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(120deg, rgba(189,0,0,.055), #101010 38%);
        }
        .panel-kicker {
            color: var(--red-bright);
            font-size: .52rem;
            font-weight: 800;
            letter-spacing: .15em;
            text-transform: uppercase;
        }
        .panel-title {
            margin-top: 4px;
            color: #fff;
            font-size: 1rem;
            font-weight: 800;
        }

        .score-summary {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 16px;
            padding: 20px;
            border-bottom: 1px solid var(--border);
            background: #0d0d0d;
        }
        .team-summary:last-child { text-align: right; }
        .team-label {
            color: var(--faint);
            font-size: .51rem;
            font-weight: 800;
            letter-spacing: .13em;
            text-transform: uppercase;
        }
        .team-name {
            color: #fff;
            font-size: 1rem;
            font-weight: 850;
        }
        .team-meta {
            margin-top: 5px;
            color: var(--muted);
            font-size: .66rem;
        }
        .score-main {
            min-width: 145px;
            text-align: center;
        }
        .score-tickets {
            color: #fff;
            font-size: 1.45rem;
            font-weight: 900;
            letter-spacing: -.04em;
        }
        .score-caption {
            margin-top: 2px;
            color: var(--faint);
            font-size: .49rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
        .round-countdown {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 6px;
            margin-top: 8px;
            padding-top: 7px;
            border-top: 1px solid rgba(255,255,255,.07);
        }
        .round-countdown-label {
            color: var(--faint);
            font-size: .47rem;
            font-weight: 800;
            letter-spacing: .1em;
            text-transform: uppercase;
        }
        .round-countdown-value {
            color: #fff;
            font-size: .78rem;
            font-weight: 850;
            letter-spacing: .02em;
            font-variant-numeric: tabular-nums;
        }

        .toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }
        .search-wrap {
            position: relative;
            flex: 1;
            max-width: 360px;
        }
        .search-wrap i {
            position: absolute;
            left: 13px;
            top: 50%;
            color: var(--faint);
            transform: translateY(-50%);
        }
        .search-input,
        .sort-select,
        .team-select {
            height: 39px;
            border: 1px solid var(--border-strong);
            outline: none;
            color: rgba(255,255,255,.72);
            background: #0b0b0b;
            font-size: .67rem;
        }
        .search-input {
            width: 100%;
            padding: 0 12px 0 36px;
        }
        .sort-select,
        .team-select { padding: 0 10px; }
        .search-input:focus,
        .sort-select:focus,
        .team-select:focus { border-color: rgba(189,0,0,.75); }

        .table-wrap { overflow-x: auto; }
        .score-table {
            width: 100%;
            min-width: 930px;
            border-collapse: collapse;
        }
        .score-table th {
            padding: 11px 13px;
            border-bottom: 1px solid var(--border);
            color: var(--faint);
            background: #0c0c0c;
            font-size: .49rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-align: left;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .score-table th.num,
        .score-table td.num { text-align: right; }
        .score-table td {
            padding: 11px 13px;
            border-bottom: 1px solid rgba(255,255,255,.045);
            color: rgba(255,255,255,.62);
            font-size: .69rem;
            white-space: nowrap;
        }
        .score-table tr:last-child td { border-bottom: 0; }
        .score-table tbody tr:hover td { background: rgba(255,255,255,.018); }
        .player-cell {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 190px;
        }
        .team-mark {
            width: 3px;
            height: 27px;
            flex: 0 0 3px;
            background: var(--faint);
        }
        .team-mark.team-a { background: var(--team-a); }
        .team-mark.team-b { background: var(--team-b); }
        .player-name {
            max-width: 240px;
            overflow: hidden;
            color: #fff;
            font-weight: 700;
            text-overflow: ellipsis;
        }
        .player-steam {
            margin-top: 2px;
            color: rgba(255,255,255,.22);
            font-size: .54rem;
        }
        .state-badge {
            display: inline-flex;
            align-items: center;
            min-height: 21px;
            padding: 0 7px;
            border: 1px solid var(--border-strong);
            color: rgba(255,255,255,.45);
            background: rgba(255,255,255,.02);
            font-size: .49rem;
            font-weight: 800;
            letter-spacing: .06em;
            text-transform: uppercase;
        }
        .state-badge.alive { color: var(--green); border-color: rgba(88,214,141,.22); }
        .state-badge.downed { color: var(--amber); border-color: rgba(243,201,105,.26); }
        .state-badge.dead { color: #ff7770; border-color: rgba(255,119,112,.24); }

        .live-sidebar {
            position: sticky;
            top: 16px;
            display: grid;
            gap: 14px;
        }
        .killfeed-list {
            height: 280px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,.14) transparent;
        }
        .killfeed-empty {
            padding: 38px 20px;
            color: var(--faint);
            font-size: .68rem;
            line-height: 1.65;
            text-align: center;
        }
        .killfeed-item {
            padding: 10px 13px;
            border-bottom: 1px solid rgba(255,255,255,.045);
        }
        .killfeed-item:last-child { border-bottom: 0; }
        .killfeed-line {
            color: rgba(255,255,255,.62);
            font-size: .62rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }
        .killfeed-player {
            color: #fff;
            font-weight: 800;
        }
        .killfeed-weapon {
            color: var(--red-bright);
            font-weight: 800;
        }
        .killfeed-headshot {
            color: rgba(255,255,255,.48);
            font-size: .54rem;
            font-weight: 700;
        }
        .killfeed-separator {
            color: rgba(255,255,255,.22);
            padding: 0 5px;
        }
        .killfeed-time {
            display: block;
            margin-top: 2px;
            color: rgba(255,255,255,.18);
            font-size: .46rem;
            text-align: right;
        }
        .chat-panel {
            position: static;
        }
        .chat-meta {
            color: var(--faint);
            font-size: .56rem;
        }
        .chat-list {
            height: 396px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,.14) transparent;
        }
        .chat-empty,
        .loading-state {
            padding: 42px 22px;
            color: var(--faint);
            font-size: .70rem;
            line-height: 1.65;
            text-align: center;
        }
        .chat-message {
            padding: 11px 14px;
            border-bottom: 1px solid rgba(255,255,255,.045);
        }
        .chat-message:last-child { border-bottom: 0; }
        .chat-line {
            color: rgba(255,255,255,.66);
            font-size: .66rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }
        .chat-name {
            color: #fff;
            font-weight: 800;
        }
        .chat-separator {
            color: rgba(255,255,255,.34);
            font-weight: 700;
        }
        .chat-meta-line {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 3px;
            color: rgba(255,255,255,.28);
            font-size: .49rem;
            font-weight: 700;
            letter-spacing: .035em;
        }
        .chat-meta-line .chat-context {
            text-transform: uppercase;
        }
        .chat-time {
            margin-left: auto;
            color: rgba(255,255,255,.18);
            font-size: .47rem;
            font-weight: 500;
            letter-spacing: 0;
        }

        .offline-overlay {
            display: none;
            padding: 32px 22px;
            border-bottom: 1px solid var(--border);
            color: rgba(255,255,255,.45);
            background: rgba(189,0,0,.055);
            font-size: .70rem;
            text-align: center;
        }
        .offline-overlay.show { display: block; }

        .footer-note {
            margin-top: 14px;
            color: rgba(255,255,255,.25);
            font-size: .58rem;
            line-height: 1.6;
            text-align: right;
        }

        @media (max-width: 1250px) {

            .dashboard-grid { grid-template-columns: 1fr 340px; }
        }
        @media (max-width: 991.98px) {
            .dashboard-grid { grid-template-columns: 1fr; }

            .live-sidebar { position: static; }
            .chat-list { height: 420px; }
            .killfeed-list { height: 300px; }
        }
        @media (max-width: 767.98px) {
            .live-page { width: min(calc(100% - 20px), var(--container)); }

            .score-summary { grid-template-columns: 1fr 76px 1fr; gap: 8px; padding: 16px 13px; }
            .toolbar { align-items: stretch; flex-direction: column; }
            .search-wrap { max-width: none; }
            .sort-select { width: 100%; }
        }
        @media (max-width: 480px) {


            .match-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
            .match-overview-server { align-items: flex-start; flex-direction: column; }
            .status-cell { padding: 14px; }
        }


@media (max-width: 991.98px) {
  .server-selector {
    grid-template-columns: 1fr;
  }

  .server-switcher {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 767.98px) {
  .live-page {
    width: min(calc(100% - 20px), 1540px);
    padding-top: 20px;
  }

  .server-selector {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .server-switcher {
    grid-template-columns: 1fr;
  }

  .server-btn {
    width: 100%;
  }
}
