@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Oxanium:wght@500;700;800&family=Teko:wght@500;600;700&display=swap');

:root {
  /* 🏆 Paleta "Pro eSports" (Estilo Xolobal) */
  --primary: #ff2d55;
  --primary-glow: rgba(255, 45, 85, 0.32);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.32);
  --accent: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.32);
  --gold: #f5c542;
  --gold-glow: rgba(245, 197, 66, 0.34);
  
  /* 🌑 Fondos Obsidianos Sólidos (Sin tanto desenfoque) */
  --dark-bg: #0b0c10;
  --panel-bg: #14161c;
  --panel-hover: #1c1f28;
  
  /* 📐 Detalles precisos y Fuentes */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #8b8d99;
  --zone-direct: #22c55e;
  --zone-playoff: #38bdf8;
  --zone-relegation: #ef4444;
  --zone-gk: #a855f7;
  --zone-def: #38bdf8;
  --zone-mid: #22c55e;
  --zone-fwd: #f97316;

  --font-body: 'Rajdhani', sans-serif;
  --font-titles: 'Teko', sans-serif;
  --font-tech: 'Oxanium', sans-serif;
}

/* Home premium: noticias, transmisiones y equipos registrados */
.home-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.55fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.home-section-title {
    color: var(--primary);
    font-family: var(--font-tech);
    margin: 0 0 14px;
    font-size: 1.05rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--primary-glow);
    padding-bottom: 10px;
}

.streams-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stream-channel-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.stream-channel-main {
    min-width: 0;
}

.stream-mode-btn,
.stream-fullscreen-btn,
.stream-sound-btn,
.stream-float-btn {
    border: 1px solid var(--stream-color);
    background: rgba(0,0,0,0.52);
    color: white;
    font-family: var(--font-tech);
    font-weight: 800;
    cursor: pointer;
}

.stream-channel-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stream-mode-btn {
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.stream-mode-btn.activo {
    background: var(--stream-color);
    color: #fff;
}

.stream-vod-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-family: var(--font-tech);
    font-weight: 900;
    text-decoration: none;
    background: rgba(0,0,0,0.48);
    z-index: 3;
}

.stream-fullscreen-btn,
.stream-sound-btn {
    position: absolute;
    top: 10px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.stream-fullscreen-btn { right: 10px; }
.stream-sound-btn { right: 46px; }
.stream-float-btn {
    right: 82px;
    width: auto;
    padding: 0 8px;
    color: #fff;
    font-size: .52rem;
    letter-spacing: .05em;
}

.alerta-stream-en-vivo {
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 7px max(3%, calc((100vw - 1400px) / 2));
    overflow-x: auto;
    border-top: 1px solid rgba(255,45,85,.25);
    background: linear-gradient(90deg, rgba(255,45,85,.13), rgba(8,11,20,.98), rgba(139,92,246,.12));
    scrollbar-width: thin;
}

.alerta-stream-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: max-content;
    color: #fff;
    font-size: .68rem;
}

.alerta-stream-item strong {
    color: #ff4969;
    font-family: var(--font-tech);
    letter-spacing: .06em;
}

.alerta-stream-item > span:nth-of-type(2) {
    max-width: 430px;
    overflow: hidden;
    color: #cbd5e1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alerta-stream-item button {
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.05);
    font: 800 .55rem var(--font-tech);
    cursor: pointer;
}

.live-pulse,
.stream-flotante-head i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ff2d55;
    box-shadow: 0 0 12px #ff2d55;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse { 50% { opacity: .35; transform: scale(.75); } }

.stream-flotante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    width: min(440px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(139,92,246,.75);
    border-radius: 12px;
    background: #050711;
    box-shadow: 0 22px 65px rgba(0,0,0,.7);
}

.stream-flotante-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    color: #fff;
    background: linear-gradient(90deg, rgba(255,45,85,.16), rgba(139,92,246,.18));
    font: 800 .62rem var(--font-tech);
    letter-spacing: .06em;
}

.stream-flotante-head span { display: flex; align-items: center; gap: 8px; }
.stream-flotante-head button { border: 0; color: #fff; background: transparent; font-size: 1.2rem; cursor: pointer; }
.stream-flotante iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

#news-slider-container,
#streams-container {
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}

.news-slider {
    min-height: 500px;
}

.news-body {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

.news-match-strip {
    display: inline-grid;
    grid-template-columns: 42px minmax(0, auto) auto minmax(0, auto) 42px;
    gap: 10px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(255,255,255,0.05), rgba(0,0,0,0.7));
    backdrop-filter: blur(6px);
}

.news-match-strip img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.news-match-strip span {
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-match-strip strong {
    color: var(--gold);
    font-family: var(--font-tech);
}

.stream-card-premium {
    cursor: pointer;
    background: linear-gradient(145deg, rgba(8, 9, 14, 0.98), rgba(20, 18, 34, 0.96));
    border: 1px solid var(--stream-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}

@media (max-width: 980px) {
    .home-media-grid {
        grid-template-columns: 1fr;
    }

    .news-slider {
        min-height: 560px;
    }
}

@media (max-width: 680px) {
    .news-slider {
        min-height: 680px;
    }
}

.stream-card-premium:hover {
    transform: translateY(-6px);
    border-color: white;
    box-shadow: 0 18px 42px rgba(139, 92, 246, 0.24);
}

.stream-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at top left, var(--stream-color), #07080d 58%);
    overflow: hidden;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stream-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72), transparent 58%);
}

.stream-thumb-fallback::before {
    content: "LIVE";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-family: var(--font-tech);
    font-size: 2rem;
    letter-spacing: 2px;
}

.stream-live-pill,
.stream-play {
    position: absolute;
    z-index: 2;
}

