/* ================================ */
/* Live Match Details Page Styles    */
/* Extends existing live-score.css   */
/* ================================ */

.ls-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.ls-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Tabs */
.lm-tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lm-tabs-container::-webkit-scrollbar {
    display: none;
}

.lm-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
    border: 1px solid transparent;
}

.lm-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lm-tab.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
}

/* Tab Content Areas */
.lm-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.lm-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cricket Live Hero (Mirrors Mobile) */
.lm-cricket-hero {
    background: linear-gradient(135deg, #112240, #0a192f);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lm-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lm-hero-team {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lm-hero-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Inline player avatar in table rows */
.lm-player-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lm-row-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}

.lm-row-avatar--placeholder {
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.lm-hero-inning {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(204, 255, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.lm-hero-score-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.lm-hero-score {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.lm-hero-over-box {
    text-align: right;
}

.lm-hero-over {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-muted);
}

.lm-hero-extras {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.lm-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-hero-rr {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

/* This Over Balls */
.lm-this-over {
    text-align: right;
}

.lm-this-over-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.lm-this-over-balls {
    display: flex;
    gap: 0.4rem;
}

.lm-ball {
    min-width: 28px;
    height: 28px;
    border-radius: 50px;
    padding: 0 6px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lm-ball.w {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.5);
}

.lm-ball.b {
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
    border-color: rgba(52, 199, 89, 0.5);
}

/* Context / Officials */
.lm-context {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.lm-context strong {
    color: var(--color-text-main);
}

/* Officials strip */
.lm-officials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-official-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lm-official-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lm-official-info {
    display: flex;
    flex-direction: column;
}

.lm-official-role {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.lm-official-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-white);
}

/* Tables */
.lm-table-container {
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.lm-table-header {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-col-header {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    text-align: center;
}

.lm-col-header.flex-3 {
    flex: 3;
    text-align: left;
}

.lm-table-row {
    display: flex;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
}

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

.lm-col-val {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lm-col-val.flex-3 {
    flex: 3;
    text-align: left;
    font-weight: 700;
    color: var(--color-white);
}

.lm-empty-table {
    padding: 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Partnership */
.lm-partnership {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid rgba(204, 255, 0, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.lm-partnership-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.lm-partnership-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-white);
}

/* FOW */
.lm-fow-section {
    padding: 1rem;
}

.lm-fow-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.lm-fow-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.lm-fow-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.lm-fow-score {
    font-weight: 800;
    color: var(--color-white);
    font-size: 0.85rem;
}

.lm-fow-over {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Totals Bar */
.lm-totals-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-totals-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-white);
}

.lm-totals-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.lm-totals-score {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-white);
    text-align: right;
}

/* Squads Grid */
.lm-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.lm-squad-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-squad-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    overflow: hidden;
}

.lm-squad-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-squad-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Winner Tab */
.lm-premium-winner-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Celebratory Hero Banner */
.lm-winner-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(255, 149, 0, 0.05) 100%), var(--color-surface);
    border-radius: 24px;
    border: 1px solid rgba(255, 214, 0, 0.3);
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 214, 0, 0.1);
}

.lm-winner-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,214,0,0.15) 0%, transparent 70%);
    animation: winnerGlowPulse 6s infinite alternate;
}

@keyframes winnerGlowPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.lm-trophy-showcase {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-trophy-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 214, 0, 0.5);
    pointer-events: none;
}

.lm-ring-1 {
    width: 140px;
    height: 140px;
    animation: ringRotate 10s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
}

.lm-ring-2 {
    width: 122px;
    height: 122px;
    animation: ringRotate 7s linear infinite reverse;
    border-bottom-color: transparent;
    border-right-color: transparent;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lm-trophy-icon {
    font-size: 4.5rem;
    color: #FFD600;
    filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.6));
    z-index: 2;
}

.lm-winner-avatar-wrapper {
    position: relative;
    width: 104px;
    height: 104px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-winner-avatar-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD600;
    box-shadow: 0 0 25px rgba(255, 214, 0, 0.6);
    background: #0f172a;
}

