:root {
    --bg: #f3efe3;
    --bg-accent: #e3d8bf;
    --ink: #1d2a1d;
    --muted: #556256;
    --panel: rgba(255, 251, 242, 0.8);
    --panel-border: rgba(38, 55, 38, 0.12);
    --line: rgba(38, 55, 38, 0.12);
    --accent: #b8572a;
    --accent-soft: #f0c8b3;
    --accent-2: #2f6f5f;
    --accent-3: #b08a24;
    --shadow: 0 20px 70px rgba(70, 48, 22, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(184, 87, 42, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(47, 111, 95, 0.15), transparent 32%),
        linear-gradient(180deg, #efe7d6 0%, var(--bg) 48%, #efe8d9 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(29, 42, 29, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 42, 29, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 87, 42, 0.18), rgba(184, 87, 42, 0));
    pointer-events: none;
}

.hero-main {
    display: grid;
    gap: 18px;
}

.site-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.site-mark-copy {
    display: grid;
    gap: 4px;
}

.hero-kicker {
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.site-mark-title {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.site-mark-byline {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--muted);
}

.site-mark-byline a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.site-mark-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

.telegram-inline-icon {
    display: block;
    flex-shrink: 0;
}

.site-mark-byline .byline-telegram-wrap {
    color: var(--muted);
    font-size: inherit;
}

.site-mark-byline .byline-telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0 1px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(85, 98, 86, 0.35);
    padding-bottom: 1px;
    vertical-align: baseline;
}

.site-mark-byline .byline-telegram-link:hover {
    color: var(--accent-2);
    border-bottom-color: var(--accent-2);
}

.site-mark-byline .byline-telegram-label,
.site-mark-byline .byline-telegram-link span[data-i18n] {
    text-transform: uppercase;
}

.telegram-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(85, 98, 86, 0.35);
    padding-bottom: 1px;
    white-space: nowrap;
}

.telegram-contact-link:hover {
    color: var(--accent-2);
    border-bottom-color: var(--accent-2);
}

.telegram-contact-link--footer {
    border-bottom-color: rgba(47, 111, 95, 0.4);
}

.hero-copy {
    display: grid;
    gap: 10px;
    max-width: 62ch;
}

.hero-lead {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.35;
    font-weight: 700;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-self: stretch;
}

.hero-stat {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 238, 0.52));
    border: 1px solid rgba(38, 55, 38, 0.08);
}

.hero-stat span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-stat strong {
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    line-height: 1.15;
}

.hero-city-select {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent);
    padding: 0 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b8572a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 16px;
}

.hero-stat.loading strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 1.25em;
    color: transparent;
}

.hero-stat.loading strong::after {
    content: '';
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    border: 2px solid rgba(47, 111, 95, 0.18);
    border-top-color: var(--accent-2);
    animation: hero-stat-spin 0.8s linear infinite;
}

@keyframes hero-stat-spin {
    to {
        transform: rotate(360deg);
    }
}

