@font-face {
    font-family: Inter;
    src: url("../fonts/Inter-nkPbRhd.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/BarlowCondensed-Bold-B69zNW3.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --canvas: #f5f6f8;
    --surface: #fff;
    --ink: #172026;
    --muted: #667080;
    --line: #e6e8ec;
    --red: #e6293f;
    --red-strong: #d31e34;
    --red-ink: #bf1a30;
    --red-soft: #fff0f2;
    --green: #19734b;
    --radius: 14px;
    --shadow: 0 2px 8px rgb(23 32 38 / 3%);
    --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font: 400 14px/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}
button,
select {
    cursor: pointer;
}
button {
    border: 0;
    color: inherit;
}
button:disabled {
    cursor: wait;
    opacity: 0.55;
}
a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
img {
    display: block;
    max-width: 100%;
}
svg {
    display: inline-block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    vertical-align: middle;
}
input,
textarea {
    min-width: 0;
}
[hidden] {
    display: none !important;
}
:focus-visible {
    outline: 3px solid #b62547;
    outline-offset: 4px;
}
::selection {
    color: #741324;
    background: #ffd6dd;
}
h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}
h1,
h2,
h3,
h4 {
    font-family: var(--heading);
    font-weight: 700;
    line-height: 1.15;
}
h1 {
    margin-bottom: 8px;
    font-size: clamp(32px, 3.3vw, 44px);
    letter-spacing: -0.45px;
}
h2 {
    margin-bottom: 16px;
    font-size: 25px;
}
h3 {
    margin-bottom: 8px;
    font-size: 22px;
}
p {
    margin-bottom: 16px;
}
small {
    font-size: 12px;
}
strong {
    font-weight: 650;
}

/* The persistent shell keeps orientation separate from the football desk. */
.app-shell {
    min-height: 100dvh;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 224px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}
.skip-link:focus {
    transform: translateY(0);
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 208px;
    padding: 29px 14px 20px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    white-space: nowrap;
    font: italic 700 32px/1 var(--heading);
    letter-spacing: -0.6px;
}
.sidebar > .wordmark {
    margin-left: 12px;
}
.score-mark {
    color: var(--red);
    font-style: normal;
    letter-spacing: -3px;
    transform: translateY(-1px);
}
.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 42px;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 49px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition:
        color 0.16s,
        background 0.16s;
}
.side-nav a svg {
    width: 23px;
    height: 23px;
}
.side-nav a:hover,
.settings-link:hover {
    background: #f6f7f9;
}
.side-nav a.active,
.side-nav a.selected,
.side-nav a[aria-current="page"] {
    color: var(--red-strong);
    background: #f8f5f6;
    font-weight: 650;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 32px;
}
.sidebar-note {
    margin: 0 15px 29px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.sidebar-note strong {
    display: block;
    margin-top: 10px;
    color: #525c6b;
    font: 700 22px/1.15 var(--heading);
}
.sidebar-note p {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.6;
}
.tiny-ball {
    font-size: 22px;
    color: #a5abb5;
}
.settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
}
.settings-link::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1.8px solid currentColor;
    border-radius: 6px;
    box-shadow: inset 0 0 0 4px var(--surface);
    background: currentColor;
    transform: rotate(30deg);
}
.workspace {
    min-height: 100dvh;
    margin-left: 208px;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 97%);
}
.breadcrumb {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
}
.breadcrumb::after {
    content: "›";
    margin-left: 12px;
    font-size: 20px;
    font-weight: 400;
    vertical-align: -1px;
}
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 470px);
    height: 42px;
    margin: 0 auto;
    padding: 0 13px;
    border: 1px solid #dfe3e9;
    border-radius: 12px;
    color: var(--muted);
    background: #fdfdfe;
    transition: border-color 0.15s;
}
.header-search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}
.header-search svg {
    width: 18px;
    height: 18px;
}
.header-search input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
}
.header-search input::placeholder {
    color: #7a8391;
}
.header-search kbd {
    color: #9ba2ae;
    font-family: inherit;
    font-size: 13px;
}
.avatar {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dce0e6;
    border-radius: 50%;
    background: #f8f9fb;
    font-size: 13px;
    font-weight: 600;
}
.mobile-wordmark,
.mobile-search,
.bottom-nav {
    display: none;
}
.connection-banner {
    padding: 11px 32px;
    border-bottom: 1px solid #efd49c;
    color: #79551a;
    background: #fff6e4;
    font-size: 12px;
}
main {
    max-width: 1440px;
    min-height: calc(100dvh - 153px);
    margin: 0 auto;
    padding: 29px 32px 32px;
    outline: none;
}
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}
.page-heading h1 {
    margin-bottom: 7px;
}
.page-heading .subtitle {
    margin-bottom: 0;
}
.subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}
.date-caption {
    flex: 0 0 auto;
    padding-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}
.app-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 32px 24px;
    color: #747d8b;
    font-size: 10px;
}
.app-footer > span > span {
    margin: 0 6px;
    color: #c2c7cf;
}
.app-footer a:hover {
    color: var(--red-ink);
}

