/************************
CSS 2003-2026 BENGALESES.COM, PIZARRA BEISBOL MLB 2026
Todos los Derechos Reservados 
Realiza: Ãngel Matos - USO EXCLUSIVO PARA: Bengaleses.com*/
/************************/

    :root {
        --mlb-blue: #041e42;
        --mlb-red: #bf0d3e;
        --mlb-orange: #f98f3e;
        --accent: #22a3e0; 
        --border-color: #e1e4e8;
        --blue-official: #002d62; 
        --score-bg: #f1f5f9;
        --text-muted: #b3b3b3;
        --gray-pulse: #6a747e;
    }

    .bgls-main-container { width: 100%; max-width: 100%; margin: 0 auto; font-family: 'Arial Black', 'Arial Bold', sans-serif; background: #f0f2f5; border-radius: 6px; overflow: hidden; }
    .header-banner { background: #000926; color: white; text-align: center; padding: 8px 0px 8px 0px; display: flex; flex-direction: column; gap: 8px; margin-top: -5px; }
    .banner-title { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
    .date-pill { background: rgba(255, 255, 255, 0.20); padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 400; text-transform: uppercase; }

    .pizarra-grid-container { 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); 
        gap: 6px; 
        padding: 0px; 
    }

    .game-card { background: #ffffff !important; width: 100%; position: relative; z-index: 1; transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 8px; overflow: hidden; border: 0px solid #e1e4e8; display: flex; flex-direction: column; }
    .game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 2; background: #ffffff !important; }
	
	
/* --- 1. FASE ORIGINAL (Pantallas Grandes > 1024px) --- */
/* Diseño de bloque unido: bordes rectos en las uniones */
.game-card:first-of-type { 
    margin-top: 0px; 
    border-radius: 0 0 8px 8px; 
}
.game-card:not(:first-of-type):not(:last-of-type) { 
    border-radius: 8px; 
}
.game-card:last-of-type { 
    border-radius: 8px 8px 0 0; 
    margin-bottom: 0px; 
}

/* --- 2. FASE INTERMEDIA (Entre 501px y 1024px) --- */
/* Todas las tarjetas se vuelven independientes con radio completo */
@media screen and (min-width: 556px) and (max-width: 1024px) {
    .game-card {
        border-radius: 8px !important; 
        margin-top: 4px !important; 
        margin-bottom: 4px !important;
    }
}

/* --- 3. FASE MÓVIL (Pantallas <= 500px) --- */
/* Volvemos al código original (bloque unido) */
@media screen and (max-width: 556px) {
    .game-card:first-of-type { 
        margin-top: 0px !important; 
        border-radius: 0 0 8px 8px !important; 
    }
    .game-card:not(:first-of-type):not(:last-of-type) { 
        border-radius: 8px !important; 
    }
    .game-card:last-of-type { 
        border-radius: 8px 8px 0 0 !important; 
        margin-bottom: 0px !important; 
    }
}

    .game-header { padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
    .header-live { background: var(--mlb-orange) !important; color: white !important; }
    .header-final { background: var(--mlb-red) !important; color: white !important; }
    .header-preview { background: var(--accent) !important; color: #fff !important; }
    
    .header-left-tag { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 900; text-transform: uppercase; }
    .header-left-tag svg { width: 13px; height: 13px; fill: currentColor; }

    /* Cápsula derecha del Header (Sin fondo, borde blanco) */
    .header-right-capsule { border: 1.5px solid #ffffff; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 900; display: inline-block; line-height: 1.2; text-transform: uppercase; }

    /* Cápsula Naranja (Inning) */
    .inning-capsule-container { text-align: center; margin-top: 4px; margin-bottom: 2px; display: flex; justify-content: center; }
    .inning-pill { border: 1.5px solid var(--mlb-orange); color: #767676; padding: 4px 14px; border-radius: 20px; font-size: 10px; font-weight: 900; text-transform: uppercase; display: inline-block; }

    .matchup-title { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px 4px 10px; font-size: 16px; font-weight: 900; color: #767676; text-transform: capitalize; text-align: center; }
    .vs-box { background: #eee; color: #777; font-size: 9px; padding: 2px 5px; border-radius: 3px; border: 1px solid #ddd; }
    .venue-info { text-transform: capitalize; font-size: 11px; color: #888; margin-bottom: 2px; text-align: center; font-weight: 400; }


    
    .game-type-label { font-size: 14px; font-weight: 800; text-align: center; margin-bottom: 8px; }
    .type-live { color: var(--mlb-orange); }
    .type-final { color: var(--mlb-red); }
    .type-preview { color: var(--accent); }

    .scoreboard { padding: 4px 10px 8px 10px; display: grid; grid-template-columns: 1fr 45px 60px 45px 1fr; align-items: center; text-align: center; }
    .team-box { display: flex; flex-direction: column; align-items: center; }
    .team-box img { width: 30px; height: 30px; object-fit: contain; margin-bottom: 4px; }
    .team-name { font-size: 12px; font-weight: 900; color: var(--mlb-blue); line-height: 1.1; margin-top: 3px;}
    .team-record { font-size: 10px; color: #a2adbd; font-weight: 600; margin-top: 2px; font-family: sans-serif; }
    .score-num { background: var(--score-bg); color: var(--mlb-red); font-size: 24px; font-weight: 900; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; margin: 0 5px; }
    .score-num-preview { color: #94a3b8 !important; font-weight: 900; }

    .center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .out-dots-container { display: flex; gap: 3px; justify-content: center; width: 38px; margin-top: -4px; position: relative; z-index: 2; }
    .out-dot { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; border: 1px solid #697484; }
    .out-dot.active { background: var(--mlb-red) !important; border: 1px solid #7f0000; }
    .count-text { font-size: 10px; font-weight: 400; color: #697484; margin-top: 2px; letter-spacing: 3px; text-indent: 3px; }

    .che-container { margin: 0 8px 8px 8px; padding: 6px 8px; background: #f8f9fa; border-radius: 4px; border: 1px solid #eee; }
    .che-table { width: 100%; border-collapse: collapse; }
    .che-table th { color: #b3b3b3; font-weight: 900; font-size: 10px; text-align: center; }
    .che-table td { font-weight: 900; font-size: 14px; text-align: center; padding: 2px 0; }
    .che-team-name { text-align: left !important; width: 55%; color: #6b6b6b; }
    .che-runs { color: var(--mlb-red) !important; }
    .che-dimmed { color: #8394ae !important; font-weight: 700; transition: color 0.3s ease; }

    .pitcher-section { background: #fff; padding: 0px 12px 10px 12px; flex-grow: 1; }
    .matchup-row { display: flex; align-items: center; margin-bottom: 8px; }
    .role-badge { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; margin-right: 10px; color: white; flex-shrink: 0; }
    .badge-p { background-color: var(--mlb-blue); } 
    .badge-v { background-color: var(--mlb-red); } 
    .badge-s { background-color: #28a745; } 
    .badge-b { background-color: #555; }
    .player-info-box { display: flex; flex-direction: column; text-align: left; }
    .role-label { font-size: 10px; font-weight: 900; text-transform: uppercase; line-height: 1; }
    .label-live { color: var(--mlb-orange); }
    .label-final { color: var(--mlb-red); }
    .label-preview { color: var(--accent); } 
    .player-name { font-size: 12px; color: #333; font-weight: 700; margin-top: 1px; display: block; font-family: Arial, sans-serif; }

    /* Media Acciones y Pulso */
    .media-actions { display: flex; justify-content: center; gap: 6px; padding: 3px 6px 8px 6px; background: #fff; border-top: 1px solid #f8f9fa; }
    .btn-action { flex: 1; max-width: 85px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px; font-size: 9.5px; font-weight: 900; text-decoration: none; background: #ffffff; border: 1.5px solid #d1d5db; border-radius: 6px; transition: all 0.2s ease; cursor: pointer; color: #000 !important; white-space: nowrap; }
    .btn-action:hover { transform: translateY(-2px); border-color: var(--gray-pulse); color: #000; background: #f8fafc; }
    .btn-action svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.5; }

    @keyframes btn-pulse-gray {
        0% { box-shadow: 0 0 0 0 rgba(106, 116, 126, 0.6); border-color: var(--gray-pulse); }
        70% { box-shadow: 0 0 0 8px rgba(106, 116, 126, 0); border-color: var(--gray-pulse); }
        100% { box-shadow: 0 0 0 0 rgba(106, 116, 126, 0); border-color: var(--gray-pulse); }
    }
    .btn-pulse { animation: btn-pulse-gray 3s infinite !important; border-color: var(--gray-pulse) !important; }

    .footer-banner-full { 
        display: block; 
        padding: 8px; 
        background: var(--mlb-blue); 
        color: white; 
        text-decoration: none; 
        text-align: center; 
        font-size: 12px; 
        font-weight: 700; 
        text-transform: uppercase; 
        transition: background 0.3s;
        letter-spacing: 1px;
    }
    .footer-banner-full:hover { background: #00a3e0; }

    @keyframes pulse-wave {
        0% { transform: scale(0.8); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
        70% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
        100% { transform: scale(0.8); opacity: 0; }
    }
    .pulse-icon { width: 8px; height: 8px; background: white; border-radius: 50%; animation: pulse-wave 1.5s infinite; }
    
    
	/* Oculto por defecto en pantallas grandes y medianas */
    .baner {
        display: none !important;
}
/* 1. ESTADO INICIAL: Se ve en pantallas grandes (Escritorio) */
.banner{
    display: block;
}


	@media screen and (max-width: 500px) {
    .baner {
        display: block !important; }
	.header-banner { 
        padding: 8px 0px 0px 0px; }
}

/* 2. RANGO INTERMEDIO: Se oculta entre 501px y 1024px (Tablets/Laptops pequeñas) */
@media screen and (min-width: 556px) and (max-width: 1024px) {
    .banner {
        display: none !important;
    }
}

/* 3. RANGO MÓVIL: Reaparece en 500px o menos y ajustamos el padding */
@media screen and (max-width: 555px) {
    .banner {
        display: block !important;
    }
}

	
	@media screen and (max-width: 1024px) { .che-container, .pitcher-section, .venue-info, .game-type-label, .header-bannr { display: none; } 
	}
	

	
	
	
	@media screen and (max-width: 555px) { .che-container, .pitcher-section, .venue-info, .game-type-label, .header-bannr { display: block !important; } }