.stream-live-pill {
    top: 12px;
    left: 12px;
    background: var(--stream-color);
    color: white;
    border-radius: 4px;
    padding: 5px 9px;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.stream-play {
    right: 14px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(0,0,0,0.62);
    border: 1px solid rgba(255,255,255,0.35);
}

.stream-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px;
}

.stream-info h4 {
    color: white;
    font-family: var(--font-tech);
    font-size: 1.08rem;
    margin: 0 0 3px;
}

.stream-info p {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0;
}

.stream-cta {
    color: white;
    border: 1px solid var(--stream-color);
    padding: 7px 10px;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.registered-teams-section {
    width: min(1180px, 94vw);
    margin: 24px auto 10px;
    padding: 20px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.registered-teams-section h3 {
    color: var(--gold);
    font-family: var(--font-tech);
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.registered-teams-carousel {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.registered-teams-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: registeredTeamsMarquee 34s linear infinite;
}

.registered-teams-carousel:hover .registered-teams-track {
    animation-play-state: paused;
}

.registered-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
    color: white;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.registered-team-pill img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
}

@keyframes registeredTeamsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.player-rating.player-club-logo {
    width: 54px;
    height: 54px;
    background: rgba(5, 6, 10, 0.86) !important;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
    overflow: visible;
}

.player-rating.player-club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.player-rating.player-club-logo span {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    background: var(--gold);
    color: #07080d;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.56rem;
    font-family: var(--font-tech);
    line-height: 1;
}

@media (max-width: 768px) {
    #news-slider-container {
        min-height: 520px !important;
        height: 520px !important;
    }

    .news-body {
        display: -webkit-box !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .registered-teams-section {
        width: 100%;
        margin-top: 18px;
    }

    .registered-team-pill {
        min-width: 180px;
        font-size: 0.76rem;
    }
}

/* Ajustes globales finales: logos de club y contención móvil */
.club-badge-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-width: 0;
    vertical-align: middle;
}

.club-badge-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    #tabla-contenedor,
    .main-container,
    .card,
    .glass-panel,
    .tab-content,
    .admin-inbox-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .card,
    .glass-panel {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .dashboard-grid,
    .stats-grid,
    .home-grid {
        grid-template-columns: 1fr !important;
    }

    .table-responsive,
    .nav-tabs,
    .filtros-calendario,
    .streams-horizontal-container,
    #contenedor-partidos .calendar-container,
    .club-match-list {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .ticopa-modal-box,
    .modal-content {
        width: min(96vw, 520px) !important;
        max-width: 96vw !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
    }

    .club-badge-logo {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

/* Transmisiones compactas en carrusel */
.streams-horizontal-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100%;
    padding-bottom: 12px !important;
    scroll-snap-type: x proximity;
}

.streams-marquee-track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: none !important;
}

.streams-horizontal-container .stream-card-compact {
    width: clamp(260px, 32vw, 380px) !important;
    min-width: clamp(260px, 32vw, 380px) !important;
    max-width: 380px !important;
    flex: 0 0 clamp(260px, 32vw, 380px) !important;
    scroll-snap-align: start;
}

.stream-card-compact .stream-thumb {
    aspect-ratio: 16 / 9;
}

.stream-card-compact .stream-thumb iframe,
.stream-kick-preview,
.stream-kick-preview img {
    width: 100%;
    height: 100%;
    display: block;
}

.stream-card-compact .stream-thumb iframe {
    border: 0;
}

.stream-kick-preview {
    position: relative;
    color: white;
    text-decoration: none;
}

.stream-kick-preview img {
    object-fit: cover;
}

.stream-kick-preview span {
    position: absolute;
    inset: auto 8px 8px 8px;
    z-index: 2;
    font-family: var(--font-tech);
    font-size: 0.58rem;
    text-align: center;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 4px;
    padding: 4px 5px;
}

.stream-card-compact .stream-live-pill {
    top: 7px;
    left: 7px;
    font-size: 0.55rem;
    padding: 3px 6px;
}

.stream-card-compact .stream-info {
    padding: 12px;
    gap: 10px;
}

.stream-card-compact .stream-info h4 {
    font-size: 0.9rem;
    line-height: 1.1;
}

.stream-card-compact .stream-info p {
    display: block;
    font-size: 0.68rem;
}

.stream-card-compact .stream-cta {
    padding: 6px 8px;
    font-size: 0.62rem;
}

.registered-teams-track {
    animation-duration: 64s !important;
}

@keyframes streamsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .streams-horizontal-container .stream-card-compact {
        width: 82vw !important;
        min-width: 82vw !important;
        max-width: 82vw !important;
        flex-basis: 82vw !important;
    }

    .streams-marquee-track {
        gap: 12px;
    }
    .stream-flotante { right: 8px; bottom: 8px; width: calc(100vw - 16px); }
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); }

body { 
  background-color: var(--dark-bg);
  color: var(--text-main); 
  overflow-x: hidden; 
  min-height: 100vh; 
}

/* 📜 Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* 🔲 Paneles y Cards (Más limpios, sin tanto glassmorphism) */
.glass-panel, .card { 
  background: var(--panel-bg); 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding: 25px;
  margin-bottom: 25px;
}

h3 {
  font-family: var(--font-titles);
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 15px;
}

.neon-text { 
  color: var(--text-main); 
  text-shadow: 0 0 10px var(--primary-glow); 
  font-family: var(--font-tech); 
}