/* Shared controls retain a clear selected state and generous hit areas. */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 19px;
}
.date-controls,
.league-controls,
.segmented {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.date-controls {
    gap: 8px;
}
.league-controls {
    gap: 7px;
}
.tab,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    transition:
        background 0.16s,
        border-color 0.16s,
        color 0.16s,
        transform 0.16s;
}
.tab:hover,
.button.secondary:hover {
    border-color: #cfd3da;
    background: #fafafb;
}
.tab.selected,
.tab.active,
.tab[aria-pressed="true"],
.button.primary,
.chip-active {
    border-color: var(--red-strong);
    color: #fff;
    background: var(--red-strong);
}
.tab.selected:hover,
.tab.active:hover,
.button.primary:hover {
    border-color: #b7172b;
    background: #bd1b30;
}
.button.secondary {
    border-color: #dfe3e9;
    background: var(--surface);
}
.button.text {
    min-height: 32px;
    padding: 4px 0;
    border-color: transparent;
    color: var(--red-ink);
    background: transparent;
}
.button.text:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.button svg,
.tab svg {
    width: 17px;
    height: 17px;
}
.calendar-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 12px;
    cursor: pointer;
}
.calendar-label input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}
.calendar-label:focus-within {
    outline: 3px solid #b62547;
    outline-offset: 3px;
}
.calendar-label svg {
    width: 18px;
    height: 18px;
}
.league-glyph {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 21px;
    height: 21px;
    font: 700 12px/1 var(--heading);
}
.league-glyph.bl {
    border-radius: 3px;
    color: #fff;
    background: var(--red-strong);
}
.league-glyph.cl {
    color: #26314a;
    font-size: 21px;
}
.tab.selected .league-glyph,
.tab.active .league-glyph {
    color: inherit;
}
.icon-button {
    display: inline-grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    min-height: 36px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #647080;
    background: transparent;
}
.icon-button svg {
    width: 19px;
    height: 19px;
}
.icon-button:hover {
    color: var(--ink);
    background: #f0f2f5;
}
.icon-button.saved,
.icon-button[aria-pressed="true"] {
    color: var(--red-strong);
    background: var(--red-soft);
}
.icon-button.saved svg {
    fill: currentColor;
    fill-opacity: 0.12;
}
.form-input {
    width: 100%;
    min-height: 43px;
    padding: 10px 13px;
    border: 1px solid #dbe0e7;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    outline-offset: 3px;
}
.form-input::placeholder {
    color: #8a929e;
}
textarea.form-input {
    min-height: 105px;
    resize: vertical;
}
select.form-input {
    padding-right: 27px;
}
.refresh-row,
.saved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.refresh-row {
    margin-top: 10px;
}
.refresh-row .data-note {
    margin-top: 0;
}
.saved-head {
    margin-bottom: 16px;
}
.save-empty {
    max-width: 620px;
}

