/* UnionBet Scores – site stylesheet. Base: Frode's design prototype (unionbetscores/assets/styles.css), 25 Nov 2026. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/inter-latin-var.woff2) format('woff2'); }
/* ==========================================================================
   UnionBet Scores – styles (dark theme, mobile-first)
   ========================================================================== */
:root {
  --bg: #0a0e0c;
  --bg-2: #0e1310;
  --surface: #121915;
  --surface-2: #18211c;
  --surface-3: #1f2a24;
  --border: #222d27;
  --border-2: #2d3b34;
  --text: #e9f0eb;
  --text-2: #b4c1b9;
  --muted: #7b8981;
  --accent: #2ee06f;
  --accent-2: #22b85a;
  --accent-ink: #03200e;
  --accent-soft: rgba(46, 224, 111, .12);
  --live: #ff5247;
  --live-soft: rgba(255, 82, 71, .14);
  --yellow: #f5c542;
  --red: #ef4444;
  --z-cl: #2f7cf6;
  --z-el: #f59e0b;
  --z-ecl: #22c55e;
  --z-po: #a78bfa;
  --z-rel: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 60px;
  --bottom-nav-h: 64px;
  --container: 1320px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .container { padding: 0 24px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 12, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; letter-spacing: -.04em;
}
.brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(46, 224, 111, .4); border-radius: 6px; padding: 2px 6px; margin-left: -2px;
}
.main-nav { display: none; margin-left: auto; gap: 4px; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.main-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { background: var(--accent-soft); color: var(--accent); }
.main-nav svg { width: 18px; height: 18px; }
.header-live {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
@media (min-width: 900px) { .header-live { margin-left: 0; } }
.nav-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--live); color: #fff; display: inline-grid; place-items: center;
}
.nav-count:empty { display: none; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 19, 16, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--muted); position: relative;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav .nav-count { position: absolute; top: 6px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10px; padding: 0 4px; }

/* ---------- layout ---------- */
.page { padding: 20px 0 48px; }
@media (min-width: 900px) { .page { padding: 28px 0 64px; } }
.layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
@media (min-width: 1180px) {
  .layout--home { grid-template-columns: 220px minmax(0, 1fr) 320px; }
}
.sidebar-leagues { display: none; }
@media (min-width: 1180px) { .sidebar-leagues { display: block; } }
.sticky-col { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; align-content: start; }
.side-col { display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) { .side-col { position: sticky; top: calc(var(--header-h) + 20px); } }

.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 0 0 4px; letter-spacing: -.025em; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-head a.more { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.card-body { padding: 16px; }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .n { font-size: 11px; opacity: .75; }
.chip.live-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.chip.active.live-chip .dot { background: var(--accent-ink); }

.date-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr);
  gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto; scrollbar-width: none; margin-bottom: 12px;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-strip a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7px 4px; border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.25;
}
.date-strip a strong { color: var(--text-2); font-size: 13px; font-weight: 700; }
.date-strip a:hover { background: var(--surface-2); }
.date-strip a.active { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
.date-strip a.active strong { color: var(--accent); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.filter-bar .chips { flex: 1 1 auto; min-width: 0; }
@media (max-width: 1179px) { .filter-bar .select { flex: 1 1 100%; order: -1; } }
@media (min-width: 640px) and (max-width: 1179px) { .filter-bar .select { flex: 0 0 220px; order: 0; } }
.select {
  appearance: none; height: 34px; padding: 0 30px 0 12px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8981' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text-2); font: 600 13px var(--font);
}
@media (min-width: 1180px) { .filter-bar .select { display: none; } }

/* ---------- crest ---------- */
.crest {
  --c: #333; --ct: #fff;
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--c); color: var(--ct);
  display: inline-grid; place-items: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.crest.lg { width: 64px; height: 64px; font-size: 20px; }
.crest.md { width: 32px; height: 32px; font-size: 11px; }
@media (min-width: 640px) { .crest.lg { width: 80px; height: 80px; font-size: 24px; } }

.league-code {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 6px; border-radius: 5px;
  background: var(--surface-3); color: var(--text-2);
}

/* ---------- match list ---------- */
.league-group { margin-bottom: 14px; }
.league-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.league-head .name { font-weight: 700; font-size: 14px; }
.league-head .country { color: var(--muted); font-size: 12px; }
.league-head .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.league-head .more:hover { color: var(--accent); }

.match-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .15s;
  position: relative;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: var(--surface-2); }
.match-row.is-live::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--live); }
.status { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.status.live { color: var(--live); font-weight: 700; }
.status.live .min::after { content: "'"; animation: blink 1.2s steps(1) infinite; }
.status.ft { color: var(--muted); font-size: 12px; }
.status.ht { color: var(--yellow); font-weight: 700; font-size: 12px; }
@keyframes blink { 50% { opacity: 0; } }
.teams { display: grid; gap: 6px; min-width: 0; }
.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.team .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team.win .nm { font-weight: 700; }
.match-row.ft .team.lose .nm { color: var(--text-2); }
.redcard { width: 9px; height: 12px; border-radius: 2px; background: var(--red); flex: none; }
.scores { display: grid; gap: 6px; text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 18px; }
.match-row.is-live .scores { color: var(--live); }
.match-row .chev { color: var(--muted); width: 16px; height: 16px; }
.scores span { display: block; line-height: 22px; border-radius: 5px; padding: 0 4px; }
.flash { animation: goalflash 2.4s ease-out; }
@keyframes goalflash {
  0%, 30% { background: var(--accent); color: var(--accent-ink); }
  100% { background: transparent; }
}
.match-row.goal-row { animation: rowflash 2.4s ease-out; }
@keyframes rowflash { 0% { background: rgba(46, 224, 111, .18); } 100% { background: transparent; } }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; }

