/* ============================================
   MUNDIAL 2026 ANALISTA — DESIGN SYSTEM
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --bg-primary: #070a13;
    --bg-secondary: #0d111d;
    --bg-card: #121829;
    --bg-card-hover: #1b233a;
    --bg-glass: rgba(18, 24, 41, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.12);
    --green-border: rgba(16, 185, 129, 0.3);

    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.12);
    --yellow-border: rgba(245, 158, 11, 0.3);

    --red: #f43f5e;
    --red-bg: rgba(244, 63, 94, 0.12);
    --red-border: rgba(244, 63, 94, 0.3);

    --fire: #f97316;
    --fire-bg: rgba(249, 115, 22, 0.10);
    --fire-border: rgba(249, 115, 22, 0.35);

    --accent: #2563eb;
    --accent-light: #60a5fa;
    --accent-glow: rgba(37, 99, 235, 0.25);

    --gold: #fbbf24;
    --silver: #94a3b8;
    --bronze: #d97706;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 150ms ease;
    --transition-med: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- SVG Icons --- */
.icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    display: inline-block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 6px;
    flex-shrink: 0;
}
.icon-soccer { color: var(--accent-light); }
.icon-stadium { color: var(--accent-light); }
.icon-globe { color: var(--accent-light); }
.icon-trophy { color: var(--gold); }
.icon-warning { color: var(--red); margin-right: 8px; width: 1.3em; height: 1.3em; }
.icon-fire { color: var(--fire); display: inline-block; margin-right: 4px; vertical-align: -2px; }
.icon-calendar { color: var(--text-muted); }
.icon-chart { color: var(--text-muted); }

/* --- Flag Images --- */
.flag-img {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    vertical-align: middle;
}
.flag-img-inline {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
}
.mc-flag-img {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.mc-flag-img:hover {
    transform: scale(1.08);
}

/* --- Legend Dots --- */
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.legend-dot.green { background-color: var(--green); box-shadow: 0 0 8px var(--green); }
.legend-dot.yellow { background-color: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.legend-dot.red { background-color: var(--red); box-shadow: 0 0 8px var(--red); }
.legend-dot.fire { background-color: var(--fire); box-shadow: 0 0 8px var(--fire); }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 35vh;
    padding: 40px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(99, 102, 241, 0.12), transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 197, 94, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(249, 115, 22, 0.06), transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--transition-med);
}

.hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--green), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 16px;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    backdrop-filter: blur(4px);
}

.scroll-indicator {
    display: none;
}

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer-section {
    padding: 12px 0;
}

.disclaimer-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--red);
}

.disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.disclaimer-text strong {
    color: var(--red);
}

/* ============================================
   LEGEND
   ============================================ */
.legend-section {
    padding: 10px 0 16px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: center;
}

.legend-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-green { background: var(--green-bg); border: 1px solid var(--green-border); }
.legend-green .legend-color { background: var(--green); }

.legend-yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); }
.legend-yellow .legend-color { background: var(--yellow); }

.legend-red { background: var(--red-bg); border: 1px solid var(--red-border); }
.legend-red .legend-color { background: var(--red); }

.legend-fire { background: var(--fire-bg); border: 1px solid var(--fire-border); }
.legend-fire .legend-color { background: var(--fire); }

/* ============================================
   GLOSSARY OF STATISTICS
   ============================================ */
.glossary-section {
    padding: 8px 0 16px;
}

.glossary-details {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.glossary-summary {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    cursor: pointer;
    outline: none;
    user-select: none;
}

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

.glossary-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.glossary-item {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.glossary-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.nav-section {
    padding: 8px 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-primary) 70%, transparent 100%);
}

.conf-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.conf-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-med);
    white-space: nowrap;
}

.conf-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.conf-btn.active {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    border-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ============================================
   CONFEDERATION SECTIONS
   ============================================ */
.conf-section {
    padding-bottom: 60px;
    animation: fadeIn 0.4s ease;
}

.conf-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.conf-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.conf-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-med);
}

.team-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.team-card:hover::before {
    opacity: 1;
}

