/* =========================================================
   SUPERSTATS – MODERNE KAMPSIDE
   Isoleret under .ss-match-page
   ========================================================= */

.ss-match-page {
    width: 100%;
    margin: 0 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #10315B;
}

.ss-match-card,
.ss-match-detail {
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6dce0;
    border-radius: 6px;
}

.ss-match-card {
    margin-bottom: 12px;
}

/* TOPLINJE */

.ss-match-meta {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    background: #104470;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
}

.ss-match-meta > div:nth-child(2) {
    text-align: center;
}

.ss-match-meta > div:last-child {
    text-align: right;
}

.ss-match-meta a {
    color: #fff !important;
    text-decoration: none;
}

/* SCOREBOARD */

.ss-match-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    align-items: center;
    min-height: 160px;
    padding: 16px 24px 14px;
}

.ss-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.ss-match-logo-link {
    display: block;
    line-height: 0;
}

.ss-match-logo {
    display: block !important;
    width: 92px !important;
    height: 92px !important;
    max-width: 92px !important;
    margin: 0 auto 8px !important;
    object-fit: contain;
}

.ss-match-team-name {
    display: block;
    max-width: 100%;
    color: #10315B !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-match-result {
    text-align: center;
}

.ss-match-result-main {
    color: #10315B;
    font-size: 46px;
    font-weight: 600;
    line-height: 50px;
    letter-spacing: -.8px;
    white-space: nowrap;
}

.ss-match-result-main span {
    display: inline-block;
    margin: 0 10px;
    font-weight: 400;
}

.ss-match-result-half {
    margin-top: 1px;
    color: #6f7d86;
    font-size: 12px;
    line-height: 18px;
}

/* FAKTA – rolig, kompakt og uden ikonstøj */

.ss-match-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 7px 10px;
    background: #f3f7fa;
    border-top: 1px solid #dce4e9;
}

.ss-match-fact {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    margin: 2px 18px 2px 0;
    font-size: 12px;
    line-height: 17px;
    white-space: nowrap;
}

.ss-match-fact-label {
    margin-right: 5px;
    color: #7b8992;
}

.ss-match-fact-value {
    color: #10315B;
}

.ss-match-fact-value a {
    color: #10315B !important;
    text-decoration: none;
}

.ss-match-fact-value a:hover {
    text-decoration: underline;
}

.ss-match-fact-secondary {
    color: #5f6f7b;
}

/* KAMPDETALJER */

.ss-match-detail {
    border-bottom: 8px solid #104470;
}

.ss-match-events {
    width: 100%;
    margin: 0 !important;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: Arial, Helvetica, sans-serif;
}

.ss-match-events td {
    box-sizing: border-box;
    height: 22px;
    padding: 1px 7px !important;
    border: 0 !important;
    border-bottom: 1px solid #e7eaed !important;
    background: #fff;
    color: #10315B;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    vertical-align: middle;
}

/* Spillere/trænere bevidst ind mod midten */
.ss-match-events td:first-child {
    width: calc(50% - 18px);
    padding-left: 4px !important;
    padding-right: 9px !important;
    text-align: right !important;
    white-space: nowrap;
}

.ss-match-events td.middle {
    width: 36px;
    padding: 1px 2px !important;
    text-align: center !important;
    white-space: nowrap;
}

.ss-match-events td:last-child {
    width: calc(50% - 18px);
    padding-left: 9px !important;
    padding-right: 4px !important;
    text-align: left !important;
    white-space: nowrap;
}

.ss-match-events a {
    color: #10315B !important;
    font-weight: 400 !important;
    text-decoration: none;
}

.ss-match-events a:hover {
    color: #104470 !important;
    text-decoration: underline;
}

.ss-match-events .minut {
    color: #7c8992 !important;
    font-size: 11px !important;
    line-height: 16px !important;
    white-space: nowrap;
}

.ss-match-events img {
    vertical-align: middle !important;
}

/* Gamle float-klasser på flag neutraliseres kun på kampsiden */
.ss-match-events img.left,
.ss-match-events img.right {
    display: inline-block !important;
    float: none !important;
    margin: 0 4px !important;
    vertical-align: middle !important;
}

/* SEKTIONER */

.ss-match-events tr.ss-match-section td {
    width: auto !important;
    height: 25px !important;
    padding: 4px 9px !important;
    background: #cfe5f2 !important;
    border-top: 1px solid #afc8d8 !important;
    border-bottom: 1px solid #afc8d8 !important;
    color: #10315B !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    text-align: left !important;
    white-space: nowrap;
}

.ss-match-events tr.ss-match-section:first-child td {
    border-top: 0 !important;
}

/* KAMPNOTE */

.ss-match-events p {
    margin: 5px 0 !important;
    padding: 0 !important;
    white-space: normal;
}

/* DELING – ikonforklaringen er fjernet */

.ss-match-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 35px;
    padding: 5px 10px;
    background: #f7f9fa;
}

.ss-match-tools-label {
    margin-right: 2px;
    color: #7b8992;
    font-size: 11px;
    line-height: 16px;
}

.ss-match-tools img {
    display: block !important;
    margin: 0 !important;
    opacity: .72;
    cursor: pointer;
}

.ss-match-tools img:hover {
    opacity: 1;
}

/* MOBIL */

@media screen and (max-width: 700px) {

    .ss-match-meta {
        grid-template-columns: 1fr 1fr;
        gap: 2px 8px;
        padding: 5px 8px;
        font-size: 11px;
        line-height: 16px;
    }

    .ss-match-meta-stadium {
        display: none;
    }

    .ss-match-scoreboard {
        grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr);
        min-height: 132px;
        padding: 13px 8px 11px;
    }

    .ss-match-logo {
        width: 70px !important;
        height: 70px !important;
        max-width: 70px !important;
        margin-bottom: 6px !important;
    }

    .ss-match-team-name {
        font-size: 12px;
        line-height: 17px;
    }

    .ss-match-result-main {
        font-size: 36px;
        line-height: 40px;
    }

    .ss-match-result-main span {
        margin: 0 5px;
    }

    .ss-match-facts {
        padding: 6px 8px;
    }

    .ss-match-fact {
        margin-right: 12px;
        font-size: 11px;
        line-height: 16px;
    }

    .ss-match-events td {
        height: 21px;
        padding-top: 1px !important;
        padding-bottom: 1px !important;
        font-size: 12px !important;
        line-height: 17px !important;
    }

    .ss-match-events td:first-child {
        padding-right: 5px !important;
    }

    .ss-match-events td.middle {
        width: 28px;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    .ss-match-events td:last-child {
        padding-left: 5px !important;
    }

    .ss-match-events tr.ss-match-section td {
        height: 23px !important;
        padding: 3px 7px !important;
        font-size: 11px !important;
    }
}


