:root {
    --bg-main: #060608;
    --bg-card: rgba(22, 22, 26, 0.8);
    --bg-card-hover: rgba(30, 30, 35, 0.9);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #0070f3;
    --accent-blue-glow: rgba(0, 112, 243, 0.4);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-center { text-align: center; }
.flex-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }

h1, h2, h3, h4 { letter-spacing: -0.02em; }

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.39);
}
.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-red {
    background-color: var(--accent-red);
    color: white;
    padding: 0.6rem 1.25rem;
    margin-top: 1.5rem;
}
.btn-red:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 6, 6, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: white;
}
.nav-links a.active {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 0.5rem;
}
.search-icon {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}
.search-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}


/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 4rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, #111a28, #060606);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

/* Custom background to fake the court context */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 112, 243, 0.15) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.main-logo {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.main-logo span {
    color: var(--accent-blue);
    -webkit-text-fill-color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 112, 243, 0.5);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-color: var(--accent-green);
    border-radius: 50%;
    top: 0; left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}


/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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


/* Sections Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-all {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.view-all:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* Standings */
.standings { margin-bottom: 4rem; }
.standings-list {
    display: flex;
    flex-direction: column;
}
.standing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-card);
}
.standing-item:last-child {
    border-bottom: none;
}
.standing-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.team-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rank {
    color: var(--text-secondary);
    font-weight: 600;
    width: 20px;
}
.team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333; /* Placeholder */
}
/* Fake team colors for placeholders */
.maratonistas { background: #facc15; }
.cangrejeros { background: #ef4444; }
.osos { background: #60a5fa; }
.capitanes { background: #f59e0b; }
.leones { background: #dc2626; }
.indios { background: #eab308; }

.team-name {
    font-weight: 500;
}
.record {
    font-variant-numeric: tabular-nums;
}

/* Leaders Grid */
.leaders { margin-bottom: 4rem; }
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* PILL TABS */
.pill-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pill:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary);
}

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
/* Make the last two span nicely if need be, but keeping 3 cols is fine */

.leader-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}
.leader-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.category-unit {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}
.leader-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rank-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #27272a;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.rank-circle.blue {
    background: var(--accent-blue);
    color: white;
}
.player-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.player-details .name {
    font-size: 0.95rem;
    font-weight: 500;
}
.player-details .team {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.player-item .stat {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
}
.card-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
}
.card-footer a { color: var(--accent-blue); }
.card-footer a:hover { text-decoration: underline; }

/* News */
.news { margin-bottom: 4rem; }
.news-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--text-secondary);
}
.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Socials */
.socials { margin-bottom: 6rem; }
.social-card {
    padding: 2rem;
}
.social-handle {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
}

.insta-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    color: white;
    transition: transform 0.3s;
}
.insta-block:hover { transform: scale(1.02); }
.grad-purple {
    background: linear-gradient(45deg, #a855f7, #ec4899, #ef4444);
}
.grad-orange {
    background: linear-gradient(45deg, #eab308, #ef4444);
}
.insta-text {
    display: flex;
    flex-direction: column;
}
.insta-text .handle { font-weight: 700; font-size: 1.1rem; }
.insta-text .desc { font-size: 0.85rem; opacity: 0.9; }

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    background: rgba(0,0,0,0.5);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    color: var(--text-secondary);
}
.footer-socials a:hover {
    color: white;
}


/* Animations Engine */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .stats-dashboard { grid-template-columns: repeat(2, 1fr); }
    .leaders-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .stats-dashboard { grid-template-columns: 1fr; }
    .hero { padding: 4rem 1rem; }
    .main-logo { font-size: 2.5rem; }
}

.view-container { 
    display: none; 
    padding: 32px 2%; 
    width: 100%; 
    max-width: 1800px; 
    margin: 0 auto; 
}

/* Light Theme View Helper (Reverted) */
.light-theme-view {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

/* Fix for FontAwesome being overridden by global * { font-family } */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

/* --- MODERN SPORTS SCHEDULE SYSTEM --- */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    margin-top: 2rem;
}

