:root {
    --bg-color: #0b0e11;
    --card-bg: #161a1e;
    --accent: #00d2ff;
    --text-main: #ffffff;
    --text-dim: #848d95;
    --win: #2ecc71;
    --loss: #e74c3c;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0; padding: 20px;
}

.main-wrapper { max-width: 1100px; margin: 0 auto; }

/* Tarjeta Jugador */
.player-card {
    display: flex;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

.photo-side { 
    position: relative; 
    width: 320px; 
    height: 320px; /* La hacemos cuadrada para que coincida con la proporción 100x100 */
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%); /* Fondo con degradado para que la foto flote */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}

.photo-side img { 
    width: 100%;       /* O podés usar 250px si no querés que se pixele tanto */
    height: 100%;
    object-fit: contain; /* Muestra la foto entera sin recortar nada */
    image-rendering: pixelated; /* Opcional: para que en fotos viejas no se vea tan borroso al agrandar */
}

.category-badge {
    position: absolute; bottom: 0; left: 0;
    background: var(--accent); color: #000;
    padding: 12px 30px; font-family: 'Orbitron';
    font-weight: bold; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.info-side { padding: 40px; flex: 1; }
h1 { font-family: 'Orbitron'; font-size: 3.5rem; margin: 0; text-transform: uppercase; }
.lastname { color: var(--accent); }
.trait { font-style: italic; color: var(--text-dim); margin-bottom: 25px; }

.quick-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #333; padding-top: 20px;
}
.q-item span { display: block; font-size: 11px; color: var(--text-dim); }
.q-item strong { font-size: 20px; }

/* Badges Forma y Conducta */
.pro-badges { display: flex; gap: 20px; margin-top: 25px; }
.badge-item { background: #21262b; padding: 12px 20px; border-radius: 12px; text-align: center; }
.badge-label { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 8px; display: block; }
.form-circles { display: flex; gap: 6px; }
.circle { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; }
.c-win { background: var(--win); }
.c-loss { background: var(--loss); }
.clean-sheet { color: #f1c40f; font-weight: bold; }

/* Grid Inferior */
.skills-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 25px; }
.chart-container, .additional-info { background: var(--card-bg); padding: 30px; border-radius: 20px; }

h3 { font-family: 'Orbitron'; font-size: 14px; border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 20px; }

/* Lista de Partidos */
.match-item {
    display: flex; align-items: center; background: #21262b;
    margin-bottom: 12px; padding: 12px; border-radius: 10px;
}
.match-status { width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 15px; }
.win-tag { background: rgba(46, 204, 113, 0.2); color: var(--win); border: 1px solid var(--win); }
.loss-tag { background: rgba(231, 76, 60, 0.2); color: var(--loss); border: 1px solid var(--loss); }
.match-details { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.match-date { font-size: 12px; line-height: 1.2; }
.match-score { font-family: 'Orbitron'; font-size: 14px; color: var(--accent); }

/* Fila superior del logro */
.logro-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.logro-info h4 {
    margin: 0;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pastilla de categoría */
.cat-pill {
    font-size: 10px;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00d2ff;
    font-family: 'Orbitron', sans-serif;
}

/* Fecha al costado en otro color */
.fecha-logro {
    font-size: 11px;
    color: #f1c40f; /* Color dorado suave o el que prefieras */
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 10px;
}

/* Ajuste para el link del compañero */
.logro-info p {
    margin: 4px 0 10px 0;
    font-size: 13px;
    color: #aaa;
}
.trait {
    font-style: italic;
    color: #00d2ff;
    font-size: 1.05rem;
    margin: 12px 0;
    line-height: 1.4;
    font-weight: 300;
    border-left: 3px solid #00d2ff;
    padding-left: 15px;
    background: rgba(0, 210, 255, 0.05);
}

.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.q-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.search-box{
    position:relative;
    width:100%;
    margin-bottom: 25px;
}

#buscadorJugadores{
    width:100%;
    padding:16px 20px;
    border-radius: 14px;
    border:1px solid #222;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: 0.25s;
}

#buscadorJugadores:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,210,255,0.15);
}

.search-results{
    position:absolute;
    top:110%;
    left:0;
    width:100%;
    background: var(--card-bg);
    border-radius: 16px;
    border:1px solid #222;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index:999;
    overflow:hidden;
}

.search-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    cursor:pointer;
}

