/* ============================================================
   ARTICLES SYSTEM — Listagem, detalhe, reações, ticker (Copa 2026)
   ============================================================ */

.articles-container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }

.articles-hero { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid #e2e6ed; }
.articles-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .4rem; }
.articles-hero-sub { color: #6b7280; font-size: 1rem; }

.articles-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; }
@media (max-width: 880px) { .articles-layout { grid-template-columns: 1fr; } }

.articles-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .articles-list { grid-template-columns: 1fr; } }
.article-card {
  background: #fff; border: 1px solid #e2e6ed; border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.article-card-category {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: #f0f2f5; color: #0057c2;
  padding: .25rem .6rem; border-radius: 4px; margin-bottom: .6rem;
}
.article-card-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: .5rem; }
.article-card-title a { color: #111827; text-decoration: none; }
.article-card-title a:hover { color: #0070f3; }
.article-card-excerpt { color: #374151; font-size: .95rem; line-height: 1.55; margin-bottom: .8rem; }
.article-card-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .82rem; color: #6b7280;
  padding-top: .8rem; border-top: 1px solid #e2e6ed;
}
.article-card-meta time { font-weight: 600; }
.article-card-more { margin-left: auto; color: #0070f3; font-weight: 600; text-decoration: none; }
.article-card-more:hover { color: #0057c2; }

.articles-empty {
  background: #fff; border: 1px dashed #e2e6ed; border-radius: 10px;
  padding: 2rem; text-align: center; color: #6b7280;
}

.articles-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.articles-sidebar-box {
  background: #fff; border: 1px solid #e2e6ed; border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.articles-sidebar-box h3 {
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #6b7280; margin-bottom: .8rem;
}
.archive-list { list-style: none; }
.archive-list > li { margin-bottom: .5rem; }
.archive-year { display: block; font-weight: 700; color: #111827; text-decoration: none; padding: .25rem 0; }
.archive-year.active { color: #0070f3; }
.archive-list ul { list-style: none; margin-top: .3rem; margin-left: .5rem; border-left: 2px solid #e2e6ed; padding-left: .8rem; }
.archive-month { display: flex; justify-content: space-between; padding: .2rem 0; font-size: .9rem; color: #374151; text-decoration: none; }
.archive-month:hover { color: #0070f3; }
.archive-month.active { color: #0070f3; font-weight: 600; }
.archive-count { color: #6b7280; font-size: .8rem; }
.muted { color: #6b7280; font-size: .9rem; }

.article-page-container { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.article-page-breadcrumb {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .85rem; color: #6b7280; margin-bottom: 1.5rem;
}
.article-page-breadcrumb a { color: #374151; text-decoration: none; }
.article-page-breadcrumb a:hover { color: #0070f3; }

.article-page-category {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: #0070f3; color: #fff;
  padding: .3rem .7rem; border-radius: 4px; margin-bottom: 1rem;
}
.article-page-title {
  font-size: 2.2rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; color: #111827; margin-bottom: 1rem;
}
.article-page-meta {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  font-size: .9rem; color: #6b7280;
  padding-bottom: 1.5rem; margin-bottom: 1.8rem;
  border-bottom: 1px solid #e2e6ed;
}

.article-page-content { font-size: 1.05rem; line-height: 1.75; color: #111827; }
.article-page-content h2 { font-size: 1.55rem; margin: 2rem 0 .8rem; line-height: 1.3; font-weight: 700; }
.article-page-content h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; line-height: 1.35; font-weight: 700; }
.article-page-content p { margin-bottom: 1.1rem; }
.article-page-content ul, .article-page-content ol { margin: 1rem 0 1.2rem 1.4rem; }
.article-page-content li { margin-bottom: .35rem; }
.article-page-content strong { font-weight: 700; }
.article-page-content em { font-style: italic; }
.article-page-content a { color: #0070f3; text-decoration: underline; text-underline-offset: 3px; }
.article-page-content a:hover { color: #0057c2; }
.article-page-content blockquote {
  border-left: 4px solid #0070f3; background: #f0f2f5;
  padding: 1rem 1.2rem; margin: 1.4rem 0;
  color: #374151; font-style: italic;
  border-radius: 0 10px 10px 0;
}
.article-page-content code {
  background: #f0f2f5; padding: .15em .4em;
  border-radius: 3px; font-size: .92em;
  font-family: 'SF Mono', Menlo, monospace;
}

.article-page-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.5rem; }
.article-tag {
  font-size: .8rem; color: #374151;
  background: #f0f2f5; padding: .3rem .7rem; border-radius: 20px;
}

.article-reactions {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: 1.4rem; margin-top: 1.5rem;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 10px;
}
.article-reactions-label { font-weight: 600; color: #374151; margin-right: auto; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  background: #f0f2f5; border: 1px solid #e2e6ed; border-radius: 20px;
  font-size: .95rem; color: #374151;
  cursor: pointer; transition: all .15s ease;
}
.reaction-btn:hover { background: #f4f6f9; border-color: #0070f3; color: #0070f3; }
.reaction-btn.active { background: #0070f3; color: #fff; border-color: #0070f3; }
.reaction-icon { font-size: 1.05rem; }
.reaction-count { font-weight: 600; font-variant-numeric: tabular-nums; }

.article-page-back { text-align: center; margin-top: 2.5rem; }
.btn-back {
  display: inline-block; padding: .7rem 1.4rem;
  background: #fff; border: 1px solid #e2e6ed; border-radius: 10px;
  color: #374151; text-decoration: none; font-weight: 600;
  transition: all .15s ease;
}
.btn-back:hover { background: #0070f3; color: #fff; border-color: #0070f3; }

/* ─── Articles ticker ─────────────────────────────────────────── */
.articles-ticker {
  display: flex; align-items: stretch;
  background: #0f172a; color: #f1f5f9;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px; line-height: 1;
  overflow: hidden; position: relative;
}
.articles-ticker-label {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: #c8102e; color: #fff;
  font-weight: 800; letter-spacing: .08em;
  padding: 10px 16px;
  text-decoration: none; white-space: nowrap; text-transform: uppercase;
}
.articles-ticker-label:hover { background: #991b1b; }
.articles-ticker-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: artTickerPulse 1.6s ease-in-out infinite;
}
@keyframes artTickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}
.articles-ticker-viewport {
  flex: 1 1 auto; overflow: hidden; position: relative;
  display: flex; align-items: center; min-width: 0;
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.articles-ticker-list {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 0;
  margin: 0; padding: 0 12px 0 0;
  list-style: none; white-space: nowrap;
  animation: artTickerScroll 75s linear infinite;
  will-change: transform;
}
.articles-ticker:hover .articles-ticker-list { animation-play-state: paused; }
@keyframes artTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.articles-ticker-item {
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.articles-ticker-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #f1f5f9; text-decoration: none; transition: color .15s ease;
}
.articles-ticker-link:hover { color: #0070f3; }
.articles-ticker-date {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #f59e0b; text-transform: uppercase;
}
.articles-ticker-text { font-weight: 500; }
.articles-ticker-more {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,.04); color: #cfd3dc;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-decoration: none; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.articles-ticker-more:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 720px) {
  .articles-ticker-more { display: none; }
  .articles-ticker-label { padding: 9px 12px; font-size: 12px; }
  .articles-ticker-item { padding: 9px 16px; }
  .articles-ticker-list { animation-duration: 55s; }
}

/* ============================================================
   SportsPulse — Light Theme Stylesheet
   Clean white design, mobile-first
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #f4f6f9;
    --bg2:       #ffffff;
    --bg3:       #f0f2f5;
    --border:    #e2e6ed;
    --accent:    #0070f3;
    --accent2:   #0057c2;
    --green:     #16a34a;
    --red:       #dc2626;
    --yellow:    #d97706;
    --text:      #111827;
    --text2:     #374151;
    --muted:     #6b7280;
    --radius:    10px;
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10);
    --font:      'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; position: relative; overflow-x: hidden; }
/* Garantir que o conteúdo fica acima do fanart de fundo */
#site-header, #main-nav, .news-ticker-bar, #site-footer { position: relative; z-index: 2; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* --- Twemoji — emojis renderizados como imagens SVG ----- */
/* Critical: sem isto, os emojis renderizam tamanho natural (gigante) */
img.twemoji {
    height: 1em !important;
    width: 1em !important;
    margin: 0 .05em 0 .1em;
    vertical-align: -.125em;
    display: inline-block !important;
    max-width: none;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h3 { font-size: 1rem; }
.muted { color: var(--muted); font-size: .875rem; }

/* --- Layout ------------------------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.grid-main  { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 900px) {
    .grid-main { grid-template-columns: minmax(0, 1fr) 300px; }
}
/* Garante que as colunas do grid-main respeitam o seu tamanho mesmo com conteúdo flex/scroll */
.grid-main > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

/* --- Header ------------------------------------------------ */
#site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1.25rem; max-width: 1200px; margin: 0 auto;
}
.site-logo { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.site-logo span { color: var(--accent); }
.header-date { font-size: .8rem; color: var(--muted); }

/* --- Nav --------------------------------------------------- */
#main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    /* Sticky abaixo do #site-header (que tem ~60px de altura) */
    position: sticky !important;
    top: 60px;
    z-index: 99;  /* abaixo do site-header (100) */
    box-shadow: 0 2px 8px rgba(0,0,0,0); /* sem sombra inicialmente */
    transition: box-shadow .15s;
}
/* Quando sticky activo, adiciona sombra subtil para separar do conteúdo */
#main-nav.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.nav-inner {
    display: flex; overflow-x: auto; max-width: 1200px; margin: 0 auto;
    scrollbar-width: none; padding: 0 1.25rem;
}
.nav-inner::-webkit-scrollbar { display: none; }
/* No desktop o menu quebra para mostrar TODOS os links (mouse não rola barra escondida).
   No mobile mantém o scroll horizontal por toque. */
@media (min-width: 900px) {
    .nav-inner { flex-wrap: wrap; overflow-x: visible; }
}
.nav-sport {
    display: flex; align-items: center; gap: .35rem;
    padding: .65rem 1rem; white-space: nowrap; font-size: .875rem; font-weight: 600;
    color: var(--muted); border-bottom: 2px solid transparent; transition: .2s;
    text-decoration: none;
}
.nav-sport:hover, .nav-sport.active {
    color: var(--accent); border-color: var(--accent); text-decoration: none;
}
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-dropdown .nav-sport { padding-right: .35rem; }
.nav-caret {
    border: none; background: transparent; cursor: pointer;
    padding: .65rem .6rem .65rem .15rem; font-size: .75rem;
    color: var(--muted); border-bottom: 2px solid transparent;
    transition: .2s; line-height: 1;
}
.nav-caret:hover, .nav-dropdown:hover .nav-caret,
.nav-caret[aria-expanded="true"] {
    color: var(--accent);
}
.nav-caret[aria-expanded="true"] { transform: rotate(180deg); }
.nav-dropdown:hover .nav-submenu,
.nav-submenu.open { display: block; }
.nav-submenu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); min-width: 230px; z-index: 200;
    box-shadow: var(--shadow-md);
}
.nav-submenu a {
    display: block; padding: .55rem 1rem; font-size: .875rem; color: var(--text2);
    border-bottom: 1px solid var(--border);
}
.nav-submenu a:last-child { border-bottom: none; }
.nav-submenu a:hover { background: var(--bg3); color: var(--accent); text-decoration: none; }
.nav-submenu a.is-current { background: var(--bg3); color: var(--accent); font-weight: 700; }

/* Touch devices: disable hover-open so the caret button does it explicitly */
@media (hover: none) {
    .nav-dropdown:hover .nav-submenu { display: none; }
    .nav-submenu.open { display: block; }
}

/* --- Card -------------------------------------------------- */
.card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--bg3);
}
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1rem; }

/* --- League Selector --------------------------------------- */
.league-selector-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .875rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.ls-group { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.ls-group-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    color: var(--muted); letter-spacing: .06em;
    min-width: 100px; flex-shrink: 0; padding-top: .35rem;
}
.ls-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.ls-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .3rem .75rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--text2); text-decoration: none; transition: .15s; white-space: nowrap;
}
.ls-pill:hover { border-color: var(--accent); color: var(--accent); background: #eff6ff; text-decoration: none; }
.ls-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ls-flag { font-size: .95rem; }

/* --- League Selector Sidebar (compact, collapsible) -------- */
.ls-sidebar {
    padding: 0;
    overflow: hidden;
}
.ls-group-side {
    border-bottom: 1px solid var(--border);
}
.ls-group-side:last-child { border-bottom: none; }
.ls-group-summary {
    display: flex; align-items: center; gap: .5rem;
    padding: .65rem .85rem; cursor: pointer;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    color: var(--muted); letter-spacing: .05em;
    list-style: none; transition: background .12s;
    user-select: none;
}
.ls-group-summary::-webkit-details-marker { display: none; }
.ls-group-summary:hover { background: var(--bg3); }
.ls-group-name { flex: 1; }
.ls-group-side .ls-group-count {
    font-size: .65rem; color: var(--muted); margin-left: 0;
    background: var(--bg3); padding: .1rem .45rem; border-radius: 99px;
    font-weight: 700;
}
.ls-group-chevron {
    font-size: .75rem; color: var(--muted);
    transition: transform .18s;
}
.ls-group-side[open] .ls-group-chevron { transform: rotate(180deg); }
.ls-group-side[open] .ls-group-summary { color: var(--text); background: var(--bg3); }
.ls-pills-side {
    display: flex; flex-wrap: wrap; gap: .3rem;
    padding: .25rem .75rem .75rem;
}
.ls-pill-side {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .55rem; border-radius: 99px;
    font-size: .72rem; font-weight: 600;
    background: #fff; border: 1px solid var(--border);
    color: var(--text2); text-decoration: none;
    transition: .15s; white-space: nowrap;
}
.ls-pill-side:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.ls-pill-side.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.ls-pill-side .ls-flag { font-size: .85rem; }
.ls-pill-side .ls-short { font-size: .72rem; }

/* --- League Banner ----------------------------------------- */
.league-banner {
    position: relative; border-radius: var(--radius); overflow: hidden;
    margin-bottom: 1.25rem; box-shadow: var(--shadow-md);
    min-height: 160px; background: linear-gradient(135deg, #1e3a5f, #0070f3);
}
.league-banner-img {
    width: 100%; height: 180px; object-fit: cover;
    display: block; filter: brightness(.65);
}
.league-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 100%);
    display: flex; align-items: center; padding: 1.5rem 2rem; gap: 1.25rem;
}
.league-banner-badge {
    width: 64px; height: 64px; object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); flex-shrink: 0;
}
.league-banner-info { color: #fff; }
.league-banner-name { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; color: #fff; }
.league-banner-sub  { font-size: .875rem; opacity: .85; }
.league-banner-btn  {
    margin-left: auto; flex-shrink: 0;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
    color: #fff; padding: .45rem 1.1rem; border-radius: 8px; font-size: .8rem; font-weight: 700;
    text-decoration: none; transition: .15s; backdrop-filter: blur(4px);
}
.league-banner-btn:hover { background: rgba(255,255,255,.3); text-decoration: none; color: #fff; }
/* Banner sem imagem */
.league-banner-plain {
    display: flex; align-items: center; padding: 1.25rem 1.5rem; gap: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    border-radius: var(--radius); margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}
.league-banner-plain .league-banner-name { font-size: 1.3rem; }

/* ── Copa 2026 Homepage Section ──────────────────────────── */
.copa-home-section {
    background: linear-gradient(135deg, #7b0021 0%, #c8102e 45%, #003da5 100%);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(200,16,46,.25);
}
.copa-home-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; gap: 1rem;
}
.copa-home-title { display: flex; align-items: center; gap: .75rem; }
.copa-home-trophy { font-size: 2rem; flex-shrink: 0; }
.copa-home-name { font-size: 1.1rem; font-weight: 800; }
.copa-home-sub  { font-size: .75rem; color: rgba(255,255,255,.75); margin-top: .1rem; }
.copa-home-btn  {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    color: #fff; padding: .4rem 1rem; border-radius: 6px;
    font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    flex-shrink: 0;
}
.copa-home-btn:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

.copa-home-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
}
.copa-home-match {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px; padding: .75rem 1rem;
    position: relative;
    backdrop-filter: blur(4px);
}
.copa-home-match.match-live {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.18);
}
.match-live-dot {
    position: absolute; top: .6rem; right: .75rem;
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    animation: pulse 1s infinite;
}
.copa-match-group { font-size: .68rem; color: rgba(255,255,255,.65); font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.copa-match-teams {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.copa-match-team { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.copa-match-team.away { flex-direction: row-reverse; text-align: right; }
.copa-match-team span { font-size: .85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copa-match-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.copa-match-score {
    display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
    font-size: 1.3rem; font-weight: 800;
}
.copa-score-sep { color: rgba(255,255,255,.5); }
.copa-score-time { font-size: .82rem; font-weight: 700;
    background: rgba(255,255,255,.2); padding: .2rem .5rem; border-radius: 4px; }
.copa-match-clock { font-size: .7rem; color: rgba(255,255,255,.65);
    text-align: center; margin-top: .4rem; }
.copa-home-nogames { color: rgba(255,255,255,.8); font-size: .9rem; padding: .5rem 0; }
.copa-home-nogames a { color: #fff; font-weight: 700; }

/* ── Jogos de Hoje Strip ──────────────────────────────────── */
.today-strip-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.today-strip-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .85rem;
}
.today-strip-title {
    font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; gap: .6rem;
}
.today-strip-date {
    font-size: .75rem; font-weight: 500;
    color: var(--muted); background: var(--bg3);
    padding: .2rem .55rem; border-radius: 99px;
}
.today-strip-all {
    font-size: .8rem; font-weight: 600; color: var(--accent);
    text-decoration: none; white-space: nowrap;
}
.today-strip-all:hover { text-decoration: underline; }

/* Grid de cards de ligas — expande para preencher o espaço */
.today-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem;
}
/* Scroll horizontal só quando há muitos cards */
@media (max-width: 600px) {
    .today-strip {
        display: flex; gap: .75rem;
        overflow-x: auto; padding-bottom: .5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .today-strip::-webkit-scrollbar { height: 4px; }
    .today-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
}

/* Card de cada liga */
.today-league-card {
    min-width: 0;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
}
@media (max-width: 600px) {
    .today-league-card { flex: 0 0 190px; scroll-snap-align: start; }
}
.today-league-head {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem .75rem;
    background: var(--bg3); border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
}
.today-league-head:hover { background: var(--border); }
.today-league-badge { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.today-league-flag  { font-size: 1rem; flex-shrink: 0; }
.today-league-name  { font-size: .75rem; font-weight: 700; flex: 1; }
.today-league-count { font-size: .65rem; color: var(--muted); white-space: nowrap; }

/* Pills "Hoje" / "Em breve" no header do card */
.card-type-pill {
    font-size: .58rem; font-weight: 800; border-radius: 4px;
    padding: .1rem .35rem; white-space: nowrap; margin-left: auto; flex-shrink: 0;
}
.pill-today { background: #dcfce7; color: var(--green); }
.pill-next  { background: #dbeafe; color: var(--accent); }

/* Destaque subtil no card com jogos de hoje */
.card-today { border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }

/* Cada jogo dentro do card */
.today-match {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-bottom: 1px solid var(--border);
}
.today-match:last-of-type { border-bottom: none; }
.today-match-teams { min-width: 0; }
.today-match-team {
    display: flex; align-items: center; gap: .35rem;
    line-height: 1.5;
}
.today-match-team.is-winner .today-match-name { font-weight: 700; color: var(--text); }
.today-match-badge { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.today-match-name  { font-size: .78rem; color: var(--text2); flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-match-score { font-size: .82rem; color: var(--muted); min-width: 14px; text-align: right; flex-shrink: 0; }
.today-match-score.score-bold { font-weight: 800; color: var(--text); }
.today-match-status { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.today-match-time  {
    font-size: .68rem; font-weight: 700; color: var(--accent);
    background: #dbeafe; padding: .15rem .4rem; border-radius: 4px; white-space: nowrap;
}
.today-match-ft {
    font-size: .65rem; font-weight: 700; color: var(--green);
    background: #dcfce7; padding: .15rem .4rem; border-radius: 4px;
}
.today-more {
    display: block; text-align: center;
    font-size: .72rem; color: var(--accent); padding: .35rem;
    text-decoration: none; background: var(--bg3);
}
.today-more:hover { background: var(--border); }
.today-empty {
    font-size: .85rem; color: var(--muted); padding: .5rem 0;
}
.today-empty a { color: var(--accent); }

/* Próximas Partidas */
.upcoming-section {
    margin-top: 1rem; padding-top: .85rem;
    border-top: 1px solid var(--border);
}

/* Seletor de ligas do mesmo desporto */
.cal-league-selector-wrap {
    position: relative;
    border-bottom: 1px solid var(--border);
}
/* Quebra para várias linhas — mostra TODAS as ligas sem cortar à direita */
.cal-league-selector {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .6rem .75rem .5rem;
}
.cal-league-selector::-webkit-scrollbar { display: none; }
.cal-league-tab {
    display: flex; align-items: center; gap: .35rem;
    flex-shrink: 0; padding: .35rem .7rem;
    border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg3); cursor: pointer;
    font-size: .78rem; font-weight: 600; color: var(--text2);
    transition: all .15s; white-space: nowrap;
}
.cal-league-tab:hover { border-color: var(--accent); color: var(--accent); }
.cal-league-tab.active {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.cal-league-tab-badge { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.cal-league-tab.active .cal-league-tab-badge { filter: brightness(10); }
.cal-league-tab-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

/* Navegação de datas do calendário da liga */
.cal-date-nav {
    display: flex; align-items: center; gap: .35rem;
    padding: .75rem .75rem .5rem;
    overflow-x: auto; scrollbar-width: none;
}
.cal-date-nav::-webkit-scrollbar { display: none; }
.cal-nav-arrow {
    font-size: 1.3rem; font-weight: 700; color: var(--muted);
    padding: .2rem .4rem; border-radius: 6px; text-decoration: none;
    flex-shrink: 0; line-height: 1;
}
.cal-nav-arrow:hover { background: var(--bg3); color: var(--text); }
.cal-day-btn {
    flex-shrink: 0; padding: .35rem .7rem;
    border-radius: 8px; font-size: .78rem; font-weight: 600;
    color: var(--text2); text-decoration: none;
    background: var(--bg3); border: 1px solid var(--border);
    white-space: nowrap; transition: all .15s;
}
.cal-day-btn:hover { border-color: var(--accent); color: var(--accent); }
.cal-day-btn.active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
}

/* Separador de data no calendário da liga */
.league-calendar { }
.cal-date-sep {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .75rem;
    font-size: .72rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em;
    background: var(--bg3); border-top: 1px solid var(--border);
}
.league-calendar .event-row--result:first-child,
.league-calendar .event-row--fixture:first-child { border-top: none; }
.cal-today-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
/* Placeholder — sem jogos */
.cal-empty {
    text-align: center; padding: 2rem 1rem;
    color: var(--muted);
}
.cal-empty-icon  { font-size: 2.5rem; margin-bottom: .5rem; }
.cal-empty-title { font-weight: 700; color: var(--text2); margin-bottom: .35rem; }
.cal-empty-sub   { font-size: .82rem; line-height: 1.5; }

/* Rodapé do calendário */
.cal-footer {
    padding: .65rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.cal-more-btn {
    font-size: .82rem; font-weight: 600;
    color: var(--accent); text-decoration: none;
}
.cal-more-btn:hover { text-decoration: underline; }

/* --- Event rows -------------------------------------------- */
.event-row--result,
.event-row--fixture {
    display: flex; align-items: center;
    padding: .75rem 1rem; border-bottom: 1px solid var(--border);
    gap: .75rem; transition: background .12s;
}
.event-row--result:last-child,
.event-row--fixture:last-child { border-bottom: none; }
.event-row--result:hover,
.event-row--fixture:hover { background: var(--bg3); }

.event-teams-col { flex: 1; min-width: 0; }
.event-team { display: flex; align-items: center; gap: .4rem; line-height: 1.3; }
.team-badge-sm { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.team-name { font-size: .875rem; color: var(--text2); flex: 1; }
.team-winner { font-weight: 700; color: var(--text); }
.event-score-col { text-align: center; min-width: 64px; }
.event-meta { text-align: right; font-size: .78rem; color: var(--muted); min-width: 100px; }

/* Score inline (ao lado do nome da equipa) */
.event-score-inline {
    font-size: .9rem; font-weight: 700; color: var(--muted);
    min-width: 18px; text-align: right; flex-shrink: 0;
}
.event-score-inline.score-win { color: var(--text); font-weight: 800; }

/* "vs" no centro dos fixtures */
.event-vs-col { min-width: 52px; text-align: center; flex-shrink: 0; }
.event-vs { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; }

/* score box */
.score {
    background: var(--text); color: #fff;
    padding: .25rem .6rem; border-radius: 6px;
    font-weight: 800; font-size: .9rem; display: inline-block;
}

/* --- Standings Table --------------------------------------- */
/* Rede de segurança: se mesmo assim não couber, rola dentro do cartão em vez de cortar */
.card:has(> .standings-table) { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.standings-table th {
    text-align: center; padding: .45rem .3rem; color: var(--muted);
    font-weight: 600; font-size: .72rem; text-transform: uppercase;
    border-bottom: 2px solid var(--border); background: var(--bg3);
    white-space: nowrap;
}
.standings-table th:first-child,
.standings-table th:nth-child(2) { text-align: left; padding-left: .6rem; }
.standings-table td {
    text-align: center; padding: .5rem .3rem;
    border-bottom: 1px solid var(--border); font-size: .85rem;
    white-space: nowrap;
}
.standings-table td:first-child { text-align: left; padding-left: .6rem; }
/* Coluna do nome absorve o espaço restante e trunca com reticências */
.standings-table td:nth-child(2) { max-width: 0; width: 100%; }
.standings-table tr:hover td { background: #f0f7ff; }
.standings-table .pos { color: var(--muted); font-size: .78rem; width: 24px; }
.standings-table .team-cell { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.standings-table .team-cell a {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.standings-table .team-badge { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.standings-table .pts { font-weight: 800; color: var(--text); }
.cl-zone  td:first-child { border-left: 3px solid var(--accent); }
.rel-zone td:first-child { border-left: 3px solid var(--red); }
.eul-zone td:first-child { border-left: 3px solid var(--yellow); }

/* --- Highlight cards --------------------------------------- */
.highlight-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
.highlight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg3); display: block; }
.highlight-thumb[data-yt] { cursor: pointer; }
.highlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight-play-link:hover { color: var(--accent) !important; text-decoration: underline; }
.play-btn {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); transition: .2s;
}
.play-btn:hover { background: rgba(0,0,0,.5); }
.play-btn svg { width: 44px; height: 44px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.highlight-info { padding: .75rem; }
.highlight-title { font-weight: 600; font-size: .875rem; line-height: 1.35; margin-bottom: .25rem; color: var(--text); }
.highlight-meta  { font-size: .78rem; color: var(--muted); }

/* --- Player cards ----------------------------------------- */
.player-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.player-card:hover { background: var(--bg3); }
.player-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.player-name  { font-weight: 600; color: var(--text); }
.player-pos   { font-size: .78rem; color: var(--muted); }

/* --- Hero (league/team pages) ------------------------------ */
.hero {
    background: linear-gradient(135deg, #1e3a5f, #0070f3);
    padding: 2rem 1.25rem;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; }
.hero-badge { width: 80px; height: 80px; object-fit: contain; }
.hero-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.hero-sub   { color: rgba(255,255,255,.75); font-size: .9rem; }
.hero-meta span { display: inline-block; margin-right: 1rem; font-size: .85rem; color: rgba(255,255,255,.75); }

/* --- AdSense placeholder ----------------------------------- */
.ad-slot {
    background: var(--bg3); border: 1px dashed var(--border);
    border-radius: var(--radius); text-align: center;
    color: var(--muted); font-size: .75rem; min-height: 60px;
    display: flex; align-items: center; justify-content: center;
    margin: .75rem 0;
}

/* --- Footer ------------------------------------------------ */
#site-footer {
    background: #1e293b; color: #94a3b8;
    margin-top: 3rem; padding: 2rem 1.25rem; font-size: .85rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb { font-size: .8rem; color: var(--muted); padding: .75rem 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.mt1 { margin-top: .5rem; }
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 1.5rem; }
.mb1 { margin-bottom: .5rem; }
.mb2 { margin-bottom: 1rem; }
.pill {
    display: inline-block; padding: .2rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700;
}
.pill-green  { background: #dcfce7; color: var(--green);  }
.pill-red    { background: #fee2e2; color: var(--red);    }
.pill-yellow { background: #fef3c7; color: var(--yellow); }
.pill-blue   { background: #dbeafe; color: var(--accent); }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }

/* ============================================================
   FOOTBALL TABLES PAGE
   ============================================================ */
.tables-page-header { text-align: center; margin-bottom: 1.5rem; }
.tables-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: .25rem;
}
.tables-page-header p { color: var(--muted); font-size: .95rem; }

/* Tabs agrupadas por região */
.tables-tabs-wrap {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .75rem 1rem; margin-bottom: 1.25rem;
    display: flex; flex-direction: column; gap: .55rem;
}
.tables-tabs-group { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.tables-tabs-region {
    font-size: .65rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted);
    min-width: 110px; flex-shrink: 0;
}
.tables-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tables-tab {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: 99px;
    font-size: .78rem; font-weight: 700;
    background: var(--bg3); border: 1.5px solid transparent;
    color: var(--text2); text-decoration: none; white-space: nowrap;
    transition: all .15s;
}
.tables-tab:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.tables-tab.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.tables-tab-flag { font-size: 1rem; }
.tables-tab-name { font-size: .78rem; }

/* League header (banner com badge sobreposto) */
.tables-league-header {
    position: relative; border-radius: var(--radius);
    overflow: hidden; min-height: 140px;
    background: linear-gradient(135deg, #1e3a5f, #0070f3);
    background-size: cover; background-position: center;
    margin-bottom: 1rem; box-shadow: var(--shadow-md);
}
.tables-league-header-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.45) 60%,
        rgba(0,0,0,.2)  100%);
}
.tables-league-header-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.5rem 2rem; color: #fff;
}
.tables-league-badge {
    width: 80px; height: 80px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.6));
}
.tables-league-badge-fallback {
    font-size: 3.5rem; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.5));
}
.tables-league-info { min-width: 0; }
.tables-league-region {
    font-size: .72rem; color: rgba(255,255,255,.7);
    text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem;
}
.tables-league-info h2 {
    font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
    color: #fff; letter-spacing: -.02em; line-height: 1.1;
    margin-bottom: .35rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.tables-league-stats {
    font-size: .8rem; color: rgba(255,255,255,.8);
}

/* Standings table */
.tables-card { overflow: hidden; }
.tables-scroll { overflow-x: auto; }
.tables-full {
    width: 100%; border-collapse: collapse; font-size: .88rem;
    min-width: 720px;
}
.tables-full th {
    text-align: center; padding: .6rem .45rem;
    color: var(--muted); font-weight: 700;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 2px solid var(--border); background: var(--bg3);
    position: sticky; top: 0;
}
.tables-full th.col-pos { width: 36px; text-align: left; padding-left: 1rem; }
.tables-full th.col-team { text-align: left; padding-left: .5rem; min-width: 180px; }
.tables-full th.col-pts { background: var(--bg3); }
.tables-full th.col-form { text-align: center; min-width: 130px; }
.tables-full td {
    text-align: center; padding: .65rem .45rem;
    border-bottom: 1px solid var(--border);
    font-size: .88rem; color: var(--text2);
}
.tables-full td.col-pos { padding-left: 1rem; text-align: left;
                          color: var(--muted); font-weight: 700; font-size: .85rem; }
.tables-full td.col-team { text-align: left; padding-left: .5rem; }
.tables-full td.pts { font-weight: 800; color: var(--text); font-size: .95rem; background: var(--bg3); }
.tables-full td.col-form { text-align: center; }
.tables-full tr:hover td { background: #f0f7ff; }
.tables-full tr:hover td.pts { background: #dbeafe; }

.tables-full .team-cell { display: flex; align-items: center; gap: .55rem; }
.tables-full .team-badge { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.tables-full .team-link { color: var(--text); font-weight: 600; }
.tables-full .team-link:hover { color: var(--accent); text-decoration: none; }

/* Goal Difference colors */
.tables-full td.gd-pos { color: var(--green); font-weight: 700; }
.tables-full td.gd-neg { color: var(--red); font-weight: 700; }

/* Zone borders */
.tables-full tr.cl-zone  td.col-pos { box-shadow: inset 3px 0 0 var(--accent); }
.tables-full tr.eul-zone td.col-pos { box-shadow: inset 3px 0 0 var(--yellow); }
.tables-full tr.rel-zone td.col-pos { box-shadow: inset 3px 0 0 var(--red); }

/* Form pills */
.form-pills {
    display: inline-flex; gap: 3px;
    justify-content: center; align-items: center;
}
.form-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 4px;
    font-size: .7rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.form-pill-w { background: var(--green); }
.form-pill-l { background: var(--red); }
.form-pill-d { background: var(--muted); }

/* Legend */
.tables-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: .85rem 1rem; border-top: 1px solid var(--border);
    background: var(--bg3); font-size: .72rem; color: var(--muted);
}
.legend-item {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600;
}
.legend-item::before {
    content: ''; width: 4px; height: 14px; border-radius: 2px;
    display: inline-block;
}
.legend-cl::before  { background: var(--accent); }
.legend-eul::before { background: var(--yellow); }
.legend-rel::before { background: var(--red); }
.legend-spacer { flex: 1; }
.legend-info { color: var(--muted); }

@media (max-width: 600px) {
    .tables-tabs-region { min-width: 100%; margin-bottom: .25rem; }
    .tables-league-header-content { padding: 1rem 1.25rem; gap: 1rem; }
    .tables-league-badge { width: 56px; height: 56px; }
    .tables-full { font-size: .78rem; }
    .form-pill { width: 18px; height: 18px; font-size: .62rem; }
    .tables-legend { gap: .5rem; }
    .legend-info { display: none; }
}

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-page-header { text-align: center; margin-bottom: 1.5rem; }
.news-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: .25rem;
}
.news-page-header p { color: var(--muted); font-size: .9rem; }

/* Source filter chips */
.news-filter {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.5rem;
    padding: .85rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.news-filter-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .85rem; border-radius: 99px;
    font-size: .82rem; font-weight: 700;
    background: var(--bg3); border: 1.5px solid transparent;
    color: var(--text2); text-decoration: none;
    transition: all .15s;
}
.news-filter-chip:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.news-filter-chip.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.news-filter-count {
    display: inline-block; padding: .05rem .4rem;
    font-size: .68rem; border-radius: 99px;
    background: rgba(0,0,0,.08); color: inherit; font-weight: 800;
}
.news-filter-chip.active .news-filter-count {
    background: rgba(255,255,255,.25);
}

/* News grid (cards maiores) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.news-card-lg {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); text-decoration: none; color: var(--text);
    transition: box-shadow .18s, transform .15s, border-color .18s;
}
.news-card-lg:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent);
    text-decoration: none;
}
.news-card-lg-img-wrap {
    aspect-ratio: 16/9; background: var(--bg3); overflow: hidden;
}
.news-card-lg-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.news-card-lg:hover .news-card-lg-img { transform: scale(1.04); }
.news-card-lg-body {
    padding: 1rem; display: flex; flex-direction: column; gap: .5rem;
    flex: 1;
}
.news-card-lg-source-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
}
.news-card-lg-source {
    font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--accent);
    background: #eff6ff; padding: .15rem .55rem;
    border-radius: 4px;
}
.news-card-lg-date { font-size: .7rem; color: var(--muted); }
.news-card-lg-title {
    font-size: .95rem; font-weight: 700; color: var(--text);
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-lg-desc {
    font-size: .8rem; color: var(--muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-lg-footer {
    margin-top: auto; padding-top: .5rem;
    border-top: 1px solid var(--border);
}
.news-card-lg-arrow {
    font-size: .78rem; color: var(--accent); font-weight: 700;
}

/* Pagination */
.news-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; padding: 1rem; margin-top: 1rem;
    flex-wrap: wrap;
}
.news-page-btn {
    padding: .5rem 1.1rem; border-radius: 8px;
    background: #fff; border: 1.5px solid var(--border);
    color: var(--text); font-size: .85rem; font-weight: 700;
    text-decoration: none; transition: all .15s;
}
.news-page-btn:hover:not(.disabled) {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.news-page-btn.disabled {
    color: var(--muted); background: var(--bg3); cursor: not-allowed;
}
.news-page-info {
    font-size: .85rem; color: var(--text2);
}

@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; gap: .75rem; }
    .news-filter-chip { font-size: .75rem; padding: .35rem .65rem; }
}

/* ============================================================
   TODAY'S GAMES PAGE
   ============================================================ */
.today-page-header { text-align: center; margin-bottom: 1.25rem; }
.today-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: .25rem;
}
.today-page-header p { color: var(--muted); font-size: .9rem; }

/* Date navigation */
.today-date-nav {
    display: flex; gap: .35rem; overflow-x: auto;
    padding: .75rem 1rem; margin-bottom: 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    scrollbar-width: none;
}
.today-date-nav::-webkit-scrollbar { display: none; }
.today-date-pill {
    flex-shrink: 0; padding: .5rem 1rem; border-radius: 8px;
    font-size: .82rem; font-weight: 700;
    background: var(--bg3); border: 1.5px solid transparent;
    color: var(--text2); text-decoration: none;
    transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    line-height: 1.2; min-width: 80px;
}
.today-date-pill:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.today-date-pill.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.today-date-pill.is-today:not(.active) {
    border-color: var(--accent); color: var(--accent);
}
.today-date-pill-sub {
    font-size: .65rem; opacity: .75; font-weight: 600;
}

/* Sport filter */
.today-sport-filter {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.5rem;
}
.today-sport-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: 99px;
    font-size: .8rem; font-weight: 700;
    background: var(--bg2); border: 1.5px solid var(--border);
    color: var(--text2); text-decoration: none;
    transition: all .15s;
}
.today-sport-chip:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}
.today-sport-chip.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.today-sport-count {
    display: inline-block; padding: 0 .4rem;
    font-size: .7rem; border-radius: 99px;
    background: rgba(0,0,0,.08); color: inherit; font-weight: 800;
}
.today-sport-chip.active .today-sport-count { background: rgba(255,255,255,.25); }

/* League block */
.today-league-block { margin-bottom: 1.5rem; }
.today-league-header {
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
}
.today-league-badge { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.today-league-flag { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.today-league-info { flex: 1; min-width: 0; }
.today-league-name {
    font-size: .95rem; font-weight: 800; color: var(--text);
    text-decoration: none; display: block; line-height: 1.2;
}
.today-league-name:hover { color: var(--accent); text-decoration: none; }
.today-league-meta {
    font-size: .72rem; color: var(--muted); margin-top: .15rem;
}
.today-league-link {
    font-size: .78rem; color: var(--accent); font-weight: 700;
    text-decoration: none; flex-shrink: 0;
}
.today-league-link:hover { text-decoration: none; opacity: .8; }

/* Games grid */
.today-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.today-game-card {
    padding: .85rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .12s;
    display: flex; flex-direction: column; gap: .35rem;
}
.today-game-card:hover { background: #f0f7ff; }
/* Remover borders desnecessárias */
.today-games-grid > .today-game-card:last-child { border-bottom: none; border-right: none; }
@media (min-width: 580px) {
    .today-games-grid > .today-game-card:nth-child(2n) { border-right: none; }
    .today-games-grid > .today-game-card:nth-last-child(-n+2):nth-child(2n+1) { border-bottom: none; }
    .today-games-grid > .today-game-card:last-child { border-bottom: none; }
}

.today-game-status { display: flex; justify-content: flex-end; margin-bottom: .15rem; }
.game-status-pill {
    display: inline-block; padding: .15rem .55rem;
    font-size: .7rem; font-weight: 800; border-radius: 4px;
    letter-spacing: .02em;
}
.game-status-ft { background: #f0f2f5; color: var(--muted); }
.game-status-live {
    background: #fee2e2; color: var(--red);
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.game-status-upcoming { background: #dbeafe; color: var(--accent); }

.today-game-teams { display: flex; flex-direction: column; gap: .3rem; }
.today-game-team {
    display: flex; align-items: center; gap: .5rem;
    font-size: .9rem;
}
.today-game-badge { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.today-game-team-name {
    flex: 1; min-width: 0; color: var(--text2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.today-game-team-name.is-winner { font-weight: 700; color: var(--text); }
.today-game-score {
    font-weight: 800; color: var(--text); font-size: 1.05rem;
    min-width: 22px; text-align: right;
}

.today-game-venue {
    font-size: .72rem; color: var(--muted);
    padding-top: .35rem; border-top: 1px solid var(--border);
    margin-top: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .today-games-grid { grid-template-columns: 1fr; }
    .today-game-card { border-right: none !important; }
    .today-league-link { display: none; }
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-header { text-align: center; margin-bottom: 1.25rem; }
.search-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: .25rem;
}
.search-page-header p { color: var(--muted); font-size: .95rem; }

.search-form {
    display: flex; align-items: center; gap: .5rem;
    max-width: 640px; margin: 0 auto 1.5rem;
    background: #fff; border: 2px solid var(--border);
    border-radius: 12px; padding: .35rem .35rem .35rem 1rem;
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.search-form-icon { font-size: 1.1rem; color: var(--muted); }
.search-form input[type="search"] {
    flex: 1; border: none; outline: none; background: transparent;
    padding: .65rem 0; font-size: 1rem; color: var(--text);
    font-family: var(--font);
}
.search-form input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.search-form-btn {
    padding: .65rem 1.25rem; border-radius: 8px; border: none;
    background: var(--accent); color: #fff; font-size: .9rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
    font-family: var(--font);
}
.search-form-btn:hover { background: var(--accent2); }

.search-hint, .search-summary {
    text-align: center; color: var(--muted); font-size: .9rem;
    margin: 0 0 1.25rem;
}
.search-summary { color: var(--text2); }

.search-section { margin-bottom: 2rem; }
.search-section-title {
    font-size: 1rem; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .85rem;
    padding-bottom: .5rem; border-bottom: 2px solid var(--border);
}
.search-count {
    font-size: .7rem; font-weight: 800;
    padding: .1rem .5rem; border-radius: 99px;
    background: var(--bg3); color: var(--muted);
}

/* Leagues grid */
.search-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .65rem;
}
.search-league-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); transition: all .15s;
}
.search-league-card:hover {
    border-color: var(--accent); transform: translateY(-1px);
    box-shadow: var(--shadow-md); text-decoration: none;
}
.search-league-flag {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg3); border-radius: 8px;
    font-size: 1.5rem; flex-shrink: 0;
}
.search-league-flag .twemoji { width: 24px !important; height: 24px !important; margin: 0; }
.search-league-name { font-size: .9rem; font-weight: 700; color: var(--text); }
.search-league-meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }

/* Teams grid */
.search-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .65rem;
}
.search-team-card {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); transition: all .15s;
}
.search-team-card:hover {
    border-color: var(--accent); transform: translateY(-1px);
    box-shadow: var(--shadow-md); text-decoration: none;
}
.search-team-badge {
    width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
}
.search-team-badge-fallback {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg3); border-radius: 8px; font-size: 1.5rem;
}
.search-team-info { min-width: 0; flex: 1; }
.search-team-name {
    font-size: .9rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-team-meta { font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.search-team-league {
    font-size: .7rem; color: var(--accent); font-weight: 600;
    margin-top: .2rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Players grid */
.search-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .65rem;
}
.search-player-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); transition: all .15s;
}
.search-player-card:hover {
    border-color: var(--accent); transform: translateY(-1px);
    box-shadow: var(--shadow-md); text-decoration: none;
}
.search-player-thumb {
    width: 48px; height: 48px; object-fit: cover; flex-shrink: 0;
    border-radius: 50%; background: var(--bg3);
}
.search-player-thumb-fallback {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg3); border-radius: 50%; font-size: 1.5rem;
}
.search-player-info { min-width: 0; flex: 1; }
.search-player-name {
    font-size: .88rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-player-meta { font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.search-player-team {
    font-size: .7rem; color: var(--accent); font-weight: 600;
    margin-top: .15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.search-show-more {
    text-align: center; color: var(--muted); font-size: .82rem;
    margin-top: .75rem; padding: .5rem;
    background: var(--bg3); border-radius: 8px;
}

/* Empty state */
.search-empty-state {
    text-align: center; padding: 2.5rem 1.5rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-top: 1rem;
}
.search-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .6; }
.search-empty-state h3 {
    font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem;
}
.search-empty-state p { color: var(--muted); margin-bottom: 1.25rem; }
.search-suggestions {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.search-suggestion {
    padding: .4rem 1rem; border-radius: 99px;
    background: var(--bg3); border: 1.5px solid var(--border);
    font-size: .82rem; font-weight: 600;
    color: var(--text2); text-decoration: none;
    transition: all .15s;
}
.search-suggestion:hover {
    border-color: var(--accent); color: var(--accent);
    background: #eff6ff; text-decoration: none;
}

@media (max-width: 600px) {
    .search-form { padding: .25rem .25rem .25rem .75rem; }
    .search-form input { font-size: .9rem; }
    .search-form-btn { padding: .55rem 1rem; font-size: .82rem; }
    .search-section-title { font-size: .92rem; }
}

/* ============================================================
   TOP SCORERS PAGE
   ============================================================ */
.scorers-page-header { text-align: center; margin-bottom: 1.5rem; }
.scorers-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: .25rem;
}
.scorers-page-header p { color: var(--muted); font-size: .95rem; }

/* Setup card quando falta API key */
.scorers-setup { padding: 2rem 1.5rem; text-align: center; }
.scorers-setup-icon { font-size: 3rem; margin-bottom: .75rem; }
.scorers-setup h2 { font-size: 1.3rem; margin-bottom: .75rem; font-weight: 800; }
.scorers-setup p { color: var(--text2); margin-bottom: 1rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.scorers-setup ol {
    text-align: left; max-width: 540px; margin: 0 auto 1rem;
    padding-left: 1.5rem; color: var(--text2); font-size: .92rem;
}
.scorers-setup ol li { margin-bottom: .35rem; line-height: 1.6; }
.scorers-setup code {
    background: var(--bg3); padding: .15rem .4rem;
    border-radius: 4px; font-size: .82rem;
}
.scorers-setup .muted { font-size: .82rem; color: var(--muted); }

/* Scorers list */
.scorers-card { overflow: hidden; }
.scorers-list { display: flex; flex-direction: column; }

.scorer-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.scorer-row:last-child { border-bottom: none; }
.scorer-row:hover { background: #f0f7ff; }

.scorer-podium { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent); }
.scorer-rank-1 { background: linear-gradient(90deg, rgba(217, 119, 6, .12), transparent); }
.scorer-rank-2 { background: linear-gradient(90deg, rgba(148, 163, 184, .12), transparent); }
.scorer-rank-3 { background: linear-gradient(90deg, rgba(180, 83, 9, .12), transparent); }

.scorer-rank {
    font-size: 1.4rem; font-weight: 800;
    color: var(--muted); flex-shrink: 0;
    min-width: 40px; text-align: center;
}
.scorer-podium .scorer-rank { font-size: 1.8rem; }

.scorer-info { flex: 1; min-width: 0; }
.scorer-name {
    font-size: 1rem; font-weight: 700; color: var(--text);
    line-height: 1.2; margin-bottom: .25rem;
}
.scorer-podium .scorer-name { font-size: 1.1rem; }
.scorer-meta {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: var(--muted);
}
.scorer-team-crest {
    width: 18px; height: 18px; object-fit: contain;
    flex-shrink: 0;
}
.scorer-team-name { color: var(--text2); font-weight: 600; }
.scorer-nationality { color: var(--muted); }

.scorer-stats {
    display: flex; gap: .75rem; align-items: center;
    flex-shrink: 0;
}
.scorer-stat {
    text-align: center; min-width: 44px;
    padding: .35rem .55rem; border-radius: 8px;
}
.scorer-stat-main {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 25%, transparent);
}
.scorer-stat:not(.scorer-stat-main) { background: var(--bg3); }
.scorer-stat-value {
    font-size: 1.1rem; font-weight: 800;
    color: inherit; line-height: 1;
}
.scorer-stat:not(.scorer-stat-main) .scorer-stat-value { color: var(--text); }
.scorer-stat-label {
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    margin-top: .15rem; opacity: .85;
}
.scorer-stat:not(.scorer-stat-main) .scorer-stat-label { color: var(--muted); }

@media (max-width: 600px) {
    .scorer-row { padding: .65rem .85rem; gap: .65rem; }
    .scorer-rank { min-width: 32px; font-size: 1.1rem; }
    .scorer-podium .scorer-rank { font-size: 1.4rem; }
    .scorer-name { font-size: .92rem; }
    .scorer-stats { gap: .35rem; }
    .scorer-stat { padding: .25rem .4rem; min-width: 36px; }
    .scorer-stat-value { font-size: .92rem; }
    .scorer-stat-label { font-size: .55rem; }
    /* esconde pen+apps em mobile, mantém só goals e assists */
    .scorer-stat:nth-child(3),
    .scorer-stat:nth-child(4) { display: none; }
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: .5rem; }

/* --- Date bar ---------------------------------------------- */
.date-bar {
    display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 1rem;
    background: var(--bg3); border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.date-bar::-webkit-scrollbar { display: none; }
.date-pill {
    flex-shrink: 0; padding: .3rem .85rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
    background: #fff; border: 1px solid var(--border); color: var(--muted);
    text-decoration: none; transition: .15s;
}
.date-pill:hover, .date-pill.active {
    background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none;
}

/* --- Section header --------------------------------------- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem;
}
.section-head h2 { font-size: 1rem; font-weight: 700; color: var(--text); }
.section-head a { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* --- Same-region sidebar ----------------------------------- */
.same-region-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem 1rem; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text); transition: background .12s;
}
.same-region-item:last-child { border-bottom: none; }
.same-region-item:hover { background: #f0f7ff; text-decoration: none; }
.same-region-flag { font-size: 1.3rem; }
.same-region-name { font-weight: 600; font-size: .875rem; color: var(--text); }
.same-region-sport { font-size: .75rem; color: var(--muted); }

/* --- Button ------------------------------------------------ */
.btn-outline {
    padding: .4rem 1rem; border-radius: 8px; font-size: .8rem; font-weight: 700;
    border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none;
    transition: .15s; white-space: nowrap; display: inline-block;
}
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* --- League Spotlight cards -------------------------------- */
.league-spotlight-card {
    position: relative; display: block;
    border-radius: var(--radius); overflow: hidden;
    height: 80px; margin-bottom: .6rem;
    text-decoration: none; box-shadow: var(--shadow);
    background: #0f172a;
    transition: box-shadow .15s, transform .12s;
}
.league-spotlight-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none;
}
.league-spotlight-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.42) saturate(1.1);
}
.league-spotlight-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem 1rem; height: 100%;
}
.league-spotlight-badge {
    width: 44px; height: 44px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.league-spotlight-text  { flex: 1; min-width: 0; }
.league-spotlight-sport { font-size: .7rem; color: rgba(255,255,255,.6);
                          text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }
.league-spotlight-name  { font-size: .9rem; font-weight: 800; color: #fff;
                          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-spotlight-arrow { color: rgba(255,255,255,.5); font-size: 1.1rem; flex-shrink: 0; }

/* --- News Ticker Bar --------------------------------------- */
.news-ticker-bar {
    display: flex; align-items: center;
    background: #0f172a; color: #fff;
    overflow: hidden; height: 36px;
    font-size: .78rem;
}
.ticker-label {
    background: var(--accent); color: #fff;
    padding: 0 .9rem; font-weight: 700; white-space: nowrap;
    height: 100%; display: flex; align-items: center; flex-shrink: 0;
    font-size: .75rem; letter-spacing: .03em;
}
.ticker-track-wrap {
    overflow: hidden; flex: 1; height: 100%;
    display: flex; align-items: center;
}
.ticker-track {
    display: flex; align-items: center; gap: 0;
    white-space: nowrap;
    animation: tickerScroll 80s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-block; padding: 0 1.2rem;
    color: #cbd5e1; text-decoration: none;
    font-size: .78rem; transition: color .15s;
}
.ticker-item:hover { color: #fff; text-decoration: none; }
.ticker-dot {
    color: var(--accent); font-size: 1rem; line-height: 1;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Hero Carousel ----------------------------------------- */
.hero-carousel {
    position: relative; border-radius: var(--radius);
    overflow: hidden; height: 280px;
    background: #0f172a;
    box-shadow: var(--shadow-md);
}
@media (min-width: 900px)  { .hero-carousel { height: 360px; } }
@media (min-width: 1200px) { .hero-carousel { height: 420px; } }

.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .7s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; cursor: pointer; }

/* Link invisível que cobre todo o slide — fica entre o fundo e o conteúdo */
.hero-slide-cover {
    position: absolute; inset: 0; z-index: 1;
    display: block;
}

/* Slide especial Copa 2026 */
.hero-slide-copa .hero-slide-overlay {
    background: linear-gradient(
        135deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.25) 100%
    );
}
.hero-slide-copa-icon {
    font-size: 5rem; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

.hero-slide-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(1) saturate(1.2) contrast(1.08);
}
.hero-slide-overlay {
    position: absolute; inset: 0;
    /* Gradiente só onde o texto precisa de contraste (esquerda).
       Direita fica totalmente clean para a imagem brilhar. */
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.65) 0%,
        rgba(0,0,0,.4)  25%,
        rgba(0,0,0,.05) 55%,
        rgba(0,0,0,0)   100%
    );
}
.hero-slide-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 1.75rem;
    padding: 2rem 2.5rem; height: 100%;
    pointer-events: none; /* deixa os cliques passar para o .hero-slide-cover */
}
/* Re-ativar apenas nos botões para continuarem clicáveis */
.hero-slide-cta,
.hero-slide-cta a {
    pointer-events: auto;
}

/* ── Animação de texto ao mudar slide ──────────────────────── */
@keyframes slideTextIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Cada filho directo anima com delay escalonado */
.hero-slide-content.text-anim > * {
  animation-name: slideTextIn;
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.22, .68, 0, 1.1);
  animation-fill-mode: both;
}
.hero-slide-content.text-anim > *:nth-child(1) { animation-delay: .04s; }
.hero-slide-content.text-anim > *:nth-child(2) { animation-delay: .14s; }
.hero-slide-content.text-anim > *:nth-child(3) { animation-delay: .24s; }
.hero-slide-content.text-anim > *:nth-child(4) { animation-delay: .34s; }
@media (min-width: 1200px) { .hero-slide-content { padding: 2.5rem 3rem; gap: 2rem; } }
.hero-slide-badge {
    width: 110px; height: 110px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.7));
}
@media (min-width: 1200px) { .hero-slide-badge { width: 140px; height: 140px; } }
.hero-slide-emoji { font-size: 5rem; flex-shrink: 0; line-height: 1; }
.hero-slide-text  { flex: 1; min-width: 0; }
.hero-slide-sport { font-size: .82rem; color: rgba(255,255,255,.85);
                    text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; font-weight: 600;
                    text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero-slide-name  { font-size: clamp(1.5rem, 4vw, 2.8rem); font-weight: 800;
                    color: #fff; letter-spacing: -.03em; line-height: 1.1;
                    text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.7); }
.hero-slide-cta   { display: flex; flex-direction: column; gap: .5rem;
                    flex-shrink: 0; align-items: flex-end; }
.hero-slide-btn-solid {
    display: inline-block; padding: .5rem 1.25rem;
    background: #fff; color: #0f172a;
    border-radius: 8px; font-size: .82rem; font-weight: 800;
    text-decoration: none; transition: .15s; white-space: nowrap;
}
.hero-slide-btn-solid:hover { background: #e2e8f0; text-decoration: none; color: #0f172a; }
.hero-slide-btn-outline {
    display: inline-block; padding: .45rem 1.1rem;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px; font-size: .82rem; font-weight: 700;
    text-decoration: none; transition: .15s; white-space: nowrap;
}
.hero-slide-btn-outline:hover { background: rgba(255,255,255,.22); text-decoration: none; color: #fff; }

/* Arrows */
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background .15s; backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(255,255,255,.3); }
.carousel-arrow-left  { left: 12px; }
.carousel-arrow-right { right: 12px; }

/* Dots */
.carousel-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 10;
}
.carousel-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
    transition: background .2s, width .2s;
}
.carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* --- Page Fanart Background (subtil) ----------------------- */
.page-fanart-bg {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}
.page-fanart-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(20px) saturate(.4);
    opacity: .08;
    transform: scale(1.1);
}

/* --- Team Showcase (faixa horizontal grande no meio) ------- */
.team-showcase {
    position: relative; display: block;
    border-radius: var(--radius); overflow: hidden;
    height: 200px; margin-top: 1.25rem;
    background: #0f172a;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
}
.team-showcase:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    transform: translateY(-2px);
    text-decoration: none;
}
.team-showcase-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.45) saturate(1.2);
}
.team-showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(15,23,42,.85) 0%,
        rgba(15,23,42,.45) 55%,
        rgba(15,23,42,.2) 100%);
}
.team-showcase-content {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.5rem 2rem; height: 100%;
}
.team-showcase-left { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.team-showcase-badge {
    width: 100px; height: 100px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.6));
}
.team-showcase-text { flex: 1; min-width: 0; color: #fff; }
.team-showcase-label {
    font-size: .72rem; color: rgba(255,255,255,.65);
    text-transform: uppercase; letter-spacing: .07em; margin-bottom: .4rem;
}
.team-showcase-name {
    font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 800;
    color: #fff; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5rem;
}
.team-showcase-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.team-showcase-meta span { font-size: .82rem; color: rgba(255,255,255,.75); }
.team-showcase-jersey {
    width: 120px; height: 140px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
}
.team-showcase-arrow {
    position: absolute; bottom: 1rem; right: 1.5rem;
    color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 700;
    background: rgba(255,255,255,.12); padding: .35rem .85rem;
    border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}

/* --- Featured Teams (scroll horizontal) -------------------- */
.featured-teams-scroll {
    display: flex; gap: .75rem; overflow-x: auto;
    padding-bottom: .5rem; scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scroll-behavior: smooth;
}
.featured-teams-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;       /* snap atrapalha durante drag */
    scroll-behavior: auto;
}
.featured-teams-scroll.is-dragging .featured-team-card { pointer-events: none; }
/* Impede o browser de iniciar drag nativo de links/imagens dentro do scroller */
.featured-teams-scroll a,
.featured-teams-scroll img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}
.featured-teams-scroll::-webkit-scrollbar { height: 6px; }
.featured-teams-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.featured-team-card {
    position: relative;
    flex: 0 0 150px; height: 150px;
    border-radius: var(--radius); overflow: hidden;
    background: #1e293b;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .75rem;
}
.featured-team-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.featured-team-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.45) saturate(1.1);
    transition: filter .25s;
}
.featured-team-card:hover .featured-team-bg { filter: brightness(.6) saturate(1.3); }
.featured-team-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.3) 0%, rgba(15,23,42,.9) 100%);
}
.featured-team-badge {
    position: relative; z-index: 2;
    width: 64px; height: 64px; object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0,0,0,.7));
    margin-bottom: .5rem;
}
.featured-team-name {
    position: relative; z-index: 2;
    font-size: .8rem; font-weight: 700; color: #fff;
    text-align: center; line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    max-width: 100%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 600px) {
    .team-showcase { height: 170px; }
    .team-showcase-jersey { display: none; }
    .team-showcase-badge { width: 72px; height: 72px; }
    .team-showcase-content { padding: 1rem 1.25rem; gap: 1rem; }
    .team-showcase-arrow { display: none; }
    .featured-team-card { flex-basis: 120px; height: 120px; }
    .featured-team-badge { width: 48px; height: 48px; }
    .featured-team-name { font-size: .72rem; }
}

