body{
    background-color: #f4f6f8 !important;
    color: #17202a;
}

.main-section{
    margin-top: 10px;
    font-family: 'PT Sans Narrow', sans-serif;
}

.gaming{
    background-color: #39ad6e !important;
    color: #fff;
}

.auth-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'PT Sans Narrow', sans-serif;
}

.auth-card{
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(18, 38, 63, .12);
    padding: 28px;
}

.auth-title{
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle,
.auth-hint{
    color: #6c757d;
    font-size: 17px;
}

.auth-subtitle{
    margin-bottom: 22px;
}

.auth-hint{
    margin-top: 14px;
    text-align: center;
}

.admin-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 30px rgba(18, 38, 63, .05);
    font-family: 'PT Sans Narrow', sans-serif;
}

.admin-header h1{
    font-size: 36px;
    line-height: 1.05;
    margin: 0;
    font-weight: 700;
}

.admin-kicker{
    color: #6c757d;
    letter-spacing: .08em;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.admin-subtitle{
    color: #6c757d;
    font-size: 18px;
    margin-top: 4px;
}

.admin-container{
    padding-left: 28px;
    padding-right: 28px;
    margin-bottom: 28px;
}

.section-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 14px;
    font-family: 'PT Sans Narrow', sans-serif;
}

.section-head h2{
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
}

.section-head p{
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 18px;
}

.matches-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.match-card{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(18, 38, 63, .08);
    padding: 16px;
    overflow: hidden;
}

.match-card__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.match-number{
    font-size: 20px;
    font-weight: 700;
}

.captains-line{
    color: #6c757d;
    font-size: 15px;
    text-align: right;
}

.teams-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.team-panel{
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #f8f9fa;
    padding: 14px;
    min-width: 0;
}

.team-label{
    color: #6c757d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gaming .team-label,
.gaming .team-captain{
    color: rgba(255,255,255,.82);
}

.team-name{
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    margin: 6px 0;
    word-break: break-word;
}

.team-captain{
    color: #6c757d;
    font-size: 15px;
    word-break: break-word;
}

.team-stats{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.team-stats span{
    display: inline-flex;
    gap: 4px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 15px;
}

.gaming .team-stats span{
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.25);
}

.vs-badge{
    align-self: center;
    justify-self: center;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #17202a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.match-actions{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.match-actions .btn{
    min-height: 42px;
    white-space: normal;
    font-weight: 700;
}

.standings-card{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(18, 38, 63, .08);
    overflow: hidden;
}

.standings-table{
    margin-bottom: 0;
    background: #fff;
}

.empty-state{
    background: #fff;
    border: 1px dashed rgba(0,0,0,.2);
    border-radius: 18px;
    padding: 28px;
    color: #6c757d;
    font-size: 20px;
    text-align: center;
}

.toast-area{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-toast{
    min-width: 260px;
    max-width: 360px;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    background: #17202a;
    color: #fff;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 17px;
}

.admin-toast_error{
    background: #dc3545;
}

.admin-toast_success{
    background: #28a745;
}

/* TABLE EXPANDABLE - START */
table.table-expandable > tbody > tr:nth-child(odd) {
    cursor: pointer;
}

table.table-expandable.table-hover > tbody > tr:nth-child(even):hover td {
    background-color: white;
}
/* TABLE EXPANDABLE - END */

@media (max-width: 767.98px){
    .admin-header{
        align-items: flex-start;
        padding: 18px 14px;
    }

    .admin-header h1{
        font-size: 29px;
    }

    .admin-container{
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-head{
        align-items: flex-start;
        flex-direction: column;
    }

    .matches-list{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-card{
        padding: 12px;
        border-radius: 16px;
    }

    .match-card__top{
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .captains-line{
        text-align: left;
    }

    .teams-grid{
        grid-template-columns: 1fr;
    }

    .vs-badge{
        width: auto;
        height: auto;
        padding: 5px 12px;
        margin: -2px auto;
    }

    .team-name{
        font-size: 22px;
    }

    .match-actions{
        grid-template-columns: 1fr 1fr;
    }

    .toast-area{
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .admin-toast{
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 420px){
    .match-actions{
        grid-template-columns: 1fr;
    }

    .auth-card{
        padding: 22px;
    }
}