/* Match and editorial cards form one reusable visual vocabulary. */
.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}
.column,
.content-stack {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
}
.panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px 11px;
}
.panel-head h2,
.panel-head h3 {
    margin: 0;
    font-size: 23px;
}
.panel-head .button {
    flex: 0 0 auto;
    font-size: 11px;
}
.panel-body {
    padding: 6px 17px 17px;
}
.panel-body > :last-child,
.panel > p:last-child {
    margin-bottom: 0;
}
.featured-match {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(126deg, #df2038, #d71c34 58%, #bc142b);
    box-shadow: 0 5px 16px rgb(175 27 47 / 10%);
}
.featured-match::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -102px;
    bottom: -118px;
    width: 290px;
    height: 235px;
    border: 1px solid rgb(255 255 255 / 13%);
    transform: rotate(-35deg);
    background: linear-gradient(
        90deg,
        transparent 49.7%,
        rgb(255 255 255 / 10%) 49.7%,
        rgb(255 255 255 / 10%) 50.3%,
        transparent 50.3%
    );
}
.featured-match::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -9px;
    bottom: -19px;
    width: 112px;
    height: 112px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 50%;
}
.featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.featured-top h2,
.featured-top h3 {
    margin: 0;
    font-size: 23px;
}
.featured-top > span {
    font-size: 11px;
    font-weight: 600;
}
.fixture-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(106px, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    text-align: center;
}
.team-block {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
    min-width: 0;
}
.team-name {
    max-width: 100%;
    font: 700 20px/1.12 var(--heading);
    overflow-wrap: anywhere;
}
.team-badge {
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgb(0 0 0 / 5%);
    border-radius: 50%;
    color: #fff;
    background: var(--team-color, #283546);
    font: 700 12px/1 var(--heading);
    text-align: center;
    letter-spacing: -0.2px;
}
.team-badge.large {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border: 2px solid rgb(255 255 255 / 55%);
    box-shadow: 0 0 0 3px rgb(255 255 255 / 10%);
    font-size: 21px;
}
.score-big {
    display: block;
    margin: 2px 0 3px;
    font: 700 clamp(39px, 4.5vw, 57px) / 1 var(--heading);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.fixture-meta {
    font-size: 11px;
    line-height: 1.5;
}
.fixture-meta > span,
.fixture-meta small {
    display: block;
}
.fixture-meta .league-glyph {
    display: inline-grid;
}
.fixture-meta strong {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.featured-footer .button {
    border-color: #fff;
    color: var(--red-ink);
    background: #fff;
}
.featured-footer .button:hover {
    background: #fff0f2;
}
.featured-footer .icon-button {
    color: #fff;
}
.featured-footer .icon-button:hover,
.featured-footer .icon-button.saved {
    background: rgb(255 255 255 / 16%);
}
.featured-footer small,
.featured-match .muted {
    color: #ffe8ed;
}
.match-card-footer {
    padding: 10px 16px 13px;
    border-top: 1px solid var(--line);
}
.match-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 32px;
    align-items: center;
    gap: 9px;
    min-height: 63px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.match-row:first-child {
    border-top: 0;
}
.match-row > a {
    min-width: 0;
}
.match-row .icon-button {
    width: 32px;
    min-height: 36px;
    padding: 6px;
}
.match-row:hover {
    background: #fcfcfd;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}
.match-team.away {
    justify-content: flex-start;
}
.match-team .name {
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-result {
    min-width: 47px;
    padding: 4px 1px;
    text-align: center;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.match-result small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
}
.match-result.live,
.match-result .live {
    color: var(--red-strong);
}
.match-group-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 10px 0 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}
.match-group-label:first-child {
    margin-top: 0;
    padding-top: 2px;
}
.match-group-label + .match-row {
    border-top: 0;
}
.news-feature {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 231px;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    background: #112338;
}
.news-feature > img,
.news-feature > picture,
.news-feature > a > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-feature::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgb(5 17 29 / 2%) 22%,
        rgb(5 17 29 / 33%) 47%,
        rgb(5 17 29 / 90%) 100%
    );
}
.news-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 231px;
    padding: 16px;
}
.news-feature-content h2,
.news-feature-content h3 {
    margin: 8px 0 0;
    padding-right: 23px;
    font-size: 26px;
    line-height: 1.14;
    text-wrap: pretty;
}
.news-feature > .icon-button,
.news-feature-content > .icon-button {
    position: absolute;
    right: 7px;
    bottom: 9px;
    color: #fff;
}
.news-feature .icon-button:hover,
.news-feature .icon-button.saved {
    background: rgb(255 255 255 / 18%);
}
.symbol-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
}
.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.news-feature .news-meta {
    color: #edf0f5;
}
.category {
    color: var(--red-ink);
    font-weight: 650;
}
.news-feature .category {
    padding: 3px 5px;
    border-radius: 3px;
    color: #fff;
    background: var(--red-strong);
}
.news-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.news-row:first-child {
    border-top: 0;
}
.news-feature + .news-list {
    margin-top: 3px;
}
.news-row > img,
.news-row > a > img {
    flex: 0 0 76px;
    width: 76px;
    height: 72px;
    border-radius: 7px;
    object-fit: cover;
}
.news-row > div {
    min-width: 0;
    flex: 1;
}
.news-row h3 {
    margin: 6px 0 0;
    font-size: 21px;
    line-height: 1.18;
}
.news-row .icon-button {
    flex: 0 0 29px;
    width: 29px;
    padding: 5px;
    margin-right: -5px;
}
.news-row .article-summary {
    margin: 7px 0 0;
    font-size: 12px;
}
.news-list > .news-row:last-child {
    padding-bottom: 0;
}
.article-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.news-list a:hover h3,
.news-row h3 a:hover {
    color: var(--red-ink);
}
.briefing-card {
    padding: 17px;
    border: 1px solid #e5dce1;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #fffbfc, #fff 65%);
}
.briefing-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.briefing-top h2,
.briefing-top h3 {
    margin: 0;
    font-size: 22px;
}
.briefing-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--red-ink);
    background: #fbe9ee;
}
.briefing-icon svg {
    width: 19px;
    height: 19px;
}
.briefing-card p {
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 12px;
}
.briefing-card .button {
    width: 100%;
    margin-top: 2px;
}

/* Tables scroll within their panel; optional overview columns collapse first. */
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
.standings {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.standings th {
    padding: 7px 6px 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 450;
    white-space: nowrap;
}
.standings td {
    height: 42px;
    padding: 7px 6px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
}
.standings th:first-child,
.standings td:first-child {
    width: 25px;
    padding-left: 0;
    text-align: center;
}
.standings th:nth-child(2),
.standings td:nth-child(2),
.standings .club {
    text-align: left;
}
.standings td:last-child,
.standings th:last-child {
    padding-right: 0;
}
.standings .club {
    max-width: 200px;
}
.standings .club a,
.standings .club > span,
.standings .club > div {
    display: flex;
    align-items: center;
    gap: 7px;
}
.standings .club .team-badge {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    font-size: 9px;
}
.standings .points {
    color: var(--ink);
    font-weight: 700;
}
.standings tbody tr:hover {
    background: #fafbfc;
}
.standings tr.favorite {
    background: #fff4f6;
}
.table-note {
    margin: 10px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}
.wide-table {
    min-width: 620px;
    font-size: 12px;
}
.wide-table td {
    height: 51px;
}
.wide-table th {
    font-size: 11px;
}
.data-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}
.data-note a,
.table-note a,
.hint a,
.inline-notice a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dot {
    display: inline-block;
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin: 0 1px;
    border-radius: 50%;
    background: currentColor;
}
.muted {
    color: var(--muted);
}

