.cls_match_list_view{
    max-width:780px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.cls_match_card{
    background:#fff;
    border-radius:16px;
    box-shadow:0 4px 14px rgba(0,0,0,.30);
    overflow:hidden;
    border:2px solid transparent;
}

.cls_match_header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:6px 8px;
    background:#f9fafb;
    border-bottom:1px solid #e5e7eb;
}

.cls_header_right, .cls_header_left{
    display:flex;
    align-items:center;
    gap:10px;
    // flex-wrap:wrap;
}

.cls_header_labels{
    display:flex;
    flex:1;
    gap:10px;
    justify-content:center;
}

.cls_header_labels:first-child{
    justify-content:flex-start;
}

.cls_header_labels:last-child{
    justify-content:flex-end;
    padding: 0 10px 0 0;
}

.cls_header_labels:hover{
    cursor:pointer;
}

.cls_header_badge{
    font-size:12px;
    font-weight:500;
    background:#eef2f7;
    padding:6px 10px;
    border-radius:999px;
    color:#374151;
    white-space:nowrap;
    flex-wrap:nowrap;
    overflow: hidden;
}

.cls_header_badge_right{
    font-size:12px;
    font-weight:600;
    border-radius:999px;
    filter: grayscale(50%);
}


.cls_match_body{padding:6px}

.cls_team_row{
    border:1px solid #efefef;
    border-radius:12px;
    background:#fff;
    transition:.2s;
    touch-action:pan-y;
}

.cls_team_row + .cls_team_row{
    margin-top:10px;
}

.cls_team_row.cls_drop_target_team{
    border:2px solid #1976d2 !important;
    background:#f2f8ff !important;
    box-shadow:0 0 0 8px rgba(25,118,210,.25) !important;
    transition:all .1s ease;
}

.cls_match_card.cls_dragging_source_team .cls_source_team{
    opacity:.20;
}

.cls_switch_this_class_everything{
    display:flex;
    align-items:center;
    gap:4px;
    padding:6px;
}

.cls_team_players{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cls_team_player{
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
}

.cls_avatar{
    width:20px;
    height:20px;
    border-radius:50%;
    overflow:hidden;
    flex:0 0 20px;
    background:#ddd;
}

.cls_avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cls_player_info{
    min-width:0;
    flex:1;
}

.cls_player_name{
    font-family: Arial, Helvetica, sans-serif;
    font-size:12px;
    font-weight:none;
    color:#676767;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cls_player_subtitle{
    font-size:12px;
    color:#666;
    margin-top:2px;
}

.cls_team_meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.cls_team_badge{
    font-size:12px;
    font-weight:600;
    color:#4b5563;
    background:#f3f4f6;
    padding:5px 8px;
    border-radius:999px;
}

.cls_finished_badge{
    background:#dcfce7;
    color:#166534;
}

.cls_team_side_area{
    flex:0 0 40px;
    width:80px;
    min-width:60px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin: 0 5px 0;
}

.cls_drag_handle{
    font-size:22px;
    cursor:grab;
    color:#aaa;
    line-height:1;
    padding:8px;
    touch-action:none;
    cursor:grab;
}

.cls_score_winner{
    color:green;
}

.cls_score_looser{
    color: red;
}

.cls_score_box{
    overflow:hidden;
}

.cls_score_row{
    display:grid;
    grid-template-columns:3fr 3fr 3fr;
    min-height:28px;
}

.cls_score_row_1_set{
    display:grid;
    grid-template-columns:repeat(1, minmax(20px, auto));
    min-height:28px;
    justify-content:flex-end;
    // border: 1px solid #444;
}

.cls_score_box_1_set{
    width:20px;
    overflow:visible;
}

.cls_score_row_2_sets{
    display:grid;
    grid-template-columns:repeat(2, minmax(20px, auto));
    min-height:28px;
    justify-content:flex-end;
    // border: 1px solid #444;
}

.cls_score_box_2_sets{
    width:40px;
    overflow:visible;
}

.cls_score_row_3_sets{
    display:grid;
    grid-template-columns:repeat(3, minmax(20px, 1fr));
    min-height:28px;
    // background-color: #1976d2;    
}

.cls_score_box_3_sets{
    width:60px;
    overflow:visible;
    // border: 1px solid #27e055;
}

.cls_score_cell{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    font-size:12px;
    font-weight:700;
    // border: 1px solid #ee1616;
}

.cls_drag_proxy{
    position:fixed;
    z-index:9999;
    pointer-events:none;
    opacity:.95;
    transform:scale(1.03);
    box-shadow:0 16px 32px rgba(0,0,0,.25);
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}

@keyframes kf_cls_swap_shake{
    0%{transform:translateX(0)}
    15%{transform:translateX(-5px)}
    30%{transform:translateX(5px)}
    45%{transform:translateX(-4px)}
    60%{transform:translateX(4px)}
    75%{transform:translateX(-2px)}
    100%{transform:translateX(0)}
}

.cls_team_row.cls_swap_shake{
    animation:kf_cls_swap_shake .32s ease;
}

.cls_result_box{
    max-width:980px;
    margin:16px auto 0;
    background:#fff;
    padding:12px;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(0,0,0,.08);
    color:#374151;
    line-height:1.45;
}

.cls_no_text_selection,
.cls_no_text_selection *{
    -webkit-user-select:none !important;
    -moz-user-select:none !important;
    -ms-user-select:none !important;
    user-select:none !important;
    -webkit-touch-callout:none !important;
}

.cls_round_header{
    display:flex;
    justify-content:center;
    margin:12px 0 6px 0;
}

.cls_round_title{
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
    color:#374151;
    background:#eef2f7;
    padding:6px 14px;
    border-radius:999px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

@media (max-width: 560px){
    .cls_switch_this_class_everything{
        flex-wrap:wrap;
    }

    .cls_header_labels{
        font-size:10px;
    }

}