.search-item:hover{
    background:#1a1a1a;
}

.search-photo{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
}

.search-info{
    display:flex;
    flex-direction:column;
}

.search-name{
    font-weight:bold;
}

.search-meta{
    font-size:12px;
    opacity:0.7;
}
.pro-search{
    position: relative;
    margin-bottom: 25px;
}

.pro-search input{
    width: 100%;
    padding: 14px 18px;
    background: rgba(0,210,255,0.06);
    border: 1px solid rgba(0,210,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Orbitron';
    letter-spacing: 1px;
    outline: none;
    transition: 0.3s;
}

.pro-search input:focus{
    border-color: #00d2ff;
    box-shadow: 0 0 12px rgba(0,210,255,0.4);
}

/* Contenedor Principal H2H */
.h2h-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.h2h-panel h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00d2ff;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

/* Buscador de Rival */
.h2h-search-box {
    position: relative;
    max-width: 450px;
    margin: 0 auto 25px;
}

.h2h-search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    padding: 12px 20px;
    border-radius: 30px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.h2h-search-box input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    outline: none;
}

/* Diseño de la Tarjeta de Resultados (Generada por h2h_data.php) */
.h2h-resultado-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 15px;
    animation: fadeIn 0.4s ease-out;
}

.h2h-player-info {
    text-align: center;
    flex: 1;
}

