﻿/* Hero Section con Logo */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/theme/img/radar-padel-tour.jpeg') center/cover;
        opacity: 0.1;
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.tournament-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    object-fit: cover;
    background: white;
}

.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section .lead {
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    font-weight: 500;
    color: whitesmoke;
}

.player-selector {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Tabs - Siempre en línea */
.tabs-container {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .tabs-container::-webkit-scrollbar {
        height: 4px;
    }

    .tabs-container::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 4px;
    }

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

    .tab-button:hover {
        color: black;
    }

    .tab-button.active {
        color: black;
        border-bottom-color: black;
    }

.categoria-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .categoria-badge:hover {
        background: #dee2e6;
    }

    .categoria-badge.selected {
        background: black;
        color: white;
    }

/* Match Cards */
.match-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .match-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .match-card.victoria {
        border-left: 4px solid #28a745;
    }

    .match-card.derrota {
        border-left: 4px solid #dc3545;
    }

    .match-card.pendiente {
        border-left: 4px solid #ffc107;
    }

.match-main {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ===== SCROLL HORIZONTAL PARA NOMBRES DE JUGADORES ===== */
.team-name {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100%;
    padding-right: 5px;
}

    /* Scrollbar minimalista */
    .team-name::-webkit-scrollbar {
        height: 2px;
    }

    .team-name::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .team-name::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

        .team-name::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.4);
        }