/* 🖱️ Botones estilo eSports Premium */
.btn-primary, .btn-secondary, .btn-danger, .hero-btn { 
  padding: 10px 24px; 
  border-radius: 4px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
  font-family: var(--font-body); 
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-primary, .hero-btn { 
  background: var(--primary); 
  color: #000; 
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}
.btn-primary:hover, .hero-btn:hover { 
  filter: brightness(1.2);
  box-shadow: 0 0 20px var(--primary-glow); 
  transform: scale(1.02); 
}

.btn-secondary { 
  background: transparent; 
  border: 1px solid var(--border-light); 
  color: var(--text-main); 
}
.btn-secondary:hover { 
  border-color: var(--secondary); 
  color: #000; 
  background: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
}

.btn-danger { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent-glow); }

.badge { padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; }

/* 📰 Ticker (Cinta de resultados) */
.match-ticker { background: #050608; border-bottom: 1px solid var(--border-color); overflow: hidden; white-space: nowrap; padding: 6px 0; }
.ticker-track { display: inline-flex; gap: 50px; animation: scrollTicker 80s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-family: var(--font-tech); font-weight: 600; color: var(--text-muted); }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 🌍 Navbar Responsive */
.navbar { position: sticky; top: 0; z-index: 1000; padding: 15px 0; background: rgba(11, 12, 16, 0.95); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 3%; flex-wrap: wrap; }
.logo-text { font-size: 1.8rem; font-weight: 900; color: white; text-transform: uppercase; font-family: var(--font-tech); letter-spacing: -1px; }
.logo-sub { font-size: 0.65rem; letter-spacing: 5px; color: var(--primary); font-family: var(--font-body); }
.nav-menu { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-menu li a { color: var(--text-muted); text-decoration: none; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.9rem; text-transform: uppercase; }
.nav-menu li a:hover { color: white; }
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: var(--panel-hover); min-width: 220px; border-radius: 6px; margin-top: 15px; z-index: 1005; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.dropdown-content a { display: block; padding: 12px 20px; color: var(--text-main); border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.85rem; }
.dropdown-content a:hover { background: rgba(0, 255, 136, 0.05); color: var(--primary); border-left: 3px solid var(--primary); padding-left: 17px; }
.show { display: block; }
.search-container { position: relative; }
.search-input { background: rgba(0,0,0,0.5); border: 1px solid var(--border-light); color: white; padding: 10px 15px; border-radius: 4px; width: 240px; outline: none; transition: 0.3s; font-family: var(--font-body); font-weight: 600; }
.search-input:focus { border-color: var(--primary); }
.search-results { position: absolute; top: 120%; right: 0; width: 300px; max-height: 400px; overflow-y: auto; background: var(--panel-hover); border-radius: 6px; z-index: 1001; border: 1px solid var(--border-color); box-shadow: 0 15px 40px rgba(0,0,0,0.9); }
.search-item { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; transition: 0.2s; }
.search-item:hover { background: rgba(0,212,255,0.05); border-left: 3px solid var(--secondary); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* ========================================= */
/* 🎮 LAYOUT EA FC MODO CARRERA (HOME)       */
/* ========================================= */
.home-grid { display: grid; grid-template-columns: 3.5fr 6.5fr; gap: 30px; max-width: 1400px; margin: 0 auto; }
.home-left-col { display: flex; flex-direction: column; gap: 20px; }
.home-right-col { position: relative; display: flex; flex-direction: column; }

/* EL SLIDER DE NOTICIAS */
.news-slider { position: relative; width: 100%; height: 100%; min-height: 550px; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid var(--border-color); background: #020308; }
.news-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out, transform 8s ease-out; background-size: cover; background-position: center; transform: scale(1.05); }
.news-slide.activo { opacity: 1; z-index: 2; transform: scale(1); }
.news-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 70%; background: linear-gradient(to top, rgba(11,12,16,1) 0%, rgba(11,12,16,0.8) 40%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; z-index: 3; }
.news-badge { color: var(--gold); font-family: var(--font-tech); text-transform: uppercase; font-size: 0.75rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 12px; display: inline-block; padding: 4px 10px; background: rgba(0,0,0,0.6); border-left: 2px solid var(--gold); }
.news-title { color: white; font-family: var(--font-titles); font-size: 3rem; font-weight: 600; line-height: 1; margin-bottom: 10px; text-transform: uppercase; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.news-body { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; max-width: 90%; }
.news-indicators {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 12;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: min(58%, 520px);
    padding: 7px 10px;
    overflow-x: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(3,8,17,.48);
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}
.news-indicators::-webkit-scrollbar { display: none; }
.news-dot {
    flex: 0 0 auto;
    width: 17px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, box-shadow .25s ease;
}
.news-dot:hover { background: rgba(255,255,255,.65); }
.news-dot.activo { width: 31px; background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.news-dot .ticopa-ui-icon { display: none !important; }

@media (max-width: 768px) {
    .news-indicators { top: 12px; max-width: 62%; padding: 6px 8px; gap: 4px; }
    .news-dot { width: 13px; height: 3px; }
    .news-dot.activo { width: 24px; }
}

/* LISTA VERTICAL DE PARTIDOS (MODO CARRERA) */
.vertical-match-list { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 5px; }
.vertical-match-list::-webkit-scrollbar { width: 4px; }
.vertical-match-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* 🏟️ CONTENEDORES Y TABS */
.main-container { max-width: 98%; margin: 0 auto; padding: 30px 1%; min-height: 60vh; }

.nav-tabs { 
  display: flex; 
  flex-wrap: nowrap !important; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  gap: 10px; 
  padding-bottom: 12px; 
  margin: 20px 0 30px 0; 
  border-bottom: 1px solid var(--border-color); 
  scrollbar-width: thin; 
  scrollbar-color: var(--border-light) transparent;
}
.nav-tabs::-webkit-scrollbar { height: 4px; }
.nav-tabs::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }

.tab-btn { flex: 0 0 auto; background: transparent; color: var(--text-muted); border: none; padding: 10px 18px; font-family: var(--font-tech); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; cursor: pointer; transition: all 0.2s; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
.tab-btn.activo { color: var(--primary); border-bottom: 2px solid var(--primary); border-radius: 4px 4px 0 0; background: rgba(0, 255, 136, 0.05); }
.tab-content { display: none; animation: slideUp 0.3s ease; }
.tab-content.activo { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 📊 TABLAS MEJORADAS (PRO-TABLE XOLOBAL) --- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
.pro-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel-bg); border-radius: 8px; overflow: hidden; min-width: 600px; border: 1px solid var(--border-color); }
.pro-table th { background: #08090c; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; padding: 16px 12px; text-align: center; border-bottom: 1px solid var(--border-color); }
.pro-table th:nth-child(2), .pro-table td:nth-child(2) { text-align: left; }
.pro-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.02); transition: background 0.2s; font-weight: 600; font-size: 0.9rem; }
.pro-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.01); }
.pro-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.col-pts { font-weight: 900; color: white; font-size: 1.05rem; }

.interactive-link, .club-link, .jugador-link { cursor: pointer; color: white; transition: color 0.2s; display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.interactive-link:hover, .club-link:hover, .jugador-link:hover { color: var(--primary); text-decoration: none; }

/* Zonas de clasificación */
.zone-direct td:first-child { border-left: 4px solid var(--zone-direct); color: var(--zone-direct); } 
.zone-playoff td:first-child { border-left: 4px solid var(--zone-playoff); color: var(--zone-playoff); } 
.zone-relegation td:first-child { border-left: 4px solid var(--zone-relegation); color: var(--zone-relegation); } 

/* --- ⚽ MATCH CARDS (ESTILO XOLOBAL LIMPIO) --- */
.calendar-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; padding-top: 10px; }
.match-card { display: flex; justify-content: space-between; align-items: center; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 15px 25px; transition: all 0.2s ease; position: relative; cursor: pointer; overflow: hidden; }
.match-card:hover { border-color: rgba(255,255,255,0.15); background: var(--panel-hover); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.6); }
.match-card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: 0.3s; }
.match-card:hover::before { opacity: 1; }