/* Honest availability, loading, and transient interaction states. */
.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 27px 20px 30px;
    text-align: center;
}
.empty-state h2,
.empty-state h3 {
    margin: 1px 0 0;
    font-size: 24px;
}
.empty-state p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}
.empty-state .button {
    margin-top: 9px;
}
.empty-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #9099a6;
    background: #f8f9fb;
}
.empty-icon svg {
    width: 25px;
    height: 25px;
}
.inline-notice {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #e0e5ee;
    border-radius: 9px;
    color: #516071;
    background: #f4f7fb;
    font-size: 12px;
    line-height: 1.65;
}
.inline-notice p:last-child {
    margin-bottom: 0;
}
.inline-notice.error,
.error {
    color: #92263b;
}
.inline-notice.error {
    border-color: #f0cbd3;
    background: #fff1f4;
}
.loading-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 200px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--surface);
    font-size: 13px;
}
.spinner {
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7ed;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.toast {
    position: fixed;
    z-index: 90;
    right: 28px;
    bottom: 25px;
    max-width: min(390px, calc(100vw - 40px));
    padding: 13px 18px;
    border: 1px solid #303a45;
    border-radius: 11px;
    color: #fff;
    background: #202a34;
    box-shadow: 0 9px 30px rgb(14 25 35 / 20%);
    font-size: 12px;
}
.app-dialog {
    width: min(540px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 17px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 20px 80px rgb(10 20 30 / 18%);
}
.app-dialog::backdrop {
    background: rgb(12 22 32 / 48%);
    backdrop-filter: blur(3px);
}
.app-dialog > form {
    margin-top: 20px;
    text-align: right;
}
.app-dialog h2 {
    font-size: 29px;
}
.app-dialog p,
.app-dialog li {
    color: var(--muted);
    font-size: 13px;
}
.app-dialog ol,
.app-dialog ul {
    padding-left: 21px;
}
.app-dialog li + li {
    margin-top: 8px;
}
.wide-content {
    max-width: 1060px;
}
.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.content-stack > h2 {
    margin: 10px 0 -6px;
}
.hint {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
.subtle-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Discovery cards, general search, and source-linked assistant responses. */
.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1070px;
}
.feed-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    touch-action: pan-y;
}
.feed-image {
    position: relative;
    height: clamp(190px, 25vw, 285px);
    overflow: hidden;
    background: #132536;
}
.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-image .symbol-label {
    position: absolute;
    right: 12px;
    bottom: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    color: #fff;
    background: rgb(8 20 30 / 70%);
    font-size: 9px;
}
.feed-card-body {
    padding: 23px;
}
.feed-card-body h2 {
    margin: 12px 0;
    font-size: clamp(29px, 3vw, 39px);
    line-height: 1.13;
}
.feed-card-body .article-summary {
    font-size: 14px;
    line-height: 1.75;
}
.feed-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}
.feed-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 17px;
}
.feed-controls .icon-button {
    width: 42px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}
.feed-side {
    display: grid;
    gap: 17px;
}
.feed-side > .panel {
    padding: 19px;
}
.feed-side h2 {
    font-size: 24px;
}
.feed-side p,
.feed-side li {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}
.feed-side ul {
    padding-left: 17px;
    margin-bottom: 0;
}
.feed-side li + li {
    margin-top: 9px;
}
.quick-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}
.quick-queries .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
}
.search-form {
    display: flex;
    align-items: stretch;
    gap: 9px;
    margin-bottom: 16px;
}
.search-form .form-input {
    flex: 1;
}
.search-form .button {
    flex: 0 0 auto;
    padding-right: 18px;
    padding-left: 18px;
}
.search-section {
    margin-top: 23px;
}
.search-section h2 {
    margin-bottom: 10px;
}
.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.search-result:first-child {
    border-top: 0;
}
.result-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.result-identity > div {
    min-width: 0;
}
.result-identity h3,
.result-identity strong {
    display: block;
    margin: 0 0 3px;
}
.result-identity h3 {
    font-size: 21px;
}
.result-identity small {
    color: var(--muted);
    font-size: 11px;
}
.assistant-answer {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #ead8e0;
    border-radius: 12px;
    background: #fffcfd;
}
.ai-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--red-ink);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.ai-label svg {
    width: 16px;
    height: 16px;
}
.answer-text {
    color: #3e4856;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.answer-text p:last-child {
    margin-bottom: 0;
}
.answer-text a {
    color: var(--red-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #eee1e7;
}
.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #e4dfe5;
    border-radius: 6px;
    color: #5f5965;
    background: #fff;
    font-size: 10px;
    overflow-wrap: anywhere;
}
.source-chip:hover {
    border-color: #c6acb9;
    color: var(--red-ink);
}