/* Para Firefox */
.team-name {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.team-name-text {
    display: inline-block;
    padding-right: 5px;
}

.vs-divider {
    color: #adb5bd;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 0.25rem 0;
}

/* Marcadores - Horizontal al lado de cada equipo */
.team-scores {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.score-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 0.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

    .score-number.winner {
        background: #d4edda;
        color: #155724;
        font-weight: 600;
    }

    .score-number.loser {
        background: #f8f9fa;
        color: #adb5bd;
    }

/* Match Info - Footer */
.match-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .info-item i {
        width: 16px;
        text-align: center;
    }

    .match-info .info-item.full-width {
        flex-basis: 100%;
        width: 100%;
    }

.badge-tipo-partido {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.badge-saludo{
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
    border-radius:10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.3;
    }

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102,126,234,.3);
    border-radius: 50%;
    border-top-color: black;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .tournament-logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .player-selector {
        padding: 1.5rem;
    }

    .match-card {
        padding: 1rem;
    }

    .match-main {
        padding-bottom: 0.75rem;
    }

    .team-row {
        flex-wrap: wrap;
    }

    .team-scores {
        gap: 0.25rem;
    }

    .score-number {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        height: 28px;
        padding: 0 0.4rem;
        background: #f8f9fa;
        border-radius: 0.25rem;
        font-size: 0.875rem; /* Cambiado de 0.75rem */
        color: #6c757d;
    }

    .team-name {
        display: flex;
        align-items: center;
        gap: 0.1rem;
        font-size: 0.85rem; /* Cambiado de 0.775rem */
        color: #495057;
        flex: 1;
        min-width: 0;
    }

    .match-info {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    /* Stats tables en móvil */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .group-card {
        padding: 1rem;
    }

        .group-card h5 {
            font-size: 1rem;
            margin-bottom: 0.75rem;
        }

    .stats-table {
        font-size: 0.7rem;
    }

        .stats-table th {
            padding: 0.4rem 0.25rem;
            font-size: 0.65rem;
        }

        .stats-table td {
            padding: 0.4rem 0.25rem;
        }

        .stats-table .pareja-cell {
            font-size: 0.7rem;
            min-width: 90px;
            padding-right: 0.35rem;
        }

    .position-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }
}

.categoria-badge-stats {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .categoria-badge-stats:hover {
        background: #dee2e6;
    }

    .categoria-badge-stats.selected {
        background: black;
        color: white;
    }

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.group-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    .group-card h5 {
        color: black;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .group-card .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

.stats-table {
    width: 100%;
    font-size: 0.85rem;
}

    .stats-table th {
        background: #f8f9fa;
        padding: 0.5rem;
        font-weight: 600;
        text-align: center;
        border-bottom: 2px solid #dee2e6;
        white-space: nowrap;
    }

    .stats-table td {
        padding: 0.5rem;
        text-align: center;
        border-bottom: 1px solid #e9ecef;
        white-space: nowrap;
    }

        .stats-table td:first-child {
            font-weight: 600;
            color: black;
        }

    /* Columna de parejas - nombres apilados */
    .stats-table .pareja-cell {
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.3;
        min-width: 120px;
        white-space: normal;
    }

        .stats-table .pareja-cell .jugador {
            display: block;
        }

    .stats-table tr:hover {
        background: #f8f9fa;
    }

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: black;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

    .position-badge.gold {
        background: #ffc107;
        color: #212529;
    }

    .position-badge.silver {
        background: #6c757d;
        color: white;
    }

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stats-table {
        font-size: 0.75rem;
    }

        .stats-table th,
        .stats-table td {
            padding: 0.35rem 0.25rem;
        }

        .stats-table .pareja-cell {
            font-size: 0.75rem;
            min-width: 100px;
        }
}

.categoria-badge-llaves {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .categoria-badge-llaves:hover {
        background: #dee2e6;
    }

    .categoria-badge-llaves.selected {
        background: black;
        color: white;
    }



.team-name {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    font-size: 0.85rem;
}

    .team-name.winner {
        color: black;
    }

.team-scores {
    display: flex;
    gap: 0.35rem;
}

.score-badge {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

    .score-badge.winner {
        background: #d4edda;
        color: #155724;
        font-weight: 700;
    }



@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
/*@media (max-width: 768px) {
    .bracket-wrapper {
        gap: 2rem;
    }

    .bracket-round {
        min-width: 240px;
    }

    .bracket-round-title {
        font-size: 0.95rem;
    }

    .bracket-match {
        margin: 0.75rem 0;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .score-badge {
        min-width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}*/



.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

.match-card.search-hidden,
.group-card.search-hidden {
    display: none;
}

#searchContainerPartidos,
#searchContainerEstadisticas {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pills Navigation - Reemplazar estilos de .tabs-container */
/* Wrapper del selector y pills - SIN card */
.selector-pills-wrapper {
    margin-bottom: 2rem;
}

/* Selector de pareja simple */
.pareja-selector-simple {
    margin-bottom: 1.5rem;
}

    .pareja-selector-simple .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

/* Pills Navigation */
.pills-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem;
}

    .pills-container::-webkit-scrollbar {
        height: 4px;
    }

    .pills-container::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 4px;
    }

.pill-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6c757d;
    font-weight: 300;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
}

    .pill-button:hover {
        background: #e9ecef;
        border-color: black;
        color: black;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    }

    .pill-button.active {
        background: black;
        border-color: black;
        color: white;
    }

    .pill-button i {
        transition: transform 0.3s;
    }

    .pill-button:hover i {
        transform: scale(1.1);
    }


/* Selectores de categoría - Sutiles y compactos */
.categoria-selector-wrapper {
    margin-bottom: 1.5rem;
    background: transparent;
}

/*  .tab-content .categoria-selector-wrapper {
                    display: none;
                } */

.tab-content.active-with-selector .categoria-selector-wrapper {
    display: block;
}

.categoria-select {
    max-width: 300px;
    height: 38px;
    background: transparent !important;
    border: 2px solid #dee2e6;
    border-radius: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px !important;
    padding-right: 2.5rem;
}

    .categoria-select:focus {
        background-color: rgba(255, 255, 255, 0.5) !important;
        border-color: black;
        box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.15);
        outline: none;
    }

    .categoria-select option {
        background: white;
        color: #495057;
    }

        .categoria-select option:first-child {
            color: #adb5bd;
        }

/* Buscador sutil y compacto */
.search-input-compact {
    max-width: 350px;
    height: 31px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .search-input-compact:focus {
        background: white;
        border-color: black;
        box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.15);
        outline: none;
    }

    .search-input-compact::placeholder {
        color: #adb5bd;
        font-size: 0.85rem;
    }