/* --- News Cards -------------------------------------------- */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.news-card {
    display: block; padding: .9rem 1rem;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s;
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); text-decoration: none; }
.news-card-title {
    font-size: .875rem; font-weight: 700; color: var(--text);
    line-height: 1.4; margin-bottom: .35rem;
}
.news-card-desc {
    font-size: .78rem; color: var(--muted); line-height: 1.5; margin-bottom: .4rem;
}
.news-card-meta { font-size: .7rem; color: var(--accent); font-weight: 600; }

/* --- All Leagues Section ----------------------------------- */
.all-leagues-section { margin-top: 2.5rem; }

.league-group-block { margin-bottom: 2rem; }

.league-group-header {
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem 0 .5rem 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.league-group-header::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; border-radius: 3px;
    background: var(--accent);
    background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, transparent) 100%);
}
.league-group-icon  { font-size: 1.4rem; line-height: 1; }
.league-group-name  {
    font-size: .9rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text);
}
.league-group-count {
    font-size: .7rem; color: var(--muted); margin-left: auto;
    background: var(--bg3); padding: .2rem .6rem;
    border-radius: 99px; font-weight: 700;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .65rem;
}

.league-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text2);
    box-shadow: var(--shadow);
    transition: all .18s ease;
    position: relative; overflow: hidden;
}
.league-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--card-accent, var(--accent)) 8%, transparent) 0%,
        transparent 70%);
    opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.league-card:hover {
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--card-accent, var(--accent)) 18%, rgba(0,0,0,.06));
    transform: translateY(-2px);
    color: var(--text); text-decoration: none;
}
.league-card:hover::before { opacity: 1; }
.league-card.active {
    border-color: var(--card-accent, var(--accent));
    border-width: 1.5px;
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 5%, #fff);
}
.league-card.active::before { opacity: .6; }