/* Match detail, watch guidance, player identities, and device preferences. */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    margin: -5px 0 15px;
    color: var(--muted);
    font-size: 12px;
}
.back-link:hover {
    color: var(--red-ink);
}
.back-link svg {
    width: 16px;
    height: 16px;
}
.match-detail-head {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.match-detail-head .fixture-score {
    max-width: 680px;
    margin: 15px auto;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 1fr) minmax(0, 1fr);
}
.match-detail-head .score-big {
    margin: 8px 0;
    font-size: 66px;
}
.match-detail-head .team-badge.large {
    width: 68px;
    height: 68px;
    font-size: 24px;
}
.match-detail-head .team-name {
    font-size: 24px;
}
.match-detail-head .fixture-meta {
    color: var(--muted);
}
.match-detail-head > .news-meta {
    justify-content: center;
}
.match-detail {
    margin-top: 18px;
}
.detail-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 19px 0 16px;
    padding-bottom: 4px;
    overflow-x: auto;
}
.detail-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 550;
}
.detail-tab.selected,
.detail-tab.active,
.detail-tab[aria-selected="true"] {
    border-color: var(--line);
    color: var(--red-ink);
    background: #fff;
}
.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}
.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.65;
}
.timeline-event:first-child {
    border-top: 0;
}
.timeline-event h3 {
    font-size: 20px;
}
.timeline-event p {
    margin-bottom: 0;
}
.timeline-time {
    color: var(--ink);
    font: 700 22px/1.35 var(--heading);
    text-align: center;
}
.stat-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.stat-row:last-child {
    border-bottom: 0;
}
.stat-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}
.stat-values strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.stat-values > span {
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}
.stat-bars {
    display: flex;
    gap: 4px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #eef0f4;
}
.stat-bars span {
    height: 100%;
    min-width: 1%;
    background: var(--red);
}
.stat-bars span + span {
    background: #697789;
}
.watch-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 63px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.watch-link:first-child {
    border-top: 0;
}
.watch-link strong {
    display: block;
    font-size: 13px;
}
.watch-link small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}
.watch-link > svg {
    width: 18px;
    height: 18px;
    color: var(--red-ink);
}
.watch-link:hover strong {
    color: var(--red-ink);
}
.player-card {
    padding: 24px;
}
.player-card h2 {
    margin-bottom: 4px;
    font-size: 34px;
}
.player-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 20px 0 0;
}
.player-facts > div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.player-facts dt {
    color: var(--muted);
    font-size: 11px;
}
.player-facts dd {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 550;
}
.settings-section {
    padding: 20px;
}
.settings-section h2 {
    margin-bottom: 8px;
    font-size: 26px;
}
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 71px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.setting-row:first-of-type {
    border-top: 0;
}
.setting-row > div {
    min-width: 0;
}
.setting-row strong {
    display: block;
    font-size: 13px;
}
.setting-row p,
.setting-row small {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
.setting-row .button {
    flex: 0 0 auto;
}
.switch {
    position: relative;
    display: inline-block;
    flex: 0 0 43px;
    width: 43px;
    height: 25px;
    border: 0;
    border-radius: 16px;
    background: #cbd1da;
    cursor: pointer;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
    transition: transform 0.18s;
}
.switch[aria-checked="true"],
.switch.active,
.switch:has(input:checked) {
    background: var(--red-strong);
}
.switch[aria-checked="true"]::after,
.switch.active::after,
.switch:has(input:checked)::after {
    transform: translateX(18px);
}
.switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.switch:focus-within {
    outline: 3px solid #b62547;
    outline-offset: 4px;
}
.legal-copy {
    color: #566171;
    font-size: 12px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.legal-copy h3 {
    margin: 22px 0 8px;
    color: var(--ink);
    font-size: 22px;
}
.legal-copy h3:first-child {
    margin-top: 0;
}
.legal-copy a {
    color: var(--red-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-copy ul {
    padding-left: 19px;
}
.legal-copy li + li {
    margin-top: 6px;
}

@media (min-width: 1450px) {
    main {
        padding-top: 35px;
    }
    .dashboard {
        gap: 24px;
    }
    .column {
        gap: 21px;
    }
    .featured-match {
        padding: 22px;
    }
    .featured-top {
        margin-bottom: 24px;
    }
    .featured-footer {
        margin-top: 25px;
    }
    .news-feature,
    .news-feature-content {
        min-height: 260px;
    }
}

@media (max-width: 1120px) {
    .topbar {
        gap: 19px;
        padding-right: 24px;
        padding-left: 24px;
    }
    main {
        padding-right: 24px;
        padding-left: 24px;
    }
    .dashboard {
        gap: 16px;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
    .page-heading {
        gap: 10px;
    }
    .date-caption {
        display: none;
    }
    .toolbar {
        align-items: flex-start;
    }
    .league-controls {
        flex: 1 0 100%;
    }
    .panel-head {
        padding-right: 14px;
        padding-left: 14px;
    }
    .panel-body {
        padding-right: 14px;
        padding-left: 14px;
    }
    .panel-head h2 {
        font-size: 22px;
    }
    .match-row {
        gap: 6px;
    }
    .match-team {
        gap: 6px;
        font-size: 11px;
    }
    .match-team .team-badge {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 10px;
    }
    .match-result {
        min-width: 41px;
        font-size: 13px;
    }
    .news-row > img,
    .news-row > a > img {
        flex-basis: 60px;
        width: 60px;
        height: 65px;
    }
    .news-row h3 {
        font-size: 20px;
    }
    .news-meta {
        font-size: 8px;
    }
    .standings th,
    .standings td {
        padding-right: 4px;
        padding-left: 4px;
    }
    .standings .optional {
        display: none;
    }
    .feed-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(200px, 1fr);
        gap: 18px;
    }
    .app-footer {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (min-width: 761px) and (max-width: 950px) {
    .sidebar {
        width: 176px;
        padding-right: 10px;
        padding-left: 10px;
    }
    .sidebar > .wordmark {
        margin-left: 9px;
        font-size: 29px;
    }
    .side-nav a {
        gap: 11px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 13px;
    }
    .workspace {
        margin-left: 176px;
    }
    .header-search {
        max-width: 340px;
    }
    main {
        padding-right: 20px;
        padding-left: 20px;
    }
    .dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .column {
        gap: 18px;
    }
    .featured-match {
        padding: 20px;
    }
    .featured-top {
        margin-bottom: 21px;
    }
    .match-team {
        font-size: 12px;
    }
    .news-feature,
    .news-feature-content {
        min-height: 270px;
    }
    .news-row h3 {
        font-size: 23px;
    }
    .news-row > img,
    .news-row > a > img {
        flex-basis: 80px;
        width: 80px;
        height: 75px;
    }
    .news-meta {
        font-size: 9px;
    }
    .standings .optional {
        display: table-cell;
    }
    .feed-layout,
    .two-up {
        grid-template-columns: minmax(0, 1fr);
    }
    .feed-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 84px;
    }
    body {
        font-size: 13px;
    }
    .sidebar,
    .breadcrumb,
    .header-search,
    .topbar > .avatar {
        display: none;
    }
    .workspace {
        margin-left: 0;
        padding-bottom: calc(73px + env(safe-area-inset-bottom, 0px));
    }
    .topbar {
        height: 74px;
        padding: 0 20px;
        gap: 12px;
    }
    .mobile-wordmark {
        display: inline-flex;
        margin-right: auto;
        font-size: 30px;
    }
    .mobile-search {
        display: inline-grid;
        width: 39px;
        min-height: 39px;
        border: 1px solid #dfe3e9;
        border-radius: 50%;
        color: var(--ink);
    }
    .mobile-search svg {
        width: 19px;
        height: 19px;
    }
    .skip-link {
        top: 13px;
        left: 14px;
    }
    .connection-banner {
        padding: 9px 20px;
        font-size: 11px;
    }
    main {
        min-height: calc(100dvh - 219px);
        padding: 20px 20px 21px;
    }
    h1 {
        font-size: 34px;
        letter-spacing: -0.25px;
    }
    .subtitle {
        max-width: 480px;
        font-size: 13px;
        line-height: 1.65;
    }
    .page-heading {
        margin-bottom: 19px;
    }
    .page-heading h1 {
        margin-bottom: 6px;
    }
    .page-heading > .button {
        font-size: 11px;
    }
    .toolbar {
        gap: 10px;
        margin-bottom: 14px;
    }
    .date-controls {
        width: 100%;
        gap: 7px;
    }
    .date-controls .segmented {
        flex: 1;
        flex-wrap: nowrap;
    }
    .date-controls .segmented > .tab {
        flex: 1;
        padding-right: 9px;
        padding-left: 9px;
    }
    .date-controls > .tab {
        flex: 1;
    }
    .calendar-label {
        min-width: 39px;
        padding-right: 10px;
        padding-left: 10px;
    }
    .calendar-label > span {
        display: none;
    }
    .tab,
    .button {
        min-height: 40px;
        font-size: 11px;
    }
    .league-controls {
        width: 100%;
        flex-wrap: nowrap;
        gap: 7px;
    }
    .league-controls .tab {
        flex: 1;
        min-width: 0;
        padding-right: 7px;
        padding-left: 7px;
    }
    .league-controls .tab:first-child {
        flex: 0.65;
    }
    .league-controls .league-glyph {
        font-size: 11px;
    }
    .league-controls .league-glyph.cl {
        font-size: 20px;
    }
    .dashboard,
    .two-up,
    .feed-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }
    .column,
    .content-stack {
        gap: 15px;
    }
    .panel {
        border-radius: 12px;
    }
    .panel-head {
        padding: 13px 14px 9px;
    }
    .panel-head h2,
    .panel-head h3 {
        font-size: 22px;
    }
    .panel-head .button {
        min-height: 30px;
        font-size: 10px;
    }
    .panel-body {
        padding: 4px 14px 14px;
    }
    .featured-match {
        padding: 17px;
        border-radius: 12px;
    }
    .featured-top {
        margin-bottom: 19px;
    }
    .featured-top h2,
    .featured-top h3 {
        font-size: 22px;
    }
    .fixture-score {
        grid-template-columns: minmax(0, 1fr) minmax(110px, 1.15fr) minmax(
                0,
                1fr
            );
        gap: 5px;
    }
    .score-big {
        font-size: 53px;
    }
    .team-badge.large {
        width: 53px;
        height: 53px;
        flex-basis: 53px;
        font-size: 19px;
    }
    .team-name {
        font-size: 19px;
    }
    .fixture-meta {
        font-size: 10px;
    }
    .fixture-meta strong {
        font-size: 9px;
    }
    .featured-footer {
        margin-top: 20px;
    }
    .featured-footer .button {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 12px;
    }
    .match-row {
        min-height: 61px;
        gap: 8px;
    }
    .match-team {
        gap: 7px;
        font-size: 12px;
    }
    .match-team .team-badge {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 11px;
    }
    .match-result {
        min-width: 46px;
        font-size: 14px;
    }
    .match-row .icon-button {
        width: 32px;
        min-height: 40px;
    }
    .news-feature,
    .news-feature-content {
        min-height: 235px;
    }
    .news-feature-content {
        padding: 16px;
    }
    .news-feature-content h2,
    .news-feature-content h3 {
        font-size: 27px;
    }
    .news-row {
        gap: 10px;
        padding: 13px 0;
    }
    .news-row > img,
    .news-row > a > img {
        flex-basis: 76px;
        width: 76px;
        height: 74px;
    }
    .news-row h3 {
        font-size: 22px;
    }
    .news-meta {
        font-size: 9px;
    }
    .standings {
        font-size: 11px;
    }
    .standings th {
        font-size: 10px;
    }
    .standings .optional {
        display: table-cell;
    }
    .standings .extra {
        display: none;
    }
    .standings .club {
        max-width: 150px;
    }
    .wide-table {
        font-size: 12px;
    }
    .wide-table .extra,
    .wide-table .optional {
        display: table-cell;
    }
    .table-note,
    .data-note {
        font-size: 10px;
    }
    .briefing-card {
        padding: 16px;
    }
    .briefing-card .button {
        min-height: 41px;
    }
    .bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: calc(69px + env(safe-area-inset-bottom, 0px));
        padding: 8px 9px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--line);
        background: rgb(255 255 255 / 98%);
        box-shadow: 0 -3px 14px rgb(23 32 38 / 3%);
    }
    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 49px;
        border-radius: 8px;
        color: #4b5664;
        font-size: 9px;
        font-weight: 450;
        line-height: 1.2;
    }
    .bottom-nav a svg {
        width: 23px;
        height: 23px;
    }
    .bottom-nav a.active,
    .bottom-nav a.selected,
    .bottom-nav a[aria-current="page"] {
        color: var(--red-strong);
        font-weight: 650;
    }
    .bottom-nav a:hover {
        background: #faf2f4;
    }
    .app-footer {
        gap: 8px 15px;
        padding: 16px 20px 19px;
        font-size: 9px;
    }
    .toast {
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        left: 14px;
        max-width: none;
        padding: 13px 15px;
        font-size: 12px;
    }
    .app-dialog {
        padding: 21px;
        border-radius: 14px;
    }
    .empty-state {
        padding: 25px 15px;
    }
    .empty-state p {
        max-width: 340px;
    }
    .feed-layout {
        gap: 20px;
    }
    .feed-image {
        height: 240px;
    }
    .feed-card-body {
        padding: 19px;
    }
    .feed-card-body h2 {
        font-size: 34px;
    }
    .feed-card-body .article-summary {
        font-size: 13px;
    }
    .feed-actions {
        gap: 8px;
    }
    .feed-side {
        gap: 15px;
    }
    .feed-side > .panel {
        padding: 17px;
    }
    .form-input {
        min-height: 44px;
        font-size: 16px;
    }
    .search-form {
        gap: 7px;
    }
    .search-form .button {
        padding-right: 12px;
        padding-left: 12px;
    }
    .quick-queries {
        gap: 6px;
    }
    .quick-queries .button {
        min-height: 37px;
    }
    .assistant-answer {
        padding: 17px;
    }
    .answer-text {
        font-size: 13px;
    }
    .match-detail-head {
        padding: 19px 14px;
    }
    .match-detail-head .fixture-score {
        margin: 15px auto 9px;
        gap: 5px;
    }
    .match-detail-head .score-big {
        font-size: 56px;
    }
    .match-detail-head .team-badge.large {
        width: 58px;
        height: 58px;
        font-size: 21px;
    }
    .match-detail-head .team-name {
        font-size: 21px;
    }
    .detail-tabs {
        gap: 3px;
        margin: 15px 0 13px;
    }
    .detail-tab {
        min-height: 42px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 11px;
    }
    .settings-section {
        padding: 18px;
    }
    .setting-row {
        gap: 15px;
    }
    .setting-row strong {
        font-size: 12px;
    }
    .setting-row .button {
        min-height: 38px;
        padding-right: 10px;
        padding-left: 10px;
    }
    .legal-copy {
        font-size: 12px;
    }
    .player-card {
        padding: 19px;
    }
}

@media (max-width: 390px) {
    .topbar {
        height: 69px;
        padding-right: 15px;
        padding-left: 15px;
    }
    main {
        padding: 18px 14px 18px;
    }
    h1 {
        font-size: 31px;
    }
    .subtitle {
        font-size: 12px;
    }
    .toolbar {
        gap: 9px;
    }
    .date-controls {
        gap: 6px;
    }
    .date-controls .segmented {
        gap: 5px;
    }
    .date-controls .tab {
        padding-right: 8px;
        padding-left: 8px;
    }
    .league-controls {
        gap: 5px;
    }
    .league-controls .tab {
        gap: 4px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 10px;
    }
    .league-glyph {
        min-width: 18px;
    }
    .featured-match {
        padding: 15px;
    }
    .featured-top {
        margin-bottom: 17px;
    }
    .fixture-score {
        grid-template-columns: minmax(0, 1fr) minmax(98px, 1.1fr) minmax(0, 1fr);
    }
    .score-big {
        font-size: 48px;
    }
    .team-name {
        font-size: 18px;
    }
    .team-badge.large {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
        font-size: 18px;
    }
    .panel-head {
        padding-right: 12px;
        padding-left: 12px;
    }
    .panel-body {
        padding-right: 12px;
        padding-left: 12px;
    }
    .match-row {
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 29px;
        gap: 5px;
    }
    .match-team {
        gap: 5px;
        font-size: 10px;
    }
    .match-team .team-badge {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 10px;
    }
    .match-result {
        min-width: 0;
        font-size: 13px;
    }
    .match-row .icon-button {
        width: 29px;
    }
    .news-row > img,
    .news-row > a > img {
        flex-basis: 64px;
        width: 64px;
        height: 71px;
    }
    .news-row h3 {
        font-size: 21px;
    }
    .news-meta {
        font-size: 8px;
    }
    .news-feature,
    .news-feature-content {
        min-height: 225px;
    }
    .news-feature-content h2,
    .news-feature-content h3 {
        font-size: 26px;
    }
    .standings .optional {
        display: none;
    }
    .standings.wide-table .optional {
        display: table-cell;
    }
    .standings .club {
        max-width: 136px;
    }
    .feed-image {
        height: 207px;
    }
    .feed-card-body {
        padding: 17px;
    }
    .feed-card-body h2 {
        font-size: 31px;
    }
    .bottom-nav {
        padding-right: 4px;
        padding-left: 4px;
    }
    .bottom-nav a {
        font-size: 8px;
    }
    .app-footer {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Rendering contracts: the link owns the complete score row. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.settings-link::before {
    display: none;
}
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-height: 32px;
    color: var(--red-ink);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.text-link svg {
    width: 15px;
    height: 15px;
}
.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.league-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.featured-match {
    background: var(--red);
}
.featured-match .icon-button {
    color: #fff;
}
.featured-match .icon-button:hover,
.featured-match .icon-button.saved {
    background: rgb(255 255 255 / 15%);
}
.featured-footer .match-card-footer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
}
.featured-footer .match-card-footer svg {
    width: 13px;
    height: 13px;
}
.match-row {
    grid-template-columns: minmax(0, 1fr) 32px;
}
.match-row > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 59px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}
.match-group-label {
    justify-content: space-between;
}
.news-panel > .news-feature {
    margin: 0 16px;
}
.news-feature > .symbol-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 3px;
    color: #f5f7fa;
    background: rgb(8 20 30 / 65%);
    font-size: 8px;
}
.news-feature-content h3 {
    padding-right: 0;
}
.news-list {
    padding: 0 17px 16px;
}
.news-row > a {
    flex: 1;
    min-width: 0;
}
.news-row .data-note {
    margin-top: 7px;
}
.news-row h3 {
    font-size: 21px;
}
.news-row .icon-button {
    margin-top: 13px;
}
.table-panel > .table-wrap {
    padding: 0 17px;
}
.table-wrap.wide-table {
    min-width: 0;
}
.wide-table .standings {
    min-width: 620px;
    font-size: 12px;
}
.standings a.club {
    display: flex;
    align-items: center;
    gap: 7px;
}
.standings .club > .team-badge {
    display: inline-grid;
    place-items: center;
}
.standings abbr {
    text-decoration: none;
}
.table-panel > .table-note {
    margin: 10px 17px 0;
}
.saved-head {
    margin: 0;
    padding: 16px 17px 9px;
}
.saved-head h2 {
    margin: 0;
    font-size: 23px;
}
.search-section .search-result,
.panel > .search-result {
    padding-right: 17px;
    padding-left: 17px;
}
.result-identity > span {
    min-width: 0;
}
main > .segmented {
    margin-bottom: 17px;
}
.feed-card {
    position: relative;
}
.feed-card > img.feed-image {
    width: 100%;
    object-fit: cover;
}
.feed-card > .symbol-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    color: #fff;
    background: rgb(8 20 30 / 65%);
    font-size: 9px;
}
.feed-card-body > p:not(.hint) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}
.panel > .stat-row {
    padding-right: 17px;
    padding-left: 17px;
}
.panel > .watch-link {
    padding-right: 17px;
    padding-left: 17px;
}
.watch-link > div {
    flex: 1;
    min-width: 0;
}
.watch-link > svg:first-child {
    width: 22px;
    height: 22px;
    color: var(--muted);
}
input.switch {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    overflow: visible;
}
.switch:checked {
    background: var(--red-strong);
}
.switch:checked::after {
    transform: translateX(18px);
}

