/*
 * SoccerGrid Cards — main.css
 * CSS custom properties + layout + all card types.
 * Masonry via CSS column-count (NOT flexbox/grid).
 * BEM-like class names: .sg-card, .sg-card--stat, .sg-card__title
 */

/* =========================================================================
   1. TOKENS
   ======================================================================= */
:root {
    --sg-green:   #15803d;
    --sg-green-dk:#0f5f2c;
    --sg-slate:   #1e293b;
    --sg-gold:    #eab308;
    --sg-text:    #0f172a;
    --sg-muted:   #64748b;
    --sg-bg:      #ffffff;
    --sg-surface: #f1f5f9;
    --sg-border:  #cbd5e1;
    --sg-radius:  18px;
    --sg-radius-sm: 12px;
    --sg-gap:     18px;
    --sg-shadow:  0 2px 12px rgba(15,23,42,.07);
    --sg-shadow-hover: 0 8px 28px rgba(15,23,42,.13);
    --sg-font:    'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    --sg-font-mono: 'JetBrains Mono','Fira Code',monospace;
    --sg-transition: 220ms cubic-bezier(.4,0,.2,1);
    --sg-header-h: 60px;
    --sg-chips-h:  48px;
}

/* Dark mode opt-in via data-theme="dark" on <html> */
[data-theme="dark"] {
    --sg-text:    #f1f5f9;
    --sg-muted:   #94a3b8;
    --sg-bg:      #0f172a;
    --sg-surface: #1e293b;
    --sg-border:  #334155;
    --sg-shadow:  0 2px 12px rgba(0,0,0,.3);
    --sg-shadow-hover: 0 8px 28px rgba(0,0,0,.45);
}

/* =========================================================================
   2. RESET / BASE
   ======================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sg-bg);
    color: var(--sg-text);
    font-family: var(--sg-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--sg-green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p  { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* =========================================================================
   3. LAYOUT CONTAINERS
   ======================================================================= */
.sg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sg-container--narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.sg-page-wrap {
    min-height: calc(100vh - var(--sg-header-h));
}

/* =========================================================================
   4. HEADER
   ======================================================================= */
.sg-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sg-border);
    height: var(--sg-header-h);
}

[data-theme="dark"] .sg-header {
    background: rgba(15,23,42,.94);
}

.sg-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sg-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sg-header__logo img {
    height: 36px;
    width: auto;
}

.sg-header__logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sg-green);
    letter-spacing: -.03em;
}

/* Nav */
.sg-nav { margin-left: auto; }

.sg-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sg-nav__list li a {
    display: block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--sg-text);
    transition: background var(--sg-transition), color var(--sg-transition);
}

.sg-nav__list li a:hover,
.sg-nav__list li.current-menu-item > a {
    background: var(--sg-surface);
    color: var(--sg-green);
    text-decoration: none;
}

/* Header actions */
.sg-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sg-header__search-btn,
.sg-header__bookmark-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-muted);
    transition: background var(--sg-transition), color var(--sg-transition);
}

.sg-header__search-btn:hover,
.sg-header__bookmark-btn:hover {
    background: var(--sg-surface);
    color: var(--sg-green);
}

.sg-header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 8px;
}

.sg-header__menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--sg-text);
    border-radius: 2px;
    transition: transform var(--sg-transition), opacity var(--sg-transition);
}

/* Search overlay */
.sg-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15,23,42,.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.sg-search-overlay[hidden] { display: none; }

.sg-search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
}

.sg-search-overlay__close {
    position: absolute;
    top: -60px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================================
   5. FILTER CHIPS BAR
   ======================================================================= */
.sg-chips-bar {
    position: sticky;
    top: var(--sg-header-h);
    z-index: 100;
    background: var(--sg-bg);
    border-bottom: 1px solid var(--sg-border);
    height: var(--sg-chips-h);
}

[data-theme="dark"] .sg-chips-bar { background: var(--sg-bg); }

.sg-chips-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sg-chips-bar__inner::-webkit-scrollbar { display: none; }

.sg-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--sg-muted);
    background: var(--sg-surface);
    border: 1.5px solid transparent;
    transition: all var(--sg-transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 32px;
}

