/* Widget Mundial CCL Styles */
.mundial-ccl-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: visible;
    font-family: 'Barlow', sans-serif;
    border: 1px solid #eee;
}

.mundial-ccl-header {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.mundial-ccl-title {
    color: #e30613; /* Rojo/Magenta */
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mundial-ccl-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mundial-ccl-nav a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.mundial-ccl-nav a:hover {
    color: #e30613;
}

.mundial-ccl-toggle {
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    background: none;
    border:none;
}

.mundial-ccl-content {
    transition: max-height 0.5s ease-in-out, opacity 0.3s;
    max-height: 1000px;
    opacity: 1;
}

.mundial-ccl-widget.collapsed .mundial-ccl-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.mundial-ccl-groups-bar {
    display: none;
    gap: 10px;
    padding: 10px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
}

.mundial-ccl-group-tab {
    padding: 4px 10px;
    background: #eee;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.mundial-ccl-group-tab.active, .mundial-ccl-group-tab:hover {
    background: #e30613;
    color: #fff;
}

/* Wrapper exterior: centra el scroll-container */
.mundial-ccl-matches-outer {
    display: flex;
    justify-content: center;
    padding: 20px 20px 10px;
    overflow: visible;
}

/* Contenedor interno: scroll horizontal, siempre en una fila */
.mundial-ccl-matches-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    max-width: 100%;
    padding-bottom: 10px;
}

.mundial-ccl-match-card {
    width: 220px;
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    cursor: default;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mundial-ccl-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.mundial-ccl-match-card.en_vivo {
    border: 2px solid #e30613;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #e30613; box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.4); }
    70% { border-color: #e30613; box-shadow: 0 0 0 10px rgba(227, 6, 19, 0); }
    100% { border-color: #e30613; box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.mundial-ccl-match-info {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.mundial-ccl-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mundial-ccl-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mundial-ccl-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.mundial-ccl-team-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.mundial-ccl-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mundial-ccl-vs {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
}

/* Tooltip Styles */
.mundial-ccl-tooltip {
    position: fixed;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 15px;
    width: 260px;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.mundial-ccl-tooltip.visible {
    display: block;
}

.mundial-ccl-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #eee transparent;
}
.mundial-ccl-tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.mundial-ccl-tooltip-cols {
    display: flex;
    gap: 15px;
}

.mundial-ccl-tooltip-col {
    flex: 1;
}

.mundial-ccl-tooltip-team-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.mundial-ccl-stat {
    margin-bottom: 4px;
}

.mundial-ccl-stat-label {
    font-size: 0.7rem;
    color: #888;
    display: block;
}

.mundial-ccl-stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
}

/* Scrollbar styling */
.mundial-ccl-groups-bar::-webkit-scrollbar { height: 4px; }
.mundial-ccl-groups-bar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

@media (max-width: 768px) {
    .mundial-ccl-nav { display: none; }
    .mundial-ccl-match-card { width: 90%; flex: 0 0 90%; }
}

/* Ticker oculto - widget muestra partidos del día */
.mundial-ticker-wrapper { display: none !important; }