/* ---------- league sidebar ---------- */
.league-nav { list-style: none; margin: 0; padding: 6px; }
.league-nav button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--text-2); font-weight: 500;
}
.league-nav button:hover { background: var(--surface-2); color: var(--text); }
.league-nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.league-nav .cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.league-nav .cnt.has-live { color: var(--live); font-weight: 700; }

/* ---------- news list (sidebar) ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px solid var(--border); }
.news-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 16px; align-items: start; }
.news-item:hover h3 { color: var(--accent); }
.news-item .thumb { aspect-ratio: 1; border-radius: 10px; }
.news-item h3 { margin: 0 0 4px; font-size: 14px; line-height: 1.35; font-weight: 600; transition: color .15s; }
.meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta .cat { color: var(--accent); font-weight: 600; }

/* placeholder imagery */
.thumb {
  --h: 150;
  position: relative; overflow: hidden; background-color: hsl(var(--h) 40% 14%);
  background-image:
    radial-gradient(120% 90% at 85% 0%, hsl(var(--h) 75% 48% / .55), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, hsl(calc(var(--h) + 60) 70% 40% / .35), transparent 60%),
    linear-gradient(160deg, hsl(var(--h) 45% 20%), hsl(calc(var(--h) + 30) 50% 8%));
}
.thumb::after {
  content: ''; position: absolute; inset: 0; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 250' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='10' y='10' width='380' height='230'/%3E%3Cline x1='200' y1='10' x2='200' y2='240'/%3E%3Ccircle cx='200' cy='125' r='38'/%3E%3Crect x='10' y='70' width='58' height='110'/%3E%3Crect x='332' y='70' width='58' height='110'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* ---------- news page ---------- */
.news-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.news-card:hover h3 { color: var(--accent); }
.news-card .thumb { aspect-ratio: 16 / 9; }
.news-card .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.news-card h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; transition: color .15s; }
.news-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.news-card.featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .news-card.featured { display: grid; grid-template-columns: 1.4fr 1fr; }
  .news-card.featured .thumb { aspect-ratio: auto; min-height: 320px; }
  .news-card.featured .body { padding: 28px; align-content: center; gap: 10px; }
  .news-card.featured h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
  .news-card.featured p { font-size: 15px; }
}

/* ---------- article ---------- */
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.article { max-width: 720px; }
.article .cat-pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.article h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.article .lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--text-2); margin: 0 0 18px; line-height: 1.5; }
.article .byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.article .byline .av { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.article .byline .who { font-size: 14px; font-weight: 600; }
.article .share { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--text-2); transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.article .hero { aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 8px; }
.article .caption { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.prose { font-size: 17px; line-height: 1.7; color: #dbe4de; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 1.6em 0 .5em; color: var(--text); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.related { margin-top: 40px; }
.related h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.015em; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 20px); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- match detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }
.match-hero { padding: 18px 16px 20px; background:
  radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--hc) 22%, transparent), transparent 70%),
  radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%),
  var(--surface); }
@media (min-width: 640px) { .match-hero { padding: 22px 28px 28px; } }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; text-align: center; }
.hero-top a { color: var(--text-2); font-weight: 600; }
.hero-top a:hover { color: var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.hero-team .nm { font-weight: 700; font-size: 15px; line-height: 1.2; }
@media (min-width: 640px) { .hero-team .nm { font-size: 19px; } }
.hero-score { text-align: center; padding-top: 6px; }
.hero-score .sc { font-size: clamp(36px, 9vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-score .sc .sep { color: var(--muted); margin: 0 .12em; font-weight: 500; }
.hero-score .ko { font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.pill.live { background: var(--live-soft); color: var(--live); }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 82, 71, .6); } 100% { box-shadow: 0 0 0 8px rgba(255, 82, 71, 0); } }
.hero-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.scorers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-2); }
.scorers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.scorers ul:first-child { text-align: center; }
.scorers ul:last-child { text-align: center; }
.scorers .ball { width: 12px; text-align: center; opacity: .6; }