.team-card.compact {
    grid-column: 1 / -1;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.team-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.team-info h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.team-group {
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-right: 6px;
}

.fifa-rank {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ============================================
   STAT GRID
   ============================================ */
.stat-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

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

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stat-value {
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-value.green {
    color: var(--green);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}

.stat-value.yellow {
    color: var(--yellow);
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.15);
}

.stat-value.red {
    color: var(--red);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.stat-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 3px 0;
}

/* --- Form Badges --- */
.form-badges {
    display: flex;
    gap: 3px;
    font-family: var(--font-sans) !important;
}

.form-w, .form-d, .form-l {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0;
}

.form-w {
    background: var(--green);
    color: #000;
}

.form-d {
    background: var(--yellow);
    color: #000;
}

.form-l {
    background: var(--red);
    color: #fff;
}

/* ============================================
   HOT FACT
   ============================================ */
.hot-fact {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.hot-fact.fire {
    background: var(--fire-bg);
    border-color: var(--fire-border);
    animation: fireGlow 3s ease-in-out infinite alternate;
}

.hot-fact strong {
    color: var(--fire);
}

/* ============================================
   COMPACT CARDS
   ============================================ */
.compact-grid {
    display: grid;
    gap: 8px;
}

.compact-team {
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all var(--transition-fast);
}

.compact-team:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

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

/* ============================================
   TOP PICKS
   ============================================ */
.top-picks-header h2 {
    background: linear-gradient(135deg, var(--gold), var(--fire));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-picks-grid {
    display: grid;
    gap: 12px;
}

.top-pick {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-med);
}

.top-pick:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
}

.top-pick.gold {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), var(--bg-card));
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}

.top-pick.silver {
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.06), var(--bg-card));
}

.top-pick.bronze {
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.06), var(--bg-card));
}

.pick-rank {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    line-height: 1;
    padding-top: 2px;
}

.gold .pick-rank { color: var(--gold); text-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
.silver .pick-rank { color: var(--silver); }
.bronze .pick-rank { color: var(--bronze); }

.pick-content h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pick-form {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 4px;
}

.pick-dato {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.pick-jugable {
    font-size: 0.78rem;
    color: var(--fire);
    padding: 6px 12px;
    background: var(--fire-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--fire-border);
    display: inline-block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 32px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 500;
}

.footer-disclaimer strong {
    color: var(--red);
}

.footer-sources,
.footer-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-credit {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fireGlow {
    from {
        box-shadow: 0 0 6px rgba(249, 115, 22, 0.04);
    }
    to {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.1);
    }
}

/* Intersection Observer animation targets */
.team-card {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition-med), box-shadow var(--transition-med);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.top-pick {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition-med), box-shadow var(--transition-med);
}

.top-pick.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   JORNADA FILTER
   ============================================ */
.jornada-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.jornada-btn {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-med);
}

.jornada-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--text-primary);
}

.jornada-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

/* ============================================
   MATCH CARDS (MUNDIAL)
   ============================================ */
.fixture-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 900px) {
    .fixture-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        align-items: start;
    }
}

@media (min-width: 1400px) {
    .fixture-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        align-items: start;
    }
}

.jornada-header {
    grid-column: 1 / -1;
    margin-top: 12px;
    margin-bottom: 2px;
}

.no-matches-info {
    grid-column: 1 / -1;
}

.jornada-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-light);
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
}

.match-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-med);
    opacity: 0;
    transform: translateY(12px);
}

.match-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.match-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.match-card.played {
}

.match-card.upcoming {
}

.mc-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mc-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mc-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 100%;
    flex-wrap: wrap;
}

.mc-header-referee {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-weight: 500;
}

.mc-header-referee strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.mc-group {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-light);
    padding: 2px 8px;
    background: var(--accent-glow);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.mc-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mc-badge-played {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1px 7px;
    border-radius: 100px;
    margin-left: auto;
}

.mc-badge-upcoming {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.mc-badge-live {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mc-badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite;
}
@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Teams Row */
.mc-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(34, 197, 94, 0.02));
}

