.top-live-bar, .top-live-bar * {
    font-family: 'Rajdhani', 'Lato', sans-serif;
}

.top-live-bar {
    position: fixed; /* Changed from relative/sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; 
    background-color: #000;
    z-index: 10000; /* Must be higher than navbar z-index */
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.fixed-label {
    position: absolute;
    left: 0;
    height: 100%;
    z-index: 10001; /* Stay above the scrolling text */
    background: #000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #ff3b30;
    font-weight: 800;
    /* This shadow creates the vanishing effect */
    box-shadow: 20px 0 20px -5px #000; 
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.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: 32px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    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: 45px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px; /* 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;
}

#ticker-inner {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling */
    white-space: nowrap;
    cursor: grab;
    user-select: none; /* Prevents text selection while dragging */
    scrollbar-width: none; /* Hides scrollbar on Firefox */
}

#ticker-inner::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome/Safari */
}

#ticker-inner.active-drag {
    cursor: grabbing;
}

/* If you are using a CSS keyframe animation to scroll the ticker, 
   this class will pause it when holding the mouse down.
*/
#ticker-inner.paused .match-block {
    animation-play-state: paused !important;
}

.tb-bracket {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}

.top-live-bar {
    position: fixed; /* Changed from relative/sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; 
    background-color: #000;
    z-index: 10000; /* Must be higher than navbar z-index */
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.fixed-label {
    position: absolute;
    left: 0;
    height: 100%;
    z-index: 10001; /* Stay above the scrolling text */
    background: #000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #ff3b30;
    font-weight: 800;
    /* This shadow creates the vanishing effect */
    box-shadow: 20px 0 20px -5px #000; 
}
.fixed-label {
    position: absolute;
    left: 0;
    z-index: 100;
    background: #000;
    height: 100%;
    padding: 0 25px 0 15px;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 20px 0 20px -5px #000; /* The "Vanishing" effect */
}

.ticker-content {
    width: 100%;
    padding-left: 160px; /* Leave room for the fixed label */
}

/* Alignment Column for Seeds */
.seed-col {
    display: flex;
    width: 30px;
    text-align:right;
    justify-content: flex-end;
    margin-right:3px;
    font-size: 12px;
    font-family: monospace !important;
}

.seed-gray { color: #888; font-family:monospace !important; }
.seed-spacer { width: 18px; display: inline-block; }
.seed-sep { color: #444; margin: 0 2px; }

.player-name {
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: 600;
}

.winner-trophy {
    color: #ffcc00;
    margin-left: 6px;
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5));
}

/* Glass Effect for Match Blocks */
.match-block-tb19, .match-block {
    background: rgba(255, 255, 255, 0.05); /* Very subtle white tint */
    backdrop-filter: blur(10px);          /* The "Glass" blur */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */
    
    /* Initial Border State */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    padding: 10px 15px;
    margin-right: 30px;
    
    /* Smooth Transition */
    transition: 
        border-color 0.4s ease, 
        background-color 0.4s ease, 
        transform 0.3s ease;
    
    cursor: pointer;
}

/* Hover State: Smooth Transition to White Border */
.match-block-tb19:hover, .match-block:hover {
    border-color: rgba(255, 255, 255, 0.8); /* Bright white border */
    background-color: rgba(255, 255, 255, 0.12); /* Slightly brighter glass */
}

/* Outer container: Stays 100% wide and clips overflow */
.ticker-content {
    width: 100%;
    height: 100%;
    display: block !important; /* Block allows inner content to overflow naturally */
    overflow: hidden;
    padding-left: 165px; /* Room for the fixed brand label */
}

/* Inner strip: Expands infinitely to the right */
#ticker-inner {
    display: flex !important;
    width: max-content !important; /* Grows to the total width of all matches */
    white-space: nowrap !important;
    will-change: transform; /* Performance optimization for scrolling */
}

/* Individual Match: Locked size */
.match-block {
    display: flex;
    align-items: center;
    flex: 0 0 auto !important; /* CRITICAL: Prevents matches from squishing/cutting off */
    margin-right: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    padding: 8px 15px;
}

/* Container that clips the matches */
.ticker-content {
    width: 100%;
    height: 100%;
    display: block !important; 
    overflow: hidden;
    padding-left: 165px; /* Room for your fixed label */
    position: relative;
}

/* The actual scrolling strip */
#ticker-inner {
    display: flex !important;
    width: max-content !important; /* Expands to fit every single match */
    white-space: nowrap !important;
    will-change: transform;
}

/* Individual Match Block */
.match-block {
    display: flex;
    align-items: center;
    flex: 0 0 auto !important; /* CRITICAL: Disables flex-shrink to prevent cut-offs */
    margin-right: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    padding: 8px 15px;
    transition: border-color 0.4s ease;
}

/* Brackets and Seeds alignment */
.seed-gray {
    font-family: 'Courier New', Courier, monospace !important;
    white-space: pre !important; /* Keeps alignment spaces visible */
    color: #888;
}

.seed-col {
    display: flex;
    width: 45px; /* Fixed width for seed column alignment */
    justify-content: flex-start;
}

/* Update these specific classes */

#ticker-inner {
    display: flex !important;
    width: max-content !important; /* Forces container to be wide enough for all matches */
    white-space: nowrap !important;
}

.match-block {
    display: flex;
    align-items: center;
    flex: 0 0 auto !important; /* CRITICAL: Prevents matches from squishing/cutting off */
    margin-right: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 15px;
    height:70px;
}

.seed-col {
    display: flex;
    width: 45px; /* Fixed width for consistent name alignment */
    justify-content: flex-end;
}

.seed-gray {
    font-family: 'Courier New', Courier, monospace !important;
    white-space: pre !important; /* Keeps alignment spaces visible */
    color: #888;
}

/* Match Title Styling */
.match-title-row-tb19 {
    font-size: 15px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
    width: 100%;
    font-family: 'Rajdhani', sans-serif;
}

/* Ensure the container stacks 3 rows properly */
.rows-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tighten player rows to fit the new title */
.player-row {
    display: flex;
    align-items: center;
    height: 19px; /* Reduced from 22px to prevent clipping */
}