.league-card-flag {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--bg3); border-radius: 10px;
    font-size: 1.7rem; line-height: 1;
    position: relative; z-index: 1;
}
.league-card-flag img.twemoji {
    width: 26px !important; height: 26px !important;
    margin: 0; vertical-align: middle;
}
.league-card.active .league-card-flag {
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 12%, var(--bg3));
}
.league-card-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.league-card-name {
    font-size: .85rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.25;
}
.league-card-country {
    font-size: .72rem; color: var(--muted); margin-top: .15rem;
    display: flex; align-items: center; gap: .35rem;
}
.league-card-short {
    display: inline-block;
    font-size: .6rem; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
    padding: .1rem .35rem; border-radius: 4px;
    background: var(--bg3); color: var(--muted);
    margin-left: auto; flex-shrink: 0;
    position: relative; z-index: 1;
}
.league-card.active .league-card-short {
    background: var(--card-accent, var(--accent));
    color: #fff;
}
.league-card-active-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0; position: relative; z-index: 1;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent, var(--accent)) 25%, transparent);
}

/* Responsive */
@media (max-width: 600px) {
    .hero-badge { width: 52px; height: 52px; }
    .ls-group-label { min-width: 70px; font-size: .65rem; }
    .league-banner-overlay { padding: 1rem 1.25rem; }
    .league-banner-btn { display: none; }
    .banner-slide-btn { display: none; }
    .banner-carousel { height: 100px; }
    .banner-slide-flag { font-size: 2rem; }
    .banner-slide-name { font-size: .95rem; }
    .news-cards { grid-template-columns: 1fr; }
    .league-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .hero-slide-badge { width: 56px; height: 56px; }
    .hero-slide-cta { display: none; }
    .hero-slide-content { padding: 1rem 1.25rem; gap: 1rem; }
    .carousel-arrow { display: none; }
}