.search-compact-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.search-icon-left {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.85rem;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

    .search-clear-btn:hover {
        color: black;
    }

.search-results-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Select2 personalizado */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 0.5rem;
    transition: all 0.3s;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 32px;
        color: #495057;
        padding-left: 0.5rem;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: black;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.select2-dropdown {
    border: 2px solid black;
    border-radius: 0.5rem;
    margin-top: 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: black;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa;
    color: black;
}

.select2-results__option {
    padding: 0.75rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pills-container {
        gap: 0.5rem;
    }

    .pill-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .categoria-select {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .pill-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .pareja-selector-simple .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .pill-button {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }

    /* Stats tables más compactas en iPhone pequeños */
    .group-card {
        padding: 0.75rem;
    }

        .group-card h5 {
            font-size: 0.95rem;
        }

    .stats-table {
        font-size: 0.65rem;
    }

        .stats-table th {
            padding: 0.35rem 0.2rem;
            font-size: 0.6rem;
        }

        .stats-table td {
            padding: 0.35rem 0.2rem;
        }

        .stats-table .pareja-cell {
            font-size: 0.65rem;
            min-width: 80px;
            line-height: 1.2;
        }

    .position-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

.pareja-selector-simple {
    margin-bottom: 1.5rem;
}

    .pareja-selector-simple .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

.pareja-greeting {
    background: linear-gradient(135deg, rgba(26,26,46,0.05) 0%, rgba(22,33,62,0.05) 100%);
    border-radius: 0.75rem;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    display: inline-block;
}

    .pareja-greeting .btn-cambiar {
        border-radius: 50%;
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        transition: all 0.3s;
    }

        .pareja-greeting .btn-cambiar:hover {
            background: #6c757d;
            color: white;
            transform: translateY(-1px);
        }

#greetingText {
    font-size: 1rem;
    color: #212529;
}


/* ============ BRACKETS / LLAVES ============ */

.bracket-header {
    margin-bottom: 2rem;
}

    .bracket-header h3 {
        color: #212529;
        font-weight: 600;
    }

.bracket-container {
    background: transparent;
    overflow: auto;
    max-height: calc(100vh - 250px);
    position: relative;
    padding: 20px;
}

.bracket {
    display: flex;
    padding: 40px 20px 20px 20px;
    min-width: min-content;
    position: relative;
}

    .bracket .round {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        min-width: 280px;
        margin-right: 60px;
        position: relative;
    }

        .bracket .round:last-child {
            margin-right: 0;
        }

    .bracket .round-title {
        text-align: center;
        font-weight: bold;
        color: #333;
        margin-bottom: 20px;
        font-size: 18px;
        background-color: white;
        padding: 8px;
        border-radius: 25px;
    }

    .bracket .matches {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        flex: 1;
    }

    .bracket .match-wrapper {
        position: relative;
        margin: 10px 0; /* Reducido de 15px */
    }

    .bracket .match {
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .bracket .match:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .bracket .match.status-pending {
            border-color: #ffa726;
        }

        .bracket .match.status-playing {
            border-color: #42a5f5;
            box-shadow: 0 0 10px rgba(66, 165, 245, 0.3);
        }

        .bracket .match.status-finished {
            border-color: #66bb6a;
        }

    /* HEADER MÁS COMPACTO - Ahora muestra FECHA en lugar de estado */
    .bracket .match-header {
        background-color: #f5f5f5;
        padding: 4px 10px; /* Reducido de 6px 12px */
        font-size: 10px; /* Reducido de 11px */
        color: #666;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #e0e0e0;
    }

    .bracket .match-number {
        font-weight: bold;
        color: #333;
    }

    .bracket .match-date {
        font-weight: 500;
        color: #666;
    }

    /* TEAMS MÁS COMPACTOS */
    .bracket .team {
        padding: 8px 12px; /* Reducido de 12px 15px */
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s;
        min-height: 40px; /* Reducido de 48px */
    }

        .bracket .team:last-child {
            border-bottom: none;
        }

        .bracket .team:hover {
            background-color: #f9f9f9;
        }

        .bracket .team.winner {
            background-color: #e8f5e9;
        }

    .bracket .team-info {
        flex: 1;
        overflow: hidden;
    }

    .bracket .team-name {
        color: #333;
        font-weight: 500;
        font-size: 13px; /* Reducido de 14px */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }

        .bracket .team-name i.fa-trophy {
            font-size: 11px;
            margin-right: 4px;
        }

    /* ELIMINAMOS .team-players para más compactación */
    .bracket .team-players {
        display: none;
    }

    .bracket .team-score {
        font-weight: bold;
        color: #333;
        font-size: 16px; /* Reducido de 18px */
        min-width: 35px; /* Reducido de 40px */
        text-align: right;
        flex-shrink: 0;
    }

        .bracket .team-score sup {
            font-size: 9px; /* Reducido de 10px */
            color: #666;
        }

    .bracket .team.empty .team-name {
        color: #999;
        font-style: italic;
    }

    /* DETAILS ELIMINADO - Ya no se muestra fecha/hora aquí porque está en el header */
    .bracket .match-details {
        display: none;
    }

    /* Líneas conectoras */
    .bracket .connector-horizontal {
        position: absolute;
        height: 2px;
        background-color: #ccc;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .bracket .bye-indicator {
        position: absolute;
        right: -60px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #fff3cd;
        border: 2px solid #ffc107;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 10px;
        font-weight: bold;
        color: #856404;
        white-space: nowrap;
    }

    /* Estilos para pases directos */
    .bracket .match.status-finished.bye {
        border-color: #ffc107;
    }

    .bracket .team.empty .team-name.placeholder {
        color: #adb5bd;
        font-style: italic;
        font-size: 12px;
    }

    .bracket .match-header .match-date {
        font-weight: 600;
    }

    .bracket .team.winner {
        background-color: #e8f5e9;
    }

        .bracket .team.winner .team-score {
            color: #2e7d32;
            font-weight: 700;
        }

/* Responsive para Brackets */
@media (max-width: 768px) {
    .bracket-container {
        max-height: calc(100vh - 200px);
    }

    .bracket {
        padding: 20px 10px;
    }

        .bracket .round {
            min-width: 250px;
            margin-right: 50px;
        }

        .bracket .round-title {
            font-size: 16px;
            padding: 6px;
        }

        .bracket .match-wrapper {
            margin: 8px 0;
        }

        .bracket .team {
            padding: 7px 10px;
            min-height: 36px;
        }

        .bracket .team-name {
            font-size: 12px;
        }

            .bracket .team-name i.fa-trophy {
                font-size: 10px;
            }

        .bracket .team-score {
            font-size: 14px;
            min-width: 32px;
        }

        .bracket .match-header {
            padding: 3px 8px;
            font-size: 9px;
        }
}

@media (max-width: 576px) {
    .bracket .round {
        min-width: 220px;
        margin-right: 40px;
    }

    .bracket .match-wrapper {
        margin: 6px 0;
    }

    .bracket .team {
        padding: 6px 8px;
        min-height: 32px;
    }

    .bracket .team-name {
        font-size: 11px;
    }

    .bracket .team-score {
        font-size: 13px;
        min-width: 30px;
    }

    .bracket .match-header {
        font-size: 8px;
        padding: 3px 6px;
    }
}

@media (max-width: 430px) {
    .bracket .round {
        min-width: 200px;
        margin-right: 35px;
    }

    .bracket .team {
        padding: 5px 7px;
        min-height: 30px;
    }

    .bracket .team-name {
        font-size: 10px;
    }

    .bracket .team-score {
        font-size: 12px;
        min-width: 28px;
    }
}

/* Acordeones personalizados */
.accordion-item-custom {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.8rem;
    overflow: hidden;
    background: white;
}

.accordion-header-custom {
    padding: 0.55rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background-color 0.2s;
}

    .accordion-header-custom:hover {
        background: #e9ecef;
    }

    .accordion-header-custom.active {
        background: #e7f1ff;
    }

.accordion-title {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #6c757d;
    font-size: 0.875rem;
}

.accordion-body-custom {
    padding: 0.5rem;
}

    .accordion-body-custom .match-card {
        margin-bottom: 0.5rem;
    }

/* Botón scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .scroll-top-btn:hover {
        background: #0056b3;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .scroll-top-btn:active {
        transform: translateY(-1px);
    }

/* Para mantener full-width en el badge */
.match-info .info-item.full-width {
    flex-basis: 100%;
    width: 100%;
}

