﻿/* TICOPA split from original style.css lines 1209-2428. Keep import order in css/main.css. */
/* TOTW 3D Pitch */
.pitch-container { width: 100%; max-width: 720px; margin: 42px auto 62px; perspective: 1100px; overflow: visible; }
.pitch { width: 100%; padding-top: 118%; position: relative; transform: rotateX(48deg); transform-style: preserve-3d; background: linear-gradient(90deg, #0c4a2a 0 10%, #0f5a32 10% 20%, #0c4a2a 20% 30%, #0f5a32 30% 40%, #0c4a2a 40% 50%, #0f5a32 50% 60%, #0c4a2a 60% 70%, #0f5a32 70% 80%, #0c4a2a 80% 90%, #0f5a32 90% 100%); border: 2px solid rgba(255, 255, 255, 0.48); border-radius: 8px; box-shadow: 0 50px 100px rgba(0,0,0,0.8), inset 0 0 0 2px rgba(255,255,255,0.2); }
.pitch::before { content:""; position:absolute; inset:7%; border:2px solid rgba(255,255,255,0.42); border-radius:6px; pointer-events:none; }
.pitch::after { content:""; position:absolute; left:50%; top:7%; bottom:7%; width:2px; background:rgba(255,255,255,0.42); transform:translateX(-50%); pointer-events:none; box-shadow: 0 0 0 78px rgba(255,255,255,0.09); border-radius:50%; }
.player-marker { position: absolute; transform: translate(-50%, -50%) translateZ(50px) rotateX(-50deg); text-align: center; width: 130px; z-index: 10; cursor: pointer; transition: all 0.3s; }
.player-marker:hover { transform: translate(-50%, -50%) translateZ(70px) rotateX(-50deg) scale(1.1); z-index: 20; }
.player-rating { width: 44px; height: 44px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-tech); color: #000; margin: 0 auto; font-size: 1rem; border: 2px solid rgba(255,255,255,0.8); }
.player-name { background: var(--panel-bg); padding: 6px 10px; border-radius: 4px; font-size: 0.75rem; margin-top: 10px; color: white; font-weight: 700; border: 1px solid var(--border-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }

/* Carrusel y Sidebar Nav */
.nav-ticker-wrapper { flex: 1; overflow: hidden; margin: 0 30px; position: relative; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); display: flex; align-items: center; }
.nav-ticker-wrapper:hover .ticker-track { animation-play-state: paused; }
@keyframes scrollTickerNav { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { background: transparent !important; border: none !important; border-right: 1px solid var(--border-color) !important; border-radius: 0 !important; padding: 0 30px !important; }

.mobile-toggle { display: block !important; background: transparent; color: white; font-family: var(--font-tech); font-size: 1.5rem; padding: 5px 10px; cursor: pointer; border: none; transition: 0.2s; }
.mobile-toggle:hover { color: var(--primary); }

.sidebar-menu { position: fixed; top: 0; right: -350px; width: 320px; height: 100vh; background: rgba(11, 12, 16, 0.98); border-left: 1px solid var(--border-color); z-index: 10000; transition: right 0.3s ease; display: flex; flex-direction: column; padding: 30px 20px; box-shadow: -10px 0 40px rgba(0,0,0,0.8); }
.sidebar-menu.active { right: 0; }
.sidebar-menu ul { list-style: none; padding: 0; }
.sidebar-menu li a { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; padding: 15px 10px; display: block; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-muted); text-decoration: none; transition: 0.2s; text-transform: uppercase; }
.sidebar-menu li a:hover { background: rgba(255,255,255,0.03); color: white; padding-left: 20px; border-left: 2px solid white; }

/* MEDIA QUERIES MOBILE MANTENIDOS Y AJUSTADOS */
@media (max-width: 992px) {
  .home-grid { grid-template-columns: 1fr; }
  .news-slider { min-height: 400px; }
  .news-title { font-size: 2.2rem; }
  .news-overlay { padding: 30px; height: auto; }
}

@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 5%; }
  .logo-space { order: 1; flex: 0 0 auto; }
  .nav-actions.search-container { order: 2; flex: 1; display: flex; justify-content: flex-end; width: auto; gap: 15px; align-items: center; }
  .search-input { width: 100%; max-width: 150px; font-size: 0.8rem; }
  .mobile-toggle { display: block; padding: 0; }
  .nav-ticker-wrapper { order: 3; flex: 0 0 100%; margin: 15px 0 0 0; }
  .nav-menu { display: none; }
  
  .match-team span.club-link { max-width: 110px; }
  .match-card { padding: 15px 10px; overflow: hidden; width: 100%; max-width: 100vw; box-sizing: border-box; }
  .calendar-container { width: 100%; overflow-x: hidden; display: flex; flex-direction: column; }
  
  .pitch-container { perspective: 900px; margin: 20px auto; }
  .pitch { padding-top: 140%; transform: rotateX(55deg); }
  .player-marker { width: 80px; transform: translate(-50%, -50%) translateZ(30px) rotateX(-55deg); }
  .player-rating { width: 35px; height: 35px; font-size: 0.85rem; }
  .player-name { font-size: 0.6rem; padding: 4px 6px; }
}

