:root {
    --pitch-green: #0a1a0f;
    --accent-red: #ff4b4b;
    --ucl: #00ff88;
    --uel: #ffcc00;
    --uecl: #ff8800;
    --desc: #ff4b4b;
    --glass: rgba(255, 255, 255, 0.05);
}

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    color: #fff;
    background-color: var(--pitch-green);
    background-image: 
        linear-gradient(rgba(10, 26, 15, 0.85), rgba(10, 26, 15, 0.85)),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.01) 40px, rgba(255,255,255,0.01) 80px);
    font-size: 13px;
    min-height: 100vh;
}

.main-header {
    padding: 30px 20px;
    text-align: center;
}

.logo-laliga img {
    height: 35px;
    filter: brightness(0) invert(1);
    margin-bottom: 5px;
}

.main-header h1 { font-size: 1.1rem; margin: 0; font-weight: 800; letter-spacing: 1px; }
.main-header h1 span { color: var(--accent-red); }

.contenedor-principal { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    max-width: 1150px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header h3 { font-size: 0.7rem; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin: 0; }

/* Selector de Jornada */
.navegacion-jornada-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

#titulo-jornada { font-size: 0.75rem; font-weight: 700; min-width: 70px; text-align: center; }

.btn-flecha {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.5;
}
.btn-flecha:hover { opacity: 1; }

/* Partidos */
.fila-partido {
    display: grid;
    grid-template-columns: 1fr 85px 1fr;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.equipo-local { text-align: right; padding-right: 12px; }
.equipo-visitante { text-align: left; padding-left: 12px; }

.contenedor-goles { display: flex; gap: 4px; justify-content: center; }

.input-gol {
    width: 32px;
    height: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Botón Limpiar */
.contenedor-boton-limpiar {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.btn-limpiar {
    background: transparent;
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.btn-limpiar:hover { color: #fff; border-color: var(--accent-red); }

/* Tabla */
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.6rem; color: rgba(255,255,255,0.3); padding: 8px; text-align: left; }
td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 0.8rem; }

.equipo-celda { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.equipo-celda img { width: 16px !important; height: 16px !important; }

.zona-champions { border-left: 3px solid var(--ucl); }
.zona-europa { border-left: 3px solid var(--uel); }
.zona-conference { border-left: 3px solid var(--uecl); }
.zona-descenso { border-left: 3px solid var(--desc); }

.input-gol::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* Ocultar las flechas de los inputs de número para que sea más limpio */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.btn-descargar {
    width: 100%;
    margin-top: 15px;
    background: #fff;
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
}

.leyenda { display: flex; justify-content: center; gap: 12px; margin-top: 15px; font-size: 0.65rem; opacity: 0.5; }
.bolita { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.ucl { background: var(--ucl); } .uel { background: var(--uel); } .uecl { background: var(--uecl); } .desc { background: var(--desc); }

.footer-legal {
    margin-top: 50px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.enlaces-legales a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 10px;
}

.enlaces-legales a:hover {
    color: var(--accent-red);
}

.disclaimer {
    margin-top: 15px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.tabla-scroll {
    overflow-x: auto;
}

th, td {
    text-align: center;
    padding: 8px 4px; /* Reducimos padding lateral */
}

.equipo-celda {
    justify-content: flex-start;
    min-width: 120px; /* Asegura espacio para el nombre */
}

.col-goles {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.col-dg {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Colorear DG según si es positivo o negativo */
td.col-dg {
    color: #fff;
}