.day-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-header {
    position: sticky;
    top: 72px; /* Adjusted for top-nav height */
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    z-index: 10;
    border-radius: 12px;
    margin: 0 -8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.day-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

/* --- THE GAME CARD (PREMIUM) --- */
.game-card {
    background: linear-gradient(165deg, rgba(30, 30, 35, 0.8), rgba(15, 15, 20, 0.9));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(165deg, rgba(40, 40, 45, 0.9), rgba(20, 20, 25, 1));
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: var(--accent-blue);
    opacity: 0.8;
}

.game-card.live::after {
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-logo-large {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.team-name-small {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

.game-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-time-status {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-badge-premium {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
}

.status-badge-premium.live {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-badge-premium.final {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.status-badge-premium.next {
    background: var(--accent-blue);
    color: white;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.action-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.action-icon-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: rotate(15deg);
}

.youtube-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff0000;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .game-card {
        padding: 16px;
        gap: 12px;
    }
    .team-logo-large {
        width: 48px;
        height: 48px;
    }
    .team-name-small {
        font-size: 0.75rem;
    }
    .game-time-status {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Statuses */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.live .status-dot {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulse-red 1.5s infinite;
}

.finished {
    opacity: 0.6;
    border-left-color: var(--text-secondary);
}

.finished .status-dot {
    background: var(--text-secondary);
}

@keyframes pulse-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #111115;
    width: 90%;
    max-width: 550px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-game-info {
    text-align: center;
}

.modal-teams {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2rem 0;
}

.modal-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 140px;
}

.modal-team img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

.modal-team span {
    font-weight: 800;
    font-size: 1.1rem;
}

.modal-vs {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-style: italic;
}

.modal-meta {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.modal-meta p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-meta b {
    color: white;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-calendar-link {
    width: 100%;
    justify-content: center;
}

.btn-ics {
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ics:hover {
    background: rgba(255,255,255,0.05);
}

/* --- DESKTOP GRID SPECIFICS --- */
@media (min-width: 769px) {
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
    }
}

/* Legacy Mobile Grid Removed */

/* --- ARROWS MEJORADOS (CRÍTICO 🔥) --- */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.arrow-btn {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    font-size: 1.5rem;
}

.arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 0.6);
}

.arrow-btn:active {
    transform: scale(0.95);
}

#current-month-display {
    font-size: 2rem;
    font-weight: 900;
    min-width: 250px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CALENDAR CONTROLS ROW --- */
.calendar-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

/* --- TEAM SEARCH DROPDOWN --- */
.team-search-container {
    position: relative;
}

.team-search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 18px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.team-search-btn:hover {
    background: rgba(0, 112, 243, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
}

.team-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #0a0a0c;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    display: none;
    animation: dropdownIn 0.2s ease-out;
}

.team-dropdown.active {
    display: block;
}

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

.dropdown-search {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.dropdown-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.team-list {
    max-height: 300px;
    overflow-y: auto;
}

.team-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.team-item:hover {
    background: rgba(255,255,255,0.05);
}

.team-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- ACTIVE TEAM FILTER LABEL --- */
.active-team-filter {
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid var(--accent-blue);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-blue);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.clear-team-filter {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
}

.clear-team-filter:hover { opacity: 1; }

@media (max-width: 768px) {
    .calendar-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    .team-dropdown {
        width: 100%;
        left: 0;
    }
    #current-month-display {
        font-size: 1.5rem;
        min-width: 180px;
    }
    .arrow-btn {
        width: 56px;
        height: 56px;
    }
}

/* --- UPDATED GLOW & BADGE --- */
.updated-glow {
    position: relative;
    animation: glowPulse 2s infinite alternate;
    border: 1px solid var(--accent-blue) !important;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 5px rgba(0, 112, 243, 0.2); }
    to { box-shadow: 0 0 20px rgba(0, 112, 243, 0.6); }
}

.updated-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 112, 243, 0.4);
    animation: slideDownIn 0.5s ease-out;
}

@keyframes slideDownIn {
    from { transform: translate(-50%, -10px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Tooltip for actions */
.action-icon-btn {
    position: relative;
}

@media (max-width: 480px) {
    .updated-badge {
        font-size: 0.5rem;
        padding: 1px 6px;
    }
}

/* ==========================================================================
   🏆 MVP & AWARDS RACE (LEADERBOARD PROFESIONAL DE 3 COLUMNAS)
   ========================================================================== */

#view-premios {
    padding-top: 2rem;
    padding-bottom: 6rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.race-columns-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.race-column {
    background: linear-gradient(180deg, rgba(18, 22, 32, 0.85) 0%, rgba(8, 10, 16, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.race-column:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Specific column border accents */
#col-mvp { border-top: 3px solid #fbbf24; }
#col-dpoy { border-top: 3px solid #3b82f6; }
#col-mip { border-top: 3px solid #10b981; }

.race-col-header {
    position: relative;
    padding: 22px 24px;
    background: rgba(12, 15, 24, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.race-col-title {
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#col-mvp .race-col-title { color: #fbbf24; text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
#col-dpoy .race-col-title { color: #3b82f6; text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
#col-mip .race-col-title { color: #10b981; text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }

.race-col-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.race-list {
    display: flex;
    flex-direction: column;
}

.race-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    gap: 10px;
    position: relative;
}

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

.race-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.race-rank {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-secondary);
    width: 24px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.race-trend {
    font-size: 1rem;
    font-weight: 900;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.race-trend.up { color: #10b981; filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5)); }
.race-trend.down { color: #ef4444; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5)); }
.race-trend.same { color: var(--text-secondary); opacity: 0.5; }

.race-player-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    gap: 2px;
}

.race-gamertag {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.race-team-line {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.race-mini-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.race-stats-line {
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    margin-top: 2px;
}

.race-score-block {
    text-align: right;
    flex-shrink: 0;
    min-width: 60px;
}

.race-score-val {
    font-size: 1.2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.race-score-lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- ACCENTS & HIGHLIGHTS --- */
/* MVP Highlights */
#col-mvp .race-score-val { color: #fbbf24; }
#col-mvp .race-item.top-3 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
    border-left: 3px solid rgba(251, 191, 36, 0.6);
}
#col-mvp .race-item.rank-1 {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-left: 3px solid #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}
#col-mvp .race-item.rank-1 .race-rank { color: #fbbf24; font-size: 1.15rem; }

/* DPOY Highlights */
#col-dpoy .race-score-val { color: #3b82f6; }
#col-dpoy .race-item.top-3 {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    border-left: 3px solid rgba(59, 130, 246, 0.6);
}
#col-dpoy .race-item.rank-1 {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-left: 3px solid #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
#col-dpoy .race-item.rank-1 .race-rank { color: #3b82f6; font-size: 1.15rem; }

/* MIP Highlights */
#col-mip .race-score-val { color: #10b981; }
#col-mip .race-item.top-3 {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
    border-left: 3px solid rgba(16, 185, 129, 0.6);
}
#col-mip .race-item.rank-1 {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-left: 3px solid #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
#col-mip .race-item.rank-1 .race-rank { color: #10b981; font-size: 1.15rem; }

/* Icons in rank 1 */
.icon-rank-1 {
    margin-left: 6px;
    font-size: 0.95rem;
}
#col-mvp .icon-rank-1 { filter: drop-shadow(0 0 6px rgba(251,191,36,0.8)); }
#col-dpoy .icon-rank-1 { filter: drop-shadow(0 0 6px rgba(96,165,250,0.8)); }
#col-mip .icon-rank-1 { filter: drop-shadow(0 0 6px rgba(52,211,153,0.8)); }

@media (max-width: 1024px) {
    .race-columns-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 10px;
    }
    .race-item {
        padding: 12px 14px;
        gap: 8px;
    }
    .race-gamertag {
        font-size: 0.9rem;
    }
    .race-stats-line {
        font-size: 0.65rem;
    }
    .race-score-block {
        min-width: 55px;
    }
    .race-score-val {
        font-size: 1.1rem;
    }
}