@media (max-width: 600px) {
  .match-card { flex-direction: column; gap: 15px; padding: 20px 15px; text-align: center; }
  .match-team { width: 100%; justify-content: center; flex-direction: column !important; gap: 8px; }
  .match-team.visita { flex-direction: column !important; }
  .match-score { width: 100%; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 15px 0; border-radius: 0; }
  .pro-table th, .pro-table td { padding: 10px 8px; font-size: 0.8rem; }
}
/* ========================================= */
/* ðŸŽ´ DISEÃ‘O DE LA CARTA XOLO-FUT             */
/* ========================================= */

.xolo-fut-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea la carta en la parte superior */
    width: 100%;
    margin-top: 10px; /* Un pequeÃ±o margen para que respire */
}

.xolo-fut-card {
    position: relative;
    width: 260px;
    height: 380px;
    background: linear-gradient(135deg, #0a0f1d 0%, #030712 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 40px rgba(250, 204, 21, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xolo-fut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 60px rgba(250, 204, 21, 0.2);
}

/* Efecto de brillo/reflejo en el fondo de la carta */
.xolo-card-bg {
    position: absolute;
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 0;
}

.xolo-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

.xolo-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 15px;
}

.xolo-rating {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.xolo-pos {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-top: 5px;
}

.xolo-tier {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
}

.xolo-card-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.xolo-club-logo {
    font-size: 3.5rem;
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.xolo-card-bottom {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xolo-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    padding-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xolo-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xolo-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.xolo-stat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
}

.xolo-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}
/* ========================================= */
/* ðŸ“º TICKER DE PARTIDOS (ESTILO TV/ESPORTS) */
/* ========================================= */
.ticker-item-modern {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  padding: 5px 35px;
  border-right: 1px solid rgba(255, 255, 255, 0.08); 
  min-width: 280px;
  max-width: 340px; /* Aumentamos un poco el ancho mÃ¡ximo */
  transition: background 0.3s ease;
}

.ticker-item-modern:hover {
  background: rgba(0, 212, 255, 0.05);
}

/* Nombre de la Liga (Hasta 2 lÃ­neas) */
.ticker-header {
  color: var(--secondary);
  font-family: var(--font-tech);
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  
  /* ðŸ”¥ Magia para permitir hasta 2 lÃ­neas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal; 
  overflow: hidden;
}

/* Contenedor de Equipos */
.ticker-body {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

/* Nombres de los Clubes (Hasta 2 lÃ­neas) */
.ticker-team {
  color: white;
  font-weight: 800;
  font-size: 0.85rem; /* Un poco mÃ¡s pequeÃ±o para que encaje mejor */
  text-transform: uppercase;
  max-width: 110px; 
  text-align: center;
  line-height: 1.1;

  /* ðŸ”¥ Magia para permitir hasta 2 lÃ­neas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
}

/* El "VS" central */
.ticker-vs {
  color: var(--gold);
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 900;
  opacity: 0.8;
}

/* Fecha y Hora */
.ticker-footer {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ========================================= */
/* ðŸªŸ MODALES, TOASTS Y TABLAS DE EDICIÃ“N    */
/* ========================================= */

.modal, .ticopa-modal-overlay { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px); z-index: 9999; display: flex; 
    justify-content: center; align-items: center; 
}

.modal-content, .ticopa-modal-box { 
    background: var(--panel-bg); /* Fondo oscuro premium */
    border: 1px solid var(--border-light); 
    border-radius: 12px; 
    padding: 30px; 
    width: 95%; 
    max-width: 900px; /* ðŸ”¥ Ancho gigante para que entren las 7 columnas */
    max-height: 90vh; /* ðŸ”¥ Altura controlada para que no se salga de la pantalla */
    overflow-y: auto; /* ðŸ”¥ Scroll interno vertical */
    animation: fadeInScale .2s ease; 
    position: relative; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.close-modal { 
    position: absolute; top: 15px; right: 20px; font-size: 1.5rem; 
    cursor: pointer; color: var(--text-muted); transition: 0.2s;
}
.close-modal:hover { color: var(--accent); }

@keyframes fadeInScale { 
    from { opacity:0; transform:scale(0.95); } 
    to { opacity:1; transform:scale(1); } 
}

/* ðŸ”¥ DiseÃ±o Premium para los cuadritos de escribir estadÃ­sticas (inputs) */
.pro-table input, .pro-table select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px;
    border-radius: 4px;
    width: 70px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    transition: 0.3s;
}

.pro-table input:focus, .pro-table select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    outline: none;
}

.ticopa-toast { 
    position: fixed; top: 20px; right: 20px; 
    background: var(--panel-bg); border-left: 4px solid var(--primary); 
    padding: 15px 20px; border-radius: 6px; color: white; 
    font-weight: 600; z-index: 10000; box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    transition: all 0.3s ease; 
}

.super-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; }
.loader-ring { width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ðŸ”¥ AJUSTES PARA COMPATIBILIDAD CON FILTROS Y NOMBRES LARGOS */
.match-card-container { display: flex; flex-direction: column; gap: 10px; }
.match-card { 
    background: var(--panel-bg); 
    border: 1px solid var(--border-color); 
    padding: 15px; 
    border-radius: 8px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: 0.2s;
}
.match-card:hover { border-color: var(--secondary); }

.club-name-ticker {
    font-weight: bold;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    max-width: 120px; /* Ajusta este valor si necesitas mÃ¡s espacio */
    cursor: pointer;
    transition: 0.2s;
}
.club-name-ticker:hover { color: var(--primary); }

.btn-cal-ticker {
    background: var(--secondary); 
    color: #000; 
    font-size: 0.65rem; 
    padding: 5px 8px; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
}
.btn-cal-ticker:hover { background: white; }

/* Clase para nombres de clubes en tarjetas de partidos */
.club-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px; /* Ajusta segÃºn necesites */
    font-size: 0.85rem;
}
/* Ajustes finales de jornadas, matches de club y preview de escudos */
.calendar-container .match-card,
.club-profile-match-card {
    min-width: 0;
}

.calendar-container .match-team,
.club-profile-match-card .match-team {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

.calendar-container .club-link,
.club-profile-match-card .club-match-name {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.club-profile-match-card {
    gap: 12px;
    padding: 16px !important;
}

.club-profile-match-card .match-score {
    flex: 0 0 118px !important;
    min-width: 118px !important;
    width: 118px !important;
}

.club-profile-match-card .score-numbers {
    font-size: 1.55rem !important;
    color: var(--gold);
    white-space: nowrap;
}

.club-match-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.45);
    color: var(--gold);
    font-family: var(--font-tech);
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.logo-preview-frame.mostrar-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
        linear-gradient(45deg, #111 25%, transparent 25%),
        linear-gradient(-45deg, #111 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111 75%),
        linear-gradient(-45deg, transparent 75%, #111 75%);
    background-color: #1f2937;
    background-position: 0 0, 0 0, 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 32px 32px, 32px 32px, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
}

.logo-preview-frame canvas {
    position: relative;
    z-index: 1;
}

.logo-fit-controls {
    width: 100%;
    max-width: 300px;
    margin: -8px auto 18px auto;
    padding: 10px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 8px;
    background: rgba(3, 7, 18, 0.72);
}

.logo-fit-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-fit-row button {
    min-height: 32px;
    padding: 6px 8px !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
}

#logo-zoom-label {
    min-width: 44px;
    text-align: right;
    color: var(--gold);
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 0.78rem;
}

#logo-zoom-slider {
    width: 100%;
    accent-color: var(--secondary);
    cursor: pointer;
}

@media (max-width: 600px) {
    .calendar-container .match-card,
    .club-profile-match-card {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .calendar-container .match-score,
    .club-profile-match-card .match-score {
        border: none !important;
        padding: 0 !important;
    }

    .club-profile-match-card .match-score {
        flex-basis: 104px !important;
        min-width: 104px !important;
        width: 104px !important;
    }
}

/* Tipografia final: neutraliza familias antiguas declaradas inline */
body,
button,
input,
select,
textarea,
.pro-table,
.tab-btn,
.filtro-btn,
.filtro-select,
.match-card,
.stat-card {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
.news-title,
.logo-text,
.round-title {
    font-family: var(--font-titles) !important;
}

.score-numbers,
.club-match-round,
.match-status,
.leader-value,
.kpi-value,
.badge,
[style*="Orbitron"] {
    font-family: var(--font-tech) !important;
}

[style*="Montserrat"],
[style*="Inter"] {
    font-family: var(--font-body) !important;
}

/* Fixture de liga: misma estructura estable que el perfil de club */
#contenedor-partidos .calendar-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-x: auto !important;
}

#contenedor-partidos .calendar-container .match-card {
    display: grid !important;
    grid-template-columns: minmax(210px, 1fr) 118px minmax(210px, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 680px !important;
    min-height: 108px !important;
}

#contenedor-partidos .calendar-container .match-team {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

#contenedor-partidos .calendar-container .match-team.local {
    justify-content: flex-end !important;
    text-align: right !important;
}

#contenedor-partidos .calendar-container .match-team.visita {
    justify-content: flex-start !important;
    text-align: left !important;
    flex-direction: row !important;
}

#contenedor-partidos .calendar-container .club-link {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
}

#contenedor-partidos .calendar-container .match-score {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    #contenedor-partidos .calendar-container .match-card {
        grid-template-columns: minmax(160px, max-content) 106px minmax(160px, max-content) !important;
        min-width: max-content !important;
        min-height: 100px !important;
        gap: 10px !important;
    }

    #contenedor-partidos .calendar-container .club-link {
        font-size: 0.82rem !important;
    }

    #contenedor-partidos .calendar-container .match-score {
        width: 106px !important;
        min-width: 106px !important;
        max-width: 106px !important;
    }
}