.sg-chip:hover {
    color: var(--sg-green);
    border-color: var(--sg-green);
    text-decoration: none;
    background: rgba(21,128,61,.06);
}

.sg-chip--active {
    background: var(--sg-green);
    color: #fff;
    border-color: var(--sg-green);
}

.sg-chip--active:hover {
    background: var(--sg-green-dk);
    color: #fff;
    border-color: var(--sg-green-dk);
}

/* =========================================================================
   6. MASONRY CARD GRID  (CSS column-count — true Pinterest masonry)
   ======================================================================= */
.sg-main {
    padding: 28px 0 48px;
}

.sg-grid-section {
    padding-bottom: 32px;
}

.sg-grid {
    column-count: 4;
    column-gap: var(--sg-gap);
    orphans: 1;
    widows: 1;
}

/* Every card breaks inside columns — critical for masonry */
.sg-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: var(--sg-gap);
    border-radius: var(--sg-radius);
    background: var(--sg-bg);
    border: 1.5px solid var(--sg-border);
    overflow: hidden;
    box-shadow: var(--sg-shadow);
    transition: transform var(--sg-transition), box-shadow var(--sg-transition), border-color var(--sg-transition);
    position: relative;
}

.sg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sg-shadow-hover);
    border-color: var(--sg-green);
}

.sg-card__link,
.sg-card__link-full {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sg-card__link-full {
    padding: 20px;
}

.sg-card__body {
    padding: 14px 16px 16px;
}

/* -------------------------------------------------------------------------
   6a. IMAGE CARD
   ---------------------------------------------------------------------- */
.sg-card--image .sg-card__img-wrap {
    overflow: hidden;
    border-radius: var(--sg-radius) var(--sg-radius) 0 0;
    aspect-ratio: auto;
    max-height: 260px;
}

.sg-card--image .sg-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.sg-card--image:hover .sg-card__img {
    transform: scale(1.04);
}

/* -------------------------------------------------------------------------
   6b. STAT CARD
   ---------------------------------------------------------------------- */
.sg-card--stat {
    min-height: 180px;
    border: none;
}

.sg-card--stat-green  { background: var(--sg-green); color: #fff; }
.sg-card--stat-slate  { background: var(--sg-slate); color: #fff; }
.sg-card--stat-gold   { background: var(--sg-gold);  color: var(--sg-slate); }

.sg-card--stat .sg-card__link-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    gap: 6px;
}

.sg-card__stat-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.sg-card__stat-value {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.sg-card__stat-unit {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .85;
}

.sg-card__stat-caption {
    font-size: .875rem;
    font-weight: 600;
    opacity: .9;
    margin: 0;
    line-height: 1.4;
}

.sg-card__stat-arrow {
    margin-top: 12px;
    opacity: .6;
}

.sg-card--stat:hover { border-color: transparent; }
.sg-card--stat-green:hover { background: var(--sg-green-dk); }
.sg-card--stat-slate:hover { background: #0f172a; }

/* -------------------------------------------------------------------------
   6c. QUOTE CARD
   ---------------------------------------------------------------------- */
.sg-card--quote {
    background: var(--sg-surface);
    border-color: var(--sg-border);
}

.sg-card--quote .sg-card__link-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
}

.sg-card__quote-mark {
    font-size: 5rem;
    line-height: .8;
    color: var(--sg-green);
    font-family: Georgia, serif;
    margin-bottom: -12px;
    opacity: .7;
}

.sg-card__quote-text {
    margin: 0;
    padding: 0;
    border: none;
    font-size: .9375rem;
    font-style: italic;
    font-weight: 500;
    color: var(--sg-text);
    line-height: 1.55;
}

.sg-card__quote-text p { margin: 0; }

.sg-card__quote-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.sg-card__quote-author {
    font-size: .8125rem;
    font-weight: 700;
    font-style: normal;
    color: var(--sg-green);
}

.sg-card__quote-role {
    font-size: .75rem;
    color: var(--sg-muted);
}

/* -------------------------------------------------------------------------
   6d. MATCH PREVIEW CARD
   ---------------------------------------------------------------------- */
.sg-card--match-preview {
    background: linear-gradient(135deg, var(--sg-surface) 0%, var(--sg-bg) 100%);
}

.sg-card--match-preview .sg-card__link-full {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sg-card__league-badge {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sg-muted);
    border: 1px solid var(--sg-border);
    border-radius: 6px;
    padding: 2px 8px;
    align-self: flex-start;
}

.sg-card__matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sg-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.sg-card__team-crest {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sg-surface);
    border: 2px solid var(--sg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--sg-slate);
    flex-shrink: 0;
}

.sg-card--match-preview:hover .sg-card__team-crest {
    border-color: var(--sg-green);
}

.sg-card__team-name {
    font-size: .8125rem;
    font-weight: 600;
    text-align: center;
    color: var(--sg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sg-card__vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sg-card__vs-text {
    font-size: 1rem;
    font-weight: 900;
    color: var(--sg-muted);
    letter-spacing: .05em;
}

.sg-card__kickoff {
    font-size: .6875rem;
    color: var(--sg-muted);
    white-space: nowrap;
}

.sg-card__preview-cta {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--sg-green);
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid var(--sg-border);
}

/* -------------------------------------------------------------------------
   6e. LIVE RESULT CARD
   ---------------------------------------------------------------------- */
.sg-card--live-result {
    background: var(--sg-bg);
}

.sg-card--live-result .sg-card__link-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-card__result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sg-card__result-league {
    font-size: .6875rem;
    font-weight: 600;
    color: var(--sg-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sg-card__score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sg-card__result-team {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--sg-text);
    flex: 1;
}

.sg-card__result-team--away { text-align: right; }

.sg-card__score {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.sg-card__score-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--sg-text);
    line-height: 1;
    min-width: 32px;
    text-align: center;
}

.sg-card__score-sep {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sg-muted);
    line-height: 1;
}

/* -------------------------------------------------------------------------
   6f. NEWS CARD
   ---------------------------------------------------------------------- */
.sg-card--news .sg-card__news-thumb {
    overflow: hidden;
    border-radius: var(--sg-radius) var(--sg-radius) 0 0;
    max-height: 180px;
}

.sg-card--news .sg-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.sg-card--news:hover .sg-card__img { transform: scale(1.04); }

.sg-card__excerpt--clamp2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--sg-muted);
    font-size: .875rem;
}

