/* ========================================
   BRACKETS PAGE STYLES
======================================== */

/* Brackets Header */
.brackets-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(200, 170, 110, 0.3);
}

.header-content {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.page-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #999;
}

/* Tournament Selector */
.tournament-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.selector-label {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #C8AA6E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tournament-dropdown {
    padding: 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(200, 170, 110, 0.4);
    border-radius: 6px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 250px;
}

.tournament-dropdown:hover {
    border-color: rgba(200, 170, 110, 0.6);
    background: rgba(0, 0, 0, 0.8);
}

.tournament-dropdown:focus {
    outline: none;
    border-color: #C8AA6E;
    box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.1);
}

.tournament-dropdown option {
    background: #1a1a1a;
    color: #fff;
}

/* Tournament Info */
.tournament-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 8px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #C8AA6E;
}

.status-live {
    color: #4CAF50;
}

/* ========================================
   BRACKET SECTION
======================================== */
.bracket-section {
    padding: 4rem 0;
    background: #0a0a0a;
    overflow-x: auto;
}

.bracket-container {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    min-width: max-content;
    margin: 0 auto;
    justify-content: center;
}

/* Bracket Round */
.bracket-round {
    display: flex;
    flex-direction: column;
    position: relative;
}

.round-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(200, 170, 110, 0.3);
}

.round-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #C8AA6E;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.round-subtitle {
    font-size: 0.85rem;
    color: #777;
}

/* Matchups Column */
.matchups-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-around;
    min-height: 600px;
}

/* Matchup Card */
.matchup-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(200, 170, 110, 0.3);
    border-radius: 8px;
    padding: 1rem;
    min-width: 280px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.matchup-card:hover {
    border-color: rgba(200, 170, 110, 0.6);
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.matchup-card.completed {
    border-color: rgba(200, 170, 110, 0.3);
}

.matchup-card.live {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.05);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(76, 175, 80, 0.6);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        border-color: rgba(76, 175, 80, 0.8);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.matchup-card.upcoming {
    border-color: rgba(200, 170, 110, 0.2);
    opacity: 0.7;
}

.matchup-card.finals-match {
    border-width: 3px;
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.05);
}

.matchup-number {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.live-indicator {
    color: #4CAF50;
    font-weight: 700;
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Competitor */
.competitor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.3s;
}

.competitor:last-of-type {
    margin-bottom: 0;
}

.competitor.winner {
    background: rgba(200, 170, 110, 0.15);
    border: 1px solid rgba(200, 170, 110, 0.4);
}

.competitor.leading {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.competitor-seed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(200, 170, 110, 0.2);
    border: 1px solid rgba(200, 170, 110, 0.4);
    border-radius: 50%;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #C8AA6E;
    flex-shrink: 0;
}

.competitor.winner .competitor-seed {
    background: rgba(200, 170, 110, 0.3);
    border-color: rgba(200, 170, 110, 0.6);
}

.competitor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.competitor-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.3;
}

.competitor-score {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #999;
}

.competitor.winner .competitor-score {
    color: #C8AA6E;
}

.competitor.leading .competitor-score {
    color: #4CAF50;
}



.vs-text {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0.5rem 0;
}

.matchup-meta {
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(200, 170, 110, 0.1);
}

.champion-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ========================================
   BRACKET LAYOUT - CLEAN (NO LINES)
======================================== */

/* Hide/remove any connector elements */
.round-connectors {
    display: none;
}

/* Clean bracket spacing */
.bracket-container {
    display: flex;
    gap: 4rem;
    padding: 2rem;
    min-width: max-content;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Improve vertical spacing between matches */
.matchups-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Progressive spacing - each round has more vertical space */
.bracket-round:nth-child(1) .matchups-column {
    gap: 2rem;
}

.bracket-round:nth-child(2) .matchups-column {
    gap: 4rem;
}

.bracket-round:nth-child(3) .matchups-column {
    gap: 8rem;
}

.bracket-round:nth-child(4) .matchups-column {
    justify-content: center;
}

/* Add subtle visual progression with card scaling */
.bracket-round:nth-child(2) .matchup-card {
    transform: scale(1.02);
}

.bracket-round:nth-child(3) .matchup-card {
    transform: scale(1.05);
}

.bracket-round.finals .matchup-card {
    transform: scale(1.1);
}


/* Visual indicator on winning competitor */
.competitor.winner {
    position: relative;
}

.competitor.winner::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(200, 170, 110, 0.8), 
        transparent
    );
    border-radius: 2px;
}

