:root body.team-page:not(.home-page):not(.admin-dashboard-page) {
    background: var(--at-bg-wash) no-repeat !important;
    background-color: var(--at-bg) !important;
}

body.team-page::before {
    display: none !important;
}

.tp-root {
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    padding: 18px 0 40px;
    color: var(--at-text-1);
    font-size: 14px;
}

.tp {
    display: grid;
    gap: 16px;
}

.tp :is(a, button):focus-visible {
    outline: 2px solid var(--at-focus);
    outline-offset: 2px;
    border-radius: 6px;
}

.tp bdi {
    font-variant-numeric: var(--at-numerals);
}

.tp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
}

.tp-crumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.tp-crumbs li + li::before {
    content: "‹";
    color: var(--at-text-4);
}

.tp-crumbs a {
    color: var(--at-text-2);
}

.tp-crumbs a:hover {
    color: var(--at-text-1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-crumbs [aria-current] {
    overflow: hidden;
    max-width: 52vw;
    color: var(--at-text-1);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 16px;
    overflow: hidden;
    padding: 18px 16px 16px;
    border: 1px solid var(--at-line);
    border-radius: 18px;
    background:
        radial-gradient(120% 160% at 100% 0%, hsl(var(--crest-h, 210) 70% 45% / .22), transparent 58%),
        linear-gradient(160deg, var(--at-surface-2), var(--at-surface-1));
    box-shadow: var(--at-shadow-2);
}

.tp-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(to left, var(--at-accent), hsl(var(--crest-h, 210) 70% 50%));
}

.tp-crest,
.tp-portrait {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 20px;
    background: var(--at-logo-tile);
    box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(16, 34, 57, .08);
}

.tp-crest img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tp-portrait {
    overflow: hidden;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--at-inset);
    box-shadow: inset 0 0 0 2px var(--at-line-strong), 0 12px 28px -16px rgba(0, 0, 0, .6);
}

.tp-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

:is(.tp-crest, .tp-portrait, .tp-photo, .tp-crest-mini)::after {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: var(--at-text-2);
    font-weight: 800;
}

:is(.tp-crest, .tp-portrait, .tp-photo, .tp-crest-mini) img {
    position: relative;
    z-index: 1;
}

:is(.tp-crest, .tp-portrait, .tp-photo, .tp-crest-mini):has(img:not([hidden]))::after {
    opacity: 0;
}

:is(.tp-crest, .tp-portrait, .tp-photo, .tp-crest-mini).is-broken::after {
    opacity: 1;
}

:is(.tp-crest, .tp-portrait, .tp-photo, .tp-crest-mini, .tp-news-thumb).is-broken img {
    display: none;
}

.tp-crest::after {
    color: #0e1c2f;
    font-size: 30px;
}

.tp-portrait::after {
    font-size: 34px;
}

.tp-hero-text {
    min-width: 0;
}

.tp-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 2px;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
}

.tp-kicker-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--at-text-2);
    font-size: 13px;
    font-weight: 800;
}