.match-team { display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: 1.05rem; width: 35%; text-transform: uppercase; letter-spacing: 0.5px; }
.match-team.visita { flex-direction: row-reverse; text-align: right; }
.match-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 20%; background: transparent; border: none; }
.score-numbers { font-family: var(--font-titles); font-size: 3rem; color: white; font-weight: 600; line-height: 1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
.match-status { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; font-weight: 700; background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 4px; }

/* Dashboard Cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dashboard-card { background: var(--panel-bg); border-radius: 8px; padding: 25px; border: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.kpi-value { font-size: 3.5rem; font-weight: 600; font-family: var(--font-titles); color: white; line-height: 1; margin-top: 5px; }

/* Modales */
.modal, .ticopa-modal-overlay { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 99999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content, .ticopa-modal-box { padding: 30px; border-radius: 8px; width: 95%; max-width: 500px; position: relative; background: var(--panel-hover); border: 1px solid var(--border-light); box-shadow: 0 20px 50px rgba(0,0,0,0.9); animation: fadeInScale .2s ease; }
@keyframes fadeInScale { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }

/* Loaders */
.super-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 350px; }
.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); } }
.loader-text { margin-top: 20px; color: var(--text-muted); font-family: var(--font-tech); letter-spacing: 2px; font-size: 0.8rem; text-transform: uppercase; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Filtros */
.filtros-calendario { display: flex; gap: 8px; margin-bottom: 25px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; justify-content: flex-start; }
.filtro-btn { flex: 0 0 auto; background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 4px; cursor: pointer; transition: 0.2s; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.filtro-btn:hover { color: white; border-color: var(--border-light); }
.filtro-btn.activo { background: white; color: black; border-color: white; }
.filtro-select { flex: 0 0 auto; background: rgba(0,0,0,0.3); color: white; border: 1px solid var(--border-color); padding: 8px 15px; border-radius: 4px; outline: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.filtro-select:focus { border-color: var(--primary); }

/* Rankings y Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stat-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: 0.2s; }
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.stat-card h4 { color: white; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 15px; text-transform: uppercase; font-size: 1rem; font-family: var(--font-tech); }
.fila-leader { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.95rem; }
.leader-name.pos-1 { color: var(--primary); font-weight: 700; }
.leader-value { font-family: var(--font-titles); font-weight: 600; font-size: 1.6rem; color: white; line-height: 1; }
.btn-ver-mas { width: 100%; padding: 10px; margin-top: 15px; background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 4px; cursor: pointer; transition: 0.2s; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.btn-ver-mas:hover { background: rgba(255,255,255,0.05); color: white; }

/* Decoración por Zona */
.zona-gk td:first-child { border-left: 4px solid var(--zone-gk); color: var(--zone-gk) !important; } 
.zona-def td:first-child { border-left: 4px solid var(--zone-def); color: var(--zone-def) !important; } 
.zona-mid td:first-child { border-left: 4px solid var(--zone-mid); color: var(--zone-mid) !important; } 
.zona-fwd td:first-child { border-left: 4px solid var(--zone-fwd); color: var(--zone-fwd) !important; } 

/* Match Stats EA Style */
.match-stats-container { background: rgba(0, 0, 0, 0.3); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 30px; display: flex; flex-direction: column; gap: 20px; }
.match-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stat-val-text { font-family: var(--font-titles); font-size: 2rem; font-weight: 600; width: 60px; line-height: 1; }
.stat-val-text.local { text-align: right; color: white; }
.stat-val-text.visita { text-align: left; color: white; }
.stat-center { flex: 1; display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; font-weight: 700; }
.stat-bar-bg { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.05); display: flex; overflow: hidden; border-radius: 2px; }
.stat-bar-fill-local { height: 100%; background: var(--primary); transition: width 1s ease; }
.stat-bar-fill-visita { height: 100%; background: var(--secondary); transition: width 1s ease; }

/* 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;
}

@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;
    }
}

/* Campo TOTW con trazado real de futbol y perspectiva 3D */
.cancha-totw .pitch {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 7%, rgba(0,0,0,0.06) 7% 14%),
        linear-gradient(180deg, #168142 0%, #0f6d37 50%, #0b5a2f 100%) !important;
    border: 3px solid rgba(255,255,255,0.9) !important;
    border-radius: 14px !important;
    box-shadow: 0 32px 60px rgba(0,0,0,0.55), inset 0 0 55px rgba(0,0,0,0.25) !important;
    transform: perspective(900px) rotateX(12deg) !important;
    transform-origin: center bottom !important;
    overflow: hidden !important;
}

.cancha-totw .pitch::before,
.cancha-totw .pitch::after {
    content: none !important;
}

.pitch-marking {
    position: absolute;
    pointer-events: none;
    border-color: rgba(255,255,255,0.82) !important;
    z-index: 1;
}

.pitch-half {
    left: 5%;
    right: 5%;
    top: 50%;
    height: 2px;
    background: rgba(255,255,255,0.82);
}

.pitch-center-circle {
    width: 120px;
    height: 120px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.82);
    border-radius: 50%;
}

.pitch-box {
    left: 27%;
    width: 46%;
    height: 17%;
    border: 2px solid rgba(255,255,255,0.82);
}

.pitch-box-top { top: 0; border-top: 0; }
.pitch-box-bottom { bottom: 0; border-bottom: 0; }

.pitch-goalbox {
    left: 39%;
    width: 22%;
    height: 8%;
    border: 2px solid rgba(255,255,255,0.82);
}

.pitch-goalbox-top { top: 0; border-top: 0; }
.pitch-goalbox-bottom { bottom: 0; border-bottom: 0; }

.pitch-spot {
    width: 6px;
    height: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,0.86);
}