/* Capa final: experiencia premium para MATCHES de club */
.club-match-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 4px 2px 10px !important;
    scrollbar-width: thin;
}

.club-profile-match-card {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) 132px minmax(220px, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 720px !important;
    max-width: none !important;
    min-height: 118px !important;
    padding: 16px 18px !important;
    box-sizing: border-box !important;
}

.club-profile-match-card .match-team {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
}

.club-profile-match-card .match-team.local {
    justify-content: flex-end !important;
    text-align: right !important;
}

.club-profile-match-card .match-team.visita {
    justify-content: flex-start !important;
    text-align: left !important;
    flex-direction: row !important;
}

.club-profile-match-card .club-match-name {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-family: var(--font-body) !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

.club-profile-match-card .match-score {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.club-profile-match-card .score-numbers {
    font-family: var(--font-tech) !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
}

.club-profile-match-card[style*="display: none"],
.club-profile-match-card.is-hidden {
    display: none !important;
}

.btn-secondary.activo {
    border-color: var(--primary) !important;
    color: #000 !important;
    background: var(--primary) !important;
}

.edit-jor-partido { display:grid; grid-template-columns:minmax(150px,1fr) 120px 120px; gap:8px; align-items:center; padding:10px; border:1px solid var(--border-color); border-radius:6px; background:rgba(255,255,255,.025); }
.edit-jor-partido strong { color:#fff; font-size:.78rem; }.edit-jor-partido small { color:var(--text-muted); font-size:.62rem; }
.edit-jor-partido .search-input { min-width:0; padding:8px; }
@media (max-width:640px) { .edit-jor-partido { grid-template-columns:1fr 1fr; }.edit-jor-partido strong,.edit-jor-partido small { grid-column:1/-1; } }

@media (max-width: 768px) {
    .club-match-list {
        margin-left: -2px;
        margin-right: -2px;
    }

    .club-profile-match-card {
        grid-template-columns: minmax(170px, max-content) 112px minmax(170px, max-content) !important;
        min-width: max-content !important;
        min-height: 104px !important;
        gap: 10px !important;
        padding: 13px 14px !important;
    }

    .club-profile-match-card .club-match-name {
        font-size: 0.84rem !important;
    }

    .club-profile-match-card .match-score {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
    }

    .club-profile-match-card .score-numbers {
        font-size: 1.2rem !important;
    }

    .club-match-round {
        font-size: 0.56rem !important;
        padding: 3px 6px !important;
    }
}

/* Nombres completos en partidos y legibilidad mobile */
.calendar-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 8px;
}

.calendar-container .match-card,
.club-profile-match-card {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
}

.calendar-container .match-team,
.club-profile-match-card .match-team {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

.calendar-container .club-link,
.club-profile-match-card .club-match-name,
.club-profile-match-card .club-link,
.club-name-mobile,
.club-name-ticker,
.ticker-team {
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.club-profile-match-card .match-score,
.calendar-container .match-score {
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    margin: 0 10px;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.pro-table {
    width: max-content;
    min-width: 100%;
}

.pro-table th,
.pro-table td {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .content-club-mobile,
    .main-container,
    .card {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pro-table th,
    .pro-table td {
        padding: 9px 8px !important;
        font-size: 0.78rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 14px !important;
    }

    .club-profile-match-card .match-score,
    .calendar-container .match-score {
        flex-basis: 108px !important;
        min-width: 108px !important;
        width: 108px !important;
        margin: 0 6px;
    }

    .calendar-container .club-link,
    .club-profile-match-card .club-match-name,
    .club-profile-match-card .club-link {
        font-size: 0.82rem !important;
    }
}

/* Override definitivo: MATCHES club consistente PC/movil */
.club-match-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(118px, auto) !important;
    align-items: stretch !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch;
}

.club-match-list .club-profile-match-card {
    display: grid !important;
    grid-template-columns: max-content 132px max-content !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 118px !important;
    align-items: center !important;
    justify-content: space-between !important;
    align-self: stretch !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.club-match-list .club-profile-match-card .match-score {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    margin: 0 !important;
}

.club-match-list .club-profile-match-card .club-match-name {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-family: var(--font-body) !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .club-match-list {
        grid-auto-rows: minmax(104px, auto) !important;
        gap: 12px !important;
    }

    .club-match-list .club-profile-match-card {
        grid-template-columns: max-content 112px max-content !important;
        min-width: max-content !important;
        min-height: 104px !important;
        width: max-content !important;
        justify-content: start !important;
    }

    .club-match-list .club-profile-match-card .match-score {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
    }
}

/* Overrides finales home mobile */
@media (max-width: 768px) {
    #news-slider-container {
        width: 100% !important;
        min-height: 520px !important;
        height: 520px !important;
        aspect-ratio: auto !important;
    }

    #news-slider-container .news-overlay {
        padding: 20px 16px 22px !important;
    }

    #news-slider-container .news-title {
        font-size: 1.32rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    #news-slider-container .news-body {
        display: -webkit-box !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.9rem !important;
        line-height: 1.34 !important;
        margin-bottom: 10px !important;
    }

    #news-slider-container .news-read-btn {
        display: inline-flex !important;
        width: auto !important;
        padding: 8px 14px !important;
        font-size: 0.72rem !important;
        margin-top: 0 !important;
    }
}

/* ðŸ† ESTANDARIZACIÃ“N TOTAL DE MARCADORES */
.cancha-totw .player-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 142px;
    transform: translate(-50%, -50%) translateZ(46px) rotateX(-12deg) !important;
    transform-origin: center center !important;
    text-align: center;
}

.cancha-totw .player-marker:hover {
    transform: translate(-50%, -50%) translateZ(64px) rotateX(-12deg) scale(1.06) !important;
    z-index: 20 !important;
}

/* 1. Logos de tamaÃ±o uniforme */
.cancha-totw .player-club-logo {
    width: 74px !important; 
    height: 74px !important; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    background: rgba(2,8,10,0.96);
    font-size: 0.9rem !important; /* Todos con la misma fuente de posiciÃ³n */
    font-weight: 800;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cancha-totw .player-club-logo img {
    width: 64px !important; 
    height: 64px !important;
    max-width: 88% !important;
    max-height: 88% !important;
    object-fit: contain !important;
    display: block;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,0.72));
}