a.tp-kicker-team:hover span {
    color: var(--at-text-1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-hero h1 {
    margin: 0;
    color: var(--at-text-1);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tp-latin {
    margin: 2px 0 0;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.tp-chips li {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-pill);
    background: var(--at-inset);
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
}

.tp-chips b {
    color: var(--at-text-1);
    font-weight: 800;
}

.tp-chips li.is-rank {
    border-color: var(--at-accent-line);
    background: var(--at-accent-soft);
}

.tp-chips li.is-rank b {
    color: var(--at-accent-text);
    font-size: 14px;
}

.tp-form {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--at-line);
}

.tp-form-label {
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 800;
}

.tp-form-chips {
    display: flex;
    gap: 5px;
}

.tp-chip {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tp-chip.is-w {
    background: var(--at-win);
}

.tp-chip.is-d {
    background: var(--at-draw);
}

.tp-chip.is-l {
    background: var(--at-loss);
}

.tp-chip.is-latest {
    box-shadow: 0 0 0 2px var(--at-surface-1), 0 0 0 3px currentColor;
    color: #ffffff;
}

.tp-shirt {
    position: absolute;
    inset-inline-end: 14px;
    top: 14px;
    display: grid;
    justify-items: center;
    color: var(--at-text-4);
    line-height: 1;
}

.tp-shirt small {
    font-size: 10px;
    font-weight: 700;
}

.tp-shirt b {
    color: var(--at-text-2);
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: var(--at-numerals);
}

.tp-grid {
    display: grid;
    gap: 16px;
}

.tp-main,
.tp-side {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.tp-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--at-line);
    border-radius: 16px;
    background: var(--at-surface-1);
    box-shadow: var(--at-shadow-1);
}

.tp-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    margin-bottom: 12px;
}

.tp-card-head h2 {
    margin: 0;
    color: var(--at-text-1);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.tp-count,
.tp-feature-when {
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tp-link {
    color: var(--at-text-2);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tp-link:hover {
    color: var(--at-text-1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-empty {
    margin: 0;
    padding: 18px 12px;
    border: 1px dashed var(--at-line-strong);
    border-radius: 12px;
    color: var(--at-text-3);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.tp-note {
    margin: 0 0 10px;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 600;
}

.tp-card > .tp-note:last-child {
    margin: 10px 0 0;
}

.tp-crest-mini {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
}

.tp-crest-mini img {
    object-fit: contain;
}

html:not([data-theme="light"]) .tp-crest-mini img {
    filter: var(--at-crest-halo);
}

.tp-crest-mini::after {
    border-radius: 50%;
    background: hsl(var(--crest-h, 210) 40% 34%);
    color: #ffffff;
    font-size: 10px;
}

html[data-theme="light"] .tp-crest-mini::after {
    background: hsl(var(--crest-h, 210) 40% 72%);
    color: var(--at-text-1);
}

.tp-feature {
    position: relative;
    overflow: hidden;
}

.tp-feature.is-live {
    border-color: var(--at-accent-line);
}

.tp-feature-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -4px 0 12px;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.tp-feature-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.tp-feature-team {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--at-text-1);
    text-align: center;
}

.tp-feature-team .tp-crest-mini {
    width: 52px;
    height: 52px;
}

.tp-feature-team .tp-crest-mini img {
    width: 52px;
    height: 52px;
}

.tp-feature-team .tp-crest-mini::after {
    font-size: 18px;
}

.tp-feature-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

a.tp-feature-team:hover .tp-feature-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-feature-center {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 92px;
}

.tp-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--at-text-1);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.tp-score i {
    color: var(--at-text-4);
    font-style: normal;
}

.tp-time {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--at-text-1);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.tp-time small {
    color: var(--at-text-3);
    font-size: 12px;
}

.tp-pens {
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 700;
}

.tp-countdown {
    padding: 2px 10px;
    border-radius: var(--at-r-pill);
    background: var(--at-inset);
    color: var(--at-text-2);
    font-size: 12px;
    font-weight: 800;
}

.tp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 14px;
    border: 1px solid var(--at-line-strong);
    border-radius: 12px;
    background: var(--at-inset);
    color: var(--at-text-1);
    font-size: 13px;
    font-weight: 800;
}

.tp-button:hover {
    border-color: var(--at-accent-line);
    background: var(--at-accent-soft);
}

.tp-status {
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tp-status.is-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--at-live);
}

.tp-status.is-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--at-live);
    animation: tp-pulse 1.4s ease-in-out infinite;
}

@keyframes tp-pulse {
    50% {
        opacity: .35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-status.is-live i {
        animation: none;
    }
}

.tp-matches,
.tp-people,
.tp-news-list,
.tp-apps {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
        "meta meta end"
        "home center away";
    align-items: center;
    gap: 8px 6px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--at-surface-2);
    color: var(--at-text-1);
}

.tp-match:hover {
    border-color: var(--at-line-strong);
}

.tp-match.is-live {
    border-color: var(--at-accent-line);
}

.tp-match-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 700;
}

.tp-match-meta span {
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-match-meta time {
    margin-inline-start: auto;
    white-space: nowrap;
}

.tp-match-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
}

.tp-match-team.is-home {
    grid-area: home;
    justify-content: flex-end;
    text-align: left;
}

.tp-match-team.is-away {
    grid-area: away;
    justify-content: flex-start;
}

.tp-match-team.is-self {
    font-weight: 800;
}

.tp-match-team .tp-crest-mini,
.tp-match-team .tp-crest-mini img {
    width: 24px;
    height: 24px;
}

