/* =========================================================================
   Fútbol de los Jueves — Estilos del front
   Equipo A = amarillo (#f59e0b), Equipo B = azul (#2563eb)
   ======================================================================= */

.fj-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    line-height: 1.5;
}

.fj-container * { box-sizing: border-box; }
.fj-container a { color: #15803d; text-decoration: none; }
.fj-container a:hover { text-decoration: underline; }

.fj-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #6b7280 !important;
    font-size: 14px;
}

.fj-page-title {
    font-size: 32px;
    margin: 0 0 24px;
    color: #111827;
    font-weight: 800;
}

.fj-section-title {
    font-size: 22px;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}

.fj-empty { color: #6b7280; font-style: italic; }

/* ---------- HERO JUGADOR ---------- */

.fj-hero {
    display: flex;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.2);
}

.fj-hero img,
.fj-hero-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.fj-hero-avatar-placeholder {
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.fj-hero-info h1 { margin: 0 0 4px; font-size: 32px; font-weight: 800; color: white; }
.fj-apodo { margin: 0 0 12px; font-style: italic; opacity: 0.9; font-size: 16px; }

.fj-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.fj-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: white;
}

.fj-badge--invitado { background: #fbbf24; color: #78350f; }
.fj-badge--inactivo { background: #ef4444; color: white; }

/* ---------- FILTRO POR AÑO ---------- */

.fj-year-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.fj-year-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s;
}

.fj-year-btn:hover { background: #e5e7eb; }
.fj-year-btn.is-active { background: #15803d; color: white !important; }

/* ---------- STAT CARDS ---------- */

.fj-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.fj-stat {
    background: white;
    padding: 18px 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fj-stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #15803d;
}

.fj-stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fj-stat--goles .fj-stat-value     { color: #15803d; }
.fj-stat--asist .fj-stat-value     { color: #2563eb; }
.fj-stat--recib .fj-stat-value     { color: #dc2626; }
.fj-stat--partidos .fj-stat-value  { color: #7c3aed; }
.fj-stat--lavados .fj-stat-value   { color: #ea580c; }

.fj-stats-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #4b5563;
}

.fj-stats-secondary strong { color: #111827; }

/* ---------- HISTORIAL DE FECHAS DEL JUGADOR ---------- */

.fj-fechas-list { display: flex; flex-direction: column; gap: 6px; }

.fj-fecha-row {
    display: grid;
    grid-template-columns: 130px 130px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s;
}

.fj-fecha-row:hover {
    border-color: #15803d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fj-fecha-date { font-weight: 700; color: #111827; }
.fj-fecha-equipo { color: #6b7280; font-size: 14px; }

.fj-fecha-stats {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.fj-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.fj-tag--gol   { background: #dcfce7; color: #166534; }
.fj-tag--asist { background: #dbeafe; color: #1e40af; }
.fj-tag--recib { background: #fee2e2; color: #991b1b; }
.fj-tag--lavo  { background: #ffedd5; color: #9a3412; }

/* ---------- NAVEGACIÓN ANTERIOR/SIGUIENTE EN FECHA ---------- */

.fj-fecha-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}

.fj-fecha-nav--bottom {
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fj-fecha-nav-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #111827 !important;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fj-fecha-nav-btn:not(.fj-fecha-nav-btn--disabled):hover {
    border-color: #15803d;
    background: #f0fdf4;
}

.fj-fecha-nav-btn:last-of-type { text-align: right; }
.fj-fecha-nav-btn:first-of-type { text-align: left; }

.fj-fecha-nav-btn--disabled {
    color: #d1d5db !important;
    background: #f9fafb;
    cursor: not-allowed;
}

.fj-fecha-nav-btn span { font-weight: 700; }

.fj-fecha-nav-all {
    padding: 8px 14px;
    background: #15803d;
    color: white !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.fj-fecha-nav-all:hover { background: #166534; }

/* ---------- HERO DE FECHA ---------- */

.fj-fecha-hero {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    text-align: center;
}

.fj-fecha-date-big { font-size: 30px; font-weight: 800; color: #111827; margin-bottom: 8px; }

.fj-clima-line {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
}

.fj-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 12px;
}

.fj-score-team { display: flex; flex-direction: column; align-items: center; }

.fj-score-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.fj-score-label--a { color: #b45309; }
.fj-score-label--b { color: #1e40af; }

.fj-score-num { font-size: 48px; font-weight: 800; line-height: 1; }
.fj-score-num--a { color: #f59e0b; }
.fj-score-num--b { color: #2563eb; }

.fj-score-sep { font-size: 36px; color: #9ca3af; font-weight: 300; }

/* ---------- PECHERAS EN FECHA ---------- */

.fj-pecheras-info {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.fj-pecheras-info h3 { margin: 0 0 10px; font-size: 16px; color: #9a3412; }

.fj-pecheras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 15px;
}

.fj-pecheras-label {
    display: block;
    font-size: 12px;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.fj-pecheras-grid strong { color: #111827; }

/* ---------- FOTO ---------- */

.fj-foto-equipos { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.fj-foto-equipos img { width: 100%; height: auto; display: block; }

/* ---------- EQUIPOS (apilados, no en grid) ---------- */

.fj-equipo {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.fj-equipo h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #111827;
    padding-bottom: 8px;
    border-bottom: 3px solid #e5e7eb;
}

.fj-equipo--a h3 { border-bottom-color: #f59e0b; }
.fj-equipo--b h3 { border-bottom-color: #2563eb; }

.fj-equipo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fj-equipo-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    color: #111827 !important;
    text-decoration: none !important;
    transition: background 0.15s;
}

.fj-equipo-list li a:hover { background: #f3f4f6; }

.fj-equipo-list img,
.fj-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fj-avatar-placeholder {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.fj-equipo--a .fj-avatar-placeholder { background: #f59e0b; }
.fj-equipo--b .fj-avatar-placeholder { background: #2563eb; }

/* ---------- TIMELINE ---------- */

.fj-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fj-timeline-item {
    display: grid;
    grid-template-columns: 40px 60px 1fr 80px;
    gap: 14px;
    align-items: center;
    background: white;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid;
}

.fj-timeline-item--a { border-left-color: #f59e0b; }
.fj-timeline-item--b { border-left-color: #2563eb; }

.fj-tl-orden { font-size: 22px; font-weight: 800; color: #9ca3af; }
.fj-tl-equipo {
    font-size: 13px;
    font-weight: 700;
}

.fj-timeline-item--a .fj-tl-equipo { color: #b45309; }
.fj-timeline-item--b .fj-tl-equipo { color: #1e40af; }

.fj-tl-detalle { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.fj-tl-gol { font-size: 16px; }
.fj-tl-asist, .fj-tl-arq { color: #6b7280; }
.fj-tl-marcador { font-size: 18px; font-weight: 700; color: #111827; text-align: right; }

/* ---------- NOTAS ---------- */

.fj-notas {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.fj-notas h3 { margin: 0 0 8px; font-size: 16px; color: #92400e; }

/* ---------- ARCHIVE JUGADORES ---------- */

.fj-jugadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.fj-jugador-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fj-jugador-card:hover {
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.fj-jugador-card img,
.fj-card-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.fj-card-avatar-placeholder {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.fj-jugador-card h3 { margin: 0; font-size: 16px; color: #111827; }
.fj-card-apodo { font-size: 13px; color: #6b7280; font-style: italic; margin: 0; }

.fj-card-stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
}

/* ---------- ARCHIVE FECHAS ---------- */

.fj-fechas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.fj-fecha-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s;
}

.fj-fecha-card:hover {
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.fj-fecha-card-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #15803d;
}

.fj-fecha-card-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.fj-fecha-card-body { padding: 14px 16px; }
.fj-fecha-card-body h3 { margin: 0 0 6px; font-size: 16px; color: #111827; }
.fj-fecha-card-score { font-size: 20px; color: #111827; margin-bottom: 4px; }
.fj-fecha-card-clima { font-size: 13px; color: #6b7280; }
.fj-fecha-card-lavo {
    font-size: 13px;
    color: #9a3412;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
}

/* ---------- RANKINGS NUEVOS (TABS + TABLA COMPLETA) ---------- */

.fj-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.fj-tab {
    padding: 10px 18px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.fj-tab:hover { background: #f9fafb; border-color: #d1d5db; }

.fj-tab.is-active {
    background: #15803d;
    border-color: #15803d;
    color: white;
}

.fj-tab-panel.is-hidden { display: none; }

.fj-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fj-table thead {
    background: #f9fafb;
}

.fj-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.fj-th-pos { width: 50px; text-align: center !important; }
.fj-th-valor { width: 90px; text-align: right !important; }
.fj-th-tipo { width: 90px; }

.fj-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    vertical-align: middle;
}

.fj-table tbody tr:last-child td { border-bottom: 0; }

.fj-table tbody tr:hover { background: #f9fafb; }

.fj-td-pos { text-align: center; color: #6b7280; font-weight: 700; }
.fj-td-valor { text-align: right; font-weight: 800; color: #15803d; font-size: 16px; }

.fj-td-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.fj-td-link img,
.fj-td-link .fj-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fj-table tbody tr:nth-child(1) .fj-td-pos { background: #fbbf24; color: white; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.fj-table tbody tr:nth-child(2) .fj-td-pos { background: #d1d5db; color: white; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.fj-table tbody tr:nth-child(3) .fj-td-pos { background: #d97706; color: white; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }

.fj-row-zero td { color: #9ca3af; }
.fj-row-zero .fj-td-valor { color: #d1d5db; }

.fj-badge-mini {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.fj-badge-mini--grupo { background: #dcfce7; color: #166534; }
.fj-badge-mini--inv   { background: #fef3c7; color: #92400e; }

.fj-mini-avatar {
    background: #15803d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* ---------- PECHERAS PAGE ---------- */

.fj-proximo-lavador {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.fj-proximo-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.fj-proximo-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.fj-proximo-info img,
.fj-proximo-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fj-proximo-avatar {
    background: rgba(255,255,255,0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.fj-proximo-nombre {
    color: white !important;
    text-decoration: none !important;
    font-size: 26px;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.fj-proximo-meta { color: white; opacity: 0.9; font-size: 14px; margin-top: 4px; }
.fj-proximo-note { font-size: 13px; opacity: 0.85; margin: 0; line-height: 1.4; }

.fj-pecheras-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fj-ranking-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.fj-ranking-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.fj-historial-list { list-style: none; padding: 0; margin: 0; }

.fj-historial-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.fj-historial-list li:last-child { border-bottom: 0; }
.fj-historial-fecha { color: #6b7280; font-weight: 600; }
.fj-historial-fecha a { color: #6b7280 !important; }

.fj-historial-jugador { display: flex; align-items: center; gap: 8px; }
.fj-historial-jugador img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fj-historial-jugador a { color: #111827 !important; text-decoration: none !important; font-weight: 500; }

.fj-ranking-list { list-style: none; padding: 0; margin: 0; }
.fj-ranking-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.fj-ranking-list li:last-child { border-bottom: 0; }

.fj-rank-pos {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.fj-ranking-list li:nth-child(1) .fj-rank-pos { background: #fbbf24; color: white; }
.fj-ranking-list li:nth-child(2) .fj-rank-pos { background: #d1d5db; color: white; }
.fj-ranking-list li:nth-child(3) .fj-rank-pos { background: #d97706; color: white; }

.fj-ranking-list img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fj-rank-nombre { flex: 1; color: #111827 !important; text-decoration: none !important; font-weight: 500; }
.fj-rank-valor { font-weight: 700; color: #15803d; }
.fj-rank-valor small { font-weight: 400; color: #6b7280; font-size: 11px; }

/* ---------- HOME ---------- */

.fj-home-hero {
    background: linear-gradient(135deg, #166534, #16a34a);
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.2);
}

.fj-home-hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 6px;
}

.fj-home-hero-date {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 800;
    color: white;
}

.fj-home-hero-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 22px;
    margin-bottom: 16px;
}

.fj-home-team strong { font-size: 40px; font-weight: 800; }
.fj-home-team--a { color: #fbbf24; }
.fj-home-team--b { color: #93c5fd; }
.fj-home-vs { opacity: 0.7; }

.fj-home-hero-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.fj-home-hero-goles {
    background: rgba(255,255,255,0.12);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    display: inline-block;
}

.fj-home-cta {
    display: inline-block;
    background: white;
    color: #15803d !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 14px;
}

.fj-home-empty {
    background: white;
    border: 1px dashed #d1d5db;
    padding: 40px 24px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 24px;
}

.fj-home-empty h1 { margin-top: 0; }
.fj-home-empty p { color: #6b7280; }

.fj-home-proximo {
    background: white;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fj-home-proximo-label {
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
}

.fj-home-proximo-jugador {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fj-home-proximo-jugador img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fj-home-proximo-jugador a {
    font-weight: 700;
    color: #111827 !important;
    text-decoration: none !important;
}

.fj-home-proximo-meta {
    color: #6b7280;
    font-size: 13px;
}

.fj-home-section {
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 16px;
    color: #111827;
}

.fj-home-tops {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.fj-top-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.fj-top-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #111827;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.fj-top-list { list-style: none; padding: 0; margin: 0; }

.fj-top-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.fj-top-list li:last-child { border-bottom: 0; }

.fj-top-pos {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.fj-top-list li:nth-child(1) .fj-top-pos { background: #fbbf24; color: white; }
.fj-top-list li:nth-child(2) .fj-top-pos { background: #d1d5db; color: white; }
.fj-top-list li:nth-child(3) .fj-top-pos { background: #d97706; color: white; }

.fj-top-list img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.fj-top-list a {
    flex: 1;
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fj-top-valor {
    font-weight: 700;
    color: #15803d;
    font-size: 13px;
}

.fj-top-valor small {
    font-weight: 400;
    color: #6b7280;
    font-size: 10px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    .fj-hero {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }

    .fj-hero img, .fj-hero-avatar-placeholder { width: 100px; height: 100px; }
    .fj-hero-info h1 { font-size: 26px; }

    .fj-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fj-stat-value { font-size: 28px; }

    .fj-fecha-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .fj-fecha-stats { justify-content: flex-start; }

    .fj-timeline-item {
        grid-template-columns: 40px 1fr 60px;
        gap: 10px;
        row-gap: 4px;
    }

    .fj-tl-equipo { grid-column: 2; }
    .fj-tl-detalle { grid-column: 1 / -1; padding-left: 0; }
    .fj-tl-marcador { grid-column: 3; grid-row: 1; }

    .fj-fecha-date-big { font-size: 24px; }
    .fj-score-num { font-size: 36px; }
    .fj-page-title { font-size: 26px; }

    .fj-pecheras-grid { grid-template-columns: 1fr; }
    .fj-pecheras-cols { grid-template-columns: 1fr; }
    .fj-proximo-nombre { font-size: 22px; }

    .fj-fecha-nav { grid-template-columns: 1fr; gap: 6px; }
    .fj-fecha-nav-all { order: 99; }

    .fj-home-hero-date { font-size: 28px; }
    .fj-home-team strong { font-size: 32px; }

    .fj-th-tipo, .fj-td-tipo { display: none; }

    .fj-table th, .fj-table td { padding: 8px 10px; font-size: 13px; }
}