.pitch-spot-top { top: 12%; }

/* Ajustes finales solicitados: escudos, streams y perfil de jugador movil */
.calendar-container .club-badge-logo,
.club-profile-match-card .club-badge-logo,
#contenedor-partidos .club-badge-logo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    object-fit: contain !important;
    margin: 0 8px !important;
}

.calendar-container .match-team,
.club-profile-match-card .match-team,
#contenedor-partidos .match-team {
    gap: 12px !important;
}

.perfil-jugador-card,
.perfil-jugador-card * {
    max-width: 100%;
    box-sizing: border-box;
}

.perfil-jugador-card .perfil-header-grid {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 2fr) !important;
}

.perfil-jugador-card .xolo-fut-card-container {
    width: 100%;
    display: grid;
    place-items: center;
    min-width: 0;
}

.perfil-jugador-card .xolo-fut-card {
    width: min(100%, 420px);
}

.tactical-report-grid {
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr) !important;
}

.tactical-xi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.tactical-xi-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
}

.tactical-xi-card h4 {
    color: var(--gold);
    font-family: var(--font-tech);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.tactical-xi-card div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tactical-xi-card strong { color: var(--secondary); }
.tactical-xi-card span { color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tactical-xi-card small { grid-column: 2; color: var(--text-muted); }

@media (max-width: 760px) {
    .calendar-container .club-badge-logo,
    .club-profile-match-card .club-badge-logo,
    #contenedor-partidos .club-badge-logo {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
        margin: 0 4px !important;
    }

    .perfil-jugador-card {
        padding: 14px !important;
        overflow: hidden;
    }

    .perfil-jugador-card h2 {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
        word-break: break-word;
    }

    .perfil-jugador-card .perfil-header-grid,
    .tactical-xi-grid,
    .tactical-report-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .perfil-jugador-card .perfil-info > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .perfil-jugador-card .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 981px) {
    .home-media-grid {
        grid-template-columns: minmax(640px, 1fr) minmax(320px, 0.58fr) !important;
        align-items: stretch !important;
        max-width: 1600px !important;
        gap: 22px !important;
    }

    #news-slider-container {
        aspect-ratio: 16 / 9 !important;
        height: clamp(430px, calc((100vw - 360px - 68px) * 0.5625), 620px) !important;
        min-height: 0 !important;
        max-height: calc(100vh - 190px) !important;
        margin-bottom: 0 !important;
    }

    #news-slider-container .news-slider {
        height: 100% !important;
        min-height: 0 !important;
    }

    #streams-container {
        height: 100% !important;
        min-height: 0 !important;
    }

    .streams-stack {
        height: calc(100% - 52px) !important;
        display: grid !important;
        grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    .stream-channel-row {
        min-height: 0 !important;
        overflow: hidden !important;
        grid-template-rows: 38px minmax(0, 1fr) !important;
    }

    .stream-card-compact .stream-thumb {
        aspect-ratio: auto !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .stream-card-compact {
        height: 100% !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
    }

    .stream-card-compact .stream-info {
        padding: 8px 12px !important;
    }

    #news-slider-container .news-overlay {
        padding: clamp(22px, 2.2vw, 34px) !important;
    }

    #news-slider-container .news-title {
        font-size: clamp(1.8rem, 2.55vw, 3.05rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 8px !important;
    }

    #news-slider-container .news-body {
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: clamp(0.95rem, 1.18vw, 1.2rem) !important;
        line-height: 1.28 !important;
        max-width: 92% !important;
        margin-bottom: 8px !important;
    }
}