/* =========================================================
   V2 – MIDTERAKSE, TILSKUERE I TOP, ROLIGT DOMMERTEAM
   ========================================================= */

/* Stadion + tilskuere samlet i toppen */
.ss-match-meta-stadium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
}

.ss-match-meta-attendance {
    position: relative;
    padding-left: 10px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 400;
}

.ss-match-meta-attendance:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 1px;
    height: 10px;
    background: rgba(255,255,255,.32);
}

/* Dommerne er nu en separat, kompakt informationszone */
.ss-match-facts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 !important;
    background: #f7f9fa !important;
}

.ss-match-fact {
    display: flex !important;
    align-items: baseline;
    min-width: 0;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-bottom: 1px solid #e4e8eb;
    font-size: 11px !important;
    line-height: 16px !important;
    white-space: nowrap;
}

.ss-match-fact:nth-child(odd) {
    border-right: 1px solid #e4e8eb;
}

.ss-match-fact:nth-last-child(-n+2) {
    border-bottom: 0;
}

.ss-match-fact-label {
    flex: 0 0 auto;
    min-width: 72px;
    margin-right: 6px !important;
    color: #7b8992 !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.ss-match-fact-value {
    min-width: 0;
    overflow: hidden;
    color: #10315B;
    text-overflow: ellipsis;
}

/* Den vigtigste ændring: alt søger mod midteraksen */
.ss-match-events td:first-child {
    padding-left: 3px !important;
    padding-right: 4px !important;
    text-align: right !important;
}

.ss-match-events td.middle {
    width: 30px !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
}

.ss-match-events td:last-child {
    padding-left: 4px !important;
    padding-right: 3px !important;
    text-align: left !important;
}

/* Minutter er sekundære og ligger nu umiddelbart ved midten */
.ss-match-events .minut {
    display: inline-block;
    margin: 0 3px;
    color: #82909a !important;
    font-size: 10px !important;
    line-height: 15px !important;
}

/* Flagene bliver ude ved navnenes yderside.
   De skal identificere spilleren – ikke konkurrere med kampens midterakse. */
.ss-match-events img.left,
.ss-match-events img.right {
    margin-left: 4px !important;
    margin-right: 4px !important;
    opacity: .88;
}

/* Rækkerne endnu lidt tættere */
.ss-match-events td {
    height: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 17px !important;
}

.ss-match-events tr.ss-match-section td {
    height: 23px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

@media screen and (max-width: 700px) {
    .ss-match-meta-stadium {
        display: none;
    }

    .ss-match-facts {
        grid-template-columns: 1fr;
    }

    .ss-match-fact,
    .ss-match-fact:nth-child(odd),
    .ss-match-fact:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid #e4e8eb;
    }

    .ss-match-fact:last-child {
        border-bottom: 0;
    }

    .ss-match-fact-label {
        min-width: 66px;
    }

    .ss-match-events td {
        height: 20px !important;
        font-size: 12px !important;
    }

    .ss-match-events td.middle {
        width: 26px !important;
    }

    .ss-match-events .minut {
        margin-left: 2px;
        margin-right: 2px;
        font-size: 9px !important;
    }
}


/* =========================================================
   V3 – FAST MIDTERAKSE
   ========================================================= */

