/* ==========================================================
   MATCH
   ========================================================== */

.match-page {

    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;

}

.match-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;

}

.match-header h1 {

    margin: 8px 0;
    font-size: 2.8rem;

}

.match-subtitle {

    color: var(--text-muted);
    font-size: .95rem;

}

.back-link {

    color: var(--primary);
    text-decoration: none;

}

.back-link:hover {

    text-decoration: underline;

}

/*=======================
Mobil version
=======================*/

.match-header-card {

    display: grid;
    grid-template-columns: 1fr 140px 1fr;

    gap: 20px;

    margin-bottom: 30px;

    align-items: center;

}

.team-card {

    padding: 28px;

    text-align: center;

}

.team-card h2 {

    margin: 0;

    font-size: 2rem;

}

.team-points {

    font-size: 1rem;

    color: var(--text-muted);

    margin-top: 6px;

}

.team-score {

    font-size: 3rem;

    font-weight: 700;

    color: var(--primary);

    margin-top: 18px;

}

.match-vs {

    text-align: center;

    font-size: 2rem;

    color: var(--text-muted);

}

.match-progress {

    margin-bottom: 30px;

}

.progress-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

}

progress {

    width: 100%;
    height: 12px;

}

.match-card {

    margin-bottom: 24px;

    padding: 24px;

}

.match-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.board-title {

    font-size: 1.2rem;
    font-weight: 700;

}

.badge {

    display: inline-block;

    padding: 5px 12px;

    border-radius: 999px;

    font-size: .85rem;

    font-weight: 600;

}

.badge-success {

    background: rgba(34,197,94,.18);

    color: #4ade80;

}

.badge-warning {

    background: rgba(245,158,11,.15);

    color: #fbbf24;

}

/* ===============
Mobile version
================*/

@media (max-width:900px){

    .match-header-card{

        grid-template-columns:1fr;

    }

    .match-body{

        grid-template-columns:1fr;

        gap:20px;

    }

    .match-player{

        text-align:center !important;

    }

    .match-player.away .player-extra{

        align-items:center;

    }

}


/* ===============
Nye
================*/

/* ==========================================================
   Match body
   ========================================================== */

.match-body {

    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 30px;
    align-items: center;

}

.match-player {

    display: flex;
    flex-direction: column;
    gap: 10px;

}

.match-player.away {

    text-align: right;

}

.player-name {

    font-size: 1.25rem;
    font-weight: 700;

}

.player-average {

    color: var(--text-muted);
    font-size: .95rem;

}

/* ==========================================================
   Score
   ========================================================== */

.match-center {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

}

.score-box {

    display: flex;
    align-items: center;
    gap: 12px;

}

.score-input {

    width: 105px;
    height: 54px;

    text-align: center;

    font-size: 1.8rem;
    font-weight: 700;

}

.score-separator {

    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);

}

/* ==========================================================
   Indgange
   ========================================================== */

.innings-box {

    text-align: center;

}

.innings-box label {

    display: block;
    margin-bottom: 6px;

    color: var(--text-muted);

}

.innings-box input {

    width: 90px;
    text-align: center;

}

/* ==========================================================
   Højeste serie
   ========================================================== */

.player-extra label {

    display: block;
    margin-bottom: 6px;

    color: var(--text-muted);

}

.player-extra input {

    width: 90px;

}

.highest_break-box {

    text-align: center;

}

.highest_break input {

    width: 90px;
    text-align: center;

}

.match-player.away .player-extra {

    display: flex;
    flex-direction: column;
    align-items: flex-end;

}



/*==============
Player details
==============*/

.player-stats{
    margin-top:12px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.player-stats div{
    display:flex;
    justify-content:space-between;
    font-size:.9rem;
}

.player-stats strong{
    color:#fff;
    font-weight:700;
}




.player-stat{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:6px;
}

.match-point{

    width:30px;
    height:30px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;
    font-size:0.95rem;

    color:#fff;

}

/* Tabt */

.point-0{

    background:#5c6570;

}

/* Uafgjort */

.point-1{

    background:#2563eb;

}

/* Vundet */

.point-2{

    background:#16a34a;

}


.match-point{

    width:32px;
    height:32px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    color:#fff;

    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.25),
        inset 0 -3px 5px rgba(0,0,0,.35);

}