.tabs { display: flex; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 14px 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.tab-panel { padding: 16px; }
@media (min-width: 640px) { .tab-panel { padding: 20px 24px; } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-2); }
.tl-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 8px; padding: 7px 0; position: relative; }
.tl-min { justify-self: center; width: 40px; height: 26px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; z-index: 1; font-variant-numeric: tabular-nums; }
.tl-ev { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.tl-ev.home { justify-content: flex-end; text-align: right; }
.tl-ev .txt { min-width: 0; }
.tl-ev .p { font-weight: 600; display: block; line-height: 1.25; }
.tl-ev .s { color: var(--muted); font-size: 12px; display: block; }
.tl-ico { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.tl-ico svg { width: 18px; height: 18px; }
.card-y, .card-r { width: 12px; height: 16px; border-radius: 2px; background: var(--yellow); }
.card-r { background: var(--red); }
.tl-row.goal .tl-min { background: var(--accent); color: var(--accent-ink); }
.tl-divider { display: flex; justify-content: center; padding: 10px 0; position: relative; z-index: 1; }
.tl-divider span { background: var(--surface); border: 1px solid var(--border-2); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-2); }
@media (max-width: 480px) {
  .tl-row { grid-template-columns: 1fr 40px 1fr; gap: 6px; }
  .tl-ev { font-size: 13px; gap: 6px; }
}

/* stats */
.stats { display: grid; gap: 18px; }
.stat-head { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; font-size: 14px; margin-bottom: 7px; }
.stat-head .lbl { text-align: center; color: var(--text-2); font-size: 13px; }
.stat-head b { font-variant-numeric: tabular-nums; }
.stat-head b:last-child { text-align: right; }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-bars span { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: flex; }
.stat-bars span:first-child { justify-content: flex-end; }
.stat-bars i { display: block; height: 100%; border-radius: 4px; background: var(--muted); transition: width .6s ease; }
.stat-bars i.lead { background: var(--accent); }

/* pitch */
.lineup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.lineup-head .t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lineup-head .f { color: var(--muted); font-weight: 600; }
.pitch {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 68 / 100;
  border-radius: 12px; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, #1a4d2e 0 10%, #1d5533 10% 20%);
}
.pitch svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; }
.player .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--c); color: var(--ct); box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(255, 255, 255, .25); position: relative; }
.player .nm { font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .badge { position: absolute; top: -4px; right: -6px; display: flex; gap: 1px; }
.player .badge i { width: 8px; height: 11px; border-radius: 1.5px; background: var(--yellow); }
.player .badge i.r { background: var(--red); }
.player .badge b { font-size: 10px; line-height: 1; filter: drop-shadow(0 1px 1px #000); }
@media (max-width: 480px) {
  .player { width: 60px; }
  .player .num { width: 24px; height: 24px; font-size: 10px; }
  .player .nm { font-size: 9.5px; max-width: 60px; }
}
.bench { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .bench { grid-template-columns: 1fr 1fr; } }
.bench h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bench ul { list-style: none; margin: 0; padding: 0; }
.bench li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bench li .n { width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.bench li .in { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600; }
.coach { font-size: 13px; color: var(--muted); margin-top: 4px; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }

/* ---------- standings ---------- */
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.standings th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.standings th.l, .standings td.l { text-align: left; }
.standings td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.standings tr:last-child td { border-bottom: 0; }
.standings tbody tr:hover { background: var(--surface-2); }
.standings tr.hl { background: var(--accent-soft); }
.standings td.pos { width: 40px; padding-left: 14px; position: relative; font-weight: 600; color: var(--text-2); }
.standings td.pos::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.standings tr.z-cl td.pos::before { background: var(--z-cl); }
.standings tr.z-el td.pos::before { background: var(--z-el); }
.standings tr.z-ecl td.pos::before { background: var(--z-ecl); }
.standings tr.z-po td.pos::before { background: var(--z-po); }
.standings tr.z-rel td.pos::before { background: var(--z-rel); }
.standings .tm { display: flex; align-items: center; gap: 10px; }
.standings .tm span { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.standings td.pts { font-weight: 800; color: var(--text); padding-right: 14px; }
.standings th:last-child { padding-right: 14px; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #0a0e0c; }
.form i.W { background: var(--accent); }
.form i.D { background: #8a978f; }
.form i.L { background: var(--red); color: #fff; }
.c-hide-sm { display: none; }
@media (min-width: 640px) { .c-hide-sm { display: table-cell; } .standings .tm span { max-width: none; } }
.c-hide-md { display: none; }
@media (min-width: 1000px) { .c-hide-md { display: table-cell; } }
.compact .c-hide-md { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 36px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid .about { grid-column: auto; } }
.footer-grid p { margin: 10px 0 0; color: var(--muted); font-size: 13px; max-width: 360px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* mini match rows (sidebars) */
.mini-match { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.mini-match:last-child { border-bottom: 0; }
.mini-match:hover { background: var(--surface-2); }
.mini-match .teams { gap: 4px; }
.mini-match .team { font-size: 13px; gap: 8px; }
.mini-match .crest { width: 18px; height: 18px; font-size: 7px; }
.mini-match .scores { font-size: 13px; gap: 4px; }
.mini-match .scores span { line-height: 18px; }
.mini-match.is-live .scores { color: var(--live); }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   UnionBet Scores – additions for the live site (server-rendered, real data)
   ========================================================================== */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; }
.layout > * { min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: grid; gap: 16px; }

/* real club badges in the crest slot */
img.crest-img { background: transparent; box-shadow: none; border-radius: 0; object-fit: contain; }
.mini-match img.crest-img { width: 18px; height: 18px; }

/* news thumbnails with real images */
.thumb.has-img { background: var(--surface-2); }
.thumb.has-img::after { display: none; }
.thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item .thumb { width: 76px; }
.small-empty { padding: 20px 16px; }

/* scores */
.sample { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.match-list > .league-group:last-child { margin-bottom: 0; }
.empty .nf, .nf h1 { font-size: 24px; margin: 0 0 8px; }
.prose-card { padding: 22px 24px; margin-top: 20px; }

/* match page */
.hero-score .sc .ko { font-size: inherit; }
.pill.live::before { margin-right: 2px; }
.info-more { margin: 14px 0 0; }
.info-more a, a.more { color: var(--accent); font-weight: 600; font-size: 13px; }
.subs-h { margin-top: 18px !important; }
.lineup-head .t img.crest-img, .lineup-head .t .crest { width: 24px; height: 24px; }
.var { font-size: 10px; font-weight: 800; color: var(--text-2); }
.linked-match { margin-bottom: 22px; }

/* leagues */
.league-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .league-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .league-cards { grid-template-columns: 1fr 1fr 1fr; } }
.league-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: border-color .15s; }
.league-card:hover { border-color: var(--border-2); }
.league-card:hover strong { color: var(--accent); }
.league-card .country { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.league-card .chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.league-card.off { opacity: .6; }

/* news */
.news-chips { margin-bottom: 16px; }
.news-card .thumb.has-img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .news-card.featured .thumb.has-img { aspect-ratio: auto; min-height: 320px; } }

/* article + pages */
.article .lede p { margin: 0 0 .6em; }
.article .byline .meta { margin-top: 2px; }
.article .byline a:hover { color: var(--accent); }
.hero-fig { margin: 0 0 26px; }
img.hero { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius); margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 0 0 1.1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 10px; background: var(--surface); }
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary h3 { display: inline; font-size: 16px; margin: 0; }
details.faq[open] summary { margin-bottom: 8px; }
details.faq p { margin: 0 0 .6em; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.author-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.author-top img { border-radius: 50%; width: 96px; height: 96px; object-fit: cover; }
.author-top h1 { margin: 0 0 4px; }
.author-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.author-meta a, .author-meta span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }

/* footer: responsible gambling + disclaimer */
.footer-grid .rg { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; max-width: 420px; }
.footer-grid .rg p { margin: 4px 0 0; }
.footer-grid .rg strong { font-size: 13px; color: var(--text); }
.age { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--text-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--text); }
.disclaimer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 980px; }
.disclaimer p { margin: 0 0 10px; }
.disclaimer b, .disclaimer strong { color: var(--text-2); }

/* logo (UnionBetSCORES-logo.png, black made transparent, 276x96) */
.brand-logo { display: block; height: 36px; width: auto; }
@media (min-width: 900px) { .brand-logo { height: 40px; } }
.site-footer .brand-logo { height: 44px; }

/* ==========================================================================
   /smyg/ — replay with hidden results (smyg-1.js)
   ========================================================================== */
.smyg .page-head p { max-width: 640px; }
.sm-hidden-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgba(46, 224, 111, .3); color: var(--text); font-size: 14px; }
.sm-hidden-note strong { color: var(--accent); }
.sm-eye { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.sm-eye svg { width: 20px; height: 20px; }
.sm-days { display: flex; gap: 8px; margin: 0 0 14px; }

/* picking */
.sm-lgroup { margin: 0 0 12px; overflow: hidden; }
.sm-lhead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sm-lhead strong { font-size: 14px; }
.sm-all { margin-left: auto; background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 6px; }
.sm-row { display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.sm-lhead + .sm-row { border-top: 0; }
.sm-row:hover { background: var(--surface-2); }
.sm-row.is-off { cursor: default; opacity: .55; }
.sm-row.is-off:hover { background: none; }
.sm-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.sm-ko { color: var(--muted); font-size: 13px; }
.sm-pair { display: grid; gap: 4px; min-width: 0; }
.sm-tm { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14px; }
.sm-tm > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-tm .crest { width: 20px; height: 20px; font-size: 8px; }
.sm-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.sm-tag-live { background: var(--live-soft); color: var(--live); }
.sm-tag-done { background: var(--accent-soft); color: var(--accent); }
.sm-startbar { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px 12px 18px; border-radius: 999px; background: rgba(18, 25, 21, .96); border: 1px solid var(--border-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
@media (min-width: 900px) { .sm-startbar { bottom: 16px; } }
.sm-startbar .btn { padding: 11px 26px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* controls */
.sm-controls { position: sticky; top: var(--header-h); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: var(--radius); background: rgba(18, 25, 21, .97); border: 1px solid var(--border-2); backdrop-filter: blur(10px); }
.sm-clockbox { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; }
.sm-clockface { position: relative; display: flex; align-items: center; padding: 6px 18px; border-radius: 14px; background: #050806; border: 1px solid rgba(46, 224, 111, .45); box-shadow: inset 0 0 22px rgba(46, 224, 111, .12), 0 0 26px rgba(46, 224, 111, .14); }
.sm-clock { font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: .01em; color: var(--accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(46, 224, 111, .45); min-width: 4.1ch; text-align: center; }
.sm-added { position: absolute; top: -9px; right: -8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--live); color: #fff; }
.sm-phase { font-size: 15px; font-weight: 700; color: var(--text); }
@media (max-width: 640px) { .sm-clock { font-size: 40px; } .sm-clockface { padding: 4px 14px; } }
.smyg.is-paused .sm-clock { animation: sm-blink 1.2s steps(2, start) infinite; }

.sm-slow { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--live-soft); color: var(--live); }
.sm-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-speed { display: flex; gap: 4px; }
.sm-speed .chip { min-width: 46px; justify-content: center; }
.sm-pausebtn { min-width: 96px; justify-content: center; }
.sm-soundbtn svg { width: 16px; height: 16px; }
.sm-soundbtn[aria-pressed="true"] { color: var(--accent); border-color: rgba(46, 224, 111, .5); }

/* match cards */
.sm-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .sm-grid { grid-template-columns: 1fr 1fr 1fr; } }
.sm-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 10px; transition: border-color .3s, box-shadow .3s; }
.sm-card[data-state="ft"] { border-color: var(--border-2); }
.sm-card[data-state="ft"] .sm-st { background: var(--accent); color: var(--accent-ink); }
.sm-card[data-state="break"] .sm-st { background: var(--surface-3); color: var(--yellow); }
.sm-card[data-state="live"] .sm-st { background: var(--live-soft); color: var(--live); }
.sm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sm-lg { font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sm-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sm-t { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.sm-nm { font-size: 13px; font-weight: 700; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.sm-crest { width: 40px; height: 40px; object-fit: contain; }
.sm-crest-x { display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 12px; font-weight: 800; color: var(--text-2); }
.sm-score { display: flex; align-items: center; gap: 6px; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 12px; background: var(--bg-2); min-width: 104px; justify-content: center; }
.sm-score i { font-style: normal; color: var(--muted); font-weight: 600; }
.sm-score.is-suspense { animation: sm-suspense .35s ease-in-out infinite alternate; color: var(--accent); }
.sm-score.is-suspense span { visibility: hidden; position: relative; }
.sm-score.is-suspense span::after { content: "?"; visibility: visible; position: absolute; inset: 0; text-align: center; }
.sm-scored-h .sm-h .sm-nm, .sm-scored-a .sm-a .sm-nm { color: var(--accent); }
.sm-scored-h, .sm-scored-a { border-color: rgba(46, 224, 111, .7); box-shadow: 0 0 0 1px rgba(46, 224, 111, .5), 0 0 34px rgba(46, 224, 111, .22); }
.sm-scored-h .sm-h .sm-crest, .sm-scored-a .sm-a .sm-crest { animation: sm-pop .6s ease-out 2; }
.sm-pen { text-align: center; font-size: 12px; font-weight: 700; color: var(--yellow); margin-top: 6px; }

/* the overlay for goals, penalties, cards and VAR */
.sm-flash { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; background: rgb(6, 10, 8); animation: sm-in .25s ease-out; pointer-events: none; }
.sm-flash strong { font-size: 34px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.sm-flash span { font-size: 15px; font-weight: 700; }
.sm-flash small { font-size: 12px; color: var(--text-2); }
.sm-flash.is-goal strong { color: var(--accent); animation: sm-zoom .5s cubic-bezier(.2, 1.6, .4, 1); text-shadow: 0 0 24px rgba(46, 224, 111, .6); }
.sm-flash.is-goal { background: radial-gradient(circle at 50% 50%, rgba(46, 224, 111, .30), transparent 70%), rgb(6, 12, 9); }
.sm-flash.is-pen strong { color: var(--yellow); animation: sm-pulse .5s ease-in-out infinite alternate; }
.sm-flash.is-miss strong { color: var(--live); animation: sm-shake .45s ease-in-out; }
.sm-flash.is-so strong { color: var(--accent); }
.sm-flash.is-var { background: rgb(16, 24, 48); }
.sm-flash.is-var strong { color: #8fb4ff; letter-spacing: .14em; animation: sm-pulse .6s ease-in-out infinite alternate; }
.sm-flash.is-yellow strong { color: var(--yellow); }
.sm-flash.is-red strong { color: var(--red); }
.sm-flash.is-red { background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, .28), transparent 70%), rgb(10, 8, 8); }
.sm-cardfx { display: block; width: 30px; height: 42px; border-radius: 4px; margin-bottom: 6px; animation: sm-flip .6s ease-out; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.sm-cardfx.yellow { background: var(--yellow); }
.sm-cardfx.red { background: var(--red); }

/* odds */
.sm-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.sm-odds span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); font-size: 13px; }
.sm-odds b { color: var(--muted); font-weight: 700; font-size: 11px; }
.sm-odds em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; transition: color .3s; }
.sm-odds em.up { color: var(--live); }
.sm-odds em.up::after { content: " ▲"; font-size: 9px; }
.sm-odds em.down { color: var(--accent); }
.sm-odds em.down::after { content: " ▼"; font-size: 9px; }
.sm-odds.is-susp span { opacity: .55; }

/* event feed */
.sm-feed { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: grid; gap: 4px; min-height: 22px; }
.sm-feed li { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; animation: sm-in .3s ease-out; }
.sm-feed li.goal { color: var(--text); font-weight: 700; }
.sm-feed li.miss { color: var(--live); }
.sm-feed li.var { color: #8fb4ff; }
.sm-dot { display: inline-block; width: 8px; height: 11px; border-radius: 2px; }
.sm-dot.yellow { background: var(--yellow); }
.sm-dot.red { background: var(--red); }

@keyframes sm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sm-zoom { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sm-pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes sm-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes sm-flip { from { transform: perspective(300px) rotateY(90deg) scale(.6); } to { transform: perspective(300px) rotateY(0) scale(1); } }
@keyframes sm-suspense { from { background: var(--bg-2); } to { background: rgba(46, 224, 111, .25); } }
@keyframes sm-pop { 50% { transform: scale(1.25); } }
@keyframes sm-blink { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sm-flash, .sm-flash strong, .sm-score.is-suspense, .sm-cardfx, .sm-feed li { animation: none !important; } }

/* smyg: hidden really hidden, pressed chips, 1X2 picks */
.smyg [hidden] { display: none !important; }
.smyg .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sm-row { grid-template-columns: 22px 46px minmax(0, 1fr) auto; }
.sm-meta { display: grid; gap: 4px; justify-items: start; }
.sm-bets { display: flex; gap: 4px; }
.sm-bets button { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.sm-bets button:hover { border-color: var(--muted); color: var(--text); }
.sm-bets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sm-row.is-off .sm-bets { visibility: hidden; }
.sm-bethint { margin: -4px 0 14px; color: var(--text-2); font-size: 13px; }
@media (max-width: 420px) { .sm-row { gap: 10px; padding: 10px 12px; } .sm-bets button { width: 30px; } }

.sm-betbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.sm-betbar b { color: var(--text); }
.sm-betbar em { font-style: normal; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.sm-card.bet-win { border-color: rgba(46, 224, 111, .55); }
.sm-card.bet-win .sm-betbar { border-color: rgba(46, 224, 111, .45); background: rgba(46, 224, 111, .08); }
.sm-card.bet-win .sm-betbar em { background: var(--accent); color: var(--accent-ink); }
.sm-card.bet-lose .sm-betbar { border-color: rgba(255, 82, 71, .4); background: rgba(255, 82, 71, .07); }
.sm-card.bet-lose .sm-betbar em { background: var(--live); color: #fff; }
.sm-card.bet-won { box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(46, 224, 111, .25); }
.sm-card.bet-lost { opacity: .75; }
.sm-coupon { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); }
.sm-coupon.all-in { background: var(--accent); color: var(--accent-ink); }

/* smyg on phones: compact sticky controls (clock + pause on one row, speeds swipe sideways) */
@media (max-width: 640px) {
  .sm-controls { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 8px 10px; margin-bottom: 10px; top: var(--header-h); }
  .sm-clockbox { gap: 4px 10px; flex-wrap: nowrap; min-width: 0; }
  .sm-clockface { padding: 2px 10px; border-radius: 10px; }
  .sm-clock { font-size: 32px; }
  .sm-added { top: -7px; right: -6px; font-size: 9px; padding: 1px 5px; }
  .sm-phase { font-size: 12px; line-height: 1.2; }
  .sm-slow, .sm-coupon { font-size: 10px; padding: 2px 6px; white-space: nowrap; }
  .sm-clockbox { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; }
  .sm-clockface { grid-row: 1 / 3; }
  .sm-phase { grid-column: 2; }
  .sm-slow, .sm-coupon { grid-column: 2; justify-self: start; }
  .sm-slow:not([hidden]) ~ .sm-coupon { display: none; }
  .sm-btns { display: contents; }
  .sm-pausebtn { grid-column: 2; grid-row: 1; align-self: center; min-width: 84px; padding: 9px 14px; }
  .sm-clockbox { grid-column: 1; grid-row: 1; }
  .sm-speed { grid-column: 1 / 3; }
  .sm-speed { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; grid-row: 2; }
  .sm-speed::-webkit-scrollbar { display: none; }
  .sm-speed .chip { flex: none; min-width: 44px; padding: 6px 10px; }
  .sm-soundbtn, #sm-back { grid-row: 3; padding: 6px 10px; font-size: 13px; }
  .sm-soundbtn { grid-column: 1; }
  #sm-back { grid-column: 2; }
  .sm-soundbtn { justify-self: start; }
  .sm-card { padding: 10px 12px 8px; }
  .sm-crest { width: 32px; height: 32px; }
  .sm-score { font-size: 28px; min-width: 88px; padding: 2px 10px; }
  .sm-flash strong { font-size: 28px; }
}

/* smyg on phones: compact match cards, about five per screen */
.sm-needl { font-style: normal; }
@media (max-width: 640px) {
  .sm-grid { gap: 8px; }
  .sm-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top top" "board board" "pen pen" "bet odds" "feed feed"; column-gap: 8px; padding: 8px 10px; }
  .sm-top { grid-area: top; margin-bottom: 4px; }
  .sm-lg { font-size: 11px; }
  .sm-st { font-size: 11px; padding: 2px 7px; }
  .sm-board { grid-area: board; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .sm-t { flex-direction: row; gap: 7px; min-width: 0; }
  .sm-h { flex-direction: row-reverse; justify-content: flex-start; text-align: right; }
  .sm-a { justify-content: flex-start; text-align: left; }
  .sm-crest { width: 22px; height: 22px; flex: none; }
  .sm-crest-x { font-size: 8px; }
  .sm-nm { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; min-width: 0; }
  .sm-score { font-size: 22px; min-width: 64px; padding: 1px 8px; border-radius: 8px; gap: 4px; }
  .sm-pen { grid-area: pen; margin-top: 2px; font-size: 11px; }
  .sm-betbar { grid-area: bet; margin-top: 6px; padding: 3px 8px; font-size: 11px; min-width: 0; }
  .sm-betbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .sm-betbar em { padding: 1px 6px; font-size: 10px; }
  .sm-needl { display: none; }
  .sm-odds { grid-area: odds; margin-top: 6px; gap: 3px; grid-template-columns: repeat(3, auto); }
  .sm-odds span { padding: 3px 6px; font-size: 11px; gap: 4px; border-radius: 6px; }
  .sm-odds b { font-size: 9px; }
  .sm-card:not(:has([data-betbar])) .sm-odds { grid-column: 1 / 3; justify-content: end; }
  .sm-feed { grid-area: feed; margin-top: 6px; padding-top: 5px; min-height: 0; }
  .sm-feed li { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .sm-feed li:not(:first-child) { display: none; }
  .sm-feed:empty { display: none; }
  .sm-flash { gap: 2px; padding: 6px; }
  .sm-flash strong { font-size: 24px; }
  .sm-flash span { font-size: 13px; }
  .sm-flash small { font-size: 11px; }
  .sm-cardfx { width: 18px; height: 25px; margin-bottom: 2px; }
}

#sm-play { scroll-margin-top: calc(var(--header-h) + 8px); }


/* smyg: speed slider (1× … 200×) with slower / faster buttons */
.sm-speed { display: flex; align-items: center; gap: 8px; }
.sm-step { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 20px; font-weight: 800; line-height: 1; }
.sm-step:disabled { opacity: .35; cursor: default; }
.sm-speedv { min-width: 52px; text-align: center; font-size: 15px; font-weight: 800; color: var(--accent); }
.sm-range { -webkit-appearance: none; appearance: none; width: 180px; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0 var(--p, 36%), var(--surface-3) var(--p, 36%) 100%); }
.sm-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #050806; box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(46, 224, 111, .5); }
.sm-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #050806; box-shadow: 0 0 0 1px var(--accent); }
.sm-range:focus-visible { box-shadow: 0 0 0 3px rgba(46, 224, 111, .35); }
@media (max-width: 640px) {
  .sm-speed { overflow: visible; gap: 8px; }
  .sm-range { flex: 1; width: auto; min-width: 0; }
  .sm-step { width: 36px; height: 34px; flex: none; }
  .sm-speedv { min-width: 46px; font-size: 14px; }
}


/* cookie banner (Google Analytics consent) */
.cc { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 80; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: var(--radius); background: rgba(18, 25, 21, .98); border: 1px solid var(--border-2); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
@media (min-width: 900px) { .cc { bottom: 20px; } }
.cc p { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cc strong { color: var(--text); }
.cc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cc-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cc-btn { min-width: 104px; padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); }
.cc-btn:hover { border-color: var(--muted); }
.cc-yes { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cc-btn:focus-visible, .cc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .cc-btns { width: 100%; } .cc-btn { flex: 1; } }
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cc-link:hover { color: var(--text); }
.cc[hidden] { display: none; }


/* ad banner (Settings → Banner) */
.promo { position: relative; margin: 0 auto 16px; max-width: 760px; }
.promo a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.promo a:hover { border-color: var(--border-2); }
.promo a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.promo img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 331; }
.promo-tag { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: rgba(5, 8, 6, .78); color: var(--text-2); pointer-events: none; }
@media (max-width: 640px) { .promo { margin-bottom: 12px; } .promo a { border-radius: var(--radius-sm); } }

/* banner as a card in the columns (left column on score pages, top of the side column elsewhere) */
.promo.promo-card { max-width: none; margin: 0; }
.promo.promo-card a { border-radius: var(--radius); }
@media (min-width: 1180px) { .layout--home .promo-noleft { display: none; } }
@media (max-width: 899px) { .promo.promo-card { max-width: 560px; margin: 0 auto; width: 100%; } }


/* smyg: odds history (1 / X / 2 as win chances, drawn up to the replay clock) + "Neste hendelse" */
.sm-ohist { margin-top: 8px; }
.sm-ohist svg { display: block; width: 100%; height: 44px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); overflow: visible; }
.sm-ohist path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sm-ohist .lh { stroke: var(--accent); }
.sm-ohist .ld { stroke: #9aa7a0; }
.sm-ohist .la { stroke: #8fb4ff; }
.sm-ohist .ht { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.sm-ohleg { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.sm-ohleg span[class^="k"]::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; border-radius: 2px; }
.sm-ohleg .kh::before { background: var(--accent); }
.sm-ohleg .kd::before { background: #9aa7a0; }
.sm-ohleg .ka::before { background: #8fb4ff; }
.sm-oopen { margin-left: auto; font-variant-numeric: tabular-nums; }
.sm-nextbtn { white-space: nowrap; }
@media (max-width: 640px) {
  .sm-controls { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sm-clockbox { grid-column: 1 / 3; }
  .sm-pausebtn { grid-column: 3; grid-row: 1; min-width: 0; }
  .sm-speed { grid-column: 1 / 3 !important; }
  .sm-slowbtn { grid-column: 3; grid-row: 2; padding: 6px 12px; justify-self: end; width: auto; }
  .sm-speed { grid-column: 1 / 4; }
  .sm-soundbtn { grid-column: 1; grid-row: 3; }
  .sm-nextbtn { grid-column: 2; grid-row: 3; padding: 6px 10px; font-size: 13px; }
  #sm-back { grid-column: 3; grid-row: 3; justify-self: end; }
  .sm-long { display: none; }
  .sm-ohist { grid-area: hist; margin-top: 6px; }
  .sm-card { grid-template-areas: "top top" "board board" "pen pen" "bet odds" "hist hist" "feed feed"; }
  .sm-ohist svg { height: 30px; }
  .sm-ohleg { font-size: 10px; gap: 8px; }
}

.sm-slowbtn[aria-expanded="true"] { color: var(--accent); border-color: rgba(46, 224, 111, .5); }
.sm-slowpanel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -6px 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.sm-slowh { color: var(--text-2); font-weight: 600; }
.sm-slowpanel label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sm-slowpanel input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* Smyg's own icon (menu, heading, hidden-results note) */
.nav-img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; display: block; }
.main-nav .nav-img { width: 20px; height: 20px; border-radius: 5px; }
.bottom-nav .nav-img { width: 24px; height: 24px; }
.sm-head { display: flex; align-items: center; gap: 16px; }
.sm-headicon { width: 64px; height: 64px; border-radius: 14px; flex: none; box-shadow: 0 0 24px rgba(46, 224, 111, .25); }
.sm-eyeimg { width: 34px; height: 34px; border-radius: 8px; flex: none; }
@media (max-width: 640px) { .sm-headicon { width: 52px; height: 52px; border-radius: 12px; } .sm-head { gap: 12px; } }

/* footer: BeGambleAware badge (replaces the 18+ / Spill ansvarlig block, 26 Nov 2026) */
.bga { display: inline-flex; align-items: baseline; margin-top: 16px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--text); transition: border-color .15s; }
.bga:hover { border-color: var(--muted); }
.bga:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bga-be, .bga-a { font-weight: 500; }
.bga-g { font-weight: 800; }
.bga-org { font-weight: 500; color: var(--text-2); font-size: 13px; }

/* always reserve the scrollbar's space, so short pages (e.g. /ligaer/) don't shift the centred layout sideways */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }

/* smyg: matches fetched, waiting for the visitor to press Start */
.smyg.is-ready .sm-pausebtn { animation: sm-ready 1.4s ease-in-out infinite; }
@keyframes sm-ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(46, 224, 111, .55); } 50% { box-shadow: 0 0 0 8px rgba(46, 224, 111, 0); } }
@media (prefers-reduced-motion: reduce) { .smyg.is-ready .sm-pausebtn { animation: none; } }


/* smyg goal sequence: the real score blinks (no "?"), then the team badges light up in turn and stop on the scorer */
.sm-score.is-suspense span { visibility: visible; }
.sm-score.is-suspense span::after { content: none; }
.sm-score.is-suspense { animation: sm-scoreblink .32s steps(2, start) infinite; color: var(--accent); }
@keyframes sm-scoreblink { to { opacity: .25; } }
.sm-t { transition: opacity .08s, transform .08s; }
.sm-t .sm-crest { transition: transform .08s, filter .08s; }
.sm-rolling .sm-t { opacity: .35; }
.sm-pick-h .sm-h, .sm-pick-a .sm-a { opacity: 1; }
.sm-pick-h .sm-h .sm-crest, .sm-pick-a .sm-a .sm-crest { transform: scale(1.3); filter: drop-shadow(0 0 10px rgba(46, 224, 111, .85)); }
.sm-pick-h .sm-h .sm-nm, .sm-pick-a .sm-a .sm-nm { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .sm-score.is-suspense { animation: none; } .sm-t, .sm-t .sm-crest { transition: none; } }