.h2h-player-info .name {
    display: block;
    font-family: 'Orbitron';
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.h2h-big-score {
    font-family: 'Orbitron';
    font-size: 48px;
    font-weight: 700;
    color: #00d2ff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.h2h-vs-badge {
    background: #222;
    padding: 5px 12px;
    border-radius: 5px;
    font-family: 'Orbitron';
    font-size: 10px;
    color: #666;
    border: 1px solid #333;
}

.h2h-stats-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Estilos para las tarjetas de logros en el Modal */
.logro-card {
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    text-decoration: none; /* Quita el subrayado del enlace */
    border: 1px solid #333;
}

.logro-card:hover {
    background: #252525 !important;
    transform: translateX(5px);
    border-color: #00d2ff;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.close-btn {
    cursor: pointer;
    font-size: 28px;
    color: #888;
}

.close-btn:hover { color: #fff; }



/* Jugador 1 - Celeste */
#h2h_foto1 { border: 2px solid #00d2ff !important; }
#h2h_nombre1 { color: #00d2ff !important; }
#h2h_wins1 { color: #00d2ff !important; }

/* Jugador 2 - Bordó / Rojo Oscuro */
#h2h_foto2 { border: 2px solid #800000 !important; }
#h2h_nombre2 { color: #800000 !important; }
#h2h_wins2 { color: #800000 !important; }


/* --- ENCABEZADO GUILLÓN PADEL --- */
:root {
    --header-height: 80px;
}

.main-header {
    background: rgba(22, 26, 30, 0.95); /* var(--card-bg) con transparencia */
    height: var(--header-height);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo con efecto Pop-out */
.header-logo {
    height: 90px; /* Un poco más alto que el header */
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--accent); /* #00d2ff */
}

/* Línea indicadora bajo el link activo */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Botón Mi Perfil (Color Bordó del Logo) */
.btn-mi-perfil {
    background: transparent;
    border: 1px solid #e74c3c; /* Rojo/Bordó del logo */
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Orbitron';
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-mi-perfil:hover {
    background: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* Ajuste para que el contenido no quede debajo del header sticky */
body {
    padding-top: 20px; /* Opcional, dependiendo de tu diseño */
}



/* --- ESTILOS ESPECÍFICOS JUGADORES.PHP --- */

.players-section {
    margin-bottom: 50px;
}

.section-header {
    font-family: 'Orbitron';
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 25px;
}

/* Nuevas Promesas */
.new-players-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 5px;
}

.mini-card-new {
    min-width: 170px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.mini-card-new:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.badge-debut {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1c40f;
    color: #000;
    font-family: 'Orbitron';
    font-size: 9px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.mini-card-new img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    margin-bottom: 12px;
}

.mini-card-info strong { display: block; color: #fff; font-size: 15px; }
.mini-card-info span { color: var(--text-dim); font-size: 12px; }

/* Directorio y Filtros */
.directory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-bar {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

#filterSearch {
    background: #1a1e23;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    width: 250px;
    outline: none;
}

#filterSearch:focus { border-color: var(--accent); }

.category-pills { display: flex; gap: 8px; }
.pill {
    background: #1a1e23;
    border: 1px solid #333;
    color: var(--text-dim);
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Orbitron';
    font-size: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.pill:hover, .pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Grid de Jugadores */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.player-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.player-item:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.item-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cat-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    padding: 2px 8px;
    font-family: 'Orbitron';
    font-size: 9px;
    border-radius: 4px;
}

.item-name { text-align: center; margin-bottom: 15px; }
.item-name strong { display: block; font-size: 16px; color: #fff; text-transform: uppercase; }
.item-name span { color: var(--accent); font-size: 12px; }

.btn-view {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Orbitron';
    font-size: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view:hover { background: var(--accent); color: #000; }

/* Call to Action H2H */
.h2h-cta {
    background: linear-gradient(90deg, #161a1e 0%, rgba(0, 210, 255, 0.1) 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.cta-content { display: flex; justify-content: space-between; align-items: center; }
.cta-text h3 { font-family: 'Orbitron'; color: var(--accent); margin-bottom: 10px; }
.cta-text p { color: var(--text-dim); font-size: 14px; }
.btn-h2h-launch {
    background: var(--accent);
    color: #000;
    font-family: 'Orbitron';
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-h2h-launch:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,210,255,0.4); }


/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a {
    background: #1a1e23;
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #333;
    transition: 0.3s;
    font-size: 14px;
}

.pagination a.active, .pagination a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Caja de H2H */
.h2h-cta-box {
    background: linear-gradient(135deg, #1a1e23 0%, #0b0e11 100%);
    border: 1px solid #333;
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    padding: 30px;
    margin-top: 60px;
}

.h2h-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.h2h-text h3 {
    font-family: 'Orbitron';
    color: var(--accent);
    margin: 0 0 5px 0;
}

.h2h-text p {
    color: var(--text-dim);
    margin: 0;
}

.btn-h2h {
    background: var(--accent);
    color: #000;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
    display: inline-block;
}

.btn-h2h:hover {
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

.footer-simple {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 12px;
}
/* --- HERO SEARCH SECTION --- */
.hero-search-section {
    background: linear-gradient(rgba(11, 14, 17, 0.8), rgba(11, 14, 17, 0.9)), url('../images/bg-padel.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 40px;
}

.hero-search-section h1 {
    font-family: 'Orbitron';
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.main-search-form {
    max-width: 600px;
    margin: 30px auto;
}

.input-wrapper {
    position: relative;
    display: flex;
    background: #1a1e23;
    padding: 5px;
    border-radius: 50px;
    border: 1px solid #333;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 15px 15px 50px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.input-wrapper button {
    background: var(--accent);
    border: none;
    padding: 0 25px;
    border-radius: 50px;
    font-family: 'Orbitron';
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.input-wrapper button:hover {
    background: #fff;
    color: #000;
}

/* --- SECCIONES Y GRIDS --- */
.title-accent {
    font-family: 'Orbitron';
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.player-card-mini {
    min-width: 150px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #222;
    cursor: pointer;
}

.player-card-mini img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.recent-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #222;
}

.recent-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.recent-thumb { position: relative; height: 120px; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-cat {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: #000;
    font-family: 'Orbitron';
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
}

.tabs-parejas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none; /* Oculta scroll en Firefox */
}
.tabs-parejas::-webkit-scrollbar { display: none; } /* Oculta scroll en Chrome */

.tab-button {
    background: #000;
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    opacity: 0.6;
}
.tab-button.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    opacity: 1;
    background: rgba(0, 210, 255, 0.1);
}
.tab-button img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}
.tab-button span {
    font-family: 'Orbitron';
    font-size: 0.7rem;
    color: #fff;
}


.bracket-container { display: flex; flex-direction: column; gap: 30px; margin-top: 20px; }
.ronda-wrapper { background: rgba(255, 255, 255, 0.02); border-radius: 15px; padding: 20px; border: 1px solid #333; }
.ronda-title { font-family: 'Orbitron'; color: var(--playoff); font-size: 0.9rem; margin-bottom: 20px; text-align: center; border-bottom: 1px solid #333; padding-bottom: 10px; }
.duelo-card { background: #000; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.pareja-elim { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #222; }
.pareja-elim.ganador { background: rgba(0, 255, 136, 0.1); border-left: 3px solid var(--win); }
.pareja-elim:last-child { border-bottom: none; }
.res-elim { font-family: 'Orbitron'; font-size: 0.8rem; color: var(--accent); }



.estilo-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Orbitron';
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.badge-potencia { background: linear-gradient(45deg, #ff4b2b, #ff416c); color: #fff; }
.badge-muro { background: linear-gradient(45deg, #1d976c, #93f9b9); color: #000; }
.badge-cerebro { background: linear-gradient(45deg, #00d2ff, #3a7bd5); color: #fff; }

/* Contenedor de Probabilidad */
.h2h-win-probability {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prob-bar-container {
    width: 100%;
    height: 24px;
    background: #222;
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    display: flex;
    position: relative;
    border: 1px solid #444;
}

.prob-bar-j1 {
    background: linear-gradient(90deg, #adff2f, #7ed321);
    color: #000;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s ease-in-out;
}

.prob-bar-j2 {
    background: linear-gradient(90deg, #ff4d4d, #c0392b);
    color: #fff;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s ease-in-out;
}

/* Lista de Partidos (Estilo Torneo Detalle) */
.h2h-match-item {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.h2h-match-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.h2h-match-info span {
    display: block;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.h2h-match-info strong {
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
}

.h2h-match-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

#btn_cargar_mas_h2h {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Orbitron';
    margin-top: 10px;
    transition: all 0.3s;
}

#btn_cargar_mas_h2h:hover {
    background: #444;
    color: #fff;
}

.h2h-match-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    max-width: 800px; /* Evita que se estire en pantallas gigantes */
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor de Jugador (Foto + Nombre) */
.match-player-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px; /* Ancho fijo para que el marcador no se mueva */
    text-align: center;
}

.img-mini-h2h {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    background: #000;
}

.name-mini-h2h {
    font-size: 9px;
    color: #999;
    margin-top: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Marcador Estilo Scoreboard */
.match-score-box {
    flex: 1;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.score-text {
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
}

.match-info-top {
    font-size: 9px;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Limitar el ancho de la lista de partidos para que no ocupe toda la pantalla */

.h2h-match-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.match-player-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.img-mini-h2h {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.score-text {
    font-family: 'Orbitron';
    font-size: 16px;
    font-weight: bold;
}

/* Contenedor principal del historial */
#h2h_lista_partidos {
    display: flex;
    flex-wrap: wrap;       /* Permite que los elementos salten de fila */
    gap: 15px;             /* Espacio entre tarjetas */
    justify-content: center;
    max-width: 1000px;     /* Aumentamos el ancho para que entren dos */
    margin: 0 auto;
}

/* La tarjeta individual */
.h2h-card {
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 15px;
    padding: 15px;
    box-sizing: border-box;
    /* Por defecto en celulares: 100% de ancho */
    width: 100%; 
    transition: transform 0.2s;
}

/* TABLETS Y PC: 2 partidos por fila */
@media (min-width: 850px) {
    .h2h-card {
        width: calc(50% - 8px); /* 50% menos la mitad del gap */
    }
}

.h2h-card:hover {
    border-color: var(--accent);
}


.social-feed-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin: 20px 0;
}

.section-header {
    margin-bottom: 15px;
    text-align: left;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: #adff2f;
    font-size: 1.2rem;
    margin: 0;
}

.section-subtitle {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.social-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    cursor: pointer;
}

.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(173, 255, 47, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover img {
    transform: scale(1.1);
}

.social-card:hover .social-overlay {
    opacity: 1;
}

.social-overlay i {
    color: #adff2f;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}