.tp-team-name {
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-match-center {
    grid-area: center;
    display: grid;
    justify-items: center;
    min-width: 54px;
}

.tp-match-center .tp-score {
    gap: 4px;
    font-size: 16px;
}

.tp-match-center .tp-time {
    font-size: 14px;
}

.tp-match-center .tp-time small {
    font-size: 10px;
}

.tp-match-center .tp-pens {
    font-size: 10px;
}

.tp-match-end {
    grid-area: end;
    display: grid;
    justify-items: end;
}

.tp-squad-group + .tp-squad-group {
    margin-top: 14px;
}

.tp-squad-group h3,
.tp-leaders-col h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--at-text-2);
    font-size: 13px;
    font-weight: 800;
}

.tp-squad-group h3 span {
    padding: 0 7px;
    border-radius: var(--at-r-pill);
    background: var(--at-inset);
    color: var(--at-text-3);
    font-size: 11px;
}

.tp-people {
    grid-template-columns: minmax(0, 1fr);
}

.tp-person {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 6px 10px 6px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--at-surface-2);
    color: var(--at-text-1);
}

.tp-person:hover {
    border-color: var(--at-line-strong);
}

.tp-photo {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--at-inset);
    box-shadow: inset 0 0 0 1px var(--at-line);
}

.tp-photo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    object-position: top;
}

.tp-photo::after {
    font-size: 15px;
}

.tp-person-text {
    display: grid;
    min-width: 0;
}

.tp-person-text b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-person-text small {
    overflow: hidden;
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-num {
    min-width: 30px;
    color: var(--at-text-4);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: var(--at-numerals);
}

.tp-people.is-ranked {
    counter-reset: tp-rank;
}

.tp-people.is-ranked .tp-person {
    grid-template-columns: 18px auto minmax(0, 1fr) auto;
}

.tp-people.is-ranked .tp-person::before {
    counter-increment: tp-rank;
    content: counter(tp-rank);
    color: var(--at-text-4);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.tp-value {
    display: grid;
    justify-items: center;
    min-width: 40px;
    line-height: 1.1;
}

.tp-value b {
    color: var(--at-text-1);
    font-size: 18px;
    font-weight: 800;
}

.tp-value small {
    color: var(--at-text-3);
    font-size: 10px;
    font-weight: 700;
}

.tp-leaders-grid {
    display: grid;
    gap: 14px;
}

.tp-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.tp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--at-text-1);
    font-size: 12px;
    font-variant-numeric: var(--at-numerals);
}

.tp-table th {
    padding: 0 6px 8px;
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.tp-table td,
.tp-table tbody th {
    padding: 8px 6px;
    border-top: 1px solid var(--at-line);
    text-align: center;
    white-space: nowrap;
}

.tp-table th:nth-child(2),
.tp-table td:nth-child(2),
.tp-table tbody th {
    text-align: right;
}

.tp-table.is-stats th:first-child,
.tp-table.is-stats tbody th {
    text-align: right;
}

.tp-table.is-stats th:nth-child(2),
.tp-table.is-stats td:nth-child(2) {
    text-align: center;
}

.tp-table tr.is-current td {
    background: var(--at-accent-soft);
    font-weight: 800;
}

.tp-table tr.is-current td:first-child {
    border-radius: 0 10px 10px 0;
    box-shadow: inset -3px 0 0 var(--at-accent);
}

.tp-table tr.is-current td:last-child {
    border-radius: 10px 0 0 10px;
}

.tp-table-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    font-weight: 700;
}

.tp-table-team span,
.tp-table-team a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-table-team a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-table-team .tp-crest-mini,
.tp-table-team .tp-crest-mini img {
    width: 20px;
    height: 20px;
}

.tp-table-team img {
    flex: none;
}

.tp-points {
    font-weight: 800;
}

.tp-table .is-wide {
    display: none;
}

.tp-table.is-stats th,
.tp-table.is-stats td,
.tp-table.is-stats tbody th {
    padding-inline: 4px;
}

.tp-table.is-stats .tp-table-team {
    max-width: 128px;
}

.tp-card-mark {
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 20px;
    margin-inline: 2px;
    padding: 0 3px;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.tp-card-mark.is-yellow {
    background: var(--at-card-yellow);
    color: #2b2100;
}

.tp-card-mark.is-red {
    background: var(--at-card-red);
}

.tp-rating {
    display: inline-block;
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--at-success-soft);
    color: var(--at-success);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.tp-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.tp-facts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--at-line);
}