/* -------------------------------------------------------------------------
   6g. VIDEO CARD
   ---------------------------------------------------------------------- */
.sg-card--video .sg-card__video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--sg-radius) var(--sg-radius) 0 0;
    aspect-ratio: 16 / 9;
}

.sg-card--video .sg-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.sg-card--video:hover .sg-card__img { transform: scale(1.04); }

.sg-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.35);
    transition: background var(--sg-transition);
}

.sg-card--video:hover .sg-card__play-overlay {
    background: rgba(15,23,42,.52);
}

.sg-card__play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-green);
    transform: scale(1);
    transition: transform var(--sg-transition);
}

.sg-card--video:hover .sg-card__play-btn { transform: scale(1.1); }

.sg-card__duration {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

.sg-card__views {
    font-size: .75rem;
    color: var(--sg-muted);
}

/* =========================================================================
   7. SHARED CARD ELEMENTS
   ======================================================================= */
.sg-badge {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(21,128,61,.1);
    color: var(--sg-green);
    margin-bottom: 8px;
    text-decoration: none;
    transition: background var(--sg-transition);
}

.sg-badge:hover {
    background: rgba(21,128,61,.2);
    text-decoration: none;
}

.sg-badge--ft {
    background: rgba(21,128,61,.12);
    color: var(--sg-green);
}

.sg-badge--live {
    background: #dc2626;
    color: #fff;
    animation: sg-pulse 1.4s ease infinite;
}

@keyframes sg-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .65; }
}

.sg-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sg-card__title a {
    color: var(--sg-text);
    text-decoration: none;
    transition: color var(--sg-transition);
}

.sg-card__title a:hover { color: var(--sg-green); }

.sg-card__title--sm { font-size: .9375rem; }

.sg-card__excerpt {
    font-size: .875rem;
    color: var(--sg-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}

.sg-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--sg-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--sg-border);
}

.sg-card__date,
.sg-card__read { white-space: nowrap; }

/* =========================================================================
   8. TRENDING TAGS
   ======================================================================= */
.sg-trending {
    padding: 24px 0 8px;
    border-top: 1px solid var(--sg-border);
    margin-top: 8px;
}