.lm-champion-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #FFD600;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border: 2px solid #0f172a;
    z-index: 6;
}

.lm-winner-subtitle {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
}

.lm-winner-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.lm-winner-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 214, 0, 0.15);
    border: 1px solid rgba(255, 214, 0, 0.4);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFD600;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
}

/* Broadcast Quality Scorecard Grid */
.lm-winner-scorecard-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background: var(--color-surface);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lm-winner-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.lm-team-winner {
    background: linear-gradient(180deg, rgba(255, 214, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 214, 0, 0.3);
    box-shadow: 0 10px 25px rgba(255, 214, 0, 0.05);
}

.lm-team-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lm-team-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-text-main);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.lm-team-name-lg {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    margin: 0;
}

.lm-team-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-team-winner .lm-team-score-badge {
    background: rgba(255, 214, 0, 0.15);
    border-color: rgba(255, 214, 0, 0.4);
}

.lm-score-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.lm-team-winner .lm-score-number {
    color: #FFD600;
    text-shadow: 0 0 15px rgba(255, 214, 0, 0.4);
}

.lm-score-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

.lm-winner-vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.lm-vs-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-text-muted);
}

.lm-match-meta-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Dynamic Set Breakdown Box */
.lm-winner-breakdown-box {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lm-breakdown-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lm-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lm-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.lm-breakdown-set-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.lm-breakdown-set-score {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .lm-winner-scorecard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .lm-winner-vs-divider {
        padding: 0;
    }
}

/* Graph container */
.lm-graph-container {
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    min-height: 300px;
}

@media (max-width: 600px) {
    .lm-hero-score { font-size: 2.8rem; }
    .lm-hero-over { font-size: 1.2rem; }
    .lm-hero-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .lm-this-over { text-align: left; }
    .lm-col-val, .lm-col-header { font-size: 0.7rem; }
    .lm-col-val.flex-3 { font-size: 0.8rem; }
    .lm-partnership { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    /* Generic hero (football / kabaddi / boxing / basketball) — keep the
       team names inside the card on narrow phone screens. */
    .lm-generic-hero { padding: 1.5rem 1rem; }
    .lm-hero-main { gap: 0.5rem; }
    .lm-generic-hero .lm-hero-logo-box { width: 48px; height: 48px; }
    .lm-hero-team-name { margin-top: 0.5rem; font-size: 0.9rem; }
    .lm-hero-score-display { font-size: 2.4rem; }
}

@media (max-width: 480px) {
    /* Generic hero (football, kabaddi, etc.) */
    .lm-generic-hero {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }
    .lm-hero-main {
        gap: 0.5rem;
    }
    .lm-hero-team {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        max-width: 90px;
    }
    .lm-hero-team-name {
        font-size: 0.82rem;
        margin-top: 0.4rem;
        max-width: 90px;
    }
    .lm-hero-logo-box {
        width: 44px;
        height: 44px;
    }
    .lm-logo-placeholder {
        font-size: 1.2rem;
    }
    .lm-hero-score-display {
        font-size: 2.2rem;
    }
    .lm-hero-timer {
        font-size: 0.9rem;
    }
    .lm-hero-sport-badge {
        font-size: 0.58rem;
        padding: 0.15rem 0.5rem;
    }
    .lm-hero-pens {
        font-size: 0.75rem;
    }
    /* Winner tab */
    .lm-winner-title {
        font-size: 1.8rem;
    }
    .lm-team-name-lg {
        font-size: 1rem;
        word-break: break-word;
    }
    .lm-team-score-badge {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
    .lm-score-number {
        font-size: 2rem;
    }
    .lm-team-logo-lg {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Generic Sport Hero */
.lm-generic-hero {
    background: linear-gradient(135deg, #112240, #0a192f);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.lm-hero-sport-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    background: var(--color-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.lm-hero-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Each team column shares space evenly and can shrink so long names
   stay inside the card instead of overflowing. */
.lm-generic-hero .lm-hero-team {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    text-align: center;
}

.lm-hero-score-center {
    flex-shrink: 0;
}

.lm-hero-logo-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

.lm-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text-muted);
}

.lm-hero-team-name {
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-white);
    text-align: center;
    width: 100%;
    max-width: 120px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.lm-hero-score-center {
    text-align: center;
}

.lm-hero-score-display {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.lm-hero-timer {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Timeline */
.lm-timeline-container {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-timeline-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Collapsible timeline header row */
.lm-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.lm-timeline-header .lm-timeline-title {
    margin-bottom: 0;
}

.lm-timeline-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted, #888);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.lm-timeline-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Timeline Group Header (Round / Set separator) */
.lm-timeline-group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1.5rem 0;
    position: relative;
    z-index: 2;
}

.lm-timeline-group-header span {
    background: var(--color-surface, #1e293b);
    border: 1px solid var(--color-primary, #ccff00);
    color: var(--color-primary, #ccff00);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    text-transform: uppercase;
}

.lm-timeline {
    position: relative;
    padding: 1rem 0;
}

.lm-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
}

.lm-timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.lm-timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.lm-timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 8px var(--color-primary);
}

.lm-timeline-time {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -1.2rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.lm-timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 90%;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Right-side (team B) events mirror so the avatar sits toward the centre line */
.lm-timeline-item.right .lm-timeline-content { flex-direction: row-reverse; }
.lm-timeline-item.right .lm-tl-text { text-align: right; }

.lm-tl-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.lm-tl-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lm-tl-text { min-width: 0; }

@media (max-width: 600px) {
    .lm-timeline-item.right .lm-timeline-content { flex-direction: row; }
    .lm-timeline-item.right .lm-tl-text { text-align: left; }
}

.lm-timeline-type {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.lm-timeline-player {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.lm-empty-timeline {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 600px) {
    .lm-timeline::before { left: 20px; }
    .lm-timeline-item { justify-content: flex-start; padding-left: 40px; padding-right: 0; }
    .lm-timeline-item.right { padding-left: 40px; }
    .lm-timeline-item::after { left: 20px; }
    .lm-timeline-time { left: 40px; transform: none; margin-top: -1.2rem; }
    .lm-timeline-content { margin: 0; max-width: 100%; }
}

/* ──────────────────────────────────────────
   Goal Scorers Strip (below score in hero)
   ────────────────────────────────────────── */
.lm-scorer-strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
}

.lm-scorer-side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.lm-scorer-side--a { text-align: left; }
.lm-scorer-side--b { text-align: right; }

.lm-scorer-entry {
    color: var(--color-text-muted);
    font-weight: 600;
    line-height: 1.5;
}

.lm-scorer-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    padding: 0 0.25rem;
    align-self: center;
}

/* ──────────────────────────────────────────
   Fouls Stats Bar
   ────────────────────────────────────────── */
.lm-stats-strip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}

.lm-stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lm-stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-white);
    min-width: 1.5rem;
    text-align: center;
}

.lm-stat-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    height: 6px;
}

.lm-stat-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    background: var(--color-bg-dark, #0a0f1c);
    padding: 0 0.4rem;
    white-space: nowrap;
}

.lm-stat-bar {
    height: 6px;
    border-radius: 3px;
    max-width: 45%;
    transition: width 0.5s ease;
}

.lm-stat-bar--a {
    background: var(--color-secondary, #00d4ff);
    margin-left: auto;
}

.lm-stat-bar--b {
    background: var(--color-tertiary, #6c5ce7);
}

/* ──────────────────────────────────────────
   Goal highlight on timeline items
   ────────────────────────────────────────── */
.lm-timeline-item--goal .lm-timeline-content {
    border-color: rgba(204, 255, 0, 0.25);
    background: rgba(204, 255, 0, 0.05);
}

.lm-timeline-item--goal::after {
    background: #ccff00;
    box-shadow: 0 0 10px #ccff00;
}

.lm-timeline-item--goal .lm-timeline-type {
    color: #ccff00;
}

/* Substitution timeline row — player in (green ▲) / out (red ▼) */
.lm-timeline-item--sub .lm-timeline-content {
    border-color: rgba(0, 209, 255, 0.25);
    background: rgba(0, 209, 255, 0.05);
}
.lm-timeline-item--sub::after {
    background: #00d1ff;
    box-shadow: 0 0 10px #00d1ff;
}
.lm-timeline-item--sub .lm-timeline-type {
    color: #00d1ff;
}
.lm-sub-line {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.lm-timeline-item.right .lm-sub-line { flex-direction: row-reverse; }
.lm-sub-in  { color: #34c759; }
.lm-sub-out { color: #ff453a; }
.lm-sub-arrow { font-size: 0.7rem; }

/* Squad-list substitution markers: ▲ came on (green) / ▼ went off (red) */
.lm-fb-sub {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 1px 5px;
    border-radius: 6px;
    white-space: nowrap;
}
.lm-fb-sub--in  { color: #34c759; background: rgba(52, 199, 89, 0.12); }
.lm-fb-sub--out { color: #ff453a; background: rgba(255, 69, 58, 0.12); }

/* Pitch lineup: small ▲ on players who came on as a substitute */
.lm-pitch-sub {
    position: absolute;
    bottom: -4px;
    left: -4px;
    font-size: 0.55rem;
    line-height: 1;
    color: #34c759;
    background: #0b0f1a;
    border-radius: 50%;
    padding: 1px;
}

/* ──────────────────────────────────────────
   Squad Player Badges (Cards + Goals)
   ────────────────────────────────────────── */
.lm-squad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
    cursor: default;
}

.lm-squad-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lm-squad-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
}

.lm-squad-badges {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lm-badge {
    font-size: 0.75rem;
    line-height: 1;
}

.lm-badge--goal  { opacity: 0.95; }
.lm-badge--yellow { opacity: 0.9; }
.lm-badge--red    { opacity: 0.9; }
/* Table Tennis Premium Scoreboard */
.lm-tt-hero {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.05);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.lm-tt-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.lm-tt-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lm-tt-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

.lm-tt-team-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lm-tt-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.lm-tt-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-muted);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.lm-tt-avatar--active {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.lm-tt-serve-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #FFF;
    border-radius: 50%;
    border: 2px solid #0f172a;
    box-shadow: 0 0 10px #FFF;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.lm-tt-team-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lm-tt-points-wrap {
    text-align: center;
    min-width: 100px;
}

.lm-tt-points {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 0.9;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.lm-tt-divider {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 900;
}

.lm-tt-sets-won {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-top: 1rem;
    text-transform: uppercase;
}

.lm-tt-history-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.lm-tt-history-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-tt-history-pill--active {
    background: rgba(204, 255, 0, 0.1);
    color: var(--color-primary);
    border-color: rgba(204, 255, 0, 0.3);
}

/* Table Tennis Analytics Cards */
.lm-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lm-analytics-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.lm-analytics-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.lm-analytics-sub {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.lm-analytics-player-section {
    display: flex;
    flex-direction: column;
}

.lm-analytics-player-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.lm-analytics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.lm-analytics-label {
    font-weight: 600;
}

.lm-analytics-val {
    font-weight: 700;
    color: var(--color-white);
}

.lm-analytics-highlight {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-primary);
}

.lm-analytics-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.lm-analytics-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.lm-analytics-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 1.25rem 0;
}

@media (max-width: 600px) {
    .lm-tt-score-row { gap: 0.5rem; flex-direction: row; flex-wrap: nowrap; }
    .lm-tt-points { font-size: 2.5rem; }
    .lm-tt-divider { font-size: 1.5rem; display: block; }
    .lm-tt-hero { padding: 1.5rem 0.5rem; }
    .lm-tt-team-box { gap: 0.5rem; }
    .lm-tt-avatar-wrap { width: 50px; height: 50px; }
    .lm-tt-team-name { font-size: 0.75rem; }
    .lm-tt-sets-won { font-size: 0.65rem; }
}

/* Share Scorecard Button & Toast */
.lm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.2), rgba(204, 255, 0, 0.05));
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.15);
}

.lm-share-btn:hover {
    background: var(--color-primary);
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.3);
    transform: translateY(-2px);
}

#lm-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #0f172a;
    color: var(--color-primary);
    text-align: center;
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    padding: 12px 24px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(204, 255, 0, 0.2);
}

#lm-toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

/* Badminton & TT specific additions */
.lm-serving-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.lm-player-points-badge {
    background: rgba(204, 255, 0, 0.15);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(204, 255, 0, 0.3);
    margin-left: auto;
}

/* Additional Badminton & TT styles */
.lm-squad-avatar {
    position: relative;
}

.lm-squad-serve-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border: 2px solid #111;
    border-radius: 50%;
    z-index: 10;
}

.lm-squad-item--serving {
    background: rgba(204, 255, 0, 0.05) !important;
    border: 1px solid var(--color-primary) !important;
}

/* ============================================================
   Football scorecard — Stats, Squads, Penalties
   Team colours: A = orange (#ff6b35), B = purple (#6c5ce7)
   ============================================================ */
:root {
    /* Team colours on the website match the site palette (lime / cyan).
       The pitch lineup keeps its own orange/purple so players stay readable
       against the green grass. */
    --fb-team-a: var(--color-primary);
    --fb-team-b: var(--color-secondary);
    --fb-danger: #ff453a;
}

/* Penalty shootout line under the hero score */
.lm-hero-pens {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* Timeline start/finish markers (all sports) */
.lm-timeline-marker {
    display: flex;
    justify-content: center;
    margin: 0.6rem 0;
}

.lm-timeline-marker span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.lm-timeline-marker--finish span {
    color: var(--color-primary);
    border-color: rgba(204, 255, 0, 0.3);
    background: rgba(204, 255, 0, 0.08);
}

.lm-timeline-marker--start span i,
.lm-timeline-marker--finish span i { font-size: 0.7rem; }

/* ── Stats tab ───────────────────────────────────────────── */
.lm-fb-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem 1.5rem;
}

.lm-fb-stats-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-fb-team-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.lm-fb-team-tag--a { color: var(--fb-team-a); }
.lm-fb-team-tag--b { color: var(--fb-team-b); }

.lm-fb-section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.45);
    margin: 1.6rem 0 0.9rem;
}

.lm-fb-stat { margin-bottom: 1rem; }

.lm-fb-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.lm-fb-stat-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-white);
    font-variant-numeric: tabular-nums;
    min-width: 2rem;
}
.lm-fb-stat-head .lm-fb-stat-val:last-child { text-align: right; }
.lm-fb-stat-val--win { color: var(--color-primary); }