.mc-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.mc-left { 
    text-align: right; 
    align-items: flex-end;
}
.mc-right { 
    text-align: left; 
    align-items: flex-start;
}

.mc-flag {
    font-size: 2rem;
    line-height: 1;
}

.mc-name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.mc-fifa {
    font-size: 0.62rem;
    color: var(--gold);
    font-weight: 700;
    padding: 1px 6px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.mc-status-qual {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.mc-status-qual.qual-yes {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.mc-status-qual.qual-no {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.mc-status-qual.qual-pending {
    background: var(--yellow-bg);
    color: var(--yellow);
    border: 1px solid var(--yellow-border);
}

.mc-score {
    font-size: 1.6rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.mc-score.played {
    background: var(--green-bg);
    border: 2px solid var(--green-border);
    color: var(--green);
    text-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.mc-score.upcoming {
    background: var(--accent-glow);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
    font-size: 1rem;
    font-weight: 700;
}

.mc-score.live {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--red);
    color: var(--red);
    text-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Stats Comparison */
.mc-stats {
    padding: 0;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.mc-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.mc-stats-title {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mc-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 2px 0;
}

.mc-stat-row:nth-child(even) {
    background: rgba(255,255,255,0.015);
    border-radius: 4px;
    padding: 2px 4px;
}

.mc-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mc-val:first-child {
    text-align: right;
}

.mc-val:last-child {
    text-align: left;
}

.mc-val.green {
    color: var(--green);
    text-shadow: 0 0 6px rgba(34, 197, 94, 0.15);
}

.mc-val.yellow {
    color: var(--yellow);
}

.mc-val.red {
    color: var(--red);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.15);
}

.mc-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    min-width: 80px;
}

.mc-forma-row .mc-val {
    display: flex;
    gap: 3px;
}

.mc-forma-row .mc-val:first-child {
    justify-content: flex-end;
}

.mc-forma-row .mc-val:last-child {
    justify-content: flex-start;
}

.mc-forma-row .form-w,
.mc-forma-row .form-d,
.mc-forma-row .form-l {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    border-radius: 3px;
}

/* Datos Calientes Row */
.mc-datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.mc-dato {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: var(--fire-bg);
    border: 1px solid var(--fire-border);
    border-radius: var(--radius-sm);
}

/* ============================================
   SUGERENCIAS DE APUESTAS / PRONÓSTICOS
   ============================================ */
.mc-betting-toggle-row {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
}

.mc-betting-btn {
    width: 100%;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    color: var(--accent-light);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-med);
}

.mc-betting-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(99, 102, 241, 0.22));
    border-color: var(--accent-light);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.mc-betting-btn .btn-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.mc-betting-btn.active .btn-arrow {
    transform: rotate(180deg);
}

.mc-betting-panel {
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn var(--transition-med);
}

.bet-market-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.bet-market-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}



.bet-options-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.bet-option-card {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.bet-option-card .opt-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bet-option-card .opt-value {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Recommended option styles by confidence color */
.bet-option-card.recommended {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    transition: all var(--transition-fast);
}

.bet-option-card.recommended .opt-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bet-option-card.recommended .opt-value {
    font-weight: 800;
}

/* Green (Most probable) */
.bet-option-card.recommended.rec-green {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.bet-option-card.recommended.rec-green .opt-name,
.bet-option-card.recommended.rec-green .opt-value {
    color: var(--green);
}

/* Yellow / Orange (Intermediate) */
.bet-option-card.recommended.rec-yellow {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}
.bet-option-card.recommended.rec-yellow .opt-name,
.bet-option-card.recommended.rec-yellow .opt-value {
    color: var(--yellow);
}

/* Red (Least probable) */
.bet-option-card.recommended.rec-red {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.6);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.15);
}
.bet-option-card.recommended.rec-red .opt-name,
.bet-option-card.recommended.rec-red .opt-value {
    color: var(--red);
}



/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .mc-flag {
        font-size: 1.8rem;
    }

    .mc-name {
        font-size: 0.78rem;
    }

    .mc-flag-img {
        width: 36px;
        height: 24px;
    }

    .mc-score {
        font-size: 1.3rem;
        padding: 4px 10px;
        min-width: 50px;
    }

    .mc-score.upcoming {
        font-size: 0.85rem;
    }

    .mc-datos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Horizontal scrollable navigation for confederations on mobile */
    .conf-nav {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 8px 10px;
        gap: 8px;
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .conf-nav::-webkit-scrollbar {
        display: none;
    }
    
    .conf-btn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    /* Horizontal scrollable jornada filters on mobile */
    .jornada-filter {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 0 10px;
        gap: 6px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .jornada-filter::-webkit-scrollbar {
        display: none;
    }

    .jornada-btn {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 0.72rem;
    }

    .top-pick {
        padding: 10px 14px;
        gap: 12px;
    }

    .pick-rank {
        width: auto;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .team-card {
        padding: 12px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .legend-grid {
        gap: 4px;
    }

    .legend-item {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

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

    .nav-section {
        padding-top: 6px;
        padding-bottom: 12px;
    }
    
    .mc-teams {
        padding: 10px 10px;
        gap: 8px;
    }

    .mc-flag {
        font-size: 1.5rem;
    }

    .mc-flag-img {
        width: 28px;
        height: 18px;
    }

    .mc-name {
        font-size: 0.72rem;
    }

    .mc-fifa {
        font-size: 0.58rem;
        padding: 0 4px;
    }

    .mc-score {
        font-size: 1.15rem;
        min-width: 45px;
        padding: 2px 8px;
    }

    .mc-val {
        font-size: 0.75rem;
    }

    .mc-label {
        font-size: 0.65rem;
        min-width: 60px;
    }

    .mc-stats {
        padding: 8px 10px;
    }
}

/* ============================================
   MINIMIZED PLAYED MATCH CARDS
   ============================================ */
.match-card.played.minimized {
    cursor: pointer;
}

.match-card.played.minimized .mc-stats,
.match-card.played.minimized .mc-datos,
.match-card.played.minimized .mc-betting-toggle-row,
.match-card.played.minimized .mc-betting-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.match-card.played.minimized.expanded .mc-stats {
    display: block;
}

.match-card.played.minimized.expanded .mc-datos {
    display: grid;
}

.match-card.played.minimized.expanded .mc-betting-toggle-row {
    display: flex;
}

.match-card.played.minimized .mc-toggle-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* ============================================
   TOOLTIP STYLING
   ============================================ */
.bet-market-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.market-info-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-family: var(--font-sans);
    font-weight: 800;
    margin-left: 6px;
    transition: all var(--transition-fast);
}

.market-info-wrapper:hover .info-icon {
    background: var(--accent);
    border-color: var(--accent-light);
    color: #fff;
}

.tooltip-box {
    display: none;
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    width: auto;
    padding: 12px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 10px 25px rgba(0,0,0,0.5);
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-secondary);
    z-index: 50;
    pointer-events: none;
    text-transform: none;
    font-weight: normal;
    text-align: left;
}

.tooltip-box strong {
    color: var(--accent-light);
    display: block;
    margin-bottom: 2px;
}

.tooltip-box code {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--green);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    display: block;
    word-break: break-all;
    margin-top: 4px;
}

.market-info-wrapper:hover + .tooltip-box {
    display: block;
}

/* ============================================
   ALGORITHM SWITCH (SEGMENTED CONTROL)
   ============================================ */
.algo-nav-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.algo-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.algo-nav {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.algo-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.algo-btn.active {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================
   INFO FAB & DRAWER
   ============================================ */
.info-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card) 0%, #0f172a 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--accent-light);
    box-shadow: var(--shadow-md), 0 0 15px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(8px);
}

.info-fab:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(37, 99, 235, 0.4);
    color: var(--text-primary);
}

.info-fab:active {
    transform: scale(0.95);
}

.info-fab svg {
    width: 24px;
    height: 24px;
}

/* Pulsing intro animation for FAB */
@keyframes fabPulse {
    0% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: var(--shadow-md), 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.info-fab.pulse-animation {
    animation: fabPulse 2s infinite;
}

/* Info Drawer Container */
.info-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.4s;
}

.info-drawer.open {
    visibility: visible;
}

.info-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-drawer.open .info-drawer-overlay {
    opacity: 1;
}

.info-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: rgba(13, 17, 29, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-drawer.open .info-drawer-content {
    transform: translateX(0);
}

.info-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.info-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-drawer-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.info-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Scrollbar para el drawer */
.info-drawer-body::-webkit-scrollbar {
    width: 6px;
}
.info-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}
.info-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.info-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.drawer-subtitle svg {
    width: 1.1em;
    height: 1.1em;
}

/* Disclaimer custom in Drawer */
.info-drawer-body .disclaimer-card {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
}

/* Legend vertical layout in Drawer */
.legend-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-vertical .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.legend-vertical .legend-item .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-vertical .legend-green .legend-color { background-color: var(--green); }
.legend-vertical .legend-yellow .legend-color { background-color: var(--yellow); }
.legend-vertical .legend-red .legend-color { background-color: var(--red); }
.legend-vertical .legend-fire .legend-color { background-color: var(--fire); }

/* Glossary list in Drawer */
.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glossary-drawer-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.glossary-drawer-item strong {
    color: var(--accent-light);
    display: block;
    margin-bottom: 3px;
}

/* --- Hero compacting & Navigation Optimization for Mobile --- */
@media (max-width: 768px) {
    .hero {
        padding: 20px 16px 10px;
        min-height: auto;
    }
    .hero h1 {
        margin-bottom: 2px;
        font-size: 2.2rem;
    }
    .hero-subtitle {
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
    .hero-meta {
        gap: 6px;
    }
    .meta-pill {
        padding: 3px 10px;
        font-size: 0.68rem;
    }

    /* Opciones de Confederación scrollables horizontalmente */
    .nav-section {
        padding: 6px 0 10px;
    }
    .conf-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 16px 8px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: none; /* Firefox */
        gap: 8px;
    }
    .conf-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .conf-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    /* Algoritmo switcher compactado */
    .algo-nav-row {
        margin-top: 6px;
        padding: 0 16px;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .algo-label {
        font-size: 0.65rem;
        flex-shrink: 0;
    }
    .algo-nav {
        display: flex;
        width: 100%;
    }
    .algo-btn {
        flex: 1;
        padding: 4px 6px;
        font-size: 0.65rem;
        text-align: center;
        white-space: nowrap;
    }

    /* FAB & Drawer en móviles */
    .info-fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .info-drawer-content {
        max-width: 100%;
        background: #070a13; /* Color opaco sólido */
        backdrop-filter: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero, .nav-section, .scroll-indicator {
        display: none;
    }

    .conf-section {
        display: block !important;
        page-break-inside: avoid;
    }

    .team-card {
        opacity: 1 !important;
        transform: none !important;
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ============================================
   WORLD CUP 2026 HOMOLOGATION STYLES
   ============================================ */
.mc-goals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.05);
}
.mc-goals {
    width: 42%;
    line-height: 1.4;
}
.mc-goals.mc-left {
    text-align: right;
    color: var(--text-secondary);
}
.mc-goals.mc-right {
    text-align: left;
    color: var(--text-secondary);
}
.mc-goals-spacer {
    width: 16%;
}
.mc-placeholder-info {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.mc-score-penalties {
    font-size: 0.58em;
    color: var(--text-muted);
    display: block;
    font-weight: 700;
    margin-top: 1px;
    line-height: 1.1;
}

/* Custom flag hover styles */
.flag-img, .mc-flag-img, .flag-img-inline {
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), 
                filter 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.flag-img:hover, .mc-flag-img:hover, .flag-img-inline:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.25);
    filter: brightness(1.15) contrast(1.05);
    cursor: help;
}

/* World Cup Match Form Badge styling */
.form-badges span.form-wc {
    position: relative;
    box-shadow: 0 0 0 1.5px var(--gold, #fbbf24), 0 0 6px rgba(251, 191, 36, 0.5);
    z-index: 1;
}

/* Add a tiny star to signify World Cup match */
.form-badges span.form-wc::after {
    content: '★';
    position: absolute;
    top: -5px;
    right: -4px;
    font-size: 0.52rem;
    color: var(--gold, #fbbf24);
    text-shadow: 0 0 3px rgba(251, 191, 36, 0.8);
    pointer-events: none;
    z-index: 2;
}

/* ============================================
   REFEREE HOVER TOOLTIP
   ============================================ */
.ref-tooltip-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ref-tooltip-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    text-transform: uppercase;
}

.ref-tooltip-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ref-tooltip-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.ref-badge-strict {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ref-badge-moderate {
    background: rgba(245, 158, 11, 0.15);
    color: var(--yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ref-badge-lenient {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ref-tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.ref-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ref-stat-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.ref-stat-value {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.ref-tooltip-matches-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.ref-tooltip-match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 0;
}

.ref-tooltip-match-item:last-child {
    border-bottom: none;
}

.ref-match-info {
    display: flex;
    flex-direction: column;
    max-width: 220px;
    min-width: 0;
}

.ref-match-teams {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.ref-match-meta {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.ref-match-cards {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.ref-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 18px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #000;
}

.ref-card-yellow {
    background: #fbbf24; /* yellow-400 */
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.35);
}

.ref-card-red {
    background: #ef4444; /* red-500 */
    color: #fff;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.35);
}

/* ============================================
   SEARCH BAR & AUTOCOMPLETE
   ============================================ */
.search-container {
    position: relative;
    margin-top: 15px;
    width: 100%;
    max-width: 450px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

#match-search-input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    background: rgba(18, 24, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#match-search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    background: rgba(18, 24, 41, 0.85);
}

#clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
    display: none;
    transition: color 0.15s;
}

#clear-search-btn:hover {
    color: #ffffff;
}

#autocomplete-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 250px;
    overflow-y: auto;
    background: rgba(11, 15, 30, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: none;
}

#autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

#autocomplete-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

#autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

#autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.autocomplete-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.autocomplete-suggestion-item:last-child {
    border-bottom: none;
}

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.suggestion-type-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-left: auto;
}

.suggestion-type-team {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.suggestion-type-referee {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ============================================
   PANTALLA DE LOGIN RESTRINGIDO
   ============================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0a061e 0%, #030206 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), visibility 400ms;
    padding: 20px;
    overflow: hidden;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fondo animado líquido y partículas */
.gradient-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sphere-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(139, 92, 246, 0) 70%);
    top: 5%;
    left: 10%;
    animation: float-1 25s infinite alternate ease-in-out;
}

.sphere-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.65) 0%, rgba(236, 72, 153, 0) 70%);
    bottom: 10%;
    right: 5%;
    animation: float-2 30s infinite alternate ease-in-out;
}

.sphere-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.7) 0%, rgba(6, 182, 212, 0) 70%);
    top: 45%;
    left: 45%;
    animation: float-3 22s infinite alternate ease-in-out;
}

.glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
    z-index: 2;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, black 35%, transparent 85%);
    z-index: 3;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 3;
}

.particles-container {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.background-particle {
    position: absolute;
    background: rgba(99, 102, 241, 0.22);
    border-radius: 50%;
    pointer-events: none;
    animation: rise 15s linear infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.mouse-particle {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    animation: fadeOutParticle 2.5s cubic-bezier(0.08, 0.8, 0.2, 1) forwards;
    z-index: 5;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), inset 0 0 3px rgba(255, 255, 255, 0.9);
}

@keyframes rise {
    0% {
        transform: translateY(105vh) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 0.65;
    }
    85% {
        opacity: 0.65;
    }
    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

@keyframes fadeOutParticle {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: var(--start-opacity, 0.95);
    }
    100% {
        transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) scale(0.1);
        opacity: 0;
    }
}

/* Keyframes de animación de flotado */
@keyframes float-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(-40px, 70px) scale(0.92); }
}

@keyframes float-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, -50px) scale(0.93); }
    100% { transform: translate(50px, -30px) scale(1.06); }
}

@keyframes float-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.12); }
    100% { transform: translate(-50px, 30px) scale(0.95); }
}

.login-card {
    background: rgba(18, 24, 41, 0.72);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10;
}

.login-card.appear {
    animation: loginCardAppear 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-logo h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-soccer-logo {
    width: 48px;
    height: 48px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 12px var(--accent-glow));
    animation: rotateBall 20s linear infinite;
}

