/* =====================================================
   Live Match Plugin — Public Styles (dark theme)
   ===================================================== */

.lm-match-container {
    --lm-bg:         #1a1a2e;
    --lm-bg-card:    #16213e;
    --lm-accent:     #e94560;
    --lm-text:       #eaeaea;
    --lm-text-muted: #a0a0b0;
    --lm-border:     rgba(255, 255, 255, 0.07);

    background:  var(--lm-bg);
    color:       var(--lm-text);
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    max-width:   700px;
    margin:      1rem auto;
    border-radius: 8px;
    overflow:    hidden;
    box-shadow:  0 4px 24px rgba(0, 0, 0, .5);
}

/* ---------- Header ---------- */

.lm-header {
    background: var(--lm-bg-card);
    padding:    1.5rem 1rem 1.2rem;
    text-align: center;
}

.lm-teams {
    display:        flex;
    align-items:    center;
    justify-content: space-between;
    gap:            1rem;
}

/* ---------- Team ---------- */

.lm-team {
    flex:        1;
    text-align:  center;
}

.lm-team-logo {
    width:        64px;
    height:       64px;
    object-fit:   contain;
    display:      block;
    margin:       0 auto .5rem;
}

.lm-team-name {
    font-size:   1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- Score block ---------- */

.lm-score-block {
    flex:       0 0 auto;
    text-align: center;
    padding:    0 .5rem;
}

.lm-score {
    font-size:   3rem;
    font-weight: 700;
    color:       var(--lm-accent);
    line-height: 1;
    letter-spacing: 2px;
}

/* ---------- Clock ---------- */

.lm-clock-row {
    margin-top: .3rem;
}

.lm-clock {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lm-text-muted);
    letter-spacing: 1px;
}

.lm-clock--live {
    color: var(--lm-accent);
}

/* ---------- Status badge ---------- */

.lm-status-badge {
    display:       inline-block;
    padding:       .2rem .7rem;
    border-radius: 4px;
    font-size:     .72rem;
    font-weight:   700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top:    .5rem;
}

.lm-status-badge--live {
    background: var(--lm-accent);
    color:      #fff;
    animation:  lm-pulse 1.5s ease-in-out infinite;
}

.lm-status-badge--upcoming {
    background: #1a4a8a;
    color:      #a8c8ff;
}

.lm-status-badge--finished {
    background: #2a2a3e;
    color:      var(--lm-text-muted);
}

@keyframes lm-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ---------- Meta (data, miejsce) ---------- */

.lm-meta {
    font-size:   .78rem;
    color:       var(--lm-text-muted);
    margin-top:  .8rem;
}

.lm-meta-sep {
    margin: 0 .3rem;
}

/* ---------- Timeline ---------- */

.lm-timeline {
    list-style: none;
    margin:     0;
    padding:    0;
    background: var(--lm-bg);
}

.lm-event {
    display:     flex;
    align-items: center;
    gap:         .8rem;
    padding:     .75rem 1rem;
    border-bottom: 1px solid var(--lm-border);
    font-size:   .9rem;
    transition:  background .15s;
}

.lm-event:last-child {
    border-bottom: none;
}

.lm-event:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lm-event-icon {
    font-size: 1.15rem;
    flex:      0 0 auto;
}

.lm-event-minute {
    flex:        0 0 44px;
    font-weight: 700;
    color:       var(--lm-accent);
    font-size:   .85rem;
    text-align:  right;
}

.lm-event-text {
    flex:  1;
    color: var(--lm-text);
}

.lm-no-events {
    padding:    2rem 1rem;
    text-align: center;
    color:      var(--lm-text-muted);
    font-size:  .9rem;
    list-style: none;
}

/* ---------- Archive ---------- */

.lm-archive {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap:                   1rem;
    padding:               .5rem 0;
}

.lm-archive-card {
    background:      #16213e;
    color:           #eaeaea;
    border-radius:   8px;
    padding:         1rem .8rem;
    text-decoration: none;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             .5rem;
    transition:      background .2s, transform .15s;
    box-shadow:      0 2px 8px rgba(0, 0, 0, .3);
}

.lm-archive-card:hover {
    background: #1e2f5e;
    transform:  translateY(-2px);
}

.lm-archive-team {
    flex:        1;
    text-align:  center;
    font-size:   .82rem;
    font-weight: 600;
}

.lm-archive-logo {
    width:       40px;
    height:      40px;
    object-fit:  contain;
    display:     block;
    margin:      0 auto .3rem;
}

.lm-archive-score {
    font-size:   1.5rem;
    font-weight: 700;
    color:       #e94560;
    text-align:  center;
    min-width:   60px;
    flex:        0 0 auto;
}

.lm-archive-empty {
    color:       #a0a0b0;
    font-style:  italic;
    padding:     1rem 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
    .lm-teams {
        flex-direction: column;
        gap:            .5rem;
    }

    .lm-score {
        font-size: 2.2rem;
    }

    .lm-team-logo {
        width:  48px;
        height: 48px;
    }

    .lm-archive {
        grid-template-columns: 1fr;
    }

    .lm-event {
        padding: .6rem .7rem;
        font-size: .85rem;
    }
}