.panel {
    backdrop-filter: blur(14px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    min-width: 0;
}

.panel-kicker,
.summary-label,
th,
.footnote {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel-kicker,
.summary-label,
.footnote {
    color: var(--muted);
    font-size: 0.78rem;
}

h2,
strong {
    margin: 0;
}

h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

main {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.panel {
    border-radius: 24px;
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.controls-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ghost-button {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(38, 55, 38, 0.2);
}

.ghost-button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.comparison-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    justify-self: start; /* don't stretch to fill the auto column */
}

.comparison-link-btn.is-copied {
    color: #0e7a48;
    border-color: #0e7a48;
}

.field {
    display: grid;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.selection-caption {
    min-height: 1.4em;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.field span {
    font-size: 0.92rem;
    color: var(--muted);
}

select {
    appearance: none;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 16px;
    color: var(--ink);
}

.city-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.city-pill input {
    accent-color: var(--accent);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.summary-card strong {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 8px 0;
}

.summary-card span {
    color: var(--muted);
}

.chart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.chart-panel.secondary {
    background: linear-gradient(180deg, rgba(47, 111, 95, 0.08), rgba(255, 251, 242, 0.84));
}

.chart-wrap {
    position: relative;
    min-height: 380px;
}

.chart-wrap.compact {
    min-height: 320px;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.standings-header {
    align-items: start;
}

.standings-table th,
.standings-table td {
    white-space: nowrap;
}

.standings-table tbody td:first-child {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--muted);
}

.standings-table tbody td:nth-child(2) {
    font-weight: 700;
}

.city-name-with-emblem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.city-emblem {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.standings-row {
    cursor: pointer;
    transition: background 140ms ease;
}

.standings-row:hover {
    background: rgba(184, 87, 42, 0.06);
}

.standings-table tbody tr.is-focus {
    background: rgba(184, 87, 42, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
}

.standings-table tbody tr.is-focus td {
    font-weight: 700;
}

.standings-table tbody tr.is-focus td:nth-child(2) {
    color: var(--accent);
}

.form-icons {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
}

.form-icon.win {
    background: #0e7a48;
}

.form-icon.draw {
    background: #b08a24;
}

.form-icon.loss {
    background: #b23f21;
}

/* ── Goal ticker ── */

.goal-ticker {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d5c45 0%, #2f6f5f 40%, #1d5c45 100%);
    box-shadow: 0 4px 24px rgba(29, 92, 69, 0.22), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.goal-ticker::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    pointer-events: none;
}

.goal-ticker-label {
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    padding: 12px 16px;
    background: rgba(0,0,0,0.15);
    border-right: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
}

.goal-ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

.goal-ticker-content {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    width: max-content;
    padding: 8px 4px;
}

.goal-ticker-content:hover {
    animation-play-state: paused;
}

.goal-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.goal-ticker-item:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

.goal-ticker-ball {
    font-size: 0.85rem;
    line-height: 1;
}

.goal-ticker-scorer {
    font-weight: 600;
    color: #ffd666;
}

.goal-ticker-vs {
    color: rgba(255,255,255,0.45);
    font-size: 0.66rem;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Matches ── */

.matches-list {
    display: grid;
    gap: 12px;
    max-height: 780px;
    overflow-y: auto;
    padding-right: 6px;
}

.matches-sentinel {
    height: 1px;
}

.match-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    max-height: none;
    overflow: hidden;
}

.match-card.is-focus {
    border-color: rgba(184, 87, 42, 0.28);
    background: rgba(184, 87, 42, 0.08);
}

.match-scoreline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.match-link-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
    padding: 4px 8px;
    cursor: pointer;
    color: var(--muted);
    transition: color 140ms ease, border-color 140ms ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.match-link-btn .match-link-label {
    display: inline;
}

.match-link-btn:hover {
    color: var(--accent);
}

.match-link-btn.is-copied {
    color: #0e7a48;
    border-color: #0e7a48;
}

.match-card.is-highlight {
    animation: match-highlight 2s ease;
}

@keyframes match-highlight {
    0%, 20% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 87, 42, 0.18); }
    100% { border-color: var(--line); box-shadow: none; }
}

.match-team {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.match-team.home {
    flex-direction: row;
}

.match-team.away {
    flex-direction: row-reverse;
}

.match-score {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.matches-filter {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.matches-filter span {
    font-size: 0.82rem;
    color: var(--muted);
}

.matches-filter select {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
}

.match-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(47, 111, 95, 0.12);
    color: var(--accent-2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.match-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 6px;
}

.match-event,
.match-event-chart-inline,
.match-no-goals {
    flex: 0 0 auto;
}

.match-body {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
    gap: 16px;
    align-items: stretch;
    min-height: 0;
    height: 332px;
}

.match-event {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 6px;
    align-items: center;
    font-size: 0.82rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease;
    white-space: nowrap;
    overflow: hidden;
}

.match-event > span:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-event-chevron {
    color: var(--muted);
    transition: transform 200ms ease, color 200ms ease;
    flex-shrink: 0;
    display: flex;
}

.match-event.is-active .match-event-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.match-event:hover,
.match-event:focus-visible,
.match-event.is-active {
    border-color: rgba(184, 87, 42, 0.25);
    background: rgba(184, 87, 42, 0.1);
}

.match-event:focus-visible {
    outline: 2px solid rgba(184, 87, 42, 0.22);
    outline-offset: 2px;
}

.match-event-chart-inline {
    display: none;
    grid-column: 1 / -1;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(47, 111, 95, 0.06), rgba(255, 255, 255, 0.7));
    overflow: hidden;
    min-height: 0;
}

.match-event-chart-inline.is-visible {
    height: 180px;
    position: relative;
}

.match-event-chart-inline canvas {
    width: 100%;
    height: 100% !important;
}

.match-event-chart-inline .match-chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.match-event-chart-inline .match-chart-empty[hidden] {
    display: none;
}

.match-chart-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(47, 111, 95, 0.08), rgba(255, 255, 255, 0.74));
    height: 100%;
    min-height: 0;
}

.match-chart-panel.is-empty {
    align-content: start;
}

.match-chart-panel.is-loading .match-chart-wrap {
    opacity: 0.82;
}

.match-chart-copy {
    display: grid;
    gap: 6px;
}

.match-chart-kicker {
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.match-chart-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
}

.match-chart-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.match-chart-wrap {
    position: relative;
    min-height: 0;
    height: 100%;
}

.match-chart-canvas {
    width: 100%;
    height: 100% !important;
}

.match-chart-empty {
    position: absolute;
    inset: 0;
    font-size: 0.9rem;
}

.match-minute {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent);
}

.match-opponent-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(38, 55, 38, 0.25);
    text-underline-offset: 2px;
    transition: text-decoration-color 140ms ease;
}

.match-opponent-link:hover {
    text-decoration-color: var(--accent);
    color: var(--accent);
}

.match-scorer-city {
    font-weight: 700;
}

.match-no-goals {
    color: var(--muted);
    font-size: 0.92rem;
}

.empty-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 1px dashed rgba(38, 55, 38, 0.16);
    border-radius: 18px;
    background: rgba(255, 251, 242, 0.52);
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.empty-state[hidden] {
    display: none !important;
}

.table-empty {
    position: static;
    margin-top: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
}

td {
    font-size: 0.96rem;
}

tbody tr:last-child td {
    border-bottom: none;
}

.positive {
    color: #0e7a48;
}

.negative {
    color: #b23f21;
}

.neutral {
    color: var(--muted);
}

.footnote {
    margin: 0;
    text-align: center;
}

.site-footer {
    margin-top: 22px;
    padding: 0 6px;
}

.site-footer p {
    margin: 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.site-footer-telegram {
    margin-top: 10px !important;
}

.site-footer a {
    color: var(--accent-2);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

@media (max-width: 960px) {
    .hero,
    .chart-layout,
    .summary-grid,
    .controls-grid {
        grid-template-columns: 1fr;
    }

    .site-mark {
        width: 100%;
        justify-content: flex-start;
    }

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

    .page-shell {
        width: min(1200px, calc(100% - 20px));
        padding-top: 20px;
    }

    .panel {
        border-radius: 20px;
    }

}

@media (max-width: 720px) {
    .page-shell {
        width: min(1200px, calc(100% - 16px));
        padding: 16px 0 40px;
    }

    .site-mark {
        gap: 12px;
    }

    .site-mark-copy {
        gap: 3px;
    }

    .site-mark-logo {
        width: 40px;
        height: 40px;
    }

    .site-mark-title {
        font-size: clamp(1.4rem, 8vw, 1.85rem);
    }

    .site-mark-byline {
        font-size: 0.76rem;
    }

    .hero {
        gap: 18px;
    }

    .hero-copy {
        gap: 8px;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        padding: 14px;
        border-radius: 16px;
    }

    .panel {
        padding: 18px;
        border-radius: 18px;
    }

    .panel-header {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .field span {
        font-size: 0.88rem;
    }

    .quick-actions {
        width: 100%;
    }

    .ghost-button {
        width: 100%;
        justify-content: center;
    }

    .matches-filter {
        width: 100%;
    }

    .city-checkboxes {
        display: grid;
        grid-template-columns: 1fr;
    }

    .city-pill {
        width: 100%;
        justify-content: flex-start;
        padding: 11px 12px;
    }

    .summary-card strong {
        font-size: 1.45rem;
    }

    .chart-wrap {
        min-height: 300px;
    }

    .chart-wrap.compact {
        min-height: 260px;
    }

    .table-wrap:not(.standings-table-wrap) {
        overflow-x: visible;
    }

    .matches-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .match-link-btn .match-link-label {
        display: none;
    }

    .match-link-btn {
        padding: 4px 6px;
    }

    .match-card {
        padding: 14px;
        max-height: none;
        border-color: rgba(38, 55, 38, 0.3);
        box-shadow: 0 2px 8px rgba(38, 55, 38, 0.08);
    }

    .match-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .match-body .match-chart-panel {
        display: none;
    }

    .match-events {
        max-height: none;
        overflow-y: visible;
    }

    .match-event-chart-inline.is-visible {
        display: block;
        height: 160px;
        position: relative;
    }

    .match-scoreline {
        gap: 6px;
    }

    .match-score {
        font-size: 1.15rem;
    }

    .match-event {
        grid-template-columns: auto auto 1fr auto;
        font-size: 0.78rem;
        padding: 4px 7px;
    }

    .empty-state {
        padding: 18px;
    }

    :not(.standings-table) > thead {
        display: none;
    }

    :not(.standings-table) > tbody {
        display: grid;
        gap: 12px;
    }

    :not(.standings-table) > tbody tr {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.56);
    }

    :not(.standings-table) td,
    :not(.standings-table) > tbody tr:last-child td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: start;
        padding: 0;
        border-bottom: none;
    }

    :not(.standings-table) td::before {
        content: attr(data-label);
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .standings-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -18px;
        padding: 0 18px 4px;
    }

    .standings-table {
        min-width: 520px;
    }

    .standings-table thead {
        display: table-header-group;
    }

    .standings-table tbody {
        display: table-row-group;
    }

    .standings-table tbody tr {
        display: table-row;
        background: transparent;
        border: none;
    }

    .standings-table th,
    .standings-table td,
    .standings-table tbody tr:last-child td {
        display: table-cell;
        padding: 8px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 0.78rem;
    }

    .standings-table th {
        font-size: 0.68rem;
    }

    .standings-table td::before {
        content: none;
    }

    .standings-table tbody td:first-child {
        width: 28px;
    }

    .standings-table tbody td:nth-child(2) {
        min-width: 80px;
    }

    .standings-table .form-icons {
        gap: 3px;
    }

    .standings-table .form-icon {
        width: 18px;
        height: 18px;
        font-size: 0.62rem;
    }
}