.sg-trending__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.sg-trending__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--sg-muted);
    text-transform: uppercase;
}

.sg-trending__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.sg-trending__scroll::-webkit-scrollbar { display: none; }

.sg-trending__pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--sg-surface);
    border: 1.5px solid var(--sg-border);
    color: var(--sg-text);
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--sg-transition);
    min-height: 36px;
}

.sg-trending__pill:hover {
    background: rgba(21,128,61,.08);
    border-color: var(--sg-green);
    color: var(--sg-green);
    text-decoration: none;
}

.sg-trending__pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sg-border);
    color: var(--sg-muted);
    font-size: .6875rem;
    font-weight: 700;
    transition: background var(--sg-transition), color var(--sg-transition);
}

.sg-trending__pill:hover .sg-trending__pill-count {
    background: var(--sg-green);
    color: #fff;
}

/* =========================================================================
   9. LOAD MORE
   ======================================================================= */
.sg-load-more-wrap {
    text-align: center;
    padding: 24px 0 0;
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 12px;
    font-size: .9375rem;
    font-weight: 600;
    transition: all var(--sg-transition);
    min-height: 44px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.sg-btn--load-more {
    background: var(--sg-surface);
    color: var(--sg-text);
    border: 1.5px solid var(--sg-border);
}

.sg-btn--load-more:hover {
    background: var(--sg-green);
    color: #fff;
    border-color: var(--sg-green);
}

.sg-btn--primary {
    background: var(--sg-green);
    color: #fff;
}

.sg-btn--primary:hover {
    background: var(--sg-green-dk);
    color: #fff;
    text-decoration: none;
}

/* =========================================================================
   10. ARCHIVE HEADER
   ======================================================================= */
.sg-archive-header {
    padding: 28px 0 20px;
}

.sg-archive-header__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--sg-text);
}

.sg-archive-header__desc {
    font-size: .9375rem;
    color: var(--sg-muted);
    margin: 0;
}

/* =========================================================================
   11. SINGLE ARTICLE
   ======================================================================= */
.sg-article {
    padding: 28px 0 40px;
}

.sg-article__header {
    margin-bottom: 24px;
}

.sg-article__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0 16px;
    color: var(--sg-text);
}

.sg-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .8125rem;
    color: var(--sg-muted);
}

.sg-article__author,
.sg-article__date,
.sg-article__read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sg-article__thumb {
    border-radius: var(--sg-radius);
    overflow: hidden;
    margin: 0 0 28px;
}

.sg-article__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sg-article__caption {
    font-size: .8125rem;
    color: var(--sg-muted);
    text-align: center;
    padding: 8px 0 0;
}

.sg-article__content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sg-text);
}

.sg-article__content h2 { font-size: 1.5rem; margin: 1.75em 0 .5em; }
.sg-article__content h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.sg-article__content p  { margin: 0 0 1.25em; }
.sg-article__content a  { color: var(--sg-green); text-decoration: underline; }
.sg-article__content img { border-radius: var(--sg-radius-sm); margin: 1.5em 0; }

.sg-article__footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--sg-border);
}

.sg-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sg-tag-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sg-surface);
    border: 1px solid var(--sg-border);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--sg-text);
    transition: all var(--sg-transition);
    text-decoration: none;
}

.sg-tag-pill:hover {
    background: var(--sg-green);
    border-color: var(--sg-green);
    color: #fff;
    text-decoration: none;
}

/* Post nav */
.sg-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--sg-border);
}

.sg-post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--sg-radius-sm);
    border: 1.5px solid var(--sg-border);
    color: var(--sg-text);
    transition: all var(--sg-transition);
    text-decoration: none;
}

.sg-post-nav a:hover {
    border-color: var(--sg-green);
    background: rgba(21,128,61,.04);
    text-decoration: none;
}

.sg-post-nav__next { text-align: right; }

.sg-post-nav__label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sg-muted);
}

.sg-post-nav__title {
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sg-text);
}

/* =========================================================================
   12. BREADCRUMBS
   ======================================================================= */
.sg-breadcrumbs {
    padding: 10px 0 0;
    margin-bottom: 12px;
}

.sg-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .8125rem;
    color: var(--sg-muted);
}