.lm-fb-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-align: center;
    flex: 1;
}

.lm-fb-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    gap: 2px;
}

.lm-fb-bar-a {
    background: var(--fb-team-a);
    border-radius: 3px 0 0 3px;
    transition: width 0.5s ease;
}
.lm-fb-bar-b {
    background: var(--fb-team-b);
    border-radius: 0 3px 3px 0;
    transition: width 0.5s ease;
}

/* All stat bars use the site palette (lime / cyan) — discipline & defending
   rows keep the same team colours rather than a separate danger red. */
.lm-fb-bar--danger .lm-fb-bar-a { background: var(--fb-team-a); }
.lm-fb-bar--danger .lm-fb-bar-b { background: var(--fb-team-b); }

/* ── Squads tab (jersey list) ────────────────────────────── */
.lm-fb-squad-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
}

.lm-fb-squad-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-fb-squad-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
}

.lm-fb-squad-team {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-white);
}

.lm-fb-squad-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin: 1rem 0 0.6rem;
}

.lm-fb-squad-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.4rem 1.25rem;
}

.lm-fb-player {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lm-fb-jersey {
    width: 26px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lm-fb-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.lm-fb-player-avatar img { width: 100%; height: 100%; object-fit: cover; }

.lm-fb-player-info { min-width: 0; }

.lm-fb-player-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-fb-captain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-size: 0.6rem;
    font-weight: 900;
    flex-shrink: 0;
}

.lm-fb-player-badges { font-size: 0.8rem; }

.lm-fb-player-role {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 1px;
}

/* Winner tab — penalties subtitle */
.lm-winner-sub {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 0.35rem;
}

@media (max-width: 600px) {
    .lm-fb-squad-list { grid-template-columns: 1fr; }
    .lm-fb-stats { padding: 1rem; }
}

/* ── Winner tab (generic — football/kabaddi/boxing/basketball) ── */
.lm-winner-card {
    position: relative;
    text-align: center;
    background: radial-gradient(120% 120% at 50% 0%, rgba(204, 255, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 2rem;
    overflow: hidden;
}

.lm-winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.lm-winner-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #FFD600;
    background: radial-gradient(circle at 50% 40%, rgba(255, 214, 0, 0.2), rgba(255, 214, 0, 0.04));
    border: 2px solid rgba(255, 214, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 214, 0, 0.25);
}

/* Winner's flag/logo — larger emblem with a champion gold ring */
.lm-winner-flag {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFD600;
    background: #0f172a;
    box-shadow: 0 0 35px rgba(255, 214, 0, 0.45);
}

.lm-winner-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gold star sitting on the ring (champion marker) */
.lm-winner-flag::after {
    content: '\f005'; /* fa-star */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -6px;
    right: -6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFD600;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    border: 2px solid #0f172a;
}

/* Fallback (draw or missing logo) — show the trophy glyph centered */
.lm-winner-flag--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(255, 214, 0, 0.2), rgba(255, 214, 0, 0.04));
    color: #FFD600;
    font-size: 3.4rem;
}