.tp-facts div:first-child {
    border-top: 0;
    padding-top: 0;
}

.tp-facts dt {
    flex: none;
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
}

.tp-facts dd {
    margin: 0;
    color: var(--at-text-1);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}

.tp-facts dd a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-news-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 12px;
    color: var(--at-text-1);
}

.tp-news-item:hover {
    background: var(--at-surface-2);
}

.tp-news-thumb {
    overflow: hidden;
    width: 96px;
    height: 64px;
    border-radius: 10px;
    background: var(--at-img-empty);
}

.tp-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-news-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tp-news-section {
    color: var(--at-accent-text);
    font-size: 11px;
    font-weight: 800;
}

.tp-news-text b {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tp-news-text time {
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 600;
}

.tp-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.tp-tile-grid div {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: var(--at-surface-2);
    text-align: center;
}

.tp-tile-grid dd {
    margin: 0;
    color: var(--at-text-1);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.tp-tile-grid dt {
    color: var(--at-text-3);
    font-size: 12px;
    font-weight: 700;
}

.tp-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "opp score"
        "line rating"
        "date date";
    align-items: center;
    gap: 4px 10px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--at-surface-2);
    color: var(--at-text-1);
}

.tp-app:hover {
    border-color: var(--at-line-strong);
}

.tp-app time {
    grid-area: date;
    color: var(--at-text-3);
    font-size: 11px;
    font-weight: 600;
}

.tp-app-opp {
    grid-area: opp;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
}

.tp-app-opp span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tp-app-opp .tp-crest-mini,
.tp-app-opp .tp-crest-mini img {
    width: 22px;
    height: 22px;
}

.tp-app-score {
    grid-area: score;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
}

.tp-app-line {
    grid-area: line;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--at-text-2);
    font-size: 12px;
    font-weight: 700;
}

.tp-app-line span.is-goal {
    color: var(--at-success);
}

.tp-app-line .tp-card-mark {
    width: 10px;
    min-width: 10px;
    height: 14px;
    padding: 0;
}

.tp-app .tp-rating {
    grid-area: rating;
    justify-self: end;
}

html[data-theme="light"] .tp-crest,
html[data-theme="light"] .tp-portrait {
    box-shadow: 0 10px 24px -16px rgba(14, 28, 47, .35), inset 0 0 0 1px rgba(14, 28, 47, .08);
}

@media (min-width: 560px) {
    .tp-hero {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 22px;
    }

    .tp-crest,
    .tp-portrait {
        width: 96px;
        height: 96px;
    }

    .tp-crest img {
        width: 76px;
        height: 76px;
    }

    .tp-portrait {
        width: 112px;
        height: 112px;
    }

    .tp-hero h1 {
        font-size: 30px;
    }

    .tp-form {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        border-top: 0;
    }

    .tp-hero.is-player {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tp-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-match-team {
        font-size: 13px;
    }

    .tp-tile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tp-table .is-wide {
        display: table-cell;
    }

    .tp-leaders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-app {
        grid-template-columns: 92px minmax(0, 1fr) auto auto auto;
        grid-template-areas: "date opp line score rating";
        gap: 10px;
    }

    .tp-shirt {
        inset-inline-end: 22px;
        top: 50%;
        transform: translateY(-50%);
    }

    .tp-shirt b {
        font-size: 44px;
    }
}

@media (min-width: 1020px) {
    .tp-root {
        padding-top: 24px;
    }

    .tp-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .tp-side .tp-leaders-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-side .tp-people {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-card {
        padding: 16px;
    }

    .tp-match {
        grid-template-columns: 170px minmax(0, 1fr) auto minmax(0, 1fr) 34px;
        grid-template-areas: "meta home center away end";
    }

    .tp-match-meta {
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 0 6px;
    }

    .tp-match-meta time {
        grid-column: 2;
        margin: 0;
    }

    .tp-feature-team .tp-crest-mini,
    .tp-feature-team .tp-crest-mini img {
        width: 64px;
        height: 64px;
    }

    .tp-score {
        font-size: 34px;
    }

    .tp-side .tp-app {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "opp score"
            "line rating"
            "date date";
    }
}
