/* public/css/live_matches.css — views/live_matches.php */

.lm-page { padding-top: 1.5rem; }

.lm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.lm-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.lm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f87171, transparent 70%);
    opacity: 0.7;
}

.lm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.lm-server-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-type-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 20px;
}
.lm-type-public { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.lm-type-veto   { background: rgba(0, 217, 255, 0.12); color: var(--accent-primary); }
.lm-type-rental { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.lm-tour {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.14);
    border-radius: 8px;
    padding: 8px 10px;
}
.lm-tour-badge {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 3px;
}
.lm-tour-badge:hover { text-decoration: underline; }
.lm-tour-teams { font-size: 0.8rem; color: var(--text-secondary); }
.lm-vs { color: var(--text-muted); font-size: 0.7rem; }

.lm-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lm-phase-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}
.lm-phase-live     { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.lm-phase-knife     { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.lm-phase-warmup    { background: rgba(0, 217, 255, 0.12);  color: var(--accent-primary); }
.lm-phase-halftime  { background: rgba(0, 217, 255, 0.12);  color: var(--accent-primary); }
.lm-phase-ended     { background: rgba(148, 163, 184, 0.14); color: #94a3b8; }
.lm-phase-idle      { background: rgba(148, 163, 184, 0.1);  color: var(--text-muted); }
.lm-phase-offline   { background: rgba(248, 113, 113, 0.1);  color: #f87171; }
.lm-phase-loading   { color: var(--text-muted); }

.lm-map {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.lm-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.lm-score-team {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lm-score-team-r { text-align: right; }
.lm-score-digits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
}
.lm-score-sep { color: var(--text-muted); margin: 0 4px; }

.lm-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.lm-meta-row i { margin-right: 4px; }

.lm-connect-row:empty { display: none; }
.lm-connect-btn {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}
.lm-connect-btn:hover { background: rgba(0, 217, 255, 0.16); }

.lm-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-muted);
}
.lm-empty i { font-size: 2.4rem; opacity: 0.3; margin-bottom: 0.75rem; display: block; }
.lm-empty h3 { color: var(--text-primary); margin: 0 0 6px; }
.lm-empty p { margin: 0; font-size: 0.88rem; }
.lm-empty a { color: var(--accent-primary); }