@keyframes rotateBall {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(13, 17, 29, 0.6);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-med);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-container input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 2px 4px rgba(0,0,0,0.1);
    background: rgba(13, 17, 29, 0.8);
}

.input-container .icon-key {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-container input:focus + .icon-key {
    color: var(--accent-light);
}

.pin-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 28px 0;
}

.pin-input {
    width: 58px;
    height: 58px;
    background: rgba(13, 17, 29, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: all var(--transition-med);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-sans);
}

.pin-input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 2px 4px rgba(0,0,0,0.15);
    background: rgba(13, 17, 29, 0.85);
    transform: scale(1.08);
}

.pin-input.pin-error {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chrome, Safari, Edge, Opera: Hide number spinner */
.pin-input::-webkit-outer-spin-button,
.pin-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox: Hide number spinner */
.pin-input[type=number] {
    -moz-appearance: textfield;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-med);
    font-family: var(--font-sans);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.login-btn:active {
    transform: translateY(0);
}

.login-error-msg {
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-md);
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn var(--transition-fast);
}

.icon-warning-msg {
    color: var(--red);
    width: 1.2em;
    height: 1.2em;
}

/* Shake Animation for incorrect password */
.shake {
    animation: shakeEffect 400ms ease-in-out;
}

@keyframes shakeEffect {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Scroll lock when login is active */
body.login-locked {
    overflow: hidden;
    height: 100vh;
}

/* Custom Warning Badge in Hero */
.hero-badge.warning {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.login-badge-warning {
    display: inline-block;
    padding: 3px 12px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--red);
    text-transform: uppercase;
    margin-top: 4px;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}

/* Pestañas de partidos (En Vivo y Finalizados) */
.mc-tabs {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}
.mc-tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 8px;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 200ms ease;
    text-align: center;
}
.mc-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}
.mc-tab-btn.active {
    color: var(--green);
    border-bottom-color: var(--green);
    background: rgba(255, 255, 255, 0.04);
}
.mc-tab-panel {
    display: none;
    padding: 12px;
    background: rgba(0, 0, 0, 0.15);
}
.mc-tab-panel.active {
    display: block;
}

