/* css/main.css - Premium Dark Mode VIP Style */
:root {
    --bg-color: #0d1117;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Green Palette */
    --primary: #27ae60; 
    --primary-glow: rgba(39, 174, 96, 0.3);
    --danger: #2ecc71; /* Mantido em verde para consistência */
    
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #2f363d;
    --font-stack: 'Outfit', sans-serif;
    --btn-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Ajuste para Green Glow */
    background-image: radial-gradient(circle at top right, rgba(39, 174, 96, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(46, 204, 113, 0.1), transparent 40%);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: #fff;
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-4 {
    padding: 1.5rem;
}

/* Typography */
.text-gradient {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar — sticky persistente no desktop */
.navbar {
    padding: 0.65rem 0 0.5rem;
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.navbar.navbar-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    background: rgba(13, 17, 23, 0.97);
}

.navbar-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo {
    width: auto;
    height: 44px;
    max-width: 52px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    white-space: nowrap;
}

.desktop-nav {
    width: 100%;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.45rem;
    margin-top: 0.15rem;
}

.nav-links {
    list-style: none;
    position: relative;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links > li.dropdown {
    position: relative;
}

.nav-links a,
.nav-links .dropbtn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    padding: 0.45rem 0.75rem;
    border-radius: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-stack);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .dropbtn:hover {
    color: var(--text-main);
    background: var(--accent);
}

.nav-links a.active {
    box-shadow: 0 0 12px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Mega menu — uma única dropdown "Ligas" */
.dropdown {
    position: relative;
}

.dropdown-mega .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    z-index: 2000;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--glass-border);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Fechado — nunca visível sem .open no pai */
.dropdown-mega:not(.open) > .dropdown-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dropdown-mega.open > .dropdown-content {
    display: grid;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Backdrop — escurece só o conteúdo abaixo da navbar (não bloqueia o menu) */
.mega-menu-backdrop {
    position: fixed;
    top: var(--navbar-bottom, 108px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s;
}

body.mega-menu-open .mega-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mega-menu-open .navbar {
    z-index: 1210;
}

/* Fechado por padrão — NUNCA display:grid aqui (mesmo elemento que .dropdown-content) */
.mega-menu {
    width: min(920px, calc(100vw - 32px));
    max-height: min(65vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.mega-menu::-webkit-scrollbar {
    width: 6px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.mega-col {
    min-width: 0;
    overflow: hidden;
}

.mega-col-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    padding: 6px 8px 4px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 4px;
}

.mega-col .nav-league-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    font-size: 0.72rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.mega-col .nav-league-link .nav-league-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega-col .nav-league-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    box-shadow: none;
}

.menu-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.img-broken {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    opacity: 1;
    filter: none;
    min-width: 18px;
    min-height: 18px;
}

.team-logo.img-broken,
.standings-logo.img-broken {
    min-width: 32px;
    min-height: 32px;
}

.menu-icon.img-broken {
    min-width: 18px;
    min-height: 18px;
}

.img-broken::before {
    content: '⚽';
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.45;
}

/* Logo Copa */
.wc-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.wc-logo-sm {
    width: 18px !important;
    height: 18px !important;
}

.nav-wc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 769px) {
    .nav-links {
        flex-wrap: wrap;
        overflow: visible;
    }

    /* Desktop: só abre com clique (.open); painel centralizado, não fixo à esquerda */
    .dropdown-mega .dropbtn i.fa-chevron-down {
        transition: transform 0.2s ease;
    }

    .dropdown-mega.open .dropbtn i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-mega.open > .dropdown-content.mega-menu {
        position: fixed;
        top: var(--navbar-bottom, 108px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(920px, calc(100vw - 24px));
        max-height: min(58vh, 460px);
        z-index: 1220;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .mega-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(720px, calc(100vw - 32px));
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        font-size: 1.15rem;
    }
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--primary);
}
.hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(169, 50, 38, 0.25) 0%, rgba(13, 17, 23, 0.95) 45%, rgba(30, 107, 58, 0.2) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 71, 87, 0.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.1), transparent 35%);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: background-image 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.4), var(--bg-color));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e1e4e8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Grid & Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    /* Increased gap from 1.5rem to 2rem */
}

.card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.league-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Atualize o match-status para o novo verde */
.match-status {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    animation: pulse 1.5s infinite;
}

.match-date-row {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 8px;
    width: fit-content;
}

.match-date-row i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* Team Row */
.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Navigation Scroll */
.nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.nav-scroll::-webkit-scrollbar {
    height: 4px;
}

.nav-scroll::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

/* Match Expand Details */
.match-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    display: none;
}

