:root {
    --bg: #050709;
    --card: #111418;
    --primary: #2563eb;
    --live: #ef4444;
    --text: #f8fafc;
    --text-dim: #64748b;
    --border: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Fijo */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 9, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.logo { font-weight: 900; letter-spacing: -1px; font-size: 1.2rem; }
.logo span { color: var(--primary); }

.status-dot-top {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.1);
    color: var(--live);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contenedor de Eventos */
.app-content { padding: 15px; }

.event-card {
    background: var(--card);
    border-radius: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.event-card:active { transform: scale(0.98); }

.event-trigger {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    padding-right: 15px;
    border-right: 1px solid var(--border);
}

.time { font-weight: 800; font-size: 0.9rem; color: var(--primary); }
.status-label { font-size: 0.6rem; text-transform: uppercase; margin-top: 4px; font-weight: 700; }

.event-main-info { flex: 1; }
.event-title { 
    display: block; 
    font-size: 1rem; 
    font-weight: 600; 
    margin-bottom: 4px;
    line-height: 1.2;
}
.event-league { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

/* Reproductor Moderno */
.player-wrapper {
    max-height: 0;
    overflow: hidden;
    background: #000;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-wrapper.open {
    max-height: 56.25vw; /* Ratio 16:9 perfecto en mobile */
    border-top: 1px solid var(--border);
}

iframe { width: 100%; aspect-ratio: 16/9; border: none; }

/* Animación Live */
.live-glow {
    width: 6px;
    height: 6px;
    background: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--live);
    animation: blink 1.2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

:root {
    --bg-dark: #05070a;
    --card-bg: #111419;
    --primary: #2563eb;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --accent-red: #ef4444;
    --header-h: 60px;
    --footer-h: 70px;
}

body {
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    font-family: -apple-system, system-ui, sans-serif;
    color: var(--text);
}

/* HEADER FIJO */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.app-logo { font-size: 1.2rem; font-weight: 400; letter-spacing: -0.5px; }
.app-logo b { color: var(--primary); font-weight: 900; }

.live-indicator {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pulse-dot {
    width: 6px; height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* FOOTER / TAB BAR */
.app-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--footer-h);
    background: rgba(17, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom); /* Soporte para iPhone notch */
}

.tab-bar {
    display: flex;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

.tab-item {
    text-decoration: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    transition: 0.2s;
}

.tab-item i { font-size: 1.2rem; }
.tab-item.active { color: var(--primary); }

/* AJUSTE DE CONTENIDO */
.app-main {
    padding-top: calc(var(--header-h) + 15px);
    padding-bottom: calc(var(--footer-h) + 20px);
    padding-left: 15px;
    padding-right: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.seo-content {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.6;
}
.seo-content h2 { 
    font-size: 1rem; 
    color: var(--text); 
    margin-bottom: 10px; 
}
.seo-content strong { color: var(--primary); }