.cancha-totw .player-position-badge {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--gold);
    color: #07080d;
    font-family: var(--font-tech);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

/* 2. Nombres completos sin puntos suspensivos */
.cancha-totw .player-name {
    margin-top: 9px !important;
    padding: 5px 7px !important;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: clamp(0.56rem, 0.92vw, 0.78rem) !important;
    line-height: 1 !important;
    font-family: var(--font-tech);
    font-weight: 900;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    
    /* ðŸ”¥ CORRECCIÃ“N: Quitamos las restricciones que cortaban el nombre */
    white-space: nowrap !important; 
    overflow: visible !important; 
    text-overflow: clip !important; 
    max-width: 142px !important;
    min-width: 86px !important;
    width: fit-content !important;
    box-sizing: border-box;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .cancha-totw .player-marker {
        width: 104px;
        transform: translate(-50%, -50%) translateZ(36px) rotateX(-12deg) !important;
    }

    .cancha-totw .player-club-logo {
        width: 48px !important;
        height: 48px !important;
        border-width: 2px;
    }

    .cancha-totw .player-club-logo img {
        width: 42px !important;
        height: 42px !important;
    }

    .cancha-totw .player-name {
        max-width: 104px !important;
        width: fit-content !important;
        white-space: nowrap !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        font-size: 0.54rem !important;
        line-height: 1.05;
        padding: 4px 5px !important;
    }
}