@media (min-width: 900px) {
    .club-profile-header .club-link,
    .match-card .club-link,
    .club-profile-match-card .club-link {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        display: block !important;
        font-size: clamp(0.76rem, 1.1vw, 1.05rem) !important;
    }

    .club-profile-header img,
    .match-card img.club-badge-logo,
    .club-profile-match-card img.club-badge-logo {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }
}

@media (max-width: 760px) {
    #contenedor-partidos .calendar-container .match-team,
    .club-match-list .club-profile-match-card .match-team {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        align-items: center !important;
        justify-content: stretch !important;
        text-align: left !important;
    }

    #contenedor-partidos .calendar-container .match-team.visita,
    .club-match-list .club-profile-match-card .match-team.visita {
        direction: ltr !important;
    }
}

.nav-container {
    display: grid !important;
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    gap: 14px !important;
    align-items: center !important;
}

.logo-space {
    justify-self: start !important;
}

.nav-actions {
    justify-self: end !important;
}

.nav-ticker-wrapper {
    min-width: 0 !important;
}

@media (max-width: 760px) {
    .nav-container {
        grid-template-columns: auto auto !important;
    }

    .nav-ticker-wrapper {
        grid-column: 1 / -1 !important;
        order: 3 !important;
        width: 100% !important;
    }
}
.pitch-spot-bottom { bottom: 12%; }

.cancha-totw .player-marker {
    z-index: 3 !important;
}

.texto-reporte {
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
}
/* Capa final: tarjetas del perfil de club sin desbordes */
.reglamento-elegante h3 {
  margin: 28px 0 12px;
  padding: 10px 14px;
  color: var(--gold);
  border-left: 4px solid var(--gold);
  background: rgba(250, 204, 21, 0.07);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
}

.reglamento-elegante p {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.reglamento-elegante mark {
  background: var(--gold);
  color: #05070c;
  padding: 0 3px;
  border-radius: 3px;
}

.club-contactos-card,
.club-social-panel {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
}

.club-social-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: rgba(0, 229, 255, .25);
  background:
    radial-gradient(circle at 92% 2%, rgba(139, 92, 246, .18), transparent 28%),
    linear-gradient(145deg, rgba(4, 10, 22, .98), rgba(5, 16, 28, .94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.club-social-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(0,229,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 45%);
}

.club-social-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: 38px;
  border-bottom: 1px solid rgba(0,229,255,.22);
  background: linear-gradient(110deg, rgba(0,229,255,.09), transparent 48%, rgba(139,92,246,.13));
}

.club-social-eyebrow,
.club-social-section-head span {
  color: var(--secondary);
  font-family: 'Orbitron', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.club-social-hero h2 {
  margin: 8px 0;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(0,229,255,.3);
}

.club-social-hero p {
  max-width: 720px;
  margin: 0;
  color: #aab8ca;
}

.club-social-status {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(0,255,135,.35);
  border-radius: 999px;
  color: #b8ffd9;
  background: rgba(0,255,135,.08);
  font: 700 .68rem 'Orbitron', sans-serif;
  letter-spacing: .08em;
}

.club-social-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #00ff87;
  box-shadow: 0 0 12px #00ff87;
}

.club-social-section {
  position: relative;
  z-index: 1;
  padding: 28px 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.club-social-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.club-social-section-head h3 {
  margin: 5px 0 0;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
}

.club-social-section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--text-muted);
  font-size: .82rem;
  text-align: right;
}

.club-dt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.club-dt-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,229,255,.08), rgba(255,255,255,.025));
  transition: transform .2s ease, border-color .2s ease;
}

.club-dt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,.65);
}

.club-dt-avatar {
  position: relative;
  width: 70px;
  height: 70px;
  padding: 3px;
  border: 1px solid rgba(0,229,255,.6);
  border-radius: 12px;
  background: rgba(0,0,0,.35);
}

.club-dt-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.club-dt-avatar span {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border: 2px solid #07101b;
  border-radius: 50%;
  background: #00ff87;
  box-shadow: 0 0 10px #00ff87;
}

.club-dt-info {
  min-width: 0;
}

.club-dt-info small {
  color: var(--secondary);
  font: 700 .62rem 'Orbitron', sans-serif;
  letter-spacing: .1em;
}

.club-dt-info h4 {
  margin: 5px 0 2px;
  overflow: hidden;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: .92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-dt-info p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: .72rem;
}

.club-dt-id {
  padding: 4px 7px;
  border: 1px solid rgba(139,92,246,.42);
  border-radius: 5px;
  color: #c9baff;
  background: rgba(139,92,246,.1);
  font: 700 .61rem 'Orbitron', sans-serif;
  cursor: pointer;
}

.club-dt-id.sin-id {
  opacity: .55;
  cursor: default;
}

.club-dt-whatsapp {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #7dffba;
  font: 700 .55rem 'Orbitron', sans-serif;
  text-decoration: none;
  letter-spacing: .05em;
}

.club-social-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 10px;
  color: var(--text-muted);
  text-align: center;
}

.club-social-admin {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 20px 34px;
  background: rgba(0,0,0,.2);
}

.club-contactos-lista,
.social-media-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.whatsapp-contact-btn {
  background: #25d366 !important;
  color: #041309 !important;
  text-decoration: none;
}

.contacto-editor-row {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr 1fr 1fr 1.2fr auto;
  gap: 8px;
  margin: 12px 0;
}

.social-club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.social-club-card {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(0,184,255,.14), rgba(139,92,246,.12));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.social-club-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(0,184,255,.13);
}

.social-club-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -30px;
  bottom: -35px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}