.card.expanded .match-details {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.timeline {
    margin-bottom: 1.5rem;
}

.incident {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.incident-home {
    flex-direction: row;
}

.incident-away {
    flex-direction: row-reverse;
    text-align: right;
}

.incident i {
    font-size: 0.9rem;
}

.incident .time {
    font-weight: bold;
    color: var(--primary);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-name {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-home,
.stat-away {
    font-weight: 600;
    width: 30px;
    text-align: center;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

.stat-bar-fill-home {
    background: var(--primary);
    height: 100%;
    position: absolute;
    left: 0;
}

.stat-bar-fill-away {
    background: var(--danger);
    height: 100%;
    position: absolute;
    right: 0;
}

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

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

.score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

/* Skeleton Loading */
.skeleton-loader {
    height: 180px;
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--accent) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-stack);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

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

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.standings-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Featured Section Logic */
.featured-grid {
    gap: 24px;
    /* Slightly more gap as it's a premium section */
    display: flex;
    overflow-x: auto;
    padding: 15px 10px 25px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.featured-grid::-webkit-scrollbar {
    height: 4px;
}

.featured-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Premium Styles for btn-primary */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    color: white;
}

/* Premium Styles for btn-watch (Green) */
.btn-watch {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    display: inline-block;
}

.btn-watch:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
    color: white;
}

.match-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    /* Slightly reduced blur for better performance */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    /* Increased padding */
    min-width: 320px;
    /* Adjusted min-width */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-badge {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-info {
    text-align: center;
    flex: 1;
}

.team-name {
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.match-vs {
    font-weight: 800;
    color: var(--primary);
}

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

    .hero-section {
        border-radius: 16px;
        padding: 4rem 0 2rem;
    }
}

/* Mobile Overlay Menu */
.d-none {
    display: none;
}

body.mobile-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2500;
    pointer-events: none;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    z-index: 3000;
    transition: right 0.3s ease;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}

.mobile-overlay.open {
    right: 0;
}

.close-mobile {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    align-self: flex-end;
    margin-bottom: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 2rem;
}

.mobile-links .nav-league-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
}

.mobile-links .nav-league-link:hover,
.mobile-links .nav-league-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.08em;
    font-weight: 800;
    margin: 1.25rem 0 0.5rem;
    padding: 0 12px 6px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-links > .mobile-category:first-of-type {
    margin-top: 0.5rem;
}

.mobile-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.mobile-links a.active {
    color: var(--primary);
}

/* Smart Filters Premium Styling */
.status-filters {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.status-filters::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-filter.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-filter i {
    font-size: 0.7rem;
}

/* Page Transitions */
.loading-fade {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#games-container {
    transition: opacity 0.4s ease;
}

/* Assistir Agora Specific Buttons */
.mt-4 {
    margin-top: 1.5rem !important;
}

.pt-3 {
    padding-top: 1.5rem !important;
}

.btn-assistir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-bottom: 0.5rem;
    border-radius: var(--btn-radius);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajuste o gradiente dos botões que ainda tinham referência ao vermelho */
.btn-assistir-live {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-assistir-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.btn-assistir-upcoming {
    background: transparent;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
}

.btn-assistir-upcoming:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-assistir-stats {
    background: rgba(52, 152, 219, 0.12);
    color: var(--primary) !important;
    border: 1.5px solid rgba(52, 152, 219, 0.35);
}

.btn-assistir-stats:hover {
    background: rgba(52, 152, 219, 0.22);
    transform: translateY(-3px);
}

.btn-stats {
    background: rgba(52, 152, 219, 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
}

/* VER AO VIVO — sempre visível em jogos live */
.btn-ver-ao-vivo {
    letter-spacing: 0.6px;
    animation: liveBtnPulse 2s ease-in-out infinite;
}

.btn-ver-ao-vivo-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(135deg, var(--danger), #ff6b81);
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
    white-space: nowrap;
}

.btn-ver-ao-vivo-compact:hover {
    transform: scale(1.05);
    color: #fff !important;
}

.match-watch-row {
    position: relative;
    z-index: 2;
}

.match-status-col {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

@keyframes liveBtnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 71, 87, 0.35); }
    50% { box-shadow: 0 4px 22px rgba(255, 71, 87, 0.65); }
}

/* Campinho ao vivo — WebSocket livedata */
.live-pitch-wrap {
    margin: 1rem 0 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.25);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.live-pitch-wrap.pitch-goal-flash {
    animation: pitchGoalFlash 1.2s ease;
}

@keyframes pitchGoalFlash {
    0%, 100% { box-shadow: 0 0 0 rgba(46, 204, 113, 0); }
    30% { box-shadow: 0 0 24px rgba(46, 204, 113, 0.8); border-color: #2ecc71; }
}

.score.pitch-goal-pulse {
    animation: scoreGoalPulse 1.2s ease;
}

@keyframes scoreGoalPulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.25); color: #2ecc71 !important; }
}

.live-pitch-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pitch-situation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #a93226;
    color: #fff;
    transition: background 0.3s ease;
}

.pitch-xg-line {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.live-pitch-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
}

.ball-dot {
    transition: cx 0.4s ease, cy 0.4s ease, fill 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.live-pitch-bars {
    padding: 8px 10px 10px;
    background: rgba(0, 0, 0, 0.2);
}

.pitch-possession {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.pitch-poss-home { color: #ff4757; min-width: 28px; }
.pitch-poss-away { color: #3498db; min-width: 28px; text-align: right; }

.pitch-poss-track {
    flex: 1;
    height: 5px;
    background: #3498db;
    border-radius: 4px;
    overflow: hidden;
}

.pitch-poss-fill-home {
    height: 100%;
    background: #ff4757;
    border-radius: 4px 0 0 4px;
    transition: width 0.6s ease;
}

.pitch-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.62rem;
    color: var(--text-muted);
}

.pitch-mini-stats span b {
    color: var(--text-main);
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.d-grid {
    display: grid;
}

.fw-bold {
    font-weight: 700;
}

.btn-sm {
    padding: 10px;
    font-size: 0.85rem;
}

/* WebSocket live badge */
.ws-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-radius: 6px;
    vertical-align: middle;
}

/* World Cup squads grid */
.wc-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.wc-group-card {
    border-radius: 16px;
}

.wc-group-card h4 {
    font-size: 1rem;
    color: var(--primary);
}

.wc-player {
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wc-num {
    display: inline-block;
    width: 24px;
    font-weight: 700;
    color: var(--text-muted);
}

.standings-live-row {
    background: rgba(255, 71, 87, 0.06);
}

.card.expanded .match-details-panel {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Match detail tabs (v2 sub-resources) */
.match-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 1rem 0 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.match-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
}

.match-tab:hover,
.match-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.match-tab-content {
    font-size: 0.85rem;
    max-height: 420px;
    overflow-y: auto;
}

.odds-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.odds-cell {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.odds-cell b {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 4px;
}

.lineup-header {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.lineup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.8rem;
}

.lineup-num {
    font-weight: 700;
    width: 20px;
    color: var(--text-muted);
}

.lineup-player-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.lineup-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.lineup-badge.confirmed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.lineup-badge.predicted {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.player-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
}

.player-stat-rating {
    font-weight: 800;
    min-width: 28px;
    color: var(--primary);
}

.pred-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.funfact-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.ai-preview p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.live-stats-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Bzzoiro static data — images & weather */
.img-static {
    object-fit: contain;
    background: transparent;
}

.weather-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-muted);
}

.weather-indoor-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    opacity: 0.9;
}

.match-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.match-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.venue-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.coach-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}

.match-meta-coaches {
    display: flex;
    gap: 12px;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.incident-player-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wc-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-player-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-3 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.w-100 {
    width: 100%;
}

.opacity-20 {
    opacity: 0.2;
}

.fs-5 {
    font-size: 1.25rem;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.bg-secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* Lang switcher — todas as páginas */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
}

/* Nav compacto em subpáginas (jogo, evento, odds, legais, 404) */
.navbar .subpage-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 0 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.15rem;
}

.navbar .subpage-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-stack);
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    cursor: pointer;
}

