/* Compact Match Card Styles - Mobile Optimized */
.compact-match-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 1.25rem;
    cursor: pointer;
    position: relative;
}

.compact-match-card.court-livestreaming {
    border-left: 4px solid #ef4444;
}


/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem 1rem;
    gap: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.match-meta {
    flex: 1;
    min-width: 0;
}

.category-stage {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.court-time {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.court-time-section {
    padding: 0 1rem 0.5rem 1rem;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.status-completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(21, 128, 61, 0.9) 100%);
    color: white;
}

.status-started {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.9) 0%, rgba(107, 114, 128, 0.9) 100%);
    color: white;
}

/* View Match Button */
.view-match-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(4, 85, 113, 0.1);
    border: 1px solid rgba(4, 85, 113, 0.2);
    color: #045571;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}


.view-match-btn .view-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Match Participants */
.match-participants {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 1rem 1rem;
    gap: 0.5rem;
}

.participant {
    flex: 1;
    text-align: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.participant-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-weight: 700;
    color: #045571;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-name.winner {
    color: #22c55e;
    font-weight: 800;
}

.participant-name.loser {
    color: #9ca3af;
    font-weight: 500;
}

.trophy-icon {
    width: 14px;
    height: 14px;
    color: #fbbf24;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.participant-players {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-divider {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
    padding: 0 0.5rem;
}

/* Compact Score */
.match-score-compact {
    background: linear-gradient(135deg, rgba(4, 85, 113, 0.05) 0%, rgba(6, 126, 160, 0.05) 100%);
    border-top: 1px solid rgba(4, 85, 113, 0.1);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: #045571;
    backdrop-filter: blur(5px);
}

/* Card State Variations */
.completed-card {
    border-color: rgba(34, 197, 94, 0.2);
}


.started-card {
    border-color: rgba(251, 191, 36, 0.2);
}


.pending-card {
    border-color: rgba(156, 163, 175, 0.2);
}


/* Tournament Header with Banner */
.tournament-section {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    width: 100%;
}

.tournament-header-with-banner {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}


.tournament-banner {
    height: 120px;
    position: relative;
    background: linear-gradient(135deg, #045571 0%, #067ea0 50%, #0891b2 100%);
    overflow: hidden;
}

.tournament-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.tournament-banner .banner-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #045571 0%, #067ea0 50%, #0891b2 100%);
    position: relative;
}

.tournament-banner .banner-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.2"><circle cx="20" cy="20" r="2" fill="white"/><circle cx="80" cy="40" r="1.5" fill="white"/><circle cx="40" cy="70" r="1" fill="white"/><circle cx="90" cy="80" r="2.5" fill="white"/><circle cx="10" cy="90" r="1.2" fill="white"/><circle cx="70" cy="10" r="1.8" fill="white"/></svg>') repeat;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.5rem;
    z-index: 2;
}

.tournament-info {
    flex: 1;
    margin-right: 1rem;
}

.tournament-title {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tournament-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-ongoing {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(21, 128, 61, 0.9) 100%);
    color: white;
}

.status-other {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.9) 0%, rgba(107, 114, 128, 0.9) 100%);
    color: white;
}

/* View Tournament Button */
.view-tournament-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #045571;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 10;
}


.view-tournament-btn .view-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Circular Collapse Button */
.collapse-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


.collapse-icon {
    width: 20px;
    height: 20px;
    color: #374151;
    flex-shrink: 0;
}

.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Category Headers */
.category-section {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}


.category-header {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.9) 0%, rgba(209, 232, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}


.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.tournament-content,
.category-content {
    overflow: hidden;
}

.tournament-content.collapsed,
.category-content.collapsed {
    max-height: 0 !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .compact-match-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.875rem 0.875rem 0.5rem 0.875rem;
        gap: 0.5rem;
    }
    
    .category-stage {
        font-size: 0.8125rem;
    }
    
    .court-time {
        font-size: 0.6875rem;
    }
    
    .match-participants {
        padding: 0 0.875rem 0.875rem 0.875rem;
        gap: 0.375rem;
    }
    
    .participant-name {
        font-size: 0.8125rem;
    }
    
    .participant-players {
        font-size: 0.6875rem;
    }
    
    .vs-divider {
        font-size: 0.6875rem;
        padding: 0 0.375rem;
    }
    
    .trophy-icon {
        width: 12px;
        height: 12px;
    }
    
    .match-score-compact {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .tournament-banner {
        height: 100px;
    }
    
    .banner-content {
        padding: 1.25rem;
    }
    
    .tournament-title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }
    
    .tournament-status {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.625rem;
    }
    
    .collapse-button {
        width: 36px;
        height: 36px;
        bottom: 0.875rem;
        right: 0.875rem;
    }
    
    .collapse-icon {
        width: 18px;
        height: 18px;
    }
    
    .view-tournament-btn {
        width: 32px;
        height: 32px;
        top: 0.875rem;
        right: 0.875rem;
        border-radius: 6px;
    }
    
    .view-tournament-btn .view-icon {
        width: 16px;
        height: 16px;
    }
    
    .view-match-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .view-match-btn .view-icon {
        width: 16px;
        height: 16px;
    }
    
    .category-header {
        padding: 0.875rem 1rem;
        border-radius: 12px;
        margin-bottom: 0.875rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .tournament-section {
        margin: 0 auto 1.25rem auto;
    }
    
    .category-section {
        margin-left: 0.5rem;
        margin-bottom: 1.25rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .card-header {
        padding: 0.75rem 0.75rem 0.375rem 0.75rem;
    }
    
    .match-participants {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .match-score-compact {
        padding: 0.5rem 0.75rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .tournament-title {
        font-size: 1.125rem;
    }
    
    .collapse-button {
        width: 32px;
        height: 32px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .collapse-icon {
        width: 16px;
        height: 16px;
    }
    
    .view-tournament-btn {
        width: 28px;
        height: 28px;
        top: 0.75rem;
        right: 0.75rem;
        border-radius: 4px;
    }
    
    .view-tournament-btn .view-icon {
        width: 14px;
        height: 14px;
    }
    
    .view-match-btn {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }
    
    .view-match-btn .view-icon {
        width: 14px;
        height: 14px;
    }
    
    .category-header {
        padding: 0.75rem 0.875rem;
    }
}

/* No animations - immediate visibility */
.fade-in {
    opacity: 1;
}

.fade-in.visible {
    opacity: 1;
}


/* No animations - static elements for better mobile performance */
* {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.fade-in {
    opacity: 1 !important;
}