/* Tilskuere hører til kampresultatet, ikke metadata-linjen */
.ss-match-result {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-match-result-attendance {
    margin-top: 17px;
    color: #7b8992;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
}

/* Stadion står igen alene i midten af toplinjen */
.ss-match-meta-stadium {
    display: block !important;
    text-align: center !important;
}

/*
   Gamle SuperStats-regler på .leftalign/.rightalign rammer stadig indholdet.
   Derfor låses de tre eventkolonner eksplicit her.
*/
.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td:first-child,
.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td.rightalign:first-child {
    text-align: right !important;
}

.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td.middle {
    text-align: center !important;
}

.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td:last-child,
.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td.leftalign:last-child {
    text-align: left !important;
}

/* Alle inline-elementer følger cellens retning; ingen gamle floats må skubbe dem ud */
.ss-match-page .ss-match-events td:first-child > span,
.ss-match-page .ss-match-events td:first-child > a,
.ss-match-page .ss-match-events td:last-child > span,
.ss-match-page .ss-match-events td:last-child > a {
    float: none !important;
}

/* Midterkolonnen er den faste akse. Teksten kommer helt ind til ikonet. */
.ss-match-page .ss-match-events td:first-child {
    padding-right: 3px !important;
}

.ss-match-page .ss-match-events td.middle {
    width: 28px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ss-match-page .ss-match-events td:last-child {
    padding-left: 3px !important;
}

/* Minut/resultat er nærmest midten og mere diskret end spillernavnet */
.ss-match-page .ss-match-events .minut {
    margin-left: 3px !important;
    margin-right: 3px !important;
    color: #81909a !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

/*
   Flagene bliver på ydersiden:
   hjemme: flag – spiller – minut/pil | ikon | minut/pil – spiller – flag :ude
*/
.ss-match-page .ss-match-events img.left,
.ss-match-page .ss-match-events img.right {
    float: none !important;
    margin: 0 4px !important;
}

/* Kompakt rytme gennem mål, kort og opstillinger */
.ss-match-page .ss-match-events td {
    height: 19px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 16px !important;
}

.ss-match-page .ss-match-events tr.ss-match-section td {
    height: 23px !important;
    padding: 3px 10px !important;
    line-height: 16px !important;
}

/* Trænerikonet skal ikke skabe ekstra højde */
.ss-match-page .ss-match-events .icon.coach {
    vertical-align: middle !important;
}

@media screen and (max-width: 700px) {
    .ss-match-result-attendance {
        margin-top: 11px;
        font-size: 10px;
    }

    .ss-match-page .ss-match-events td.middle {
        width: 24px !important;
    }
}


/* =========================================================
   V4 – INDHOLDET LÅSES FYSISK TIL MIDTERAKSEN
   ========================================================= */

/* Mere afstand ned til tilskuertallet, så det ligger i bunden af scorefeltet */
.ss-match-result {
    justify-content: flex-start !important;
    padding-top: 35px;
    box-sizing: border-box;
}

.ss-match-result-attendance {
    margin-top: auto !important;
    margin-bottom: 5px;
}

/*
   Text-align var ikke nok, fordi gamle elementregler stadig påvirkede
   playerlink/flag/pile. Hver side har nu sin egen inline-flex wrapper.
*/
.ss-match-page .ss-side-content {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    align-items: center;
    gap: 0;
    float: none !important;
    white-space: nowrap;
    vertical-align: middle;
}

.ss-match-page .ss-side-home {
    justify-content: flex-end;
    text-align: right !important;
}

.ss-match-page .ss-side-away {
    justify-content: flex-start;
    text-align: left !important;
}

.ss-match-page .ss-match-events td:first-child {
    text-align: right !important;
    padding-right: 2px !important;
}

.ss-match-page .ss-match-events td:last-child {
    text-align: left !important;
    padding-left: 2px !important;
}

/* Neutralisér gamle bredder/floats inde i de nye wrappers */
.ss-match-page .ss-side-content > a,
.ss-match-page .ss-side-content > span,
.ss-match-page .ss-side-content > img {
    float: none !important;
    width: auto;
}

/* Dommerfelt: labels lidt smallere og værdierne tættere på */
.ss-match-facts {
    grid-template-columns: 1fr 1fr !important;
}

.ss-match-fact {
    padding: 5px 12px !important;
}

.ss-match-fact-label {
    min-width: 0 !important;
    width: auto !important;
    margin-right: 9px !important;
    color: #71818c !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.ss-match-fact-value {
    font-size: 11px !important;
    line-height: 16px !important;
}

/* Midteraksen gøres endnu smallere */
.ss-match-page .ss-match-events td.middle {
    width: 26px !important;
}

@media screen and (max-width: 700px) {
    .ss-match-result {
        padding-top: 25px;
    }

    .ss-match-result-attendance {
        margin-bottom: 3px;
    }

    .ss-match-page .ss-match-events td.middle {
        width: 24px !important;
    }
}


/* =========================================================
   V5 – ROBUST MIDTERAKSE + ADAPTIVT DOMMERFELT
   ========================================================= */

/*
   Text-align var stadig ikke nok i legacy-layoutet.
   Wrapperen flyttes nu fysisk til cellens inderkant med auto-margin.
*/
.ss-match-page .ss-match-events td:first-child .ss-side-home {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    justify-content: flex-end !important;
    text-align: right !important;
}

.ss-match-page .ss-match-events td:last-child .ss-side-away {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Der skal kun være ganske få pixels mellem navn/minut og kampikonet */
.ss-match-page .ss-match-events td:first-child {
    padding-right: 2px !important;
}

.ss-match-page .ss-match-events td.middle {
    width: 24px !important;
}

.ss-match-page .ss-match-events td:last-child {
    padding-left: 2px !important;
}

/* Assists skal have en lille naturlig afstand fra målscoreren */
.ss-match-page .ss-match-events .hashtag-mini {
    margin-left: 3px !important;
}

/* Dommerfeltet skal læses som kampfakta, ikke som en tabel */
.ss-match-facts {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0 !important;
    background: #f7f9fa !important;
}

.ss-match-fact {
    flex: 1 1 50%;
    box-sizing: border-box;
    min-width: 50%;
    padding: 6px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e4e8eb !important;
}

.ss-match-fact:nth-child(odd):not(:last-child) {
    border-right: 1px solid #e4e8eb !important;
}

/* Hvis der kun findes hoveddommer i ældre kampe, fylder han hele linjen */
.ss-match-fact:only-child {
    flex-basis: 100%;
    min-width: 100%;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

/* Ved ulige antal fakta får sidste element en hel, rolig linje */
.ss-match-fact:nth-child(odd):last-child:not(:first-child) {
    flex-basis: 100%;
    min-width: 100%;
    border-right: 0 !important;
}

.ss-match-fact:nth-last-child(-n+2) {
    border-bottom: 0 !important;
}

.ss-match-fact-label {
    color: #7a8790 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
}

.ss-match-fact-value {
    color: #10315B !important;
    font-size: 11px !important;
}

/* Tilskuere helt nede i scorefeltet */
.ss-match-result-attendance {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 1px;
}

@media screen and (max-width: 700px) {
    .ss-match-fact {
        flex-basis: 100%;
        min-width: 100%;
        border-right: 0 !important;
        border-bottom: 1px solid #e4e8eb !important;
    }

    .ss-match-fact:last-child {
        border-bottom: 0 !important;
    }

    .ss-match-page .ss-match-events td.middle {
        width: 22px !important;
    }
}


/* =========================================================
   V6 – FAST MIDTERPLACERING
   Vi stopper med at lade legacy-table CSS bestemme placeringen.
   ========================================================= */

/* Holdnavne i toppen: ingen understregning – heller ikke hover/visited */
.ss-match-page .ss-match-team-name,
.ss-match-page .ss-match-team-name:link,
.ss-match-page .ss-match-team-name:visited,
.ss-match-page .ss-match-team-name:hover,
.ss-match-page .ss-match-team-name:active {
    color: #10315B !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/*
   Sideindholdet forankres nu fysisk til midterkanten af hver celle.
   Det gør placeringen uafhængig af gamle .leftalign/.rightalign,
   playerlink-, flag- og tabelregler.
*/
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:first-child,
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:last-child {
    position: relative !important;
}

.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:first-child .ss-side-home {
    position: absolute !important;
    right: 2px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 4px) !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
}

.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:last-child .ss-side-away {
    position: absolute !important;
    left: 2px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 4px) !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
}

/* Midterikonet får kun den plads, det faktisk behøver */
.ss-match-page .ss-match-events td.middle {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Cellerne selv har ingen side-padding, wrapperen bestemmer afstanden */
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:first-child,
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Trænernavne følger præcis samme midterakse */
.ss-match-page .ss-match-events .ss-side-home a,
.ss-match-page .ss-match-events .ss-side-away a {
    float: none !important;
}

/* På mobil beholdes samme princip */
@media screen and (max-width: 700px) {
    .ss-match-page .ss-match-events td.middle {
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
    }
}


/* =========================================================
   V7 – RETTELSE AF DEN REELLE FEJL
   Legacy .middle gjorde midterkolonnen meget bred.
   Kolonnebredderne låses nu med COLGROUP.
   ========================================================= */

.ss-match-page table.ss-match-events {
    table-layout: fixed !important;
}

.ss-match-page table.ss-match-events col.ss-match-col-home {
    width: calc(50% - 15px) !important;
}

.ss-match-page table.ss-match-events col.ss-match-col-icon {
    width: 30px !important;
}

.ss-match-page table.ss-match-events col.ss-match-col-away {
    width: calc(50% - 15px) !important;
}

/* Nulstil enhver gammel width på cellerne */
.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td:first-child {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td.middle {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.ss-match-page table.ss-match-events tbody tr:not(.ss-match-section) > td:last-child {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Nu kan indholdet ligge naturligt helt op mod den rigtige midterkolonne */
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:first-child .ss-side-home {
    right: 3px !important;
}

.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:last-child .ss-side-away {
    left: 3px !important;
}

/* Klubnavne i toppen uden understregning */
.ss-match-page a.ss-match-team-name,
.ss-match-page a.ss-match-team-name:link,
.ss-match-page a.ss-match-team-name:visited,
.ss-match-page a.ss-match-team-name:hover,
.ss-match-page a.ss-match-team-name:active {
    text-decoration: none !important;
}


/* =========================================================
   V8 – FAST FELT TIL MINUT + UDSKIFTNINGSPIL
   ========================================================= */

/*
   Minut og pil er nu én lille komponent med fast bredde.
   Derfor står alle pile i samme lodrette linje.
*/
.ss-match-page .ss-sub-meta {
    display: inline-grid !important;
    grid-template-columns: 22px 14px;
    align-items: center !important;
    justify-content: end;
    width: 36px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    column-gap: 0;
    vertical-align: middle !important;
    white-space: nowrap;
    line-height: 17px !important;
}

/* På hjemmeholdet står minut først og pil helt inde mod midten */
.ss-match-page .ss-side-home .ss-sub-meta {
    grid-template-columns: 22px 14px;
}

/* På udeholdet spejles komponenten: pil ved midten, minut bagefter */
.ss-match-page .ss-side-away .ss-sub-meta {
    grid-template-columns: 14px 22px;
}

.ss-match-page .ss-side-away .ss-sub-meta .ss-sub-minute {
    grid-column: 2;
    grid-row: 1;
}

.ss-match-page .ss-side-away .ss-sub-meta .ss-sub-arrow {
    grid-column: 1;
    grid-row: 1;
}

.ss-match-page .ss-sub-minute {
    display: block !important;
    width: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #81909a !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 17px !important;
    text-align: center !important;
    white-space: nowrap;
}

.ss-match-page .ss-sub-arrow {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 14px !important;
    max-height: 14px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-self: center !important;
    justify-self: center !important;
    vertical-align: middle !important;
}

/* Lidt ensartet afstand mellem spiller og meta-felt */
.ss-match-page .ss-side-home .ss-sub-meta {
    margin-left: 4px !important;
}

.ss-match-page .ss-side-away .ss-sub-meta {
    margin-right: 4px !important;
}

/* De gamle .minut-regler skal ikke ramme den nye udskiftningskomponent */
.ss-match-page .ss-sub-meta .ss-sub-minute {
    transform: none !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-sub-meta {
        grid-template-columns: 20px 13px;
        width: 33px !important;
    }

    .ss-match-page .ss-side-away .ss-sub-meta {
        grid-template-columns: 13px 20px;
    }

    .ss-match-page .ss-sub-minute {
        width: 20px !important;
        font-size: 9px !important;
    }

    .ss-match-page .ss-sub-arrow {
        max-width: 13px !important;
        max-height: 13px !important;
    }
}


/* =========================================================
   V9 – STARTOPSTILLINGER RYDDES OP
   ========================================================= */

/*
   Start-11 bruger samme faste minut/pil-komponent som udskiftninger.
   Flag er fjernet fra opstillingerne, så navne og kampinformation får ro.
*/

/* Spillernavnet og udskiftningsfeltet skal stå som én stram linje */
.ss-match-page .ss-side-home,
.ss-match-page .ss-side-away {
    align-items: center !important;
}

/* En anelse mere afstand mellem navn og minut/pil, men stadig tæt på midten */
.ss-match-page .ss-side-home .ss-sub-meta {
    margin-left: 5px !important;
}

.ss-match-page .ss-side-away .ss-sub-meta {
    margin-right: 5px !important;
}

/* Pilene låses til samme optiske højde som minuttallet */
.ss-match-page .ss-sub-arrow {
    position: relative;
    top: 0 !important;
    transform: none !important;
}

/* Minutterne skal have samme baseline i både start-11 og udskiftninger */
.ss-match-page .ss-sub-minute {
    position: static !important;
    top: auto !important;
    vertical-align: middle !important;
}

/* Hold rækkerne helt kompakte */
.ss-match-page .ss-match-events td {
    line-height: 17px !important;
}


/* =========================================================
   V10 – FAST SPILLERLINJE + NY MÅLVISNING
   ========================================================= */

/* Tomme minut/pil-felter reserverer samme plads som rigtige udskiftninger */
.ss-match-page .ss-sub-meta-empty {
    visibility: hidden !important;
}

.ss-match-page .ss-sub-arrow-placeholder {
    display: block;
    width: 14px;
    height: 14px;
}

/* ---------------------------------------------------------
   MÅL
   spiller | bold | minut | stilling | minut | bold | spiller
   --------------------------------------------------------- */

.ss-match-page .ss-match-events tr.ss-goal-row > td {
    width: auto !important;
    height: 23px !important;
    padding: 0 !important;
    position: static !important;
    text-align: initial !important;
}

.ss-match-page .ss-goal-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        24px
        34px
        42px
        34px
        24px
        minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 22px;
}

.ss-match-page .ss-goal-player {
    min-width: 0;
    color: #10315B;
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
}

.ss-match-page .ss-goal-home-player {
    padding-right: 5px;
    text-align: right;
}

.ss-match-page .ss-goal-away-player {
    padding-left: 5px;
    text-align: left;
}

.ss-match-page .ss-goal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
}

.ss-match-page .ss-goal-icon .icon {
    margin: 0 !important;
    vertical-align: middle !important;
}

.ss-match-page .ss-goal-minute {
    color: #7f8d96;
    font-size: 10px;
    line-height: 17px;
    white-space: nowrap;
}

.ss-match-page .ss-goal-home-minute {
    text-align: right;
}

.ss-match-page .ss-goal-away-minute {
    text-align: left;
}

.ss-match-page .ss-goal-score {
    color: #10315B;
    font-size: 11px;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
}

.ss-match-page .ss-goal-player .hashtag-mini {
    margin-left: 3px !important;
    color: #5f6f7b;
}

.ss-match-page .ss-match-message {
    padding: 4px 8px !important;
    text-align: center !important;
    color: #5f6f7b;
    font-size: 12px !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-goal-grid {
        grid-template-columns:
            minmax(0, 1fr)
            20px
            28px
            36px
            28px
            20px
            minmax(0, 1fr);
    }

    .ss-match-page .ss-goal-player {
        font-size: 12px;
    }

    .ss-match-page .ss-goal-minute {
        font-size: 9px;
    }

    .ss-match-page .ss-goal-score {
        font-size: 10px;
    }
}


/* =========================================================
   V11 – MÅL UDEN GRAFIK
   ========================================================= */

/*
   Bold-ikonerne er fjernet. De tidligere ikonkolonner kollapses,
   så spiller, minut og stilling samles tættere omkring midten.
*/
.ss-match-page .ss-goal-grid {
    grid-template-columns:
        minmax(0, 1fr)
        0
        34px
        42px
        34px
        0
        minmax(0, 1fr) !important;
}

.ss-match-page .ss-goal-icon {
    display: none !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-goal-grid {
        grid-template-columns:
            minmax(0, 1fr)
            0
            28px
            36px
            28px
            0
            minmax(0, 1fr) !important;
    }
}


/* =========================================================
   V12 – MÅLTABEL RYDDET OP EFTER FJERNET MÅLGRAFIK
   ========================================================= */

/*
   Kun fem reelle felter:
   hjemme spiller | minut | resultat | minut | ude spiller

   Resultatet er den faste midterakse. Hjemme søger ind mod
   resultatet fra venstre, ude søger ud fra resultatet mod højre.
*/
.ss-match-page .ss-goal-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        34px
        44px
        34px
        minmax(0, 1fr) !important;
    align-items: center;
    width: 100%;
    min-height: 22px;
}

.ss-match-page .ss-goal-home-player {
    padding-right: 5px !important;
    text-align: right !important;
}

.ss-match-page .ss-goal-home-minute {
    padding: 0 !important;
    text-align: right !important;
}

.ss-match-page .ss-goal-score {
    padding: 0 3px !important;
    color: #10315B !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.ss-match-page .ss-goal-away-minute {
    padding: 0 !important;
    text-align: left !important;
}

.ss-match-page .ss-goal-away-player {
    padding-left: 5px !important;
    text-align: left !important;
}

/* De gamle ikonkolonner eksisterer ikke længere */
.ss-match-page .ss-goal-icon {
    display: none !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-goal-grid {
        grid-template-columns:
            minmax(0, 1fr)
            28px
            38px
            28px
            minmax(0, 1fr) !important;
    }
}


/* =========================================================
   V13 – KORTMINUTTER + FLAG HELT UD TIL KANTEN
   ========================================================= */

/* Kortminutter får samme rolige, faste felt som de øvrige minutter */
.ss-match-page .ss-card-minute {
    display: inline-block !important;
    width: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #81909a !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 17px !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

/*
   Flagene er tilbage, men de deltager ikke længere i spillerblokkens layout.
   De forankres fysisk helt ude ved venstre/højre kant.
*/
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:first-child,
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td:last-child {
    position: relative !important;
}

.ss-match-page .ss-lineup-flag {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center;
    height: 16px;
    line-height: 16px;
    pointer-events: none;
}

.ss-match-page .ss-lineup-flag-home {
    left: 8px !important;
    right: auto !important;
}

.ss-match-page .ss-lineup-flag-away {
    right: 8px !important;
    left: auto !important;
}

.ss-match-page .ss-lineup-flag img,
.ss-match-page .ss-lineup-flag img.left,
.ss-match-page .ss-lineup-flag img.right {
    position: static !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Flag må aldrig flytte spillernavn/minut/pil væk fra midteraksen */
.ss-match-page .ss-lineup-flag + .ss-side-home,
.ss-match-page .ss-side-away + .ss-lineup-flag {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-lineup-flag-home {
        left: 4px !important;
    }

    .ss-match-page .ss-lineup-flag-away {
        right: 4px !important;
    }

    .ss-match-page .ss-card-minute {
        width: 25px !important;
        font-size: 9px !important;
    }
}


/* =========================================================
   V14 – MINDRE FLAG + KORTMINUTTER MOD MIDTEN
   ========================================================= */

/* Flagene bevares helt ude ved kanten, men tones lidt ned i størrelse */
.ss-match-page .ss-lineup-flag img,
.ss-match-page .ss-lineup-flag img.left,
.ss-match-page .ss-lineup-flag img.right {
    width: auto !important;
    height: 11px !important;
    max-width: 17px !important;
    object-fit: contain;
}

/*
   Kortminutterne skal følge samme midterakse som mål og udskiftninger.
   Hjemme: spiller -> minut -> kort
   Ude:    kort -> minut -> spiller
*/
.ss-match-page .ss-side-home .ss-card-minute {
    margin-left: 4px !important;
    margin-right: 0 !important;
    text-align: right !important;
}

.ss-match-page .ss-side-away .ss-card-minute {
    margin-left: 0 !important;
    margin-right: 4px !important;
    text-align: left !important;
}

/* Fast, smallere minutkolonne helt op mod kortikonet */
.ss-match-page .ss-card-minute {
    width: 24px !important;
    flex: 0 0 24px !important;
    color: #81909a !important;
    font-size: 10px !important;
    line-height: 17px !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-lineup-flag img,
    .ss-match-page .ss-lineup-flag img.left,
    .ss-match-page .ss-lineup-flag img.right {
        height: 10px !important;
        max-width: 15px !important;
    }

    .ss-match-page .ss-card-minute {
        width: 22px !important;
        flex-basis: 22px !important;
        font-size: 9px !important;
    }
}


/* =========================================================
   V15 – KORTMINUTTER, FLAG-HOVER OG ASSISTS
   ========================================================= */

/* Kortminutter står nu i fast felt helt inde ved kortikonet */
.ss-match-page .ss-side-home .ss-card-minute {
    order: 99;
    margin-left: 4px !important;
    margin-right: 0 !important;
}

.ss-match-page .ss-side-away .ss-card-minute {
    order: -1;
    margin-left: 0 !important;
    margin-right: 4px !important;
}

.ss-match-page .ss-card-minute {
    display: inline-block !important;
    width: 25px !important;
    flex: 0 0 25px !important;
    padding: 0 !important;
    color: #81909a !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 17px !important;
    text-align: center !important;
    white-space: nowrap;
}

/* Flag en anelse større. Pointer-events skal være aktive for browserens title-tooltip. */
.ss-match-page .ss-lineup-flag {
    pointer-events: auto !important;
}

.ss-match-page .ss-lineup-flag img,
.ss-match-page .ss-lineup-flag img.left,
.ss-match-page .ss-lineup-flag img.right {
    height: 12px !important;
    max-width: 19px !important;
    cursor: help;
}

/* Assist er sekundær information i stedet for en tung parentes */
.ss-match-page .ss-goal-assist {
    margin-left: 5px;
    color: #7b8992 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    white-space: nowrap;
}

.ss-match-page .ss-goal-assist > span {
    color: #9aa4aa;
}

.ss-match-page .ss-goal-assist a {
    color: #5f6f7b !important;
    font-size: 10px !important;
}

.ss-match-page .ss-goal-assist a:hover {
    color: #104470 !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-lineup-flag img,
    .ss-match-page .ss-lineup-flag img.left,
    .ss-match-page .ss-lineup-flag img.right {
        height: 11px !important;
        max-width: 17px !important;
    }

    .ss-match-page .ss-card-minute {
        width: 23px !important;
        flex-basis: 23px !important;
        font-size: 9px !important;
    }

    .ss-match-page .ss-goal-assist,
    .ss-match-page .ss-goal-assist a {
        font-size: 9px !important;
    }
}


/* =========================================================
   V16 – FÆLLES MINUTAKSE GENNEM HELE KAMPTABELLEN
   ========================================================= */

:root {
    --ss-event-minute-width: 30px;
    --ss-event-action-width: 26px;
}

/*
   Fælles princip:
   hjemme: spiller | minut | hændelse
   ude:    hændelse | minut | spiller

   Minutfeltet er præcis 30px i alle sektioner.
*/

/* STARTOPSTILLINGER / INDSKIFTNINGER */
.ss-match-page .ss-sub-meta {
    grid-template-columns: var(--ss-event-minute-width) var(--ss-event-action-width) !important;
    width: calc(var(--ss-event-minute-width) + var(--ss-event-action-width)) !important;
    height: 17px !important;
}

.ss-match-page .ss-side-away .ss-sub-meta {
    grid-template-columns: var(--ss-event-action-width) var(--ss-event-minute-width) !important;
}

.ss-match-page .ss-sub-minute {
    width: var(--ss-event-minute-width) !important;
    text-align: center !important;
}

.ss-match-page .ss-sub-arrow,
.ss-match-page .ss-sub-arrow-placeholder {
    width: var(--ss-event-action-width) !important;
    max-width: var(--ss-event-action-width) !important;
    box-sizing: border-box;
}

/* KORT */
.ss-match-page .ss-card-minute {
    width: var(--ss-event-minute-width) !important;
    flex: 0 0 var(--ss-event-minute-width) !important;
    margin: 0 !important;
    text-align: center !important;
}

/*
   Kortikonet ligger i tabelens faste midterfelt.
   Minuttet slutter/begynder derfor på samme lodrette akse som
   minutkolonnen ved spillerudskiftninger.
*/
.ss-match-page .ss-side-home .ss-card-minute {
    margin-left: 0 !important;
}

.ss-match-page .ss-side-away .ss-card-minute {
    margin-right: 0 !important;
}

/* MÅL – samme minutbredde som resten */
.ss-match-page .ss-goal-grid {
    grid-template-columns:
        minmax(0, 1fr)
        var(--ss-event-minute-width)
        44px
        var(--ss-event-minute-width)
        minmax(0, 1fr) !important;
}

.ss-match-page .ss-goal-home-minute,
.ss-match-page .ss-goal-away-minute {
    width: var(--ss-event-minute-width) !important;
    box-sizing: border-box;
    text-align: center !important;
}

/* Assist ligger diskret på egen linje under målscoreren */
.ss-match-page .ss-goal-player {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    line-height: 15px !important;
}

.ss-match-page .ss-goal-home-player {
    align-items: flex-end;
}

.ss-match-page .ss-goal-away-player {
    align-items: flex-start;
}

.ss-match-page .ss-goal-player-main {
    display: block;
    white-space: nowrap;
}

.ss-match-page .ss-goal-assist {
    display: block !important;
    margin: 0 !important;
    color: #7b8992 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 12px !important;
    white-space: nowrap;
}

.ss-match-page .ss-goal-assist a {
    color: #7b8992 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.ss-match-page .ss-goal-assist a:hover {
    color: #104470 !important;
    text-decoration: underline !important;
}

/* Kun målrækker med assist får lidt ekstra højde naturligt */
.ss-match-page .ss-goal-row > td {
    height: auto !important;
    min-height: 22px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* TRÆNERE – ingen redundant figur i midten */
.ss-match-page .ss-coach-row td.middle {
    background: transparent !important;
}

.ss-match-page .ss-coach-row .ss-side-home,
.ss-match-page .ss-coach-row .ss-side-away {
    min-height: 19px;
    align-items: center !important;
}

/* Flagene forbliver diskrete helt ude ved kanten */
.ss-match-page .ss-lineup-flag img,
.ss-match-page .ss-lineup-flag img.left,
.ss-match-page .ss-lineup-flag img.right {
    height: 12px !important;
    max-width: 19px !important;
}

/* Kompakt rytme */
.ss-match-page .ss-match-events tr:not(.ss-match-section) > td {
    min-height: 19px;
}

@media screen and (max-width: 700px) {
    :root {
        --ss-event-minute-width: 27px;
        --ss-event-action-width: 23px;
    }

    .ss-match-page .ss-goal-grid {
        grid-template-columns:
            minmax(0, 1fr)
            var(--ss-event-minute-width)
            38px
            var(--ss-event-minute-width)
            minmax(0, 1fr) !important;
    }

    .ss-match-page .ss-goal-assist,
    .ss-match-page .ss-goal-assist a {
        font-size: 9px !important;
        line-height: 11px !important;
    }
}


/* =========================================================
   V17 – GENDAN PILENES PROPORTIONER + TYDELIGERE MÅLSCORE
   ========================================================= */

/*
   V16 gav selve pil-billedet bredden af hele action-feltet.
   Action-feltet skal være fast, men grafikken skal beholde sin
   naturlige størrelse og proportioner.
*/
.ss-match-page .ss-sub-arrow {
    width: auto !important;
    height: auto !important;
    max-width: 14px !important;
    max-height: 12px !important;
    object-fit: contain !important;
    align-self: center !important;
    justify-self: center !important;
}

.ss-match-page .ss-sub-arrow-placeholder {
    width: var(--ss-event-action-width) !important;
    height: 12px !important;
}

/* Resultatet ved hvert mål må gerne træde lidt tydeligere frem */
.ss-match-page .ss-goal-score {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-sub-arrow {
        max-width: 13px !important;
        max-height: 11px !important;
    }

    .ss-match-page .ss-goal-score {
        font-size: 11px !important;
    }
}


/* =========================================================
   V18 – ÉN FÆLLES LODRET MINUTAKSE
   ========================================================= */

/*
   Tabellen er 3-delt: hjemme | midte | ude.
   Derfor forankres alle minutkolonner ved de samme to punkter:
   hjemme = højre kant af hjemmefeltet
   ude   = venstre kant af udefeltet.

   Vi bruger samme bredde i Mål, Kort, Startopstillinger
   og Indskiftninger.
*/
:root {
    --ss-minute-axis: 31px;
    --ss-action-axis: 24px;
}

/* STARTOPSTILLINGER + INDSKIFTNINGER */
.ss-match-page .ss-side-home,
.ss-match-page .ss-side-away {
    position: relative !important;
}

.ss-match-page .ss-side-home .ss-sub-meta {
    display: grid !important;
    grid-template-columns: var(--ss-minute-axis) var(--ss-action-axis) !important;
    flex: 0 0 calc(var(--ss-minute-axis) + var(--ss-action-axis)) !important;
    width: calc(var(--ss-minute-axis) + var(--ss-action-axis)) !important;
    margin: 0 !important;
}

.ss-match-page .ss-side-away .ss-sub-meta {
    display: grid !important;
    grid-template-columns: var(--ss-action-axis) var(--ss-minute-axis) !important;
    flex: 0 0 calc(var(--ss-minute-axis) + var(--ss-action-axis)) !important;
    width: calc(var(--ss-minute-axis) + var(--ss-action-axis)) !important;
    margin: 0 !important;
}

.ss-match-page .ss-sub-minute {
    width: var(--ss-minute-axis) !important;
    min-width: var(--ss-minute-axis) !important;
    max-width: var(--ss-minute-axis) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* KORT: spillernavn + fast minutkolonne helt ind mod midten */
.ss-match-page .ss-side-home .ss-card-minute {
    display: inline-flex !important;
    flex: 0 0 var(--ss-minute-axis) !important;
    width: var(--ss-minute-axis) !important;
    min-width: var(--ss-minute-axis) !important;
    max-width: var(--ss-minute-axis) !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    order: 99 !important;
}

.ss-match-page .ss-side-away .ss-card-minute {
    display: inline-flex !important;
    flex: 0 0 var(--ss-minute-axis) !important;
    width: var(--ss-minute-axis) !important;
    min-width: var(--ss-minute-axis) !important;
    max-width: var(--ss-minute-axis) !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    order: -1 !important;
}

/*
   MÅL:
   hjemme spiller | minut | score | minut | ude spiller
   Minutkolonnerne har nøjagtigt samme bredde som ovenfor.
*/
.ss-match-page .ss-goal-grid {
    grid-template-columns:
        minmax(0, 1fr)
        var(--ss-minute-axis)
        44px
        var(--ss-minute-axis)
        minmax(0, 1fr) !important;
    column-gap: 0 !important;
}

.ss-match-page .ss-goal-home-minute,
.ss-match-page .ss-goal-away-minute {
    display: flex !important;
    width: var(--ss-minute-axis) !important;
    min-width: var(--ss-minute-axis) !important;
    max-width: var(--ss-minute-axis) !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/*
   Vigtigt: ingen gamle margins må forskyde minutterne i enkelte sektioner.
*/
.ss-match-page .ss-card-minute,
.ss-match-page .ss-sub-minute,
.ss-match-page .ss-goal-minute {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Pilene ligger i eget felt ved siden af minutaksen */
.ss-match-page .ss-sub-arrow {
    justify-self: center !important;
    align-self: center !important;
    width: auto !important;
    max-width: 14px !important;
    height: auto !important;
    max-height: 12px !important;
}

/* Mobile: samme princip, blot lidt smallere */
@media screen and (max-width: 700px) {
    :root {
        --ss-minute-axis: 28px;
        --ss-action-axis: 22px;
    }

    .ss-match-page .ss-goal-grid {
        grid-template-columns:
            minmax(0, 1fr)
            var(--ss-minute-axis)
            38px
            var(--ss-minute-axis)
            minmax(0, 1fr) !important;
    }
}


/* =========================================================
   V19 – STRAFFESPARK I SAMME SYSTEM SOM RESTEN AF KAMPEN
   ========================================================= */

/* Scoret straffespark/selvmål markeres diskret under målscoren */
.ss-match-page .ss-goal-score {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ss-match-page .ss-goal-score > span:first-child {
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
}

.ss-match-page .ss-goal-type {
    display: block;
    margin-top: 0;
    color: #8a969e;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 10px !important;
    text-transform: lowercase;
}

/*
   Brændte straffespark bruger præcis samme fem kolonner som Mål:
   hjemme spiller | minut | status | minut | ude spiller
   Dermed fortsætter minutaksen ubrudt.
*/
.ss-match-page .ss-match-events tr.ss-penalty-row > td {
    width: auto !important;
    height: 22px !important;
    padding: 0 !important;
    position: static !important;
    text-align: initial !important;
}

.ss-match-page .ss-penalty-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        var(--ss-minute-axis)
        44px
        var(--ss-minute-axis)
        minmax(0, 1fr);
    column-gap: 0;
    align-items: center;
    width: 100%;
    min-height: 22px;
}

.ss-match-page .ss-penalty-player {
    min-width: 0;
    color: #10315B;
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
}

.ss-match-page .ss-penalty-home-player {
    padding-right: 5px;
    text-align: right;
}

.ss-match-page .ss-penalty-away-player {
    padding-left: 5px;
    text-align: left;
}

.ss-match-page .ss-penalty-minute {
    display: flex;
    width: var(--ss-minute-axis);
    min-width: var(--ss-minute-axis);
    max-width: var(--ss-minute-axis);
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #81909a;
    font-size: 10px;
    font-weight: 400;
    line-height: 17px;
    white-space: nowrap;
}

.ss-match-page .ss-penalty-status {
    color: #a34a4a;
    font-size: 10px;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
    text-transform: lowercase;
    white-space: nowrap;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-penalty-grid {
        grid-template-columns:
            minmax(0, 1fr)
            var(--ss-minute-axis)
            38px
            var(--ss-minute-axis)
            minmax(0, 1fr);
    }

    .ss-match-page .ss-penalty-player {
        font-size: 12px;
    }

    .ss-match-page .ss-penalty-minute,
    .ss-match-page .ss-penalty-status {
        font-size: 9px;
    }
}


/* =========================================================
   V20 – KAMPNOTER
   ========================================================= */

/*
   Kampnoter ligger nederst som en rigtig del af kampboksen.
   Overskriften følger de øvrige sektionsoverskrifter, mens
   teksten får sit eget rolige indholdsfelt.
*/
.ss-match-page .ss-match-note-heading > td {
    text-align: left !important;
}

.ss-match-page .ss-match-events tr.ss-match-note-row > td {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
}

.ss-match-page .ss-match-note-text {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px 9px;
    background: #ffffff;
    color: #10315B;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Ingen løs <p>-margin må skabe luft omkring noten */
.ss-match-page .ss-match-note-row p {
    margin: 0 !important;
}

@media screen and (max-width: 700px) {
    .ss-match-page .ss-match-note-text {
        padding: 7px 9px 8px;
        font-size: 11px;
        line-height: 16px;
    }
}


/* =========================================================
   V21 – KARANTÆNER
   ========================================================= */

/* Samme indre spillerplacering som resten af kampforløbet */
.ss-match-page .ss-match-events tr.ss-quarantine-row > td:first-child,
.ss-match-page .ss-match-events tr.ss-quarantine-row > td:last-child {
    position: relative !important;
    height: 22px !important;
}

/* Karantænegrafikken ned i samme visuelle skala som pile og flag */
.ss-match-page .ss-quarantine-icon,
.ss-match-page span.icon.quarantine.ss-quarantine-icon {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: 12px 12px !important;
    vertical-align: middle !important;
}

.ss-match-page .ss-quarantine-row td.middle {
    text-align: center !important;
    vertical-align: middle !important;
}


/* =========================================================
   V22 – KARANTÆNER PÅ SAMME VANDRETTE AKSE SOM SPILLERNE
   ========================================================= */

/*
   Ikonet må ikke ligge i den centrale kampkolonne.
   Det får i stedet samme action-felt som ind/ud-pilene.
   Dermed starter/slutter spillernavnet på præcis samme x-position
   som spillerne i Startopstillinger og Indskiftninger.
*/
.ss-match-page .ss-quarantine-action {
    display: inline-flex !important;
    flex: 0 0 var(--ss-action-axis) !important;
    width: var(--ss-action-axis) !important;
    min-width: var(--ss-action-axis) !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.ss-match-page .ss-quarantine-name {
    display: inline-block !important;
    white-space: nowrap !important;
}

/*
   Legacy-karantæneikonet er en sprite. Vi skalerer ikke hele
   background-image, da det ødelægger grafikken. Selve vinduet
   gøres kompakt, mens den oprindelige sprite-position bevares.
*/
.ss-match-page .ss-quarantine-icon,
.ss-match-page span.icon.quarantine.ss-quarantine-icon {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: auto !important;
    vertical-align: middle !important;
}

/* Midterkolonnen er tom – som ved en almindelig spillerlinje */
.ss-match-page .ss-quarantine-row td.middle {
    font-size: 0 !important;
}


/* =========================================================
   V23 – NYT KARANTÆNESYMBOL + PRÆCIS SPILLERAKSE
   ========================================================= */

/*
   Karantæne er igen en central kamphændelse – samme placering
   som kortikonerne. Det gamle sprite-ikon bruges ikke længere.

   Symbolet er et lille "adgang forbudt"-mærke:
   mørkerød ring med en vandret streg. Det er enkelt nok til
   14 px og adskiller sig tydeligt fra gult/rødt kort.
*/
.ss-match-page .ss-quarantine-symbol {
    position: relative !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #b84b4b !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    vertical-align: middle !important;
}

.ss-match-page .ss-quarantine-symbol::after {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    right: 2px !important;
    top: 4px !important;
    height: 2px !important;
    border-radius: 1px !important;
    background: #b84b4b !important;
}

/*
   Den usynlige meta-plads er nøjagtig lige så bred som minut+pil
   i Startopstillinger/Indskiftninger. Derfor står karantænespillerens
   navn på samme vandrette spillerakse som alle de andre navne.
*/
.ss-match-page .ss-quarantine-placeholder {
    visibility: hidden !important;
    pointer-events: none !important;
}

.ss-match-page .ss-quarantine-name {
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Central placering identisk med advarsels-/udvisningsikoner */
.ss-match-page .ss-quarantine-row td.middle {
    font-size: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Ophæv v21/v22-regler for det gamle sprite-ikon */
.ss-match-page .ss-quarantine-icon,
.ss-match-page span.icon.quarantine.ss-quarantine-icon,
.ss-match-page .ss-quarantine-action {
    display: none !important;
}


/* =========================================================
   V24 – ENS TEKSTSTØRRELSE PÅ STRAFFE / BRÆNDT
   ========================================================= */

.ss-match-page .ss-goal-type,
.ss-match-page .ss-penalty-status {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
}


/* =========================================================
   V25 – FLAG TOOLTIP UDEN SPØRGSMÅLSTEG-MARKØR
   ========================================================= */

.ss-match-page .ss-lineup-flag,
.ss-match-page .ss-lineup-flag img {
    cursor: default !important;
}
