/**
 * assets/css/live_score.css
 * Live-Score-Widget - kompakte Sidebar-Liste
 */

/* Pulsierender Live-Punkt */
.live-dot {
    display:        inline-block;
    width:          10px;
    height:         10px;
    border-radius:  50%;
    background:     #e53935;
    margin-right:   6px;
    vertical-align: middle;
    animation:      live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.4; transform: scale(0.82); }
}

/* Mehrere Live-Spiele sauber untereinander */
.live-match-list {
    display:        flex;
    flex-direction: column;
    padding:        14px 16px 16px;
}

.live-match-card {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            10px;
    width:          100%;
    animation:      live-fade-in .18s ease;
}

.live-match-card + .live-match-card {
    margin-top:  14px;
    padding-top: 14px;
    border-top:  2px solid var(--border-color, #e9ecef);
}

@keyframes live-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Score-Zeile: Fahne | Zahl : Zahl | Fahne */
.live-score-row {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             10px;
    width:           100%;
}

/* Fahnen in der Score-Zeile */
.live-flag-score {
    font-size:  2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Score-Zahlen */
.live-score-num {
    font-size:   2.6rem;
    font-weight: 800;
    color:       var(--primary-blue, #1a2540);
    min-width:   44px;
    text-align:  center;
    line-height: 1;
    transition:  transform .22s ease, color .22s ease;
}

.live-score-num.score-changed {
    transform: scale(1.28);
    color:     #e53935;
}

.live-score-sep {
    font-size:   2.2rem;
    font-weight: 700;
    color:       var(--text-muted, #adb5bd);
    line-height: 1;
}

/* Status-Badge */
.live-status-row {
    display:         flex;
    justify-content: center;
    width:           100%;
}

.live-status-badge {
    display:        inline-block;
    padding:        3px 12px;
    border-radius:  12px;
    font-size:      0.72rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background:     rgba(229, 57, 53, 0.1);
    color:          #e53935;
    border:         1px solid rgba(229, 57, 53, 0.3);
}


@media (max-width: 576px) {
    .live-score-num  { font-size: 2.2rem; }
    .live-flag-score { font-size: 1.6rem; }
}

/* Anstehende Spiele in der Sidebar */
.sidebar-upcoming-card {
    overflow: hidden;
}

.sidebar-sameday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.sidebar-sameday-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
}

.sidebar-sameday-item.is-next {
    background: rgba(251, 191, 36, 0.12);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.sidebar-sameday-item.is-next .sidebar-sameday-teams {
    color: var(--primary-blue, #0f172a);
    font-weight: 800;
}


.sidebar-sameday-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    width: 100%;
    color: var(--primary-blue, #0f172a);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-sameday-team {
    width: 100%;
    min-width: 0;
}

.sidebar-sameday-team-home {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    justify-self: stretch;
    text-align: left;
}

.sidebar-sameday-team-away {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    column-gap: 8px;
    justify-self: stretch;
    text-align: right;
}

.sidebar-sameday-team-home .fi,
.sidebar-sameday-team-away .fi {
    width: 22px;
    text-align: center;
}

.sidebar-sameday-team-home span:last-child,
.sidebar-sameday-team-away span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-sameday-team-away .fi {
    order: 2;
}

.sidebar-sameday-team-away span:last-child {
    order: 1;
}

.sidebar-sameday-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    justify-self: center;
}

.sidebar-next-match {
    text-align: center;
}

.sidebar-next-label {
    margin-bottom: 8px;
    color: var(--text-muted, #64748b);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.sidebar-next-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--primary-blue, #0f172a);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

.sidebar-vs {
    color: var(--text-muted, #64748b);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-sameday-team .fi,
.sidebar-next-teams .fi {
    font-size: 1.15rem;
}

@media (max-width: 576px) {
    .sidebar-sameday-teams {
        grid-template-columns: 1fr auto 1fr;
        column-gap: 12px;
        font-size: .84rem;
    }

    .sidebar-sameday-team-home {
        grid-template-columns: 18px minmax(0, 1fr);
        column-gap: 6px;
    }

    .sidebar-sameday-team-away {
        grid-template-columns: minmax(0, 1fr) 18px;
        column-gap: 6px;
    }

    .sidebar-sameday-team-home .fi,
    .sidebar-sameday-team-away .fi {
        width: 18px;
    }

    .sidebar-sameday-vs {
        min-width: 24px;
    }
}