.navbar .subpage-nav a i {
    font-size: 0.75rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.navbar .subpage-nav a[href*="ao-vivo"] i,
.navbar .subpage-nav a[href*="live"] i {
    color: var(--danger);
    font-size: 0.55rem;
}

.navbar .subpage-nav a[href*="odds"] i,
.navbar .subpage-nav a[href="odds"] i {
    color: #2ecc71;
}

.navbar .subpage-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.navbar .subpage-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #c0392b 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.navbar .subpage-nav a.active i {
    color: #fff;
    opacity: 1;
}

@media (max-width: 768px) {
    .navbar .subpage-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.35rem;
        padding-bottom: 0.3rem;
    }

    .navbar .subpage-nav::-webkit-scrollbar {
        display: none;
    }

    .navbar .subpage-nav a {
        flex-shrink: 0;
        font-size: 0.74rem;
        padding: 0.42rem 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-league-label {
        white-space: normal;
        max-width: 9rem;
        line-height: 1.2;
    }

    .mega-menu-sports {
        min-width: 0;
        max-width: 100vw;
    }
}

/* --- 404 inteligente --- */
.err404-shell {
    max-width: 720px;
}

.err404-hero {
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
}

.err404-code {
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.err404-hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.err404-sub {
    font-size: 0.9rem;
    max-width: 28rem;
    margin: 0 auto 1rem;
}

.err404-path-wrap {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.err404-path-wrap code {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.err404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.err404-section {
    margin-bottom: 1.75rem;
}

.err404-section .section-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.err404-suggest {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    text-align: center;
}

.err404-suggest-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.err404-redirect {
    font-size: 0.75rem;
    margin-top: 0.65rem;
}

.err404-search {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem;
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.err404-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-family: inherit;
    font-size: 0.88rem;
}

.err404-search-results,
.err404-live-grid,
.err404-popular-grid {
    display: grid;
    gap: 0.55rem;
}

.err404-popular-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.err404-popular-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.15s, border-color 0.15s;
}

.err404-popular-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.err404-popular-link i {
    font-size: 1.1rem;
}

.err404-live-card,
.err404-search-hit {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: border-color 0.15s;
}

.err404-live-card:hover,
.err404-search-hit:hover {
    border-color: rgba(46, 204, 113, 0.35);
}

.err404-live-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #e74c3c;
    text-transform: uppercase;
}

.err404-live-teams {
    font-size: 0.88rem;
    font-weight: 600;
}

.err404-live-league {
    font-size: 0.72rem;
}

/* Banner publicitário 320×50 */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
}

.ad-container iframe {
    max-width: 100%;
}