/* Capa final anti-desborde: fixtures de liga y matches de club */
.club-badge-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    vertical-align: middle !important;
}

.club-badge-logo {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    flex: 0 0 22px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.35) !important;
}

@media (max-width: 768px) {
    #contenedor-partidos,
    #contenedor-partidos .calendar-container,
    .club-match-list {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    #contenedor-partidos .calendar-container,
    .club-match-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    #contenedor-partidos .calendar-container .match-card,
    .club-match-list .club-profile-match-card,
    .club-profile-match-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "local"
            "score"
            "visita" !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        gap: 7px !important;
        padding: 11px 12px !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    #contenedor-partidos .calendar-container .match-team.local,
    .club-profile-match-card .match-team.local {
        grid-area: local !important;
        justify-content: center !important;
        text-align: center !important;
    }

    #contenedor-partidos .calendar-container .match-team.visita,
    .club-profile-match-card .match-team.visita {
        grid-area: visita !important;
        justify-content: center !important;
        text-align: center !important;
        flex-direction: row !important;
    }

    #contenedor-partidos .calendar-container .match-score,
    .club-profile-match-card .match-score,
    .club-match-list .club-profile-match-card .match-score {
        grid-area: score !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 7px 0 !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
    }

    #contenedor-partidos .calendar-container .club-link,
    .club-profile-match-card .club-match-name,
    .club-profile-match-card .club-link {
        max-width: min(100%, 330px) !important;
        width: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        justify-content: center !important;
        font-size: 0.86rem !important;
        line-height: 1.15 !important;
    }

    #contenedor-partidos .calendar-container .score-numbers,
    .club-profile-match-card .score-numbers {
        font-size: 1.22rem !important;
        line-height: 1 !important;
    }

    #contenedor-partidos .calendar-container .match-score .hero-btn,
    .club-profile-match-card .match-score .hero-btn,
    .club-profile-match-card .match-score .btn-secondary {
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.1 !important;
    }

    .tactical-controls {
        grid-template-columns: 1fr !important;
    }

    .tactical-panel {
        padding: 14px !important;
        overflow: visible !important;
    }
}

