@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@900&display=swap');

:root {
    --primary: #003366;
    --secondary: #f0f2f5;
    --accent: #e50914;
    --accent-rgb: 229, 9, 20;
    /* For rgba usage */
    /* Netflix Red vibe */
    --text: #1a1a1a;
    /* Light Mode Gradient (Clean & Modern) */
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);

    --card-bg: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.8);
    --header-bg: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

html.dark-mode {
    --primary: #4fc3f7;
    --secondary: #1e1e1e;
    --accent: #ff5252;
    --accent-rgb: 255, 82, 82;
    --text: #f0f0f0;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    /* Deep Purple/Space */

    --card-bg: rgba(20, 20, 20, 0.65);
    --border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(0, 0, 0, 0.5);
    /* Let gradient show through */
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

html {
    background-color: #0f0c29;
    /* Fallback for dark mode */
    background: var(--bg-gradient);
    /* background-attachment: fixed; REMOVED to fix screenshot issue */
    min-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    /* Background moved to html */
    margin: 0;
    padding: 0;
    color: var(--text);
    transition: color 0.3s;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: var(--header-bg);
    color: white;
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header h1,
header p {
    display: block;
}

header h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    /* Futuristic Tech look */
    font-size: 3.5rem;
    /* Orbitron is wide, slightly reduce size */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Needs more spacing */
    line-height: 1.1;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    /* Hard shadow for sport look */

    background: linear-gradient(to right, #4fc3f7, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.5));

    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.site-title-link {
    text-decoration: none;
    display: inline-block;
    /* Keeps transform/margins working if needed */
}

header p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 10px;
}

.round-title {
    background-color: var(--primary);
    color: white;
    /* Keep white text on primary header even in dark mode if contrast is okay, or adjust */
    color: #fff;
    padding: 10px 15px;
    margin-top: 25px;
    margin-bottom: 15px;
    /* Added separation from cards */
    border-radius: 12px;
    /* Fully rounded */
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html.dark-mode .round-title {
    color: #000;
    /* Dark text on the lighter blue primary in dark mode */
}

.match-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    /* Ultra-Glass */
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 15px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);

    /* Animation */
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    /* overflow: hidden; Removed to allow tooltips */
    /* For shine effect later if needed */
}

/* Dark Mode Card Adjustment */
html.dark-mode .match-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.match-card:hover {
    transform: translateY(-5px) scale(1.01);
    /* Neon Glow Effect */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(var(--accent-rgb), 0.3),
        0 0 20px rgba(229, 9, 20, 0.15);
    /* Accent fade */
    border-color: rgba(229, 9, 20, 0.4);
    z-index: 10;
}

html.dark-mode .match-card:hover {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 82, 82, 0.4),
        0 0 25px rgba(255, 82, 82, 0.25);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 82, 82, 0.5);
}

.match-info {
    flex: 1 1 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    /* Stack badge, date, time */
    align-items: center;
    /* Center horizontally */
    justify-content: center;
    gap: 5px;
    /* Reduce gap between lines */
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 300px;
}

.team {
    display: flex;
    align-items: center;
    flex: 1;
    font-weight: bold;
}

.team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s;
    /* Adicionado para animação */
}

.team img:hover {
    transform: scale(1.1);
    /* Efeito igual ao dos canais */
}

.team.home {
    justify-content: flex-end;
    text-align: right;
}

.team.home img {
    margin-left: 10px;
}

.team.away {
    justify-content: flex-start;
    text-align: left;
}

.team.away img {
    margin-right: 10px;
}

.versus {
    font-size: 1.5rem;
    /* Larger for numbers */
    font-weight: 800;
    /* Bold numbers */
    color: var(--text);
    margin: 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.versus .divider {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.broadcast {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-items: center;
    gap: 5px;
}

.broadcast a {
    display: contents;
    cursor: pointer;
}

.channel-logo {
    height: 20px;
    object-fit: contain;
    /* filter: grayscale(20%); removi o filtro cinza para ficarem coloridas sempre */
    transition: transform 0.2s;
}

/* Reduzir especificamente o logo do Premiere */
.channel-logo[alt="Premiere"] {
    height: 18px;
    /* Reduced from 20px */
}

.channel-logo[alt="Prime Video"] {
    height: 17px;
}

.channel-logo[alt="Globo"],
.channel-logo[alt="GE TV"],
.channel-logo[alt="SBT"] {
    height: 35px;
}

.channel-logo:hover {
    transform: scale(1.1);
}

.classico-highlight {
    border-left: 5px solid gold;
}

@media (min-width: 600px) {
    .match-info {
        flex: 0 0 150px;
        text-align: left;
        margin-bottom: 0;
        display: block;
    }

    .match-info span {
        display: block;
    }

    .broadcast {
        flex: 0 0 150px;
        text-align: right;
        margin-top: 0;
        justify-content: center;
        align-items: flex-end;
    }
}

/* New Styles for Controls, Countdown, Badges, Tooltips */

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensures vertical alignment */
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    display: none;
    /* Hide old select if present */
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 48px;
    /* Explicit match to filter-option (30img + 16pad + 2border) */
    box-sizing: border-box;
    padding: 0 20px;
    border-radius: 20px;
    /* Matched to filter-option radius */
    /* Pill shape */
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    z-index: 20;
}

@media (max-width: 600px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.8rem;
    }
}

