/* 0. BLIZZARD BRAND FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

/* --- SC2Links 2026 Unified Design System --- */

/* 1. THEME OVERRIDES (No !important tags) */
html[class*="dark-mode"] body #Top_bar,
html[class*="dark-mode"] body #Header_wrapper,
html[class*="dark-mode"] body #Top_bar #menu,
html[class*="dark-mode"] body #Top_bar #menu ul,
html[class*="dark-mode"] body #Top_bar #menu ul li,
html[class*="dark-mode"] body #Top_bar #menu ul li a span {
    background-color: #0f1011;
}
html[class*="dark-mode"] body #Header_wrapper { background-image: none; }

body #header, body .header-v2, body .mfn-main-header, body #Action_bar, 
body .page-title-wrap, body #Subheader, body .mfn-subheader { 
    display: none; 
}
body #Content { padding-top: 0; margin-top: 0; }

/* 2. GLOBAL V2 HEADER */
.v2-header-wrap {
    display: block;
    background: #621c11; 
    border-bottom: 3px solid #c25238; 
    padding: 10px 0;
    position: relative;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.v2-header-wrap .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.v2-header-wrap .v2-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.v2-header-wrap .v2-badge {
    background: #c25238;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 12px;
}

/* 3. SEARCH BAR */
.v2-header-wrap .v2-header-search {
    flex: 1;
    max-width: 550px;
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.v2-header-wrap .v2-header-search form {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 0 10px 0 16px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
}

html.dark-mode body .v2-header-wrap .v2-header-search form {
    background: #1a1a1b;
    border: 1px solid #333;
}

.v2-header-wrap .v2-header-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #1c1c1e;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    height: auto; 
    outline: none;
    padding: 10px 0; 
    margin: 0;
    line-height: normal; 
}

html.dark-mode body .v2-header-wrap .v2-header-search input[type="search"] {
    color: #f8fafc;
}

body .v2-header-wrap .v2-header-search form button[type="submit"] {
    background-color: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: 0;
    transition: color 0.2s ease;
}

body .v2-header-wrap .v2-header-search form button[type="submit"]:hover {
    color: #c25238;
}

/* 4. CONTENT WRAPPERS & GLOBAL DARK MODE BACKGROUND */
html.dark-mode, 
html.dark-mode body,
html.dark-mode body #Wrapper,
html.dark-mode body #Content,
html.dark-mode body .s2l-v2 { 
    background-color: #0f1011; 
}

body .s2l-v2 {
    display: block;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
}

body .s2l-v2 .cinema-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
}