.social-club-card-kicker {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.social-club-card strong {
  font: 800 1.15rem 'Orbitron', sans-serif;
  letter-spacing: .05em;
}

.social-club-card > span:last-child {
  color: var(--secondary);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 700px) {
  .club-social-hero,
  .club-social-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .club-social-hero,
  .club-social-section {
    padding: 24px 18px;
  }
  .club-social-section-head p {
    text-align: left;
  }
  .club-social-admin {
    flex-direction: column;
    padding: 18px;
  }
}

.transfer-context-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.transfer-context-grid > div,
.solicitud-pago-row {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.solicitud-pago-datos {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(250,204,21,.04);
}

.solicitud-pago-datos label {
    display: block;
    color: var(--gold);
    font-size: .68rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.transfer-context-grid small,
.transfer-context-grid strong,
.solicitud-pago-row label {
    display: block;
}

.transfer-context-grid small,
.solicitud-pago-row label {
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.solicitud-pago-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .8fr) minmax(190px, 1fr) minmax(170px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

.whatsapp-preinscripciones-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9000;
    padding: 13px 18px;
    border: 1px solid #25d366;
    border-radius: 999px;
    color: #04150a;
    background: #25d366;
    box-shadow: 0 12px 32px rgba(37, 211, 102, .35);
    font-weight: 900;
    text-decoration: none;
}

.whatsapp-preinscripciones-float:hover {
    color: #04150a;
    transform: translateY(-2px);
}

.alertas-liga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.alerta-liga-card {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(250, 204, 21, .06);
}

.alerta-liga-card span,
.alerta-liga-card small { color: var(--text-muted); }
.alerta-liga-card.alerta-indebida { border-color: var(--accent); background: rgba(255, 0, 85, .06); }

@media (max-width: 800px) {
    .transfer-context-grid,
    .solicitud-pago-row,
    .solicitud-pago-datos {
        grid-template-columns: 1fr;
    }
}

.club-match-list {
  grid-template-columns: repeat(2, minmax(360px, 1fr)) !important;
}

.club-profile-match-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .contacto-editor-row { grid-template-columns: 1fr; }
  .club-match-list { grid-template-columns: 1fr !important; }
}

/* Portada institucional Ticopa */
.portal-bienvenida {
  display: none;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(0,229,255,.16), transparent 30%), radial-gradient(circle at 85% 75%, rgba(139,92,246,.2), transparent 32%), #030712;
}

body.portal-activo {
  overflow-x: hidden;
}

body.portal-activo .portal-bienvenida { display: block; }
body.portal-activo > .navbar,
body.portal-activo > .sidebar-menu,
body.portal-activo > .hero-section,
body.portal-activo > .main-container { display: none !important; }

.portal-grid-glow {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: linear-gradient(rgba(0,229,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.portal-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1450px;
  margin: auto;
  padding: 24px 4%;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font: 800 .78rem 'Orbitron', sans-serif;
  letter-spacing: .13em;
}

.portal-topbar img { width: 46px; height: 46px; object-fit: contain; }
.portal-topbar b { margin-left: auto; color: var(--secondary); font-size: .62rem; }

.btn-volver-portal {
  display: block;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(139,92,246,.55);
  border-radius: 999px;
  color: #c9b8ff;
  background: rgba(139,92,246,.08);
  font: 700 .48rem 'Orbitron', sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  transition: .2s ease;
}

.btn-volver-portal:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(0,229,255,.08);
}

.portal-contenido {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  max-width: 1450px;
  min-height: calc(100vh - 95px);
  margin: auto;
  padding: 55px 4% 75px;
}

.portal-kicker {
  color: var(--secondary);
  font: 800 .66rem 'Orbitron', sans-serif;
  letter-spacing: .18em;
}

.portal-presentacion h1 {
  max-width: 850px;
  margin: 18px 0;
  font: 900 clamp(2.5rem, 6vw, 5.8rem)/.98 'Orbitron', sans-serif;
  letter-spacing: -.05em;
  text-shadow: 0 0 35px rgba(0,229,255,.18);
}

.portal-presentacion p {
  max-width: 720px;
  color: #9badc5;
  font-size: 1.05rem;
}

.portal-redes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.portal-redes a {
  padding: 8px 11px;
  border: 1px solid rgba(0,229,255,.24);
  border-radius: 5px;
  color: #bfefff;
  font: 700 .62rem 'Orbitron', sans-serif;
  text-decoration: none;
}

.portal-acceso {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8,17,32,.92), rgba(8,11,22,.88));
  box-shadow: 0 35px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}

.portal-acceso h2 { margin: 10px 0 5px; font: 800 1.7rem 'Orbitron', sans-serif; }
.portal-acceso > p, .portal-visitante p { color: var(--text-muted); font-size: .82rem; }