.sg-breadcrumbs__link {
    color: var(--sg-muted);
    transition: color var(--sg-transition);
    text-decoration: none;
}

.sg-breadcrumbs__link:hover { color: var(--sg-green); }

.sg-breadcrumbs__current { color: var(--sg-text); font-weight: 500; }
.sg-breadcrumbs__sep { color: var(--sg-border); }

/* =========================================================================
   13. PAGINATION
   ======================================================================= */
.sg-pagination {
    display: flex;
    justify-content: center;
    margin: 32px 0 0;
}

.sg-pagination__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sg-pagination__item a,
.sg-pagination__item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1.5px solid var(--sg-border);
    font-size: .875rem;
    font-weight: 600;
    color: var(--sg-text);
    transition: all var(--sg-transition);
    text-decoration: none;
}

.sg-pagination__item a:hover {
    background: var(--sg-green);
    border-color: var(--sg-green);
    color: #fff;
    text-decoration: none;
}

.sg-pagination__item .current {
    background: var(--sg-green);
    border-color: var(--sg-green);
    color: #fff;
}

/* =========================================================================
   14. SEARCH FORM
   ======================================================================= */
.sg-search-form { width: 100%; }

.sg-search-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0,0,0,0);
    overflow: hidden;
    white-space: nowrap;
}

.sg-search-form__inner {
    display: flex;
    align-items: center;
    background: var(--sg-bg);
    border: 2px solid var(--sg-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color var(--sg-transition);
}

.sg-search-form__inner:focus-within {
    border-color: var(--sg-green);
}

.sg-search-form__input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--sg-text);
    outline: none;
}

.sg-search-form__input::placeholder { color: var(--sg-muted); }

.sg-search-form__btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-muted);
    transition: color var(--sg-transition);
    flex-shrink: 0;
}

.sg-search-form__btn:hover { color: var(--sg-green); }

/* =========================================================================
   15. 404
   ======================================================================= */
.sg-404 {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sg-404__number {
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 900;
    color: var(--sg-green);
    line-height: 1;
    opacity: .2;
}

.sg-404__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.sg-404__desc {
    font-size: 1rem;
    color: var(--sg-muted);
    max-width: 440px;
    margin: 0;
}

/* =========================================================================
   16. NO RESULTS
   ======================================================================= */
.sg-no-results {
    column-span: all;
    text-align: center;
    padding: 60px 20px;
    color: var(--sg-muted);
}

/* =========================================================================
   17. FOOTER
   ======================================================================= */
.sg-footer {
    background: var(--sg-surface);
    border-top: 1px solid var(--sg-border);
    padding: 32px 0 0;
    margin-top: 40px;
}

.sg-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* EEAT trust row */
.sg-footer__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sg-border);
}
.sg-trust-badge {
    padding: 12px 14px;
    background: rgba(0,0,0,.02);
    border: 1px solid var(--sg-border);
    border-radius: 6px;
}
.sg-trust-badge strong {
    display: block;
    color: var(--sg-text, #111);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}
.sg-trust-badge span {
    font-size: 11px;
    color: var(--sg-muted);
}

.sg-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--sg-border);
}

.sg-footer__col h4 {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sg-text, #111);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sg-green);
    display: inline-block;
}

.sg-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-footer__col ul li a {
    font-size: 13px;
    color: var(--sg-muted);
    text-decoration: none;
    transition: color var(--sg-transition), padding-left var(--sg-transition);
}

.sg-footer__col ul li a:hover {
    color: var(--sg-green);
    padding-left: 4px;
}

.sg-footer__brand {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: none;
}

.sg-footer__brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sg-green);
    letter-spacing: -.02em;
}

.sg-footer__about {
    font-size: 13px;
    line-height: 1.65;
    color: var(--sg-muted);
    margin: 0 0 14px;
}

.sg-footer__contact {
    margin-bottom: 14px;
}
.sg-footer__contact p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--sg-muted);
}
.sg-footer__contact a {
    color: var(--sg-text, #111);
    text-decoration: none;
}

.sg-footer__socials {
    display: flex;
    gap: 8px;
}

.sg-footer__social-link {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--sg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-muted);
    transition: all var(--sg-transition);
    text-decoration: none;
}