/* Estilos de la pestaña Cronología */
.mc-timeline {
    position: relative;
    padding-left: 20px;
    margin: 8px 0;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.mc-timeline-event {
    position: relative;
    margin-bottom: 14px;
    font-size: 0.72rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.mc-timeline-event:last-child {
    margin-bottom: 0;
}
.mc-timeline-dot {
    position: absolute;
    left: -26px;
    top: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid #1a2235;
}
.mc-timeline-dot.goal {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}
.mc-timeline-dot.card {
    background: var(--yellow);
    box-shadow: 0 0 8px var(--yellow);
}
.mc-timeline-dot.redcard {
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}
.mc-timeline-time {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 6px;
}
.mc-timeline-desc {
    font-weight: 500;
}

/* Estilos de la pestaña Alineaciones */
.mc-lineups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 4px;
}
.mc-lineup-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mc-player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mc-player-item {
    font-size: 0.70rem;
    font-weight: 500;
    padding: 4px 0;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.mc-player-item:last-child {
    border-bottom: none;
}
.mc-player-num {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-right: 6px;
    font-weight: 700;
}
.mc-player-star {
    color: var(--yellow);
    margin-left: 4px;
}

/* Barra de progreso de estadísticas */
.mc-stat-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    display: flex;
}
.mc-stat-bar-left {
    height: 100%;
    background: var(--blue, #3b82f6);
    transition: width 300ms ease;
}
.mc-stat-bar-right {
    height: 100%;
    background: var(--red, #ef4444);
    transition: width 300ms ease;
}


