.top-live-bar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 52px; 
    background-color: #000;
    color: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #000;
    /* Custom Sport Font */
    font-family: 'Rajdhani', sans-serif; 
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
}

.main-live-label {
    display: flex;
    align-items: center;
    color: #ff3b30;
    font-weight: 700;
    font-size: 18px; /* Slightly larger font */
    margin-right: 30px;
    padding-left: 15px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff3b30;
    animation: blink 1.5s infinite;
}

.match-block {
    display: inline-flex;
    margin-right: 50px;
}

.player-row {
    display: flex;
    align-items: center;
    height: 22px;
}

/* NAMES - Tightened more */
.player-name {
    font-weight: 600;
    color: #ffcc00;
    font-size: 15px;
    text-transform: uppercase;
    margin-right: 12px; /* Gap between name and first score box */
}

.serve-dot-small {
    width: 5px;
    height: 5px;
    background-color: #ccff00;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #ccff00;
    visibility: hidden;
}
.serving .serve-dot-small { visibility: visible; }

/* Score Boxes - matching your image boxes */
.set-box {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 2px;
    font-size: 14px;
    color: #8b949e;
}

.set-active { 
    border-color: #ffcc00; 
    color: #ffcc00; 
}

/* Glowing Game Box */
.game-box {
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px; /* Shrunk from 6px */
    background: #000;
    border: 1px solid #ffcc00;
    border-radius: 3px;
    color: #ffcc00;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

/* Ensure the match block stays as a horizontal unit */
.match-block {
    display: flex;
    align-items: center;
    margin-right: 60px;
    flex-shrink: 0;
}

/* The Large Yellow Label */
.large-final-label {
    color: #ffcc00; /* Yellow font */
    font-weight: 800;
    font-size: 18px; /* Large enough to span approx two rows */
    margin-right: 5px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.rows-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.winner-trophy {
    color: #ffcc00; 
    margin-left: 6px; 
    font-size: 14px;
}

.match-block {
    display: flex;
    align-items: center;
    margin-right: 60px;
    flex-shrink: 0;
}

/* Base style for both LIVE and FINAL */
.status-label { /* Fixed width so names stay aligned across different matches */
    font-weight: 800;
    font-size: 18px;
    margin-right: 5px;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Specific Colors */
.status-live {
    color: #ff3b30; /* Red */
}

.status-final {
    color: #ffcc00; /* Yellow */
}

/* Keep your existing live-dot and blink animations */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #ff3b30;
    animation: blink 1.5s infinite;
}

.rows-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.winner-trophy {
    color: #ffcc00; 
    margin-left: 6px; 
    font-size: 14px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
@keyframes blink { 50% { opacity: 0.2; } }