/* reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

h2,
h3,
h4 {
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}
/* --- */

/* scrollbar */

/* firefox */
@supports (-moz-appearance: none) {
    html {
        scrollbar-width: thin;
    }
}

/* webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C8C8C8;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* --- */

.widget {
    /* variables */
    --font-stack: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
    --c-brand-sport: #ec0918;
    --c-brand-regionales: #1b6598;
    --c-brand-epc: #f53036;
    --c-brand-epe: #0034dd;
    --c-brand: var(--c-brand-sport);
    --c-white: #fff;
    --c-black: #333;
    --c-darkgrey: #999;
    --c-lightgrey: #f2f2f2;
    /* --- */

    position: relative;
    padding-bottom: 60px;
    max-width: 100%;
    width: 100%;
    font-family: var(--font-stack);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.widget__header {
    border-top: 2px solid var(--c-brand);
    padding: 5px 20px 10px;
    background-color: var(--c-lightgrey);
}

.widget__title {
    font-size: 16px;
}

.widget__subtitle {
    font-weight: normal;
}

.widget__block:last-child {
    background-color: red;
}

.widget__match {
    padding: 10px 20px;
    color: var(--c-darkgrey);
}

.widget__match-info {
    font-weight: normal;
}

.widget__match-wrapper {
    padding-top: 8px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 75px 1fr;
    align-items: end;
    gap: 20px;
    border-bottom: 1px solid var(--c-lightgrey);
}

.widget__match-wrapper .widget__team {
    max-width: 200px;
}

.widget__match-wrapper .widget__team:last-child {
    justify-self: end;
}

.widget__match-status {
    font-size: 10px;
}

.widget__match-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.widget__match-goals {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.widget__match-goal--highlighted {
    font-weight: bold;
    color: var(--c-black);
}

@media (max-width: 480px) {
    .widget__match-wrapper {
        grid-template-columns: 70% 1fr;
        grid-template-areas:
    'team-a result'
    'team-b result';
        gap: 10px;
    }

    .widget__match .widget__team {
        grid-area: team-a;
    }

    .widget__match-wrapper .widget__team:last-child {
        grid-area: team-b;
        justify-self: start;
    }

    .widget__match-result {
        grid-area: result;
        align-items: center;
        justify-content: end;
        gap: 20px;
        flex-direction: row;
    }

    .widget__match-goals {
        flex-direction: column;
    }
}

.widget__table {
    margin: 10px;
}

.widget__table-row {
    display: grid;
    grid-template-columns: 40% repeat(7, 1fr);
    height: 45px;
    border-top: 1px solid var(--c-lightgrey);
}

.widget__table-row:last-child {
    border-bottom: 1px solid var(--c-lightgrey);
}

.widget__table-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: min(5%, 14px);
    height: 45px;
}

.widget__table-cell--highlighted {
    font-weight: bold;
    background-color: var(--c-lightgrey);
}

.widget__team {
    display: flex;
    justify-content: flex-start;
    border-left: 4px solid transparent;
}

.widget__team--highlighted {
    border-left-color: var(--c-brand);
}

.widget__team-position {
    margin-right: min(5%, 20px);
    font-weight: bold;
}

.widget__team-image {
    margin-right: 5px;
    height: 20px;
    width: 20px;
}

.widget__team-name {
    font-weight: bold;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget__team-link {
    color: var(--c-black);
}

.widget__cta {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid var(--c-lightgrey);
    background: var(--c-white);
    box-shadow: 0px -3px 16px 0px rgba(0, 0, 0, 0.10);
}

.widget__button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: var(--c-white);
    background-color: var(--c-brand);
    border: 2px solid var(--c-brand);
    border-radius: 30px;
    transition: all .3s ease;
}

.widget__button:hover {
    color: var(--c-brand);
    background-color: var(--c-white);
}