:root {
    color-scheme: light;
    --ink: #14171f;
    --muted: #626a78;
    --line: #dfe3ea;
    --paper: #ffffff;
    --bg: #f4f6f9;
    --accent: #c4162a;
    --accent-dark: #961223;
    --green: #137a5b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-grid {
    min-height: 72px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    border-radius: 6px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
}

.search {
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 8px;
}

.search input,
.search button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.search input {
    padding: 0 14px;
    background: #fbfcfe;
}

.search button {
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

.hero {
    background: linear-gradient(120deg, #161a22 0%, #2b3039 52%, #6d1521 100%);
    color: #fff;
}

.hero-inner {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: center;
    padding: 44px 0;
}

.kicker {
    color: #ffccd3;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 13px;
}

.kicker.dark {
    color: var(--accent);
    margin: 0 0 6px;
}

h1 {
    margin: 10px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .95;
    letter-spacing: 0;
    max-width: 820px;
}

.lead {
    max-width: 620px;
    font-size: 19px;
    line-height: 1.55;
    color: #e8ebf0;
}

.status-panel {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .08);
}

.status-panel span,
.status-panel small {
    display: block;
    color: #d6dbe4;
}

.status-panel strong {
    display: block;
    margin: 8px 0;
    font-size: 24px;
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 0;
}

.worldcup {
    margin-top: 22px;
    margin-bottom: 4px;
}

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

.section-title h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.section-title span,
.muted {
    color: var(--muted);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-column {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.match-column h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.match-card {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.match-card span,
.match-card small {
    color: var(--muted);
    font-size: 13px;
}

.match-card strong {
    line-height: 1.25;
}

.match-card-next strong {
    color: var(--accent-dark);
}

.categories a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-weight: 700;
}

.categories a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
}

.feed {
    display: grid;
    gap: 12px;
}

.story,
.sources {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.story {
    padding: 18px;
}

.story h2 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.2;
}

.story-large h2 {
    font-size: 24px;
}

.story h2 a:hover,
.source-line a:hover,
.sources a:hover span {
    color: var(--accent);
}

.story p {
    margin: 0;
    color: #3d4350;
    line-height: 1.55;
}

.story-meta,
.source-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.story-meta span:first-child {
    color: var(--green);
    font-weight: 800;
}

.source-line {
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.source-line a {
    color: var(--accent-dark);
    font-weight: 800;
}

.sources {
    padding: 16px;
    position: sticky;
    top: 92px;
}

.sources h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.sources a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.sources small {
    color: var(--muted);
}

.empty {
    padding: 28px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
}

.site-footer {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 860px) {
    .header-grid,
    .hero-inner,
    .top-grid,
    .content-grid,
    .match-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: static;
    }

    .header-grid {
        padding: 14px 0;
    }

    .search {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
    }

    .sources {
        position: static;
    }

    .section-title {
        display: grid;
        align-items: start;
    }

    .site-footer .wrap {
        display: grid;
    }
}