.sg-footer__social-link:hover {
    background: var(--sg-green);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Editorial commitment (EEAT) */
.sg-footer__editorial {
    padding: 16px 20px;
    margin: 20px 0;
    background: rgba(0,0,0,.02);
    border-left: 3px solid var(--sg-green);
    border-radius: 6px;
}
.sg-footer__editorial p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--sg-muted);
}
.sg-footer__editorial strong { color: var(--sg-text, #111); }
.sg-footer__editorial a { color: var(--sg-green); text-decoration: underline; }

.sg-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.sg-footer__copy {
    margin: 0;
    font-size: 12px;
    color: var(--sg-muted);
}
.sg-footer__copy small {
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--sg-border);
    border-radius: 4px;
    font-size: 10.5px;
}
.sg-footer__legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sg-footer__legal a {
    font-size: 12px;
    color: var(--sg-muted);
    text-decoration: none;
}
.sg-footer__legal a:hover { color: var(--sg-green); }

/* Responsive footer */
@media (max-width: 1100px) {
    .sg-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .sg-footer__grid > .sg-footer__col:nth-child(4) { grid-column: 1 / -1; }
    .sg-footer__trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sg-footer__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .sg-footer__grid > .sg-footer__col:first-child,
    .sg-footer__grid > .sg-footer__col:nth-child(4) { grid-column: 1 / -1; }
    .sg-footer__trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sg-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .sg-footer__grid { grid-template-columns: 1fr; }
    .sg-footer__grid > .sg-footer__col { grid-column: auto !important; }
    .sg-footer__trust { grid-template-columns: 1fr; }
}

/* =========================================================================
   18. WIDGET
   ======================================================================= */
.sg-widget {
    margin-bottom: 24px;
}

.sg-widget__title {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sg-muted);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sg-green);
    display: inline-block;
}

/* =========================================================================
   19. RESPONSIVE
   ======================================================================= */

/* 4 → 3 columns at 1100px */
@media (max-width: 1100px) {
    .sg-grid { column-count: 3; }
}

/* 3 → 2 columns at 768px */
@media (max-width: 768px) {
    .sg-grid { column-count: 2; }

    .sg-header__menu-toggle { display: flex; }

    .sg-nav {
        display: none;
        position: absolute;
        top: var(--sg-header-h);
        left: 0;
        right: 0;
        background: var(--sg-bg);
        border-bottom: 1px solid var(--sg-border);
        padding: 12px 20px;
        z-index: 190;
        box-shadow: 0 8px 24px rgba(0,0,0,.1);
    }

    .sg-nav.is-open { display: block; }

    .sg-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .sg-nav__list li a {
        padding: 11px 14px;
        font-size: 1rem;
    }

    .sg-post-nav {
        grid-template-columns: 1fr;
    }

    .sg-footer__socials { margin-left: 0; }

    .sg-archive-header__title { font-size: 1.5rem; }
}

/* 2 → 1 column at 480px */
@media (max-width: 480px) {
    .sg-grid { column-count: 1; }

    .sg-container,
    .sg-container--narrow { padding: 0 14px; }

    .sg-header__inner { padding: 0 14px; }

    .sg-card__stat-value { font-size: 3.5rem; }

    .sg-chips-bar__inner { padding: 0 14px; }
}

/* Touch targets */
@media (pointer: coarse) {
    .sg-chip,
    .sg-trending__pill,
    .sg-btn,
    .sg-pagination__item a { min-height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================================
 * Odds embed section (homepage) — slot for 3rd-party odds plugins
 * ========================================================================= */
.sg-odds-section {
    margin: 24px 0 32px;
}
.sg-odds-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--sg-accent);
}
.sg-odds-section__body {
    background: var(--sg-surface);
    border: 1px solid var(--sg-border);
    border-radius: 18px;
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sg-odds-section__body :is(table, iframe) {
    max-width: 100%;
}
.sg-odds-section__body iframe {
    width: 100%;
    border: 0;
    display: block;
}
.sg-odds-embed + .sg-odds-embed {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--sg-border);
}
.sg-odds-embed__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sg-text);
    margin: 0 0 10px;
}
@media (max-width: 480px) {
    .sg-odds-section__body { padding: 14px; border-radius: 14px; }
    .sg-odds-section__title { font-size: 17px; }
}
