/* WOF ELITE HUD - V1100.0.0 - DEFINITIVE EXPANSION */

:root {
    --wof-gold: #f0c040;
    --wof-dark: #0a0a14;
    --wof-deep: #151525;
}

/* 1. THE PRISON BREAK - TOTAL VERTICAL LIBERATION */
body.single-sp_tournament .site-content > .container,
body.single-sp_tournament .main-content-inner > .container,
body.single-sp_tournament .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.wof-tournament-dashboard-wrapper {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    z-index: 99 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.wof-elite-hud-dashboard {
    display: flex !important;
    background: #0d0d1a !important;
    border-top: 1px solid rgba(240, 192, 64, 0.3) !important;
    border-bottom: 1px solid rgba(240, 192, 64, 0.3) !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: 0 50px 150px rgba(0,0,0,0.9) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    
    /* SCORCHED EARTH HEIGHT FIX */
    height: auto !important; 
    max-height: none !important;
    min-height: fit-content !important;
    overflow: visible !important;
}

/* 2. SIDEBAR */
.wof-hud-sidebar {
    width: 90px !important;
    background: #000 !important;
    border-right: 1px solid rgba(240, 192, 64, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 0 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 100% !important;
}

.wof-hud-nav-item {
    width: 54px !important; height: 54px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; color: rgba(255, 255, 255, 0.2) !important;
    font-size: 28px !important; transition: all 0.3s ease !important;
    margin-bottom: 25px !important; border-radius: 12px !important;
    margin-left: auto !important; margin-right: auto !important;
}

.wof-hud-nav-item:hover, .wof-hud-nav-item.active {
    color: var(--wof-gold) !important;
    background: rgba(240, 192, 64, 0.15) !important;
}

/* 3. MAIN AREA - THE CRITICAL OVERFLOW KILLER */
.wof-hud-main {
    flex: 1 !important;
    padding: 50px 0 !important; 
    background: #0d0d1a !important;
    background: radial-gradient(circle at top right, rgba(240, 192, 64, 0.05), #0d0d1a 80%) !important;
    
    /* ABSOLUTELY NO SCROLLBARS INSIDE */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; 
}

.wof-hud-section { 
    display: none; 
    opacity: 0; 
    width: 100% !important; 
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; 
}
.wof-hud-section.active { display: block !important; opacity: 1 !important; }

/* 4. THE BRACKET - RESTORED PREMIUM LOOK */
.wof-js-bracket-wrapper {
    overflow-x: auto !important; 
    overflow-y: visible !important; 
    width: 100% !important;
    padding: 20px !important;
    height: auto !important;
}

#wof-js-bracket-container {
    width: 100% !important;
    min-width: 1800px !important; 
    height: auto !important;
}

/* Library Override */
.jQBracket { background: transparent !important; color: #fff !important; }
.jQBracket .round { margin-right: 150px !important; }

/* TEAM CARDS */
.jQBracket .team {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%) !important;
    border: 1px solid rgba(240, 192, 64, 0.25) !important;
    border-left: 4px solid var(--wof-gold) !important;
    height: 50px !important; 
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 420px !important; 
    overflow: hidden !important;
}

.jQBracket .team.win { border-color: var(--wof-gold) !important; box-shadow: 0 0 25px rgba(240, 192, 64, 0.4) !important; }

.jQBracket .team div.label,
.jQBracket .team b {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    height: 50px !important;
    line-height: 50px !important;
}

/* JS ROW CONTENT */
.wof-elite-row { display: flex !important; align-items: center !important; width: 100% !important; height: 50px !important; }
.wof-elite-logo-box {
    width: 60px !important; height: 50px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: rgba(0,0,0,0.5) !important;
    border-right: 1px solid rgba(240, 192, 64, 0.1) !important;
}
.wof-elite-logo-box img { max-width: 42px !important; max-height: 42px !important; object-fit: contain !important; display: block !important; }

.wof-elite-name-box {
    flex: 1 !important;
    padding: 0 20px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    color: #fff !important;
    white-space: nowrap !important;
}

/* SCORE BOX */
.jQBracket .team b {
    background: rgba(240, 192, 64, 0.2) !important;
    color: var(--wof-gold) !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important; justify-content: center !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    border-left: 1px solid rgba(240, 192, 64, 0.2) !important;
}

/* ROUND HEADERS */
.wof-round-header {
    background: rgba(240, 192, 64, 0.12) !important;
    border-bottom: 3px solid var(--wof-gold) !important;
    color: #fff !important;
    padding: 15px !important;
    text-align: center !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    margin-bottom: 45px !important;
}

/* CONNECTORS */
.jQBracket .connector { border-color: rgba(255,255,255,0.15) !important; border-width: 2px !important; }
.jQBracket .connector.dynamic-flow { border-color: var(--wof-gold) !important; opacity: 0.9 !important; box-shadow: 0 0 15px var(--wof-gold) !important; }

/* 5. PLAYER STATS LIST - 'ELITE' RESTORATION */
.wof-stat-list { list-style: none !important; margin: 0 !important; padding: 20px 0 !important; width: 100% !important; max-width: 100% !important; }
.wof-stat-item {
    display: grid !important;
    grid-template-columns: 100px 80px 1fr 180px !important; /* WIDER FOR BEAUTY */
    align-items: center !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid transparent !important;
    margin-bottom: 15px !important;
    height: 100px !important;
    border-radius: 8px !important;
    padding: 0 30px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}
.wof-stat-item:hover { 
    background: rgba(255, 255, 255, 0.04) !important; 
    border-left-color: var(--wof-gold) !important; 
    transform: translateX(10px) !important;
    box-shadow: -10px 0 30px rgba(240, 192, 64, 0.1) !important;
}

.wof-stat-rank { 
    font-size: 56px !important; 
    font-weight: 900 !important; 
    font-style: italic !important; 
    color: rgba(255, 255, 255, 0.08) !important; 
    text-align: left !important;
    line-height: 1 !important;
}

.wof-stat-player-photo { 
    width: 64px !important; 
    height: 64px !important; 
    border-radius: 50% !important; 
    overflow: hidden !important; 
    border: 2px solid rgba(240, 192, 64, 0.4) !important; 
    background: #000 !important; 
    box-shadow: 0 0 15px rgba(0,0,0,0.5) !important;
}
.wof-stat-player-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.wof-stat-player-info { 
    display: flex !important; 
    flex-direction: column !important; 
    padding-left: 25px !important; 
    justify-content: center !important; 
}
.wof-stat-player-name { 
    font-size: 26px !important; 
    color: #fff !important; 
    text-transform: uppercase !important; 
    font-weight: 800 !important; 
    letter-spacing: 1px !important;
    line-height: 1.1 !important; 
}
.wof-stat-player-team { 
    font-size: 14px !important; 
    color: var(--wof-gold) !important; 
    opacity: 0.7 !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important;
    margin-top: 4px !important;
}

.wof-stat-value { 
    font-size: 54px !important; 
    font-weight: 900 !important; 
    color: var(--wof-gold) !important; 
    text-shadow: 0 0 30px rgba(240, 192, 64, 0.5) !important; 
    text-align: right !important; 
    font-style: italic !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}

/* 6. GROUPS TABS - STRETCH TABLES */
.sp-template-event-list, .sp-template-league-table { width: 100% !important; max-width: 95% !important; margin-left: auto !important; margin-right: auto !important; margin-bottom: 40px !important; }
.sp-league-table { width: 100% !important; background: rgba(255,255,255,0.02) !important; border: 1px solid rgba(255,255,255,0.05) !important; }
.sp-league-table th, .sp-league-table td { padding: 15px !important; font-size: 15px !important; border-color: rgba(255,255,255,0.05) !important; }

/* 7. H2H TOOLTIP */
.wof-h2h-tooltip { position: absolute !important; z-index: 999999 !important; background: #0d0d1a !important; border: 2px solid var(--wof-gold) !important; border-radius: 12px !important; padding: 25px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.9) !important; color: #fff !important; min-width: 350px !important; }

/* 8. MOBILE */
@media (max-width: 991px) {
    .wof-elite-hud-dashboard { flex-direction: column !important; }
    .wof-hud-sidebar { width: 100% !important; flex-direction: row !important; height: auto !important; padding: 15px !important; }
    .wof-tournament-dashboard-wrapper { width: 100% !important; margin: 0 !important; left: 0 !important; right: 0 !important; }
    .wof-stat-item { grid-template-columns: 50px 60px 1fr 80px !important; height: 80px !important; padding: 0 15px !important; }
    .wof-stat-rank { font-size: 32px !important; }
    .wof-stat-player-name { font-size: 18px !important; }
    .wof-stat-value { font-size: 36px !important; }
}
