/**
 * Hispano - Tournament Fixture Premium Stylesheet (Pantalla Completa)
 * Template: Koleos (index.tournament.php)
 */

/* ==========================================================================
   Estructura Base a Pantalla Completa
   ========================================================================== */
html, body.tournament-layout-body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0b0c10;
    font-family: 'Open Sans', sans-serif;
    color: #f0f0f0;
}

/* Barra superior minimalista */
.tournament-top-bar {
    height: 70px;
    width: 100vw;
    background: #111317;
    border-bottom: 2px solid #bfa15f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: relative;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.back-to-web-btn {
    color: #a0a5b5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
}

.back-to-web-btn:hover {
    color: #bfa15f;
    border-color: #bfa15f;
    background: rgba(191, 161, 95, 0.05);
    text-decoration: none;
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.brand-logo-img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.server-status-pill {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}

/* Área de contenido que ocupa el 100% de la altura restante */
.tournament-main-viewport {
    height: calc(100vh - 70px);
    width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

/* Contenedor del módulo */
.tournament-page-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ==========================================================================
   Sección del Encabezado e Información (Dentro del Wrapper)
   ========================================================================== */
.tournament-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(17, 19, 23, 0.4);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-sizing: border-box;
}

.tournament-title-area {
    display: flex;
    flex-direction: column;
}

.tournament-badge {
    align-self: flex-start;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
    animation: pulse-live 2s infinite;
}

.tournament-title {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.tournament-meta {
    font-size: 13px;
    color: #a0a5b5;
}

.meta-separator {
    margin: 0 10px;
    color: #444;
}

/* Banner del Campeón */
.tournament-champion-banner {
    background: linear-gradient(135deg, rgba(191, 161, 95, 0.15) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid #bfa15f;
    border-radius: 8px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(191, 161, 95, 0.15), 0 0 30px rgba(0,0,0,0.4);
    animation: champion-glow 3s infinite alternate;
}

.champion-info {
    text-align: left;
}

.champion-label {
    font-size: 9px;
    font-weight: 700;
    color: #bfa15f;
    letter-spacing: 2px;
    margin: 0 0 2px 0;
}

.champion-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 8px rgba(255,255,255,0.2);
}

/* ==========================================================================
   Lienzo del Fixture (Desplazamiento Bidireccional Adaptado)
   ========================================================================== */
.tournament-fixture-viewport {
    flex-grow: 1;
    width: 100%;
    overflow: auto; /* Permite scroll horizontal y vertical */
    box-sizing: border-box;
    background: radial-gradient(circle at center, #15171c 0%, #0b0c10 100%);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #bfa15f #0b0c10;
}

/* Estilos scrollbar personalizados */
.tournament-fixture-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.tournament-fixture-viewport::-webkit-scrollbar-track {
    background: #08090c;
}
.tournament-fixture-viewport::-webkit-scrollbar-thumb {
    background: #bfa15f;
    border-radius: 4px;
    border: 2px solid #08090c;
}
.tournament-fixture-viewport::-webkit-scrollbar-thumb:hover {
    background: #dfc282;
}

/* Canvas del árbol */
.tournament-bracket-canvas {
    display: flex;
    gap: 55px; /* Distancia horizontal de las columnas */
    padding: 40px 60px;
    width: max-content;
    height: max-content;
    min-height: 100%;
    box-sizing: border-box;
}

/* Altura mínima del lienzo de brackets según los participantes */
.tournament-bracket-canvas.size-32 .tournament-round-column {
    min-height: 850px;
}
.tournament-bracket-canvas.size-64 .tournament-round-column {
    min-height: 1800px;
}

.tournament-round-column {
    display: flex;
    flex-direction: column;
    width: 230px;
    box-sizing: border-box;
}

.round-header-sticky {
    text-align: center;
    background: rgba(17, 19, 23, 0.95);
    border: 1px solid rgba(191, 161, 95, 0.25);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.round-header-sticky h3 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: #bfa15f;
    letter-spacing: 0.5px;
}

.match-count-badge {
    font-size: 10px;
    color: #888;
}

.round-matches-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

/* ==========================================================================
   Parejas de Encuentros y Conectores CSS
   ========================================================================== */
.tournament-match-pair {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.tournament-match-card-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Alturas de celdas por rondas en Playoffs 64 */
.tournament-round-column[data-round="1"] .tournament-match-card-wrapper {
    height: 130px;
}
.tournament-round-column[data-round="2"] .tournament-match-card-wrapper {
    height: 260px;
}
.tournament-round-column[data-round="3"] .tournament-match-card-wrapper {
    height: 520px;
}
.tournament-round-column[data-round="4"] .tournament-match-card-wrapper {
    height: 1040px;
}
.tournament-round-column[data-round="5"] .tournament-match-card-wrapper {
    height: 2080px;
}
.tournament-round-column[data-round="6"] .tournament-match-card-wrapper {
    height: 4160px;
}

.tournament-match-card {
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.9) 0%, rgba(15, 17, 21, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
    overflow: hidden;
}

.tournament-match-card:hover {
    border-color: rgba(191, 161, 95, 0.35);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 12px rgba(191, 161, 95, 0.1);
    transform: translateY(-1px);
}

.match-badge {
    position: absolute;
    right: 8px;
    top: 4px;
    font-size: 8px;
    color: #555;
    font-weight: bold;
    z-index: 1;
}

/* Filas de Jugadores */
.match-player-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    cursor: default;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
}

.match-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 0;
}

.player-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3a3c42;
    margin-right: 10px;
    display: inline-block;
    transition: all 0.2s ease;
}

.player-name {
    color: #c0c0c5;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Estados */
.match-player-row.is-winner {
    background: rgba(46, 204, 113, 0.03);
}

.match-player-row.is-winner .player-name {
    color: #2ecc71;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.15);
}

.match-player-row.is-winner .player-indicator {
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

.match-player-row.is-loser .player-name {
    color: #5d616d;
    text-decoration: line-through;
}

.match-player-row.is-loser .player-indicator {
    background: #444;
}

.match-player-row.is-empty .player-name {
    color: #4f525c;
    font-style: italic;
    font-weight: normal;
}

.winner-icon {
    margin-left: 6px;
    color: #2ecc71;
    font-size: 12px;
    animation: scale-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Efecto de Camino de Sorteo (Hover)
   ========================================================================== */
.player-hover-highlight {
    background: linear-gradient(90deg, rgba(191, 161, 95, 0.22) 0%, rgba(191, 161, 95, 0.02) 100%) !important;
}

.player-hover-highlight .player-name {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(191, 161, 95, 0.6) !important;
}

.player-hover-highlight .player-indicator {
    background: #bfa15f !important;
    box-shadow: 0 0 8px #bfa15f !important;
}

.match-card-active {
    border-color: rgba(191, 161, 95, 0.6) !important;
    box-shadow: 0 0 15px rgba(191, 161, 95, 0.25) !important;
}

/* ==========================================================================
   Conectores Físicos CSS (Corchetes y Caminos)
   ========================================================================== */
/* Corchete vertical a la derecha de la pareja de encuentros */
.tournament-match-pair::after {
    content: "";
    position: absolute;
    right: -27px; /* A la mitad del gap de 55px */
    width: 27px;
    border: 2px solid #282a35;
    border-left: none;
    z-index: 1;
    transition: border-color 0.2s ease;
}

/* Conectores verticales por ronda (centro a centro de celdas) */
.tournament-round-column[data-round="1"] .tournament-match-pair::after {
    top: 65px;
    bottom: 65px;
}
.tournament-round-column[data-round="2"] .tournament-match-pair::after {
    top: 130px;
    bottom: 130px;
}
.tournament-round-column[data-round="3"] .tournament-match-pair::after {
    top: 260px;
    bottom: 260px;
}
.tournament-round-column[data-round="4"] .tournament-match-pair::after {
    top: 520px;
    bottom: 520px;
}
.tournament-round-column[data-round="5"] .tournament-match-pair::after {
    top: 1040px;
    bottom: 1040px;
}

/* Línea horizontal de salida de la pareja */
.tournament-match-pair::before {
    content: "";
    position: absolute;
    right: -55px; /* Cubre el gap de 55px completo */
    top: 50%;
    width: 28px;
    height: 2px;
    background: #282a35;
    z-index: 1;
    transition: background-color 0.2s ease;
}

/* Línea de entrada a los partidos (rondas 2+) */
.tournament-round-column .tournament-match-card-wrapper::before {
    content: "";
    position: absolute;
    left: -28px;
    width: 28px;
    height: 2px;
    background: #282a35;
    top: 50%;
    z-index: 1;
    transition: background-color 0.2s ease;
}

/* Ocultar entrada en la ronda 1 */
.tournament-round-column[data-round="1"] .tournament-match-card-wrapper::before {
    display: none;
}

/* Resaltado Activo de Conectores */
.match-top-wrapper:has(.is-winner) ~ .match-bottom-wrapper::after,
.tournament-match-pair:has(.match-top-wrapper .is-winner)::after {
    border-color: rgba(191, 161, 95, 0.45);
}

.tournament-match-pair:has(.match-top-wrapper .is-winner)::before {
    background: rgba(191, 161, 95, 0.45);
}

.tournament-match-pair:has(.match-bottom-wrapper .is-winner)::after {
    border-color: rgba(191, 161, 95, 0.45);
}

.tournament-match-pair:has(.match-bottom-wrapper .is-winner)::before {
    background: rgba(191, 161, 95, 0.45);
}

.tournament-round-column:not([data-round="1"]) .tournament-match-card-wrapper:has(.match-player-row:not(.is-empty))::before {
    background: rgba(191, 161, 95, 0.45);
}

/* ==========================================================================
   Ronda Final y Podio del Campeón
   ========================================================================== */
.final-match-wrapper {
    justify-content: center;
}

.final-match-wrapper::after {
    content: "";
    position: absolute;
    right: -55px;
    width: 55px;
    height: 2px;
    background: #282a35;
    top: 50%;
    z-index: 1;
    transition: background-color 0.2s ease;
}

.final-match-wrapper:has(.is-winner)::after {
    background: #bfa15f;
    box-shadow: 0 0 6px rgba(191, 161, 95, 0.3);
}

.champion-column {
    width: 250px;
}

.champion-podium {
    background: linear-gradient(180deg, rgba(26, 29, 36, 0.8) 0%, rgba(13, 14, 18, 0.95) 100%);
    border: 2px solid #282a35;
    border-radius: 12px;
    padding: 25px 15px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    position: relative;
    transition: all 0.3s ease;
}

.champion-podium:has(.has-champion) {
    border-color: #bfa15f;
    box-shadow: 0 0 25px rgba(191, 161, 95, 0.25), 0 8px 30px rgba(0,0,0,0.7);
}

.podium-icon {
    width: 60px;
    height: 60px;
    background: #1c1e25;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #282a35;
    transition: all 0.3s ease;
}

.podium-icon i {
    font-size: 26px;
    color: #444;
}

.podium-icon.has-champion {
    background: #bfa15f;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(191, 161, 95, 0.5);
}

.podium-icon.has-champion i {
    color: #fff;
}

.podium-card h4 {
    margin: 0 0 8px 0;
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
}

.podium-name-box {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-champion-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.highlighted-champion {
    color: #2ecc71 !important;
    text-shadow: 0 0 12px rgba(46, 204, 113, 0.4) !important;
}

/* ==========================================================================
   Vistas de Inactividad (Idle)
   ========================================================================== */
.tournament-idle-container {
    height: 100%;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.tournament-idle-card {
    background: linear-gradient(135deg, rgba(22, 24, 30, 0.9) 0%, rgba(13, 14, 18, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 60px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.tournament-icon-wrapper {
    font-size: 55px;
    margin-bottom: 20px;
}

.tournament-separator {
    width: 50px;
    height: 2px;
    background: #bfa15f;
    margin: 15px auto;
    border-radius: 2px;
}

.tournament-lead {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.tournament-footer-info {
    text-align: center;
    padding: 15px 40px;
    font-size: 11px;
    color: #777;
    background: rgba(17, 19, 23, 0.4);
    border-top: 1px solid rgba(255,255,255,0.03);
    box-sizing: border-box;
}

/* ==========================================================================
   Animaciones e Info Extra
   ========================================================================== */
@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

@keyframes champion-glow {
    0% {
        box-shadow: 0 4px 15px rgba(191, 161, 95, 0.1), 0 0 25px rgba(0,0,0,0.4);
        border-color: rgba(191, 161, 95, 0.35);
    }
    100% {
        box-shadow: 0 4px 20px rgba(191, 161, 95, 0.3), 0 0 35px rgba(191, 161, 95, 0.15);
        border-color: rgba(191, 161, 95, 0.85);
    }
}

@keyframes scale-up {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.flex-c-c {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Estilos específicos de la Fase de Grupos (Diseño Premium)
   ========================================================================== */
.tournament-user-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 12px 40px;
    background: #111317;
    border-bottom: 1px solid rgba(191, 161, 95, 0.2);
    box-sizing: border-box;
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.tournament-user-tabs .tab-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: #a0a5b5;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-user-tabs .tab-btn:hover {
    color: #bfa15f;
    border-color: #bfa15f;
    background: rgba(191, 161, 95, 0.03);
}

.tournament-user-tabs .tab-btn.active {
    background: #bfa15f;
    color: #0b0c10;
    border-color: #bfa15f;
    box-shadow: 0 0 12px rgba(191, 161, 95, 0.35);
}

/* Contenido de pestañas */
.user-tab-content {
    display: none;
    height: 100%;
    width: 100%;
}

.user-tab-content.active {
    display: block;
}

/* Grid panorámico de 8 grupos */
.groups-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px 40px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 1600px) {
    .groups-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1200px) {
    .groups-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .groups-grid-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
}

/* Tarjeta de grupo */
.group-standings-card {
    background: linear-gradient(135deg, rgba(22, 24, 30, 0.85) 0%, rgba(12, 13, 17, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px; /* Alto fijo para ver la tabla con scroll vertical */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.group-standings-card:hover {
    border-color: rgba(191, 161, 95, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(191, 161, 95, 0.05);
}

.group-card-header {
    background: rgba(17, 19, 23, 0.95);
    border-bottom: 1px solid rgba(191, 161, 95, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-card-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #bfa15f;
    letter-spacing: 1px;
}

.group-card-header .top-label {
    font-size: 9px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

.group-table-container {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(191, 161, 95, 0.3) rgba(0,0,0,0.2);
}

.group-table-container::-webkit-scrollbar {
    width: 6px;
}
.group-table-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.15);
}
.group-table-container::-webkit-scrollbar-thumb {
    background: rgba(191, 161, 95, 0.3);
    border-radius: 3px;
}

.group-standings-table {
    margin-bottom: 0;
    font-size: 11px;
}

.group-standings-table thead th {
    background: rgba(10, 11, 14, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    color: #777;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.5px;
    padding: 8px 10px !important;
}

.group-standings-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.group-standings-table tbody td {
    padding: 6px 10px !important;
    vertical-align: middle !important;
    border-top: none !important;
}

.pos-col {
    font-weight: 700;
    color: #555;
    width: 30px;
    text-align: center;
}

.player-col {
    font-weight: 600;
    color: #b8b8bd;
}

.stats-col {
    width: 35px;
}

.font-bold {
    font-weight: 700;
}

/* Fila de Clasificado (Top 8) */
.group-standings-table tbody tr.is-classified {
    background: rgba(46, 204, 113, 0.015);
}

.group-standings-table tbody tr.is-classified .pos-col {
    color: #2ecc71;
}

.group-standings-table tbody tr.is-classified .player-col {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.08);
}

/* ==========================================================================
   Diseño de Pestaña de Calendario y Encuentros
   ========================================================================== */
.matches-selector-panel {
    background: rgba(17, 19, 23, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 15px 40px;
    box-sizing: border-box;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selector-group label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.selector-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.selector-btn {
    background: #191b22;
    border: 1px solid rgba(255,255,255,0.04);
    color: #a0a0aa;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selector-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.12);
    background: #21232c;
}

.selector-btn.active {
    background: #bfa15f;
    color: #0b0c10;
    border-color: #bfa15f;
    box-shadow: 0 0 8px rgba(191, 161, 95, 0.3);
}

/* Barra scrollable horizontal para las 19 rondas */
.ronda-selector-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #bfa15f #111317;
}

.ronda-selector-scroll::-webkit-scrollbar {
    height: 5px;
}
.ronda-selector-scroll::-webkit-scrollbar-track {
    background: #111317;
    border-radius: 3px;
}
.ronda-selector-scroll::-webkit-scrollbar-thumb {
    background: #bfa15f;
    border-radius: 3px;
}

/* Canvas de encuentros de grupo */
.matches-viewport-container {
    padding: 30px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-grow: 1;
    height: calc(100vh - 280px);
    background: radial-gradient(circle at center, #15171c 0%, #0b0c10 100%);
}

.matches-list-canvas {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.matches-group-round-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1400px) {
    .matches-group-round-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .matches-group-round-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .matches-group-round-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta de partido para usuario */
.user-match-card {
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.85) 0%, rgba(14, 15, 19, 0.98) 100%);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 12px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.user-match-card:hover {
    border-color: rgba(191, 161, 95, 0.25);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 10px rgba(191, 161, 95, 0.05);
}

.user-match-card .card-title {
    font-size: 8px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-player-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
}

.card-player-row .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #333;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.card-player-row .name {
    color: #c0c0c5;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.card-divider {
    height: 1px;
    background: rgba(255,255,255,0.03);
}

.card-player-row.is-winner .dot {
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

.card-player-row.is-winner .name {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.15);
}

.card-player-row.is-loser .name {
    color: #555;
    text-decoration: line-through;
}

.win-badge {
    color: #2ecc71;
    font-size: 10px;
    margin-left: 5px;
}