body .s2l-v2 .match-header { text-align: center; margin-bottom: 30px; }
body .s2l-v2 .match-title { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #1c1c1e; 
    letter-spacing: -1px;
}
html.dark-mode body .s2l-v2 .match-title { color: #f2f2f7; }

/* 5. MATCH PAGE: THE UNIFIED CONTROL BAR */
body .s2l-v2 .video-unit {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
html.dark-mode body .s2l-v2 .video-unit { background: #1a1a1b; border: 1px solid #333; }

body .s2l-v2 .nav-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900;
}
html.dark-mode body .s2l-v2 .nav-strip { border-bottom-color: #333; background: #1a1a1b; }

body .s2l-v2 .nav-left { width: 140px; }
body .s2l-v2 .nav-right { width: 140px; text-align: right; }
body .s2l-v2 .nav-btn { text-decoration: none; color: #c25238; }
body .s2l-v2 .round-indicator { text-transform: uppercase; font-size: 14px; }
html.dark-mode body .s2l-v2 .round-indicator { color: #94a3b8; }

body .s2l-v2 .tournament-label { font-family: 'Montserrat', sans-serif; font-weight: 900; }
body .s2l-v2 .tournament-back-link { text-decoration: none; color: #c25238; text-transform: uppercase; }

body .s2l-v2 .match-player-link { text-decoration: none; color: #1e293b; transition: color 0.2s; }
body .s2l-v2 .match-player-link:hover { color: #c25238; }
html.dark-mode body .s2l-v2 .match-player-link { color: #f8fafc; }
html.dark-mode body .s2l-v2 .match-player-link:hover { color: #c25238; }

body .s2l-v2 .match-vs { font-size: 0.5em; opacity: 0.6; vertical-align: middle; margin: 0 15px; }

body .s2l-v2 .video-frame { background: #000; aspect-ratio: 16/9; position: relative; }

body .s2l-v2 .controls-tray {
    display: flex;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 12px; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900;
}
html.dark-mode body .s2l-v2 .controls-tray { background: #1a1a1b; border-top: 1px solid #333; }

body .s2l-v2 .tray-section {
    display: flex;
    flex: 0 1 auto; 
    align-items: center;
    gap: 12px;
}

body .s2l-v2 .v2-control-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #1c1c1e;
    cursor: pointer;
}
html.dark-mode body .s2l-v2 .v2-control-btn { background: #2d2d2f; color: #fff; border-color: #444; }

body .s2l-v2 .v2-icon-btn { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 4px; 
    padding: 4px; 
}
html.dark-mode body .s2l-v2 .v2-icon-btn { background-color: #2d2d2f; }
html.dark-mode body .s2l-v2 .v2-icon-btn img { filter: invert(1) brightness(1.5); mix-blend-mode: screen; }

body .s2l-v2 .v2-icon-btn.main-play { background-color: #f1f5f9; padding: 8px; border-radius: 6px; }
html.dark-mode body .s2l-v2 .v2-icon-btn.main-play { background-color: #c25238; }
html.dark-mode body .s2l-v2 .v2-icon-btn.main-play img { filter: brightness(0) invert(1); mix-blend-mode: normal; }

body .s2l-v2 .v2-range { accent-color: #c25238; width: 80px; }

body .s2l-v2 .v2-fullscreen-btn {
    background: #1c1c1e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}
html.dark-mode body .s2l-v2 .v2-fullscreen-btn { background: #c25238; }

/* --- 6. TOURNAMENT GRID COMPONENTS --- */

body .s2l-v2 .v2-tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; 
    margin-top: 30px;
    justify-items: center; 
}

body .s2l-v2 .tournament-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px; 
    width: 100%;
    max-width: 320px; 
    min-height: 140px; 
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

html.dark-mode body .s2l-v2 .tournament-card {
    background: #1a1a1b;
    border: 1px solid #2d2d2f;
    box-shadow: none;
}

body .s2l-v2 .tournament-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 82, 56, 0.3);
}

html.dark-mode body .s2l-v2 .tournament-card:hover {
    border-color: #c25238;
    box-shadow: 0 0 20px rgba(194, 82, 56, 0.15);
}

body .s2l-v2 .tournament-card h3 {
    margin: 0 0 10px 0;
    padding: 0;
}

/* --- 7. TOURNAMENT DETAIL & PLAYER VODS: COLLAPSIBLE ROUNDS --- */

body .v2-match-list-container {
    max-width: 900px;
    margin: 0 auto 100px auto;
    padding: 0 10px;
}

body .v2-round-container {
    margin-bottom: 25px;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
html.dark-mode body .v2-round-container { background: #1a1a1b; border-color: #2d2d2f; }

body .v2-round-header {
    padding: 18px 25px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
html.dark-mode body .v2-round-header { background: #222223; border-bottom-color: #2d2d2f; }

body .v2-round-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    color: #c25238; 
}

/* --- 8. MATCH ROW & REFINED HIERARCHY --- */

body .match-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    color: #1e293b;
    line-height: 1.1;
    text-transform: uppercase;
}
html.dark-mode body .match-title { color: #f8fafc; }

body .v2-round-header {
    padding: 35px 30px;
    background: #ffffff;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}
body .v2-round-header:hover { background: #fcfdfe; }
html.dark-mode body .v2-round-header { background: #1a1a1b; border-bottom-color: #2d2d2f; }

body .v2-round-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.5px;
}
html.dark-mode body .v2-round-title { color: #ffffff; }

body .v2-toggle-icon {
    display: inline-block;
    margin-top: 10px;
    font-size: 18px; 
    color: #c25238;
    transition: transform 0.3s ease;
}

body .is-collapsed .v2-toggle-icon {
    transform: rotate(-90deg);
}

body .v2-match-row {
    display: grid;
    grid-template-columns: 140px 1fr 140px; 
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s ease;
}
body .v2-match-row:hover { background: rgba(0,0,0,0.015); }
html.dark-mode body .s2l-v2 .v2-match-row { border-bottom-color: #2d2d2f; }

body .s2l-v2 .v2-col-reveal {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body .v2-reveal-btn, body #toggleAllBtn {
    background: #c25238;
    color: #fff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(194, 82, 56, 0.2);
}

body .v2-reveal-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 10px;
    margin: 0 auto;
    display: block;
}

body #toggleAllBtn {
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 11px;
}

body .v2-reveal-btn:hover, body #toggleAllBtn:hover { 
    background: #e65d3e; 
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(194, 82, 56, 0.3);
}

body .s2l-v2 .v2-match-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    animation: revealIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body .v2-player-names {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 18px;
    color: #0f172a;
    text-decoration: none;
    animation: revealIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark-mode body .v2-player-names { color: #f8fafc; }
body .v2-player-names.hidden { display: none; }

body .v2-player-names .player-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

body .v2-player-names .vs {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
    font-style: italic;
    text-transform: lowercase;
}

body .s2l-v2 .v2-tournament-meta {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #c25238;
    text-align: center;
}

body .v2-watch-btn {
    display: inline-block;
    background: #ffffff;
    color: #c25238;
    border: 2px solid #c25238;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
body .v2-watch-btn:hover { 
    background: #c25238; 
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(194, 82, 56, 0.15);
}

html.dark-mode body .v2-watch-btn {
    background: transparent;
    border-color: #c25238;
    color: #c25238;
}

body .v2-col-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: right;
}

body .is-collapsed .v2-round-content { display: none; }
body .is-collapsed .v2-round-header { border-bottom: none; }

@keyframes revealIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================================
   HOME PAGE: HERO SECTION & SEARCH
   ========================================================= */

body .s2l-v2.home-v3-root .home-hero-v3 { 
    padding: 20px 20px 20px; 
    text-align: center; 
}

body .s2l-v2.home-v3-root .hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
}

body .s2l-v2.home-v3-root .home-logo-refined { 
    display: block;
    max-width: 450px; 
    height: auto; 
    margin: 0 auto;
    transition: filter 0.3s ease;
}

/* Ultimate HD "Blizzard" Logo Glow */
html.dark-mode body .s2l-v2.home-v3-root .home-logo-refined {
    filter: 
        drop-shadow(0 0 2px rgba(194, 82, 56, 1))    
        drop-shadow(0 0 6px rgba(194, 82, 56, 0.8))  
        drop-shadow(0 0 15px rgba(194, 82, 56, 0.4));
}

body .s2l-v2.home-v3-root .hero-search-v3 { 
    width: 100%; 
    max-width: 500px; 
    margin-top: 10px; 
}

/* Flexbox Pill Container for Hero Search (Matches Nav Header) */
body .s2l-v2.home-v3-root form.v2-search-form { 
    display: flex; 
    flex-direction: row;
    align-items: center;
    width: 100%; 
    height: 40px; /* FIX: Container controls the height */
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 0 10px 0 20px;
    box-sizing: border-box;
}

html.dark-mode body .s2l-v2.home-v3-root form.v2-search-form {
    background-color: #1a1b1e;
    border-color: #2d2d2f;
}

/* Clean transparent input that fills flex space */
body .s2l-v2.home-v3-root form.v2-search-form .v2-search-input { 
    flex: 1;
    width: 100%; 
    height: auto; /* FIX: Remove fixed height to prevent clipping */
    margin: 0; /* FIX: Nuke BeTheme margins */
    line-height: normal; /* FIX: Reset text baseline */
    padding: 0 10px 0 0; 
    font-size: 13px; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border: none;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    color: #1c1c1e;
}

html.dark-mode body .s2l-v2.home-v3-root form.v2-search-form .v2-search-input {
    color: #fff;
}

/* Flex item button, perfectly aligned */
body .s2l-v2 form.v2-search-form button.v2-search-submit { 
    flex: 0 0 auto;
    border: none; 
    background-color: transparent; 
    color: #94a3b8; 
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

html.dark-mode body .s2l-v2 form.v2-search-form button.v2-search-submit { color: #64748b; }
body .s2l-v2 form.v2-search-form button.v2-search-submit:hover { color: #c25238; }


/* --- 10. COMPACT DASHBOARD GRID --- */
body .s2l-v2.home-v3-root .centered-content-wrap {
    max-width: 1000px; 
    margin: 0 auto;
}

body .s2l-v2.home-v3-root .home-main-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; 
    padding-bottom: 40px;
}

body .s2l-v2.home-v3-root .column-heading-centered {
    text-align: center;
    font-size: 16px; 
    font-weight: 900;
    text-transform: uppercase;
    color: #c25238;
    margin-bottom: 20px;
    letter-spacing: 1.2px;
    font-family: 'Montserrat', sans-serif;
}

/* Hide accordion icon on Desktop */
body .s2l-v2.home-v3-root .v2-accordion-icon {
    display: none;
}

body .s2l-v2.home-v3-root .tournament-full-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px; 
    padding: 20px 15px; 
    margin-bottom: 15px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s ease-in-out;
    min-height: 135px; /* STABILIZE HEIGHT TO PREVENT FONT JUMP */
    justify-content: center;
    box-sizing: border-box;
}

body .s2l-v2.home-v3-root .tournament-full-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: rgba(194, 82, 56, 0.2);
}

body .s2l-v2.home-v3-root .tournament-full-card .card-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

body .s2l-v2.home-v3-root .t-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; 
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px; 
    letter-spacing: -0.3px;
    line-height: 1.2;
}

body .s2l-v2.home-v3-root .t-card-divider {
    height: 1px;
    background: #f1f5f9;
    width: 60%; 
    margin: 0 auto 12px auto;
}

body .s2l-v2.home-v3-root .t-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; 
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

body .s2l-v2.home-v3-root .t-card-action {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; 
    font-weight: 900;
    color: #c25238;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

html.dark-mode body .s2l-v2.home-v3-root .tournament-full-card { 
    background: #1a1a1b; 
    border-color: #2d2d2f; 
}
html.dark-mode body .s2l-v2.home-v3-root .t-card-name { color: #f8fafc; }
html.dark-mode body .s2l-v2.home-v3-root .t-card-divider { background: #2d2d2f; }

/* --- 11. TOP VODS --- */
body .s2l-v2 .vod-match-card {
    padding: 25px 20px;
    min-height: 155px; /* STABILIZE HEIGHT TO PREVENT FONT JUMP */
    justify-content: center;
    box-sizing: border-box;
}

body .s2l-v2 .vod-match-card .matchup-row-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 28px; 
    width: 100%;
    text-align: center;
}

body .s2l-v2 .vod-match-card .matchup-row-centered span {
    flex: 0 1 auto;
}

body .s2l-v2 .vod-match-card .matchup-row-centered strong {
    font-weight: 800;
}

body .s2l-v2 .vod-match-card .matchup-row-centered .vs {
    font-size: 10px;
    color: #94a3b8;
}

body .s2l-v2 .vod-match-card .v2-watch-btn {
    margin-bottom: 15px;
    display: inline-block;
}

body .s2l-v2 .vod-match-card .v2-reveal-btn {
    margin: 10px auto;
}

body .s2l-v2 .v2-hidden-match {
    display: none;
}

body .s2l-v2 .vod-view-group {
    width: 100%;
}

body .s2l-v2 .no-data-msg {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

/* --- 12. CONTROLS --- */
body .s2l-v2 .v2-select {
    background-color: #2d2d2f; 
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
html.dark-mode body .s2l-v2 .v2-select { background: #2d2d2f; color: #f8fafc; border-color: #444; }

body .s2l-v2 .v2-select:focus {
    outline: none;
    border-color: #c25238;
}

body .s2l-v2.home-v3-root .v2-sort-bar-v3 {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

body .s2l-v2.home-v3-root .v2-controls-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

body .s2l-v2.home-v3-root .v2-sort-label {
    color: #c25238;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

html.dark-mode body .s2l-v2.home-v3-root .v2-sort-bar-v3 { 
    background: #1a1a1b; 
    border-color: #333; 
}

body .s2l-v2.home-v3-root .v2-time-btn { 
    background: none; 
    border: none; 
    color: #94a3b8; 
    font-weight: 900; 
    font-size: 12px; 
    cursor: pointer; 
}
body .s2l-v2.home-v3-root .v2-time-btn.active { 
    color: #c25238; 
}

body .v2-reveal-pill input { display: none; }
body .v2-reveal-pill span {
    background-color: #c25238;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #c25238;
}

body .v2-reveal-pill input:checked + span {
    background-color: transparent;
    color: #c25238;
}

/* --- 13. VODS PAGE (ALL TOURNAMENTS) --- */
body .s2l-v2 .v2-tournament-row { 
    display: grid;
    grid-template-columns: 150px 1fr 150px; 
    align-items: center; 
    padding: 15px 30px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    text-decoration: none;
}
html.dark-mode body .s2l-v2 .v2-tournament-row { border-bottom-color: #2d2d2f; }
body .s2l-v2 .v2-tournament-row:hover { background: #fcfdfe; }
html.dark-mode body .s2l-v2 .v2-tournament-row:hover { background: rgba(255,255,255,0.02); }

body .s2l-v2 .t-date { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600; 
    font-size: 11px; 
    color: #64748b; 
    text-align: left;
}
html.dark-mode body .s2l-v2 .t-date { color: #94a3b8; }

body .s2l-v2 .t-name { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    font-size: 16px; 
    color: #1e293b; 
    text-transform: uppercase;
    text-align: center;
}
html.dark-mode body .s2l-v2 .t-name { color: #f8fafc; }

body .s2l-v2 .t-link { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    font-size: 11px; 
    color: #c25238; 
    text-transform: uppercase;
    text-align: right;
}

/* --- 14. PLAYERS DIRECTORY --- */
body .s2l-v2 .big-letter {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #c25238;
}

body .s2l-v2 .player-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 30px 40px;
    box-sizing: border-box;
    width: 100%;
}

body .s2l-v2 .mini-player-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.04);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
html.dark-mode body .s2l-v2 .mini-player-card {
    background: #222223;
    border-color: #333;
}
body .s2l-v2 .mini-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: rgba(194, 82, 56, 0.3);
}
html.dark-mode body .s2l-v2 .mini-player-card:hover {
    border-color: #c25238;
}

body .s2l-v2 .player-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark-mode body .s2l-v2 .player-name {
    color: #f8fafc;
}

/* Global Race Indicators (Players & Search) */
body .s2l-v2 .race-indicator {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 900;
    margin-right: 12px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f1f5f9;
}
html.dark-mode body .s2l-v2 .race-indicator {
    background: #2d2d2f;
}
body .s2l-v2 .race-p .race-indicator, body .s2l-v2 .race-indicator.race-p { color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
body .s2l-v2 .race-z .race-indicator, body .s2l-v2 .race-indicator.race-z { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
body .s2l-v2 .race-t .race-indicator, body .s2l-v2 .race-indicator.race-t { color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }

/* --- 15. SEARCH RESULTS PAGE --- */
body .s2l-v2.search-v2-page .search-title {
    font-size: 24px;
    margin-top: 10px;
}
body .s2l-v2.search-v2-page .search-col-heading {
    margin-bottom: 25px;
}
body .s2l-v2.search-v2-page .home-main-grid-v3 {
    align-items: start;
}
body .s2l-v2.search-v2-page .tournament-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
body .s2l-v2.search-v2-page .tournament-card .card-content {
    background: #ffffff; 
    padding: 22px 20px; 
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05); 
    text-align: center;
    min-height: 115px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
html.dark-mode body .s2l-v2.search-v2-page .tournament-card .card-content {
    background: #1a1a1b;
    border-color: #2d2d2f;
    color: #f8fafc;
    box-shadow: none;
}
body .s2l-v2.search-v2-page .tournament-card:hover .card-content {
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 82, 56, 0.3);
}
html.dark-mode body .s2l-v2.search-v2-page .tournament-card:hover .card-content {
    border-color: #c25238;
    box-shadow: 0 0 20px rgba(194, 82, 56, 0.15);
}
body .s2l-v2.search-v2-page .card-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
body .s2l-v2.search-v2-page .search-year-section {
    margin-bottom: 30px;
}
body .s2l-v2.search-v2-page .search-year-heading {
    font-family: 'Montserrat', sans-serif; 
    font-size: 11px; 
    font-weight: 900; 
    color: #c25238; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding-bottom: 5px; 
    margin-bottom: 15px;
    text-transform: uppercase;
}
html.dark-mode body .s2l-v2.search-v2-page .search-year-heading {
    border-bottom-color: #2d2d2f;
}
body .s2l-v2.search-v2-page .card-mid-title {
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin: 0;
    color: #1e293b;
}
html.dark-mode body .s2l-v2.search-v2-page .card-mid-title { color: #f8fafc; }
body .s2l-v2.search-v2-page .view-matches-link {
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    font-size: 11px; 
    color: #c25238; 
    text-transform: uppercase;
    display: inline-block;
}
body .s2l-v2.search-v2-page .card-bottom-row {
    padding-top: 15px; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    width: 100%; 
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
html.dark-mode body .s2l-v2.search-v2-page .card-bottom-row {
    border-top-color: #2d2d2f;
}
body .s2l-v2.search-v2-page .search-player-header {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 10px;
}
body .s2l-v2.search-v2-page .last-updated {
    display: block; 
    font-size: 10px; 
    color: #94a3b8; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
body .s2l-v2.search-v2-page .search-no-results {
    text-align: center; 
    color: #94a3b8; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* --- Global WordPress Header: Dark Mode Override --- */
html.dark-mode body #Wrapper #Header_wrapper,
html.dark-mode body #Wrapper #Header_wrapper #Top_bar,
html.dark-mode body #Header_wrapper #Top_bar,
html.dark-mode body #Top_bar,
html.dark-mode body #Top_bar .container,
html.dark-mode body #Header,
html.dark-mode body #Header_wrapper,
html.dark-mode body .mfn-main-header,
html.dark-mode body .mfn-header-main,
html.dark-mode body #Top_bar .top_bar_left,
html.dark-mode body #Top_bar .menu_wrapper {
    background-color: #0f1011; 
    border-bottom: 1px solid #2d2d2f;
}

html.dark-mode body #Top_bar .menu > li > a,
html.dark-mode body #Top_bar .top_bar_left .logo,
html.dark-mode body .responsive-menu-toggle {
    color: #f8fafc;
}

html.dark-mode body #Top_bar input[type="text"],
html.dark-mode body #Top_bar input[type="search"] {
    background-color: #0f1011;
    border: 1px solid #444;
    color: #f8fafc;
}

/* MENU FIXES */
html.dark-mode body #Top_bar #menu,
html.dark-mode body #Top_bar .menu_wrapper,
html.dark-mode body #menu-main-menu,
html.dark-mode body ul.menu-main-menu,
html.dark-mode body .menu-main-menu-container,
html.dark-mode body #Action_bar {
    background-color: #0f1011;
    border-color: #2d2d2f;
}

/* Dropdown popups keep a slight contrast to stand out */
html.dark-mode body #Top_bar .menu > li > ul.sub-menu {
    background-color: #1a1a1b;
    border: 1px solid #2d2d2f;
}

html.dark-mode body #menu-main-menu > li > a,
html.dark-mode body ul.menu-main-menu > li > a,
html.dark-mode body #Top_bar .menu > li > ul.sub-menu li a {
    color: #f8fafc;
}

html.dark-mode body #menu-main-menu > li > a:hover,
html.dark-mode body ul.menu-main-menu > li > a:hover,
html.dark-mode body #Top_bar .menu > li > ul.sub-menu li a:hover {
    background-color: #2d2d2f;
    color: #c25238;
}

/* MOBILE MENU (Side Slide) FIXES */
html.dark-mode body #Side_slide,
html.dark-mode body #Side_slide .wrapper,
html.dark-mode body #Side_slide .menu_wrapper,
html.dark-mode body #Side_slide ul.menu,
html.dark-mode body #Side_slide ul.menu > li,
html.dark-mode body #Side_slide ul.menu > li > a {
    background-color: #0f1011;
    color: #f8fafc;
    border-color: #2d2d2f;
}

html.dark-mode body #Side_slide ul.menu > li > a:hover {
    background-color: #2d2d2f;
    color: #c25238;
}

html.dark-mode body #Side_slide .close {
    color: #f8fafc;
}

/* --- Global WordPress Footer: Dark Mode Override --- */
html.dark-mode body #Footer,
html.dark-mode body #Footer .widgets_wrapper,
html.dark-mode body #Footer .footer_copy {
    background-color: #0f1011;
    border-top: 1px solid #2d2d2f;
    color: #94a3b8;
}

html.dark-mode body #Footer a {
    color: #f8fafc;
}

html.dark-mode body #Footer a:hover {
    color: #c25238;
}

/* Clean Dark Mode Search Bar */
html.dark-mode body .v2-header-wrap .v2-header-search form {
    background-color: #0f1011;
    border: 1px solid #333;
}

html.dark-mode body .v2-header-wrap .v2-header-search input[type="search"] {
    background-color: transparent;
    border: none;
    color: #f8fafc;
}

/* --- Unified Dark Mode Toggle Button --- */
body .v2-mode-btn, body .v2-control-btn {
    background: #c25238; 
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(194, 82, 56, 0.2);
}

body .v2-mode-btn:hover, body .v2-control-btn:hover {
    background: #e65d3e;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(194, 82, 56, 0.3);
}

html.dark-mode body .v2-mode-btn, 
html.dark-mode body .v2-control-btn {
    background: #2d2d2f; 
    color: #f8fafc;
    border: 1px solid #444;
    box-shadow: none;
}

html.dark-mode body .v2-mode-btn:hover, 
html.dark-mode body .v2-control-btn:hover {
    background: #3d3d3f;
    border-color: #c25238; 
}

/* --- V2 Mobile Aggressive Shrink & Real Estate Optimization --- */
@media (max-width: 768px) {
    body .v2-header-wrap .header-inner { flex-direction: column; height: auto; padding: 15px; gap: 15px; }

    /* Home Hero specific overrides */
    body .s2l-v2.home-v3-root .home-hero-v3 { padding: 10px; }
    body .s2l-v2.home-v3-root .hero-content { gap: 8px; }
    body .s2l-v2.home-v3-root .home-logo-refined { max-width: 220px; margin-bottom: 15px; } 
    body .s2l-v2.home-v3-root .hero-search-v3 { max-width: 280px; margin: 10px auto 0; }
    
    body .s2l-v2.home-v3-root form.v2-search-form {
        padding: 0 5px 0 15px;
        height: 36px; /* Let's give it 36px on mobile for better touch target */
    }
    
    body .s2l-v2.home-v3-root form.v2-search-form .v2-search-input { 
        height: auto; 
        font-size: 11px; 
        padding: 0 5px 0 0;
    }
    
    body .s2l-v2 form.v2-search-form button.v2-search-submit { 
        font-size: 14px;
        width: 24px;
        height: 24px;
    }

    /* FIX: Convert Grid to Stacked Columns for Mobile */
    body .s2l-v2.home-v3-root .home-main-grid-v3 {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* FIX: Ensure columns span full width on Mobile */
    body .s2l-v2.home-v3-root .home-col {
        width: 100%;
        box-sizing: border-box;
    }

    /* FIX: Mobile Collapsible Accordion Styles */
    body .s2l-v2.home-v3-root .collapsible-trigger {
        cursor: pointer;
        padding: 12px 15px;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 8px;
        display: flex;
        justify-content: center;
        gap: 10px;
        align-items: center;
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    html.dark-mode body .s2l-v2.home-v3-root .collapsible-trigger {
        background: #1a1b1e;
        border-color: #2d2d2f;
    }

    body .s2l-v2.home-v3-root .v2-accordion-icon {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 10px;
        color: #c25238;
    }
    
    body .s2l-v2.home-v3-root .mobile-collapsible.active .v2-accordion-icon {
        transform: rotate(180deg);
    }

    /* Hide the content by default on mobile */
    body .s2l-v2.home-v3-root .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    /* Reveal the content when the active class is toggled via JS */
    body .s2l-v2.home-v3-root .mobile-collapsible.active .collapsible-content {
        max-height: 5000px; /* Large enough to hold the VOD list */
    }

    /* VOD Navigation Buttons */
    body .s2l-v2.home-v3-root .v2-sort-bar-v3 { 
        padding: 6px 10px; 
        margin-bottom: 15px; 
    }
    body .s2l-v2.home-v3-root .v2-controls-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    body .s2l-v2.home-v3-root .v2-reveal-pill-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 8px;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 4px;
    }
    html.dark-mode body .s2l-v2.home-v3-root .v2-reveal-pill-wrapper {
        border-top-color: #2d2d2f;
    }
    body .s2l-v2.home-v3-root .v2-time-btn { 
        font-size: 11px; 
        padding: 4px 8px;
    }
    body .s2l-v2.home-v3-root .v2-reveal-btn { 
        font-size: 10px; 
        padding: 6px 20px; 
    }

    /* VODs Page Mobile Overrides */
    body .s2l-v2 .match-header { padding: 15px 0 5px; text-align: center; }
    body .s2l-v2 .match-title { font-size: 18px; margin-bottom: 10px; padding: 0 10px; }
    
    body .s2l-v2 .v2-tournament-row { 
        display: flex; 
        flex-direction: column; 
        padding: 15px 20px; 
        text-align: center; 
        gap: 8px;
    }
    body .s2l-v2 .t-date, body .s2l-v2 .t-name, body .s2l-v2 .t-link { text-align: center; }
    body .s2l-v2 .t-name { font-size: 14px; }

    /* Tournament Detail Mobile Overrides */
    body .s2l-v2 .v2-round-header { 
        padding: 12px 15px; 
    }
    
    body .s2l-v2 .v2-round-title { 
        font-size: 11px; 
        letter-spacing: 0.5px; 
    }
    
    body .s2l-v2 .v2-toggle-icon { 
        font-size: 12px; 
    }

    body .s2l-v2 .v2-match-row {
        display: flex;
        flex-direction: column;
        padding: 12px 15px;
        gap: 10px;
    }
    
    body .s2l-v2 .v2-col-watch, 
    body .s2l-v2 .v2-col-reveal, 
    body .s2l-v2 .v2-col-date {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    body .s2l-v2 .v2-watch-btn, 
    body .s2l-v2 .v2-reveal-btn {
        width: 160px;
        padding: 6px 10px;
        font-size: 9px;
        box-sizing: border-box;
    }

    body .s2l-v2 .v2-player-names {
        font-size: 14px;
    }

    body .s2l-v2 .v2-col-date {
        justify-content: center; 
        font-size: 9px;
        color: #94a3b8;
        margin-top: 5px;
    }

    /* Match Page Specific Mobile Overrides */
    body .s2l-v2 .nav-strip { padding: 10px; }
    body .s2l-v2 .nav-btn { font-size: 9px; }
    body .s2l-v2 .round-indicator { font-size: 10px; }

    body .s2l-v2 .controls-tray { 
        display: flex; 
        flex-direction: column; 
        padding: 15px 5px; 
        gap: 12px; 
    }
    body .s2l-v2 .tray-section.center { 
        order: 1; 
        display: flex; 
        justify-content: center; 
        gap: 4px; 
        width: 100%; 
    }
    body .s2l-v2 .tray-section.center .v2-control-btn { 
        padding: 6px 4px; 
        font-size: 8px; 
        min-width: 38px; 
    }
    body .s2l-v2 .tray-section.center .v2-icon-btn.main-play { 
        padding: 6px; 
    }
    body .s2l-v2 .tray-section.center .v2-icon-btn.main-play img { 
        width: 30px; 
    }

    body .s2l-v2 .tray-section.left { 
        order: 2; 
        display: flex; 
        justify-content: center; 
        gap: 10px; 
    }
    body .s2l-v2 .tray-section.right { 
        order: 3; 
        display: flex; 
        justify-content: center; 
        gap: 10px; 
        margin-top: -5px; 
    }
    
    body .s2l-v2 .v2-select { font-size: 9px; padding: 4px; }
    body .s2l-v2 .v2-range { width: 60px; }
    body .s2l-v2 .v2-fullscreen-btn { font-size: 9px; padding: 6px 10px; }

    /* Players Page Mobile Overrides */
    body .s2l-v2 .big-letter { font-size: 20px; }
    body .s2l-v2 .player-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
    }
    body .s2l-v2 .mini-player-card {
        padding: 6px 10px;
        border-radius: 6px;
    }
    body .s2l-v2 .player-name {
        font-size: 11px;
    }
    body .s2l-v2 .race-indicator {
        width: 16px;
        height: 16px;
        font-size: 7px;
        margin-right: 6px;
        border-radius: 2px;
    }

    /* Search Results Mobile Overrides */
    body .s2l-v2.search-v2-page .home-main-grid-v3 {
        padding: 0 15px;
        align-items: stretch; /* FIX: Force grid columns to fill horizontal space */
    }
}

/* AdSense Container - Adjusted for Layering */
.v2-ad-box {
    width: 100%;
    max-width: 1200px; 
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* NEW: This allows the Patreon message to sit behind the ad */
    position: relative; 
    min-height: 125px; /* Ensures the box doesn't collapse if the ad is blocked */
}

/* Compliance Label */
.v2-ad-box::before {
    content: "ADVERTISEMENT";
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    z-index: 3; /* Keeps label above everything */
}

/* NEW: The Patreon Message (The "Ghost" Layer) */
.v2-patreon-fallback {
    position: absolute;
    top: 55%; /* Centered below the Advertisement label */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 1; /* Sits at the very bottom */
}

.v2-patreon-fallback p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.v2-patreon-fallback a {
    color: #c25238; /* Your brand orange/red */
    text-decoration: none;
    font-weight: 800;
}

/* The actual Ad unit - Adjusted to hide the fallback */
.v2-ad-box ins {
    position: relative;
    z-index: 2; /* Sits on top of Patreon, but below Label */
    width: 100%;
    display: block;
    
    /* CRITICAL: The background color hides the Patreon message behind it */
    background-color: #ffffff; 
}

/* Dark Mode Adjustments */
html.dark-mode .v2-ad-box {
    background-color: transparent;
}

html.dark-mode .v2-ad-box ins {
    background-color: #0f172a; /* Matches your dark mode background */
}

html.dark-mode .v2-patreon-fallback p {
    color: #64748b;
}

/* --- Blog Excerpt: Multi-Mode Visibility --- */

/* 1. Light Mode Default (Dark text on white cards) */
#sc2l-blog-v2 .blog-excerpt-text,
#sc2l-blog-v2 .blog-excerpt-text p {
    color: #334155; /* Deep slate - very readable on white */
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 2. Dark Mode Override (Light text on dark cards) */
/* The extra 'html.dark-mode' class makes this more specific than the rule above */
html.dark-mode #sc2l-blog-v2 .blog-excerpt-text,
html.dark-mode #sc2l-blog-v2 .blog-excerpt-text p {
    color: #cbd5e1; /* Light slate - pops on the dark backgrounds */
}

/* 3. Link handling for both modes */
#sc2l-blog-v2 .blog-excerpt-text a {
    color: #c25238;
    text-decoration: none;
    font-weight: 700;
}

#sc2l-blog-v2 .blog-excerpt-text a:hover {
    text-decoration: underline;
}

/* --- High-Priority Post Content Fix --- */

/* 1. Force the container background */
#sc2l-post-v2 .post-content-area {
    background-color: #ffffff; /* Light Mode */
    border: 1px solid #e2e8f0;
}

html.dark-mode #sc2l-post-v2 .post-content-area {
    background-color: #1a1a1b; /* Dark Mode */
    border-color: #2d2d2f;
}

/* 2. Force the text color (Scalpel method) */
#sc2l-post-v2 .blog-content-v2,
#sc2l-post-v2 .blog-content-v2 p,
#sc2l-post-v2 .blog-content-v2 li,
#sc2l-post-v2 .blog-content-v2 span {
    color: #1e293b; /* Dark text for light mode */
}

html.dark-mode #sc2l-post-v2 .blog-content-v2,
html.dark-mode #sc2l-post-v2 .blog-content-v2 p,
html.dark-mode #sc2l-post-v2 .blog-content-v2 li,
html.dark-mode #sc2l-post-v2 .blog-content-v2 span {
    color: #f1f5f9; /* Light text for dark mode */
}

/* --- Patreon Page: Multi-Mode Styling --- */

/* 1. Background and Card */
#sc2l-patreon-v2 .patreon-pitch-card {
    background-color: #ffffff; /* Light Mode */
}

html.dark-mode #sc2l-patreon-v2 .patreon-pitch-card {
    background-color: #1a1a1b; /* Dark Mode */
}

/* 2. Text Content Scaling */
#sc2l-patreon-v2 .patreon-content-body {
    padding: 40px;
    line-height: 1.8;
    font-size: 17px;
    color: #334155; /* Dark Slate for Light Mode */
}

html.dark-mode #sc2l-patreon-v2 .patreon-content-body {
    color: #f1f5f9; /* Light Slate for Dark Mode */
}

/* 3. The Personal "Spoiler" Quote */
#sc2l-patreon-v2 .spoiler-quote {
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    color: #c25238;
    border-left: 4px solid #c25238;
    padding-left: 25px;
    margin: 30px 0;
}

/* 4. Highlight Headline */
#sc2l-patreon-v2 .highlight-text {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
}

html.dark-mode #sc2l-patreon-v2 .highlight-text {
    color: #ffffff;
}

/* 5. CTA Button Center */
#sc2l-patreon-v2 .cta-area {
    text-align: center;
    margin: 40px 0;
}

#sc2l-patreon-v2 .patreon-main-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
}

#sc2l-patreon-v2 .signature {
    margin-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    font-size: 15px;
    opacity: 0.8;
}

html.dark-mode #sc2l-patreon-v2 .signature {
    border-top-color: rgba(255,255,255,0.1);
}

/* ==========================================================================
   SC2Links V2 Profile Dashboard
   ========================================================================== */

.s2l-v2 .v2-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.s2l-v2 .v2-profile-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.s2l-v2.dark-mode .v2-profile-card,
body.dark-mode .s2l-v2 .v2-profile-card {
    background-color: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.s2l-v2 .v2-profile-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #222222;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.s2l-v2.dark-mode .v2-profile-card h2,
body.dark-mode .s2l-v2 .v2-profile-card h2 {
    color: #ffffff;
    border-bottom-color: #333333;
}

/* Icon Colors */
.s2l-v2 .v2-icon-fav { color: #e0245e; }
.s2l-v2 .v2-icon-comp { color: #28a745; }
.s2l-v2 .v2-icon-hist { color: #4a90e2; }

/* Lists */
.s2l-v2 .v2-profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2l-v2 .v2-profile-list li {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.s2l-v2 .v2-profile-list a {
    color: #c25238;
    text-decoration: none;
    transition: opacity 0.2s;
}

.s2l-v2 .v2-profile-list a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Match History Rows */
.s2l-v2 .v2-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.s2l-v2.dark-mode .v2-history-row,
body.dark-mode .s2l-v2 .v2-history-row {
    background: #222222;
    border-color: #333333;
}

.s2l-v2 .v2-history-meta {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.s2l-v2 .v2-history-players {
    font-size: 18px;
    font-weight: 900;
    color: #222222;
    font-family: 'Montserrat', sans-serif;
}

.s2l-v2.dark-mode .v2-history-players,
body.dark-mode .s2l-v2 .v2-history-players {
    color: #ffffff;
}

.s2l-v2 .v2-history-players .vs {
    color: #c25238;
    font-size: 14px;
    margin: 0 6px;
}

.s2l-v2 .v2-rewatch-btn {
    background-color: #c25238;
    color: #ffffff;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    transition: background-color 0.2s;
}

.s2l-v2 .v2-rewatch-btn:hover {
    background-color: #a1402a;
    color: #ffffff;
}

.s2l-v2 .v2-empty-state {
    color: #888888;
    font-style: italic;
    margin-top: 10px;
}