.theme-toggle:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-toggle-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    margin-right: 15px;
}

.filter-toggle-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.filter-toggle-btn.menu-open {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

html.dark-mode .filter-toggle-btn.menu-open {
    color: #1a1a1a;
    font-weight: 800;
}

.visual-filter.hidden {
    display: none;
}

.countdown-container {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 10px;
    margin: 0 auto 20px;
    max-width: 900px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    /* Shows on JS load */
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    /* Extra bold */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

@keyframes pulse-icon {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.status-live {
    background: none;
    color: #e50914;
    /* Netflix Red */
    display: inline-flex !important;
    /* Override .match-info span */
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px;
    padding: 2px 4px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    width: fit-content;
    max-width: 100%;
}

.live-dot {
    display: inline-block !important;
    /* Override .match-info span */
    width: 8px;
    height: 8px;
    min-width: 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse-icon 1.2s infinite ease-in-out;
}

.status-scheduled {
    color: #757575;
    background: none;
}

.status-finished {
    color: #444;
    background: none;
    opacity: 0.7;
}

/* Dark mode adjustments for visibility */
html.dark-mode .status-scheduled {
    color: #ccc;
}

html.dark-mode .status-finished {
    color: #aaa;
}

html.dark-mode .status-live {
    color: #ff5252;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Custom Tooltip */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

@media (min-width: 600px) {
    .match-info {
        flex: 0 0 150px;
        text-align: left;
        margin-bottom: 0;
        display: block;
    }

    .match-info span {
        display: block;
    }

    .broadcast {
        flex: 0 0 150px;
        text-align: right;
        margin-top: 0;
        justify-content: center;
        align-items: flex-end;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual Filter Styles - Floating Popup Mode */
.controls-container {
    position: relative;
    /* Anchor for absolute filter */
    z-index: 20;
}




/* Mobile adjustment for filters */
@media (max-width: 600px) {
    .visual-filter {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 320px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .visual-filter:not(.hidden) {
        transform: translate(-50%, -50%) scale(1);
    }

    .mobile-break {
        display: none !important;
        /* Grid flow handles it better in popup */
    }

    .filter-option {
        width: 100%;
        justify-content: flex-start;
    }
}


.filter-option {
    flex: 0 0 auto;
}

/* Hide scrollbar */
.visual-filter::-webkit-scrollbar {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.filter-option:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.filter-option input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.filter-option input[type="radio"]:checked {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: inset 0 0 0 2px white;
}

.filter-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Hero Banner */
.hero-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 15px;
    /* Reduced from 20px */
    text-align: center;
    margin: 0 auto 25px;
    max-width: 100%;
    /* Increased from 550px for Dual View */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: var(--text);
    display: none;
    /* Controlled by JS */
    animation: fadeIn 0.5s ease-out;
}

.hero-header {
    font-size: 0.85rem;
    /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: bold;
}

.hero-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.hero-logo-wrapper,
.broadcast-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrapper[data-tooltip],
.broadcast-wrapper[data-tooltip] {
    cursor: pointer;
}

.hero-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Removed helper cursor/pos relative from img itself */
}

.hero-logo:hover {
    transform: scale(1.15);
}

.hero-vs {
    font-size: 1.3rem;
    font-weight: 800;
    opacity: 0.5;
}

/* ... */

.hero-broadcast {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-broadcast img {
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
    transition: opacity 0.2s;
    display: block;
    /* Remove baseline space inside wrapper */
}

.hero-broadcast img[alt="Premiere"] {
    height: 14px;
}

.hero-broadcast .broadcast-wrapper:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.hero-timer {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    margin-bottom: 10px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.hero-details {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hero-broadcast {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-broadcast a {
    display: contents;
    cursor: pointer;
}

.hero-broadcast img {
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
    transition: opacity 0.2s;
    position: relative;
    /* Needed for tooltip */
}

.hero-broadcast img[alt="Premiere"] {
    height: 14px;
    /* Maintain the specific resize */
}

.hero-broadcast img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust highlight wrapping */
.filter-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Championship Selector Styles */
.championship-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.champ-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.champ-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: var(--secondary);
}

.champ-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Adjust active state for dark mode */
html.dark-mode .champ-btn.active {
    background: var(--primary);
    color: #1a1a1a;
    /* User requested dark text for contrast in dark mode */
    font-weight: bold;
}

.champ-icon-btn {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Specific adjustment for buttons in dark mode to ensure visibility when not active */
html.dark-mode .champ-btn:not(.active) {
    background: rgba(30, 30, 30, 0.6);
    color: #e0e0e0;
}

/* --- Round Navigator --- */
.round-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.round-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.round-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    transform: scale(1.1);
}

.round-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

.round-display {
    text-align: center;
    min-width: 200px;
}

.round-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.round-dates {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .round-navigator {
        gap: 1rem;
        padding: 0.8rem;
    }

    .round-display {
        min-width: 150px;
    }
}

/* Specific adjustments for smaller logos */
.channel-logo[src*='cazetv'],
.channel-logo[src*='record'] {
    height: 40px;
    /* Increased from default */
    min-width: 40px;
}

/* Default adjustment reminding */
.channel-logo {
    height: 25px;
    /* Assuming this was the default, verifying... */
    /* If default is smaller, this override works. If default is 50px (like team), then this is smaller? */
    /* Let's verify existing .channel-logo style first! */
}

.channel-logo[alt='Prime Video'] {
    height: 40px;
    margin: 5px 0;
}

/* Tooltip for Hero (Reusing or adapting existing tooltip logic) */


/* View Toggles */
.view-toggles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.view-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.view-toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    /* Ensure contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Standings Table */
/* Match Champ Btn Active in Dark Mode */
/* Match Champ Btn Active in Dark Mode */
html.dark-mode .view-toggle-btn.active {
    background: var(--primary);
    color: #1a1a1a;
    font-weight: bold;
}

.standings-container {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
}

.standings-table th,
.standings-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.standings-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle hover */
}

/* Team Column Alignment */
.standings-table td:nth-child(2) {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.standings-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Position Colors (Example for Carioca Top 4) */
.pos-1 {
    border-left: 4px solid #FFD700;
}

/* Gold */
.pos-2,
.pos-3,
.pos-4 {
    border-left: 4px solid #00BFFF;
}

/* Blue (Semis) */
.pos-z4 {
    border-left: 4px solid #e50914;
}

/* Red (Relegation) */

/* Animation Keyframes */
@keyframes slideOutLeft {
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-exit-left {
    animation: slideOutLeft 0.3s forwards;
}

.anim-exit-right {
    animation: slideOutRight 0.3s forwards;
}

.anim-enter-left {
    animation: slideInLeft 0.3s forwards;
}

.anim-enter-right {
    animation: slideInRight 0.3s forwards;
}

/* Group Headers */
.group-title {
    margin: 25px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    color: var(--text);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease;
}


/* Standings Last 5 Games Dots */
.last-matches {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.match-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-win {
    background-color: #22c55e;
    /* Green */
}

.dot-loss {
    background-color: #ef4444;
    /* Red */
}

.dot-draw {
    background-color: #9ca3af;
    /* Grey */
}

/* Specific Header widths for new columns */
.standings-table th:nth-child(3),
/* Points */
.standings-table th:nth-child(11) {
    /* % */
    font-weight: 800;
}

/* Brasileirão Standings Colors */
.pos-libertadores {
    border-left: 4px solid #0000FF;
}

/* Blue */
.pos-prelibertadores {
    border-left: 4px solid #00FFFF;
}

/* Cyan */
.pos-sulamericana {
    border-left: 4px solid #008000;
}

/* Green */
.pos-rebaixamento {
    border-left: 4px solid #FF0000;
}

/* Red */

/* Legend */
.standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Dual Hero Banner Styles */
.hero-dual-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-match-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-match-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 800;
}

/* Reusing hero-teams but adjusting for smaller card */
.hero-match-card .hero-teams {
    margin-bottom: 10px;
}

.hero-match-card .hero-logo-wrapper {
    display: inline-block;
    /* Ensure wrapper behaves */
}

.hero-match-card .hero-logo {
    height: 60px;
    /* Smaller than original 80px */
}

.hero-match-card .hero-vs {
    font-size: 1.5rem;
    margin: 0 10px;
}

.hero-match-card .hero-timer {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.hero-match-card .hero-details {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Mobile specific for dual view */
@media (max-width: 768px) {
    .hero-dual-container {
        flex-direction: column;
    }
}

/* Premiere Logo in Hero Banner */
.hero-channel img {
    height: 35px;
    object-fit: contain;
}

.hero-channel img[alt="Premiere"] {
    height: 20px;
}

.hero-channel img[alt="SporTV"] {
    height: 24px;
}

/* New Animation for Filter to preserve Centering */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Visual Filter Styles (Restored) */
.visual-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 0 0;
    width: 90%;

    padding: 20px;

    /* High Visibility Light Mode Defaults */
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    /* Overlay Positioning */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: filterFadeIn 0.3s ease;
}

/* Ensure background color is dark in dark mode */
html.dark-mode .visual-filter {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.visual-filter.hidden {
    display: none;
}

.filter-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    width: 50px;
    /* Reduced from 60px */
}

.filter-option input {
    display: none;
}

.filter-option img,
.filter-option .emoji-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s;
}

.filter-option .emoji-logo {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.filter-option span {
    font-size: 0.75rem;
    margin-top: 5px;
    color: var(--text);
    opacity: 0.7;
    text-align: center;
}

.filter-option:hover img,
.filter-option:hover .emoji-logo {
    opacity: 1;
    transform: scale(1.1);
}

.filter-option input:checked+span img,
.filter-option input:checked+span .emoji-logo {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--accent));
}

.filter-option input:checked~span {
    color: var(--accent);
    font-weight: bold;
    opacity: 1;
}

/* Rounding Adjustment */
.visual-filter {
    border-radius: 24px;
}