/* ========================================
   TOURNAMENT STATS SECTION
======================================== */
.tournament-stats {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a1a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(200, 170, 110, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C8AA6E;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-detail {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* ========================================
   CHAMPION SPOTLIGHT SECTION
======================================== */
.champion-spotlight {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
}

.spotlight-content {
    max-width: 800px;
    margin: 0 auto;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #FFD700;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spotlight-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.spotlight-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #C8AA6E;
    margin-bottom: 3rem;
}

.spotlight-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.spotlight-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.spotlight-stat .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C8AA6E;
}

.spotlight-stat .stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .bracket-container {
        gap: 2rem;
    }

    .round-connectors {
        right: -2rem;
        width: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .bracket-section {
        padding: 2rem 0;
    }

    .bracket-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .matchup-card {
        min-width: 240px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .spotlight-title {
        font-size: 2.5rem;
    }

    .spotlight-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .brackets-header {
        padding: 4rem 0 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .tournament-selector {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tournament-dropdown {
        width: 100%;
        min-width: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bracket-section {
        overflow-x: scroll;
        padding: 2rem 0;
    }

    .bracket-container {
        justify-content: flex-start;
    }

    .matchup-card {
        min-width: 220px;
    }

    .competitor-name {
        font-size: 0.85rem;
    }

    .round-title {
        font-size: 1.1rem;
    }

    .spotlight-title {
        font-size: 2rem;
    }

    .spotlight-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .tournament-info {
        padding: 1.5rem;
    }

    .bracket-container {
        gap: 1rem;
        padding: 0.5rem;
    }

    .round-connectors {
        right: -1rem;
        width: 1rem;
    }

    .matchup-card {
        min-width: 200px;
        padding: 0.75rem;
    }

    .competitor {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .competitor-name {
        font-size: 0.8rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .spotlight-title {
        font-size: 1.75rem;
    }

    .spotlight-stat .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   ANIMATIONS - FIXED
======================================== */

/* Fade in animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to all cards */
.matchup-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger animation ONLY for Round 1 */
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(1) { animation-delay: 0.1s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(2) { animation-delay: 0.2s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(3) { animation-delay: 0.3s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(4) { animation-delay: 0.4s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(5) { animation-delay: 0.5s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(6) { animation-delay: 0.6s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(7) { animation-delay: 0.7s; }
.bracket-round:nth-child(1) .matchups-column .matchup-card:nth-child(8) { animation-delay: 0.8s; }


/* ========================================
   TBD/UPCOMING MATCH STYLES
   ======================================== */

.matchup-card.upcoming {
    background: linear-gradient(135deg, rgba(50, 50, 60, 0.4), rgba(40, 40, 50, 0.4));
    border: 1px solid rgba(100, 100, 120, 0.3);
    opacity: 0.7;
}

.competitor.tbd {
    background: linear-gradient(135deg, rgba(60, 60, 70, 0.3), rgba(50, 50, 60, 0.3));
    border-left: 2px solid rgba(100, 100, 120, 0.3);
}

.competitor.tbd .competitor-name {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.competitor.tbd .competitor-seed {
    background: rgba(100, 100, 120, 0.3);
    color: rgba(255, 255, 255, 0.4);
}



/* ========================================
   SEMIFINALS SPECIAL STYLING
   ======================================== */

.matchup-card.semifinal-match {
    border: 2px solid rgba(200, 155, 60, 0.5);
    box-shadow: 0 4px 20px rgba(200, 155, 60, 0.2);
}

/* ========================================
   FINALS SPECIAL STYLING
   ======================================== */

.matchup-card.finals-match {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.15), rgba(139, 105, 20, 0.1));
    border: 3px solid #c89b3c;
    padding: 2rem;
    box-shadow: 0 6px 30px rgba(200, 155, 60, 0.3);
}

.champion-crown {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.vs-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c89b3c;
    padding: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1400px) {
    .bracket-container {
        overflow-x: auto;
        padding-bottom: 2rem;
    }
    
    .bracket-round {
        min-width: 280px;
    }
}


    
    .champion-crown {
        font-size: 2rem;
    }
    
    .vs-text {
        font-size: 1.2rem;
    }

/* Make clickable cards obvious */
.matchup-card.clickable {
    cursor: pointer !important; /* Force cursor */
    transition: all 0.3s ease;
}

.matchup-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(200, 155, 60, 0.4);
    border-color: rgba(200, 155, 60, 0.6);
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.95), rgba(30, 30, 40, 0.95));
}

.matchup-card.clickable:active {
    transform: translateY(-2px);
}

/* ========================================
   COMPLETED MATCH STYLING (Gold)
   ======================================== */

/* Any completed match gets gold background */
.matchup-card.completed {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.15), rgba(200, 155, 60, 0.05));
    border: 2px solid rgba(200, 155, 60, 0.4);
}

.matchup-card.completed .matchup-number {
    background: linear-gradient(135deg, #c89b3c, #8b6914);
    color: #0a0a0a;
    font-weight: 700;
}

/* ========================================
   COMPLETED MATCH STYLING (Gold) - ALL ROUNDS
   ======================================== */

/* Any completed match gets gold background */
.matchup-card.completed {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.15), rgba(200, 155, 60, 0.05));
    border: 2px solid rgba(200, 155, 60, 0.4);
}

.matchup-card.completed .matchup-number {
    background: linear-gradient(135deg, #c89b3c, #8b6914);
    color: #0a0a0a;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 4px;
}

/* ========================================
   BYE MATCH STYLING
   ======================================== */

/* Upcoming bye matches look like regular upcoming matches */
.matchup-card.bye.upcoming {
    background: linear-gradient(135deg, rgba(50, 50, 60, 0.4), rgba(40, 40, 50, 0.4));
    border: 1px solid rgba(100, 100, 120, 0.3);
    opacity: 0.7;
}

.matchup-card.bye.upcoming .matchup-number {
    background: transparent;
    color: #777;
    font-weight: normal;
}

/* Completed bye matches get gold styling (same as other completed matches) */
.matchup-card.bye.completed {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.15), rgba(200, 155, 60, 0.05));
    border: 2px solid rgba(200, 155, 60, 0.4);
}

.matchup-card.bye.completed .matchup-number {
    background: linear-gradient(135deg, #c89b3c, #8b6914);
    color: #0a0a0a;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Auto-advanced competitor gets gold highlight (only when match is completed) */
.matchup-card.completed .competitor.auto-advanced {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.2), rgba(200, 155, 60, 0.1));
    border-left: 3px solid #c89b3c;
}

/* BYE badge - small gold pill next to song name */
.bye-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c89b3c, #8b6914);
    color: #0a0a0a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
/* Hide BYE badge on completed matches */
.matchup-card.completed .bye-badge {
    display: none;
}
/* Competitor styling with thumbnails */
.competitor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.competitor:hover {
    background: rgba(40, 40, 50, 0.8);
}

/* Song Thumbnail */
.song-thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
}

.song-thumbnail.tbd {
    background: linear-gradient(135deg, rgba(50, 50, 60, 0.3), rgba(40, 40, 50, 0.3));
    border: 1px dashed rgba(100, 100, 120, 0.3);
}

/* Competitor info container */
.competitor-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

/* Seed badge */
.seed-badge {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
}

/* Song title */
.song-title {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Vote percentage and winner icon */
.vote-percentage {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c89b3c;
    margin-left: auto;
    white-space: nowrap;
}

.winner-icon {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* Winner styling */
.competitor.winner {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.2), rgba(200, 155, 60, 0.1));
    border-left: 3px solid #c89b3c;
}

.competitor.winner .song-title {
    color: #c89b3c;
}

/* BYE badge */
.bye-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c89b3c, #8b6914);
    color: #0a0a0a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Hide BYE badge on completed matches */
.matchup-card.completed .bye-badge {
    display: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .competitor {
        gap: 0.5rem;
        padding: 0.6rem;
    }
    
    .song-thumbnail {
        width: 35px;
        height: 35px;
    }
    
    .seed-badge {
        font-size: 0.7rem;
    }
    
    .song-title {
        font-size: 0.85rem;
    }
    
    .vote-percentage {
        font-size: 0.8rem;
    }
}
/* Match Status Section */
.match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(20, 20, 30, 0.5);
    border-top: 1px solid rgba(100, 100, 120, 0.2);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.upcoming {
    background: linear-gradient(135deg, rgba(100, 100, 120, 0.3), rgba(80, 80, 100, 0.3));
    color: #aaa;
    border: 1px solid rgba(100, 100, 120, 0.4);
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-badge.completed {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.3), rgba(180, 135, 40, 0.3));
    color: #c89b3c;
    border: 1px solid rgba(200, 155, 60, 0.5);
}

/* Vote Count */
.vote-count {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}



/* Matchup Competitors Container */
.matchup-competitors {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .match-status {
        padding: 0.5rem 0.75rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .vote-count {
        font-size: 0.7rem;
    }
    
 
}
.competitor:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}
/* TBD matches - no pointer cursor */
.matchup-card .competitor.tbd {
    cursor: default;
}

/* Only non-TBD matches are clickable */
.matchup-card:not(:has(.competitor.tbd)) {
    cursor: pointer;
}

.matchup-card:not(:has(.competitor.tbd)):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 155, 60, 0.3);
}

/* TBD matches don't lift on hover */
.matchup-card:has(.competitor.tbd):hover {
    transform: none;
}
/* Notification Button States */
.newsletter-btn.notifications-enabled {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.newsletter-btn.notifications-enabled:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

.newsletter-btn.notifications-disabled {
    background: linear-gradient(135deg, #C8AA6E, #B49A5E);
    color: #0a0a0a;
}

.newsletter-btn.notifications-disabled:hover {
    background: linear-gradient(135deg, #d4b876, #C8AA6E);
    transform: translateY(-2px);
}
/* ========================================
   LOADING STATE
   ======================================== */

.bracket-loading-state {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(200, 170, 110, 0.2);
    border-top-color: #C8AA6E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #C8AA6E;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-subtext {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Fade in animation for bracket sections */
.bracket-fade-in {
    animation: fadeInUp 0.6s ease;
}

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

/* Loading shimmer effect (optional, for skeleton loading) */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bracket-loading-state {
        padding: 3rem 0;
        min-height: 50vh;
    }
    
    .loader {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loading-text {
        font-size: 1.25rem;
    }
    
    .loading-subtext {
        font-size: 0.9rem;
    }
}
/* Vote count display for live matches (no percentage shown) */
.vote-count-only {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(200, 155, 60, 0.1);
    border-radius: 4px;
    margin-top: 0.5rem;
    text-align: center;
}

/* Ensure only ONE appears per competitor during live matches */
.competitor .vote-count-only {
    display: block;
    width: 100%;
}

/* Hide duplicate vote counts (only show on first competitor) */
.competitor:nth-child(2) .vote-count-only {
    display: none;
}

/* Live match percentages (after user has voted) */
.vote-percentage.live-voted {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.2), rgba(139, 105, 20, 0.2));
    border: 1px solid rgba(200, 155, 60, 0.4);
    color: #c89b3c;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(200, 155, 60, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(200, 155, 60, 0.6);
    }
}

/* Show leading competitor more prominently */
.competitor.leading .vote-percentage.live-voted {
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.3), rgba(139, 105, 20, 0.3));
    border-color: #c89b3c;
    font-size: 1.1em;
}
/* Dynamic tournament status styling */
.info-value.status-live {
    color: #ff4444 !important;
    font-weight: 700;
    animation: livePulse 2s ease-in-out infinite;
}

.info-value.status-upcoming {
    color: #667eea !important;
}

.info-value.status-completed {
    color: #00ff88 !important;
    font-weight: 700;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 0.8;
    }
    50% { 
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    }
}
.status-badge.voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}