@media (max-width: 760px) {
    .text-link {
        font-size: 10px;
    }
    .match-row {
        grid-template-columns: minmax(0, 1fr) 32px;
    }
    .match-row > a {
        grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
        gap: 7px;
    }
    .news-panel > .news-feature {
        margin-right: 14px;
        margin-left: 14px;
    }
    .news-list {
        padding-right: 14px;
        padding-left: 14px;
    }
    .table-panel > .table-wrap {
        padding-right: 14px;
        padding-left: 14px;
    }
    .table-panel > .table-note {
        margin-right: 14px;
        margin-left: 14px;
    }
    .saved-head {
        padding: 14px 14px 9px;
    }
    .wide-table .standings .extra,
    .wide-table .standings .optional {
        display: table-cell;
    }
}
@media (max-width: 390px) {
    .match-row {
        grid-template-columns: minmax(0, 1fr) 29px;
    }
    .match-row > a {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
        gap: 5px;
    }
    .news-panel > .news-feature {
        margin-right: 12px;
        margin-left: 12px;
    }
    .news-list {
        padding-right: 12px;
        padding-left: 12px;
    }
    .table-panel > .table-wrap {
        padding-right: 12px;
        padding-left: 12px;
    }
    .table-panel > .table-note {
        margin-right: 12px;
        margin-left: 12px;
    }
    .league-label {
        font-size: 9px;
    }
    .featured-footer .match-card-footer {
        font-size: 9px;
    }
    .news-row h3 {
        font-size: 21px;
    }
    .setting-row .form-input {
        max-width: 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
@media print {
    .sidebar,
    .topbar,
    .bottom-nav,
    .toolbar,
    .icon-button,
    .toast,
    .app-footer {
        display: none !important;
    }
    .workspace {
        margin: 0;
        padding: 0;
    }
    main {
        max-width: none;
        padding: 0;
    }
    .dashboard {
        grid-template-columns: 1fr;
    }
    .panel,
    .featured-match {
        break-inside: avoid;
        box-shadow: none;
    }
    body {
        color: #172026;
        background: #fff;
    }
}

/* The compact header still provides a direct path to Lukas's settings. */
@media (min-width: 761px) {
    .table-mode {
        display: none;
    }
    .mobile-search.icon-button {
        display: none;
    }
}
@media (max-width: 760px) {
    .topbar {
        gap: 12px;
    }
    .topbar .avatar {
        display: grid;
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 11px;
    }
}
@media (max-width: 760px) {
    .wide-table:not(.expanded) .standings {
        min-width: 0;
        width: 100%;
        font-size: 11px;
    }
    .wide-table:not(.expanded) .standings .extra,
    .wide-table:not(.expanded) .standings .optional {
        display: none;
    }
    .wide-table:not(.expanded) .standings .club {
        max-width: 140px;
    }
    .table-mode {
        font-size: 10px;
        padding: 7px 9px;
    }
}
.table-scroll-hint {
    margin: 8px 17px;
    color: var(--muted);
    font-size: 11px;
}
