* {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: transparent;
    font-size: 36px;
    font-family: Helvetica, sans-serif;
}

body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.headline {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* grid-template-columns: auto auto auto; */
    grid-template-rows: 100%;
    width: 100%;
    grid-template-areas: "head-lt head-mid head-rt";
    /* justify-content: space-around; */
    align-items: center;
    background-color: dodgerblue;
    border-bottom-style: solid;
    padding: 1rem;
}

.headline #site-name img {
    max-width: 100%;
}


#match-splashpage {
    font-size: 16px;
}

/* Modernized match list styling */
#match-list-tbl {
    width: calc(100% - 3em);
    margin: 1em auto 0;
    border-collapse: separate;
    border-spacing: 0 0.35em;
    font-size: clamp(0.92em, 1.1vw, 1.1em);
    color: #0a1f33;
    max-width: 1400px;
}

#match-list-tbl tr {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(8, 32, 63, 0.12);
    border-radius: 0.9em;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

#match-list-tbl tr:not(:first-child):hover {
    box-shadow: 0 14px 28px rgba(8, 32, 63, 0.18);
    transform: translateY(-1px);
}

#match-list-tbl th,
#match-list-tbl td {
    border: 0;
    padding: 0.45em 0.65em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    text-align: left;
}

#match-list-tbl tr:first-child {
    background: linear-gradient(120deg, #0f2f55, #1f5dd8);
    color: #fff;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#match-list-tbl tr:first-child th {
    font-size: 0.9em;
    font-weight: 600;
}

#match-list-tbl tr:first-child th:first-child {
    border-radius: 0.9em 0 0 0.9em;
}

#match-list-tbl tr:first-child th:last-child {
    border-radius: 0 0.9em 0.9em 0;
}

#match-list-tbl tr:not(:first-child) td:first-child {
    width: 90px;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1.1em, 1.8vw, 1.45em);
    color: #0f2f55;
    background: transparent;
    border-radius: 0.5em;
    border: 2px solid rgba(15, 47, 85, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
    position: relative;
}

#match-list-tbl tr:not(:first-child) td:first-child::after {
    content: "→";
    margin-left: 0.35em;
    font-size: 0.9em;
    color: inherit;
    transition: transform 160ms ease;
}

#match-list-tbl tr:not(:first-child) td:first-child:hover {
    border-color: #1f5dd8;
    background: rgba(31, 93, 216, 0.1);
    color: #0b3c86;
    transform: translateY(-1px);
}

#match-list-tbl tr:not(:first-child) td:first-child:hover::after {
    transform: translateX(4px);
}

#match-list-tbl tr:not(:first-child) td:nth-child(2),
#match-list-tbl tr:not(:first-child) td:nth-child(3) {
    font-weight: 600;
    color: #0f2f55;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: clamp(0.9em, 1.15vw, 1.05em);
    text-align: left;
}

#match-list-tbl tr:not(:first-child) td:nth-child(4) {
    font-weight: 600;
    color: #0a7c59;
}

#match-list-tbl tr:not(:first-child) td:nth-child(5) {
    color: #33435c;
    font-size: clamp(1em, 1.35vw, 1.25em);
}

#match-selector-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    margin: 1.25em 0 1.5em;
    padding: 0 1em;
}

.match-selector-field {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    flex: 0 0 auto;
}

.match-selector-field label {
    font-size: 0.95em;
    font-weight: 600;
    color: #0a1f33;
    white-space: nowrap;
}

.match-selector-field select {
    padding: 0.45em 0.85em;
    border-radius: 0.6em;
    border: 1px solid rgba(10, 31, 51, 0.35);
    font-size: 1em;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(8, 32, 63, 0.08);
    width: auto;
}

.match-selector-field select:disabled {
    background: rgba(245, 246, 249, 0.9);
    color: rgba(10, 31, 51, 0.55);
    cursor: not-allowed;
}

#clearfilter-button {
    border: 0;
    border-radius: 0.6em;
    padding: 0.6em 1.2em;
    font-size: 0.95em;
    font-weight: 600;
    background: linear-gradient(120deg, #0f2f55, #1f5dd8);
    color: #fff;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
    display: none;
    align-self: center;
}

#clearfilter-button.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(8, 32, 63, 0.18);
}

#clearfilter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(8, 32, 63, 0.25);
}