.portal-roles { display: grid; gap: 10px; margin: 24px 0; }
.portal-roles button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: .2s ease;
}
.portal-roles button:hover { transform: translateX(4px); border-color: var(--secondary); background: rgba(0,229,255,.07); }
.portal-roles strong { font: 800 .78rem 'Orbitron', sans-serif; }
.portal-roles span { color: var(--text-muted); font-size: .72rem; }
.portal-visitante { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.portal-visitante .hero-btn { width: 100%; margin-top: 10px; }

/* Team Chat compartido */
.team-chat-shell {
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(5,12,24,.97), rgba(7,15,27,.94));
}
.team-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.team-chat-head span { color: var(--secondary); font: 800 .58rem 'Orbitron', sans-serif; letter-spacing: .13em; }
.team-chat-head h3 { margin: 4px 0 0; font: 800 1.15rem 'Orbitron', sans-serif; }
.team-chat-head p { max-width: 420px; margin: 0; color: var(--text-muted); font-size: .75rem; text-align: right; }
.team-chat-head-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.team-chat-head-actions .btn-secondary { padding: 6px 10px; font-size: .62rem; }
.team-chat-mensajes { display: flex; flex-direction: column; gap: 12px; height: 420px; padding: 20px; overflow-y: auto; }
.team-chat-message { width: min(76%, 620px); padding: 12px 15px; border-radius: 12px; }
.team-chat-message.mensaje-club { align-self: flex-start; border: 1px solid rgba(0,229,255,.3); background: rgba(0,229,255,.08); border-bottom-left-radius: 2px; }
.team-chat-message.mensaje-externo { align-self: flex-end; border: 1px solid rgba(139,92,246,.3); background: rgba(139,92,246,.1); border-bottom-right-radius: 2px; }
.team-chat-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.team-chat-meta strong { color: #fff; font: 700 .68rem 'Orbitron', sans-serif; }
.team-chat-meta span { color: var(--text-muted); font-size: .6rem; }
.team-chat-message p { margin: 0; color: #dce7f4; white-space: pre-wrap; overflow-wrap: anywhere; }
.team-chat-empty { margin: auto; color: var(--text-muted); text-align: center; }
.team-chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.team-chat-compose .search-input { width: 100%; max-width: none; }
.team-chat-notice { margin: 0; padding: 0 20px 16px; color: var(--text-muted); font-size: .67rem; }
.team-chat-login { max-width: 520px; text-align: center; }
.portal-admin-editor { max-width: 900px; padding: 24px; border: 1px solid rgba(0,229,255,.25); border-radius: 12px; background: rgba(0,0,0,.25); }
.portal-admin-editor textarea { width: 100%; max-width: none; margin: 18px 0 12px; resize: vertical; }
.portal-admin-redes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.portal-admin-redes .search-input { width: 100%; max-width: none; }

@media (max-width: 800px) {
  .portal-contenido { grid-template-columns: 1fr; padding-top: 35px; }
  .portal-topbar b { display: none; }
  .portal-presentacion h1 { font-size: clamp(2.2rem, 11vw, 4rem); }
  .team-chat-head { flex-direction: column; }
  .team-chat-head p { text-align: left; }
  .team-chat-head-actions { align-items: flex-start; }
  .team-chat-message { width: 90%; }
  .team-chat-compose, .portal-admin-redes { grid-template-columns: 1fr; }
}

.club-profile-match-card {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 118px) minmax(0, 1fr) !important;
  min-height: 112px;
}

.club-profile-match-card .match-team {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.club-profile-match-card .club-match-name,
.club-profile-match-card .club-link {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: clamp(0.68rem, 1.35vw, 0.95rem) !important;
  line-height: 1.15 !important;
}

.club-profile-match-card .match-score {
  width: 100% !important;
  min-width: 92px !important;
  max-width: 118px !important;
  justify-self: center !important;
}

/* Iconografia limpia para acciones y secciones */
.ticopa-ui-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  align-items: center;
  justify-content: center;
  margin-right: 0.45em;
  color: currentColor;
  flex: 0 0 auto;
  vertical-align: -0.14em;
}

.ticopa-ui-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 2.2;
}

button .ticopa-ui-icon,
.tab-btn .ticopa-ui-icon,
.hero-btn .ticopa-ui-icon,
.btn-primary .ticopa-ui-icon,
.btn-secondary .ticopa-ui-icon,
.btn-danger .ticopa-ui-icon,
.sidebar-menu a .ticopa-ui-icon {
  margin-right: 0.42em;
}

.news-badge .ticopa-ui-icon,
.section-title .ticopa-ui-icon,
.card h2 .ticopa-ui-icon,
.card h3 .ticopa-ui-icon {
  color: var(--secondary);
}

#ticopa-global-refresh .ticopa-ui-icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0;
}

/* Colores semanticos para acciones, aplicados tambien a botones dinamicos */
.ticopa-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
}

.ticopa-action-success:not(.tab-btn):not(.filtro-btn) {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #03120a !important;
}

.ticopa-action-danger:not(.tab-btn):not(.filtro-btn) {
  background: rgba(255, 0, 85, 0.1) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.ticopa-action-warning:not(.tab-btn):not(.filtro-btn) {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.ticopa-action-info:not(.tab-btn):not(.filtro-btn) {
  background: rgba(0, 184, 255, 0.1) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

.ticopa-action-neutral:not(.tab-btn):not(.filtro-btn) {
  border-color: var(--border-light);
}

/* Ajuste final movil: partidos con logo y nombre completo en una linea */
@media (max-width: 760px) {
  #contenedor-partidos .calendar-container .match-card,
  .club-match-list .club-profile-match-card,
  .club-profile-match-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  #contenedor-partidos .calendar-container .match-team,
  .club-match-list .club-profile-match-card .match-team,
  .club-profile-match-card .match-team {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    justify-content: stretch !important;
    flex-direction: row !important;
  }

  #contenedor-partidos .calendar-container .match-team.visita,
  .club-match-list .club-profile-match-card .match-team.visita,
  .club-profile-match-card .match-team.visita {
    direction: ltr !important;
    text-align: left !important;
  }

  #contenedor-partidos .calendar-container .club-badge-logo,
  .club-match-list .club-profile-match-card .club-badge-logo,
  .club-profile-match-card .club-badge-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    grid-column: 1 !important;
  }

  #contenedor-partidos .calendar-container .club-link,
  .club-match-list .club-profile-match-card .club-match-name,
  .club-match-list .club-profile-match-card .club-link,
  .club-profile-match-card .club-match-name,
  .club-profile-match-card .club-link {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: clamp(0.58rem, 2.7vw, 0.84rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }
}