/* ── Scoreboard (today.php) ──────────────────────────────── */
.sb-wrap{padding:1.25rem 0 3rem}
.sb-header{margin-bottom:1rem}
.sb-title{font-size:clamp(1.4rem,4vw,2rem);font-weight:800;display:flex;align-items:center;gap:.6rem}
.sb-live-badge{font-size:.75rem;font-weight:800;color:#fff;background:var(--red);border-radius:6px;padding:.2rem .55rem;animation:pulse 1.2s infinite}
.sb-subtitle{color:var(--muted);font-size:.875rem;margin-top:.2rem}
.sb-date-nav{display:flex;gap:.4rem;margin-bottom:1rem;overflow-x:auto;padding-bottom:.25rem;scrollbar-width:none}
.sb-date-nav::-webkit-scrollbar{display:none}
.sb-date-btn{flex-shrink:0;padding:.45rem .9rem;border-radius:8px;font-size:.82rem;font-weight:600;color:var(--text2);text-decoration:none;background:var(--bg2);border:1px solid var(--border);white-space:nowrap;transition:all .15s}
.sb-date-btn:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.sb-date-btn.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.sb-date-btn.is-today:not(.active){font-weight:800;border-color:var(--accent);color:var(--accent)}
.sb-sport-tabs{display:flex;gap:.4rem;margin-bottom:1.25rem;flex-wrap:wrap}
.sb-sport-tab{padding:.4rem .85rem;border-radius:99px;font-size:.8rem;font-weight:600;background:var(--bg3);border:1px solid var(--border);color:var(--text2);cursor:pointer;transition:all .15s;white-space:nowrap}
.sb-sport-tab:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.sb-sport-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.sb-sport-tab:disabled{opacity:.38;cursor:not-allowed}
.sb-tab-count{display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.12);border-radius:99px;min-width:18px;height:18px;font-size:.68rem;padding:0 .3rem;margin-left:.2rem}
.sb-sport-tab.active .sb-tab-count{background:rgba(255,255,255,.25)}
.sb-sport-section{margin-bottom:1.75rem}
.sb-sport-header{display:flex;align-items:center;gap:.5rem;padding:.5rem 0;margin-bottom:.5rem;border-bottom:2px solid var(--border)}
.sb-sport-icon{font-size:1.1rem}
.sb-sport-name{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.sb-league-block{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);margin-bottom:.75rem}
.sb-league-head{display:flex;align-items:center;gap:.6rem;padding:.6rem 1rem;background:var(--bg3);border-bottom:1px solid var(--border)}
.sb-league-logo{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.sb-league-name{font-size:.85rem;font-weight:700;color:var(--text);text-decoration:none;flex-shrink:0}
.sb-league-name:hover{color:var(--accent)}
.sb-league-meta{font-size:.72rem;color:var(--muted);flex:1}
.sb-league-link{font-size:.75rem;font-weight:600;color:var(--accent);text-decoration:none;white-space:nowrap}
.sb-league-link:hover{text-decoration:underline}
.sb-game{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:.75rem;padding:.65rem 1rem;border-bottom:1px solid var(--border);transition:background .12s}
.sb-game:last-child{border-bottom:none}
.sb-game:hover{background:var(--bg3)}
.sb-game--live{background:#fff8f8}
.sb-pill{display:inline-block;font-size:.68rem;font-weight:800;padding:.2rem .5rem;border-radius:5px;white-space:nowrap}
.sb-pill--live{background:#fee2e2;color:var(--red);animation:pulse 1.2s infinite}
.sb-pill--ft{background:#dcfce7;color:var(--green)}
.sb-pill--time{background:#dbeafe;color:var(--accent)}
.sb-game-teams{min-width:0}
.sb-team{display:flex;align-items:center;gap:.4rem;padding:.1rem 0}
.sb-team+.sb-team{margin-top:.2rem}
.sb-team-badge{width:18px;height:18px;object-fit:contain;flex-shrink:0}
.sb-team-name{font-size:.85rem;color:var(--text2);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-team--winner .sb-team-name{font-weight:700;color:var(--text)}
.sb-team-score{font-size:.9rem;font-weight:700;color:var(--muted);min-width:20px;text-align:right;flex-shrink:0}
.sb-team-score.is-winner{font-size:1rem;font-weight:800;color:var(--text)}
.sb-game-venue{font-size:.68rem;color:var(--muted);grid-column:2/-1;margin-top:-.3rem}
.sb-empty{text-align:center;padding:4rem 1rem;color:var(--muted)}
.sb-empty-icon{font-size:3rem;margin-bottom:.75rem}
.sb-empty-title{font-size:1.1rem;font-weight:700;color:var(--text);margin-bottom:.4rem}
.sb-empty-sub{font-size:.875rem;margin-bottom:1rem}
.sb-empty-link{color:var(--accent);font-weight:600}
@media(max-width:480px){.sb-game{grid-template-columns:58px 1fr}.sb-game-venue,.sb-league-meta,.sb-league-link{display:none}}

/* Sub-filtro de ligas no Scoreboard */
.sb-league-filter {
    display: flex; gap: .35rem;
    padding: .5rem 0 .75rem;
    overflow-x: auto; scrollbar-width: none;
    flex-wrap: nowrap; margin-bottom: .5rem;
}
.sb-league-filter::-webkit-scrollbar { display: none; }
.sb-lf-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    flex-shrink: 0; padding: .3rem .7rem;
    border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg3); cursor: pointer;
    font-size: .78rem; font-weight: 600; color: var(--text2);
    transition: all .15s; white-space: nowrap;
}
.sb-lf-btn:hover { border-color: var(--accent); color: var(--accent); }
.sb-lf-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sb-lf-badge { width: 16px; height: 16px; object-fit: contain; }
.sb-lf-btn.active .sb-lf-badge { filter: brightness(10); }
