.hub-detail {
    --hub-gap: clamp(14px, 2vw, 20px);
    --hub-pad: clamp(12px, 2vw, 20px);
}

.hub-detail .dp-main { gap: var(--hub-gap); }
.hub-detail .dp-card { min-width: 0; padding: var(--hub-pad); }
.hub-detail [id^="section-"] { scroll-margin-top: 90px; }
.hub-detail :is(a, [tabindex]):focus-visible { outline: 2px solid var(--directory-blue); outline-offset: 2px; }

.hub-overview {
    overflow: hidden;
    border: 1px solid var(--directory-line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: 0 4px 16px rgb(15 35 60 / 5%);
}
.hub-overview .directory-hero {
    --directory-hero-image: url('../images/ads-hero-predictions.jpg');
    gap: clamp(12px, 2.5vw, 25px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.hub-overview .directory-hero__copy::before { margin-block-end: 8px; }
.hub-overview .directory-hero h1 { font-size: clamp(24px, 3.4vw, 38px); }
.hub-overview .directory-hero::after { background-position: center, center 62%; }
.hub-overview__badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: clamp(52px, 7vw, 80px);
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 13px;
    background: #f5f8fc;
}
.hub-overview__badge img { width: 72%; height: 72%; object-fit: contain; }
.hub-overview__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    color: #d4e3f6;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.hub-overview__meta strong { color: #fff; }
.hub-overview__meta a { color: #e3efff; text-underline-offset: 2px; }
.hub-overview__links { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px var(--hub-pad); }
.hub-overview__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.hub-overview__links a[href="#section-results"],
.hub-overview__links a:hover { background: var(--directory-soft); color: var(--directory-blue); }
.hub-overview__links a:hover { text-decoration: underline; }

.hub-content,
.hub-content__matches,
.hub-content__stats { display: grid; gap: var(--hub-gap); min-width: 0; align-content: start; }
.hub-section-title,
.hub-detail #section-summary .dp-section-title {
    margin: 0 0 12px;
    padding-inline-start: 9px;
    border-inline-start: 3px solid var(--directory-gold);
    color: var(--ink);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 750;
    line-height: 1.2;
}
.hub-detail .hub-note--inline { margin: -4px 0 12px; line-height: 1.55; }
.hub-detail #section-summary .dp-summary-list { font-size: 13px; }
.hub-detail #section-summary .dp-section-title { padding-block: 0; border-block-end: 0; }
.hub-detail .hub-outcomes { height: 9px; }
.hub-detail .hub-outcomes__legend { gap: 6px 10px; font-size: 12px; font-weight: 500; }
.hub-detail .hub-outcomes__legend > span { white-space: nowrap; }
.hub-detail .hub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.hub-detail .hub-tile {
    justify-content: center;
    padding: 6px 4px;
    border-color: var(--directory-line);
    border-radius: 7px;
    background: var(--directory-soft);
}
.hub-detail .hub-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.hub-detail .hub-tile span { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }

.hub-team-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hub-team-name > :is(a, span) { min-width: 0; overflow-wrap: anywhere; }
.hub-team-name__badge { display: block; flex: 0 0 auto; width: 22px; height: 22px; object-fit: contain; }
.hub-detail .hub-table__home .hub-team-name,
.hub-detail .hub-fixtures__teams > .hub-team-name:first-child { justify-content: flex-end; text-align: end; }
.hub-detail .hub-table__home .hub-team-name__badge,
.hub-detail .hub-fixtures__teams > .hub-team-name:first-child .hub-team-name__badge { order: 1; }
.hub-detail .hub-table thead .hub-table__home { text-align: end; }
.hub-detail .hub-fixtures { border: 1px solid var(--directory-line); border-radius: 9px; }
.hub-detail .hub-fixtures li + li { border-color: var(--directory-line); }
.hub-detail .hub-fixtures li > a {
    display: grid;
    grid-template-columns: minmax(78px, .4fr) minmax(0, 2fr);
    gap: 4px 9px;
    padding: 8px;
}
.hub-detail .hub-fixtures a:hover { background: var(--directory-soft); }
.hub-detail .hub-fixtures a:hover .hub-fixtures__teams { text-decoration: none; }
.hub-detail .hub-fixtures__when { min-width: 0; font-size: 12px; white-space: normal; }
.hub-detail .hub-fixtures__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
}
.hub-detail .hub-fixtures__vs { margin: 0; font-size: 11px; }
.team-page .hub-fixtures__league { grid-column: 1 / -1; font-size: 11px; }

.hub-detail .table-scroll-wrap { border: 1px solid var(--directory-line); border-radius: 9px; }
.hub-detail .hub-table { font-size: 13px; line-height: 1.35; }
.hub-detail #section-results .hub-table { min-width: 0; }
.hub-detail #section-results .hub-table--with-league { min-width: 475px; table-layout: fixed; }
.hub-detail .hub-table--with-league .hub-table__date { width: 72px; }
.hub-detail .hub-table--with-league :is(th, td):nth-child(2) { width: 23%; }
.hub-detail .hub-table--with-league .hub-table__score { width: 52px; }
.hub-detail .hub-table th,
.hub-detail .hub-table td { padding: 8px 7px; border-color: var(--directory-line); }
.hub-detail .hub-table thead th {
    background: var(--directory-soft);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
}
.hub-detail .hub-table tbody tr:hover { background: var(--directory-soft); }
.hub-detail .hub-table__date { font-size: 11px; font-variant-numeric: tabular-nums; }
.hub-detail .hub-table__score { white-space: nowrap; }
.hub-detail .hub-table__score > :is(a, span) {
    display: inline-block;
    min-width: 32px;
    padding: 3px 4px;
    border-radius: 5px;
    background: var(--directory-soft);
    color: var(--directory-blue);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hub-detail .hub-table__score small { margin-top: 2px; font-size: 10px; }
.hub-table__competition-inline { display: none; }
.hub-table__competition-inline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hub-detail .hub-teams th:not(:first-child),
.hub-detail .hub-teams td:not(:first-child) { width: 11%; font-variant-numeric: tabular-nums; }
.team-page .hub-stats th,
.team-page .hub-stats td { font-size: 12px; }
.team-page .hub-stats td { font-variant-numeric: tabular-nums; }
.team-page :is(.hub-form, .hub-table__outcome) .hub-chip { min-width: 20px; height: 20px; font-size: 11px; }
.team-page .hub-chip--w { background: #18734d; }
.team-page .hub-chip--d { background: #526983; }
.team-page .hub-chip--l { background: #aa2d3d; }

@media (min-width: 900px) {
    .hub-content { grid-template-columns: minmax(0, 2.1fr) minmax(265px, 1fr); align-items: start; }
}
@media (max-width: 600px) {
    .hub-detail .hub-table { font-size: 12px; }
    .hub-detail .hub-table :is(th, td) { padding-inline: 4px; }
    .hub-detail .hub-table thead th { font-size: 10px; overflow-wrap: anywhere; }
    .hub-detail #section-results .hub-table:not(.hub-table--with-league) { table-layout: fixed; }
    .hub-detail #section-results .hub-table:not(.hub-table--with-league) th:first-child { width: 61px; }
    .hub-detail #section-results .hub-table:not(.hub-table--with-league) .hub-table__score { width: 43px; }
    .hub-detail .hub-table__date { font-size: 10px; white-space: nowrap; }
    .hub-detail .hub-team-name { gap: 4px; }
    .hub-detail .hub-team-name__badge { width: 17px; height: 17px; }
    .hub-detail .hub-table__score > :is(a, span) { min-width: 0; }
    .hub-detail .hub-fixtures li > a { grid-template-columns: minmax(0, 1fr); }
    .hub-detail .hub-fixtures__teams { font-size: 12px; }
}

@media (max-width: 680px) {
    .team-page #section-results .hub-table { table-layout: fixed; min-width: 0; }
    .team-page .hub-table--with-league :is(th, td):nth-child(2) { display: none; }
    .team-page #section-results .hub-table__date { width: 60px; }
    .team-page #section-results .hub-table__score { width: 42px; }
    .team-page .hub-table__outcome { width: 25px; }
    .team-page #section-results .hub-table :is(th, td) { padding-inline: 3px; }
    .team-page .hub-table__competition-inline {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