.lm-winner-flag--fallback::after { display: none; }

.lm-winner-text {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lm-summary-box {
    max-width: 360px;
    margin: 1.5rem auto 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}

.lm-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.lm-summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-summary-row span:last-child {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

/* ── Pitch-formation lineup ──────────────────────────────── */
.lm-pitch-wrap { margin-bottom: 1.75rem; }

.lm-pitch-teams {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.lm-pitch-team-badge {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.5rem;
    border: 1px solid;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-pitch-team-badge b {
    font-weight: 700;
    opacity: 0.75;
    margin-left: 0.25rem;
}

.lm-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 7;
    max-height: 720px;
    background:
        repeating-linear-gradient(0deg, #1a7a31 0, #1a7a31 9.09%, #19712e 9.09%, #19712e 18.18%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Pitch markings */
.lm-pitch-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}
.lm-pitch-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.lm-pitch-box {
    position: absolute;
    left: 25%;
    width: 50%;
    height: 14%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.lm-pitch-box--top { top: 0; border-top: 0; }
.lm-pitch-box--bottom { bottom: 0; border-bottom: 0; }

.lm-pitch-half {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0.5rem 0;
}

.lm-pitch-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.lm-pitch-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
}

.lm-pitch-jersey {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    border: 2px solid;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    font-variant-numeric: tabular-nums;
}

.lm-pitch-cap {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

.lm-pitch-card {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}
.lm-pitch-card--y { background: #FFD600; color: #4A3B00; }
.lm-pitch-card--r { background: #FF3B30; color: #fff; }

.lm-pitch-name {
    margin-top: 5px;
    max-width: 72px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .lm-pitch-player { width: 52px; }
    .lm-pitch-jersey { width: 30px; height: 30px; font-size: 0.78rem; }
    .lm-pitch-name { font-size: 0.56rem; max-width: 56px; }
}
