/* ============ Colorado PWA — design system ============ */
:root {
  --red: #E30613;
  --red-2: #B0000F;
  --red-3: #6E0009;
  --red-soft: rgba(227, 6, 19, .10);
  --win: #16A34A; --draw: #8E8E99; --loss: #E11D48;
  --gold: #E8B64A;

  --bg: #F4F3F6;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F6F5F8;
  --line: rgba(15, 15, 25, .08);
  --text: #121218;
  --text-2: #5E5E6B;
  --text-3: #9A9AA6;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(20, 0, 5, .04), 0 8px 24px -12px rgba(20, 0, 5, .18);
  --shadow-lg: 0 24px 60px -20px rgba(120, 0, 10, .45);

  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0D; --bg-2: #111116; --card: #15151B; --card-2: #1C1C24;
    --line: rgba(255, 255, 255, .07); --text: #F4F4F7; --text-2: #A3A3B0; --text-3: #6C6C78;
    --glass: rgba(14, 14, 18, .72); --red-soft: rgba(227, 6, 19, .16);
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -14px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0D; --bg-2: #111116; --card: #15151B; --card-2: #1C1C24;
  --line: rgba(255, 255, 255, .07); --text: #F4F4F7; --text-2: #A3A3B0; --text-3: #6C6C78;
  --glass: rgba(14, 14, 18, .72); --red-soft: rgba(227, 6, 19, .16);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -14px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow-x: clip; min-height: 100dvh; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; font-size: 15px; line-height: 1.45; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.muted { color: var(--text-2); } .tiny { font-size: 12px; } .center { text-align: center; }

/* ---------- App bar ---------- */
.appbar { position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.appbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; max-width: 720px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-crest { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(227,6,19,.35)); }
.brand-title { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-sub { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.appbar-actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--card-2); transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.view { max-width: 720px; margin: 0 auto; padding: 14px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); outline: none; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 10px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.section-link { font-size: 13.5px; font-weight: 600; color: var(--red); }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin: 6px 4px 14px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card.pad { padding: 16px; }
.list { overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }

/* ---------- Banner (dados antigos / erro) ---------- */
.banner { max-width: 688px; margin: 10px auto 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; background: rgba(232, 182, 74, .14); color: #8a5a00; border: 1px solid rgba(232,182,74,.35); }
:root[data-theme="dark"] .banner { color: #f3cd7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner { color: #f3cd7a; } }
.banner + .view { padding-top: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: 13px; color: var(--text-2); background: var(--card-2); border-radius: 14px; margin-top: 10px; }
.notice svg { flex: none; margin-top: 1px; color: var(--text-3); }

/* ---------- Hero: próximo jogo ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; padding: 18px 18px 16px; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(150deg, #F01423 0%, #C8000F 45%, #7A000A 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='white' stroke-opacity='.07' stroke-width='2'/%3E%3Cpath d='M100 0v200' stroke='white' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E") right -60px center / 260px no-repeat; pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chip.light { background: var(--card-2); color: var(--text-2); }
.chip.red { background: var(--red-soft); color: var(--red); }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 18px 0 14px; position: relative; z-index: 1; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.team-logo { width: 68px; height: 68px; border-radius: 22px; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.team-logo img { width: 50px; height: 50px; object-fit: contain; }
.team-name { font-weight: 700; font-size: 14.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.hero-vs { font-size: 13px; font-weight: 800; opacity: .75; letter-spacing: .1em; }
.hero-score { font-size: 44px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-when { text-align: center; position: relative; z-index: 1; }
.hero-date { font-size: 15px; font-weight: 700; }
.hero-venue { font-size: 12.5px; opacity: .8; margin-top: 2px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.countdown div { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 8px 0 6px; text-align: center; }
.countdown b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 600; }
.hero-tv { margin-top: 14px; position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hero-tv .label { font-size: 11.5px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-right: 2px; }
.hero .tv-btn { background: rgba(255,255,255,.95); color: #111; }
.hero .tv-warn { color: rgba(255,255,255,.75); }

/* ---------- Ao vivo ---------- */
.live { position: relative; border-radius: var(--r-lg); padding: 16px; background: var(--card); border: 1.5px solid var(--red); box-shadow: 0 0 0 6px var(--red-soft), var(--shadow); }
.live-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 99px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.live-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 14px; gap: 6px; }
.live-row .team-logo { width: 54px; height: 54px; border-radius: 18px; background: var(--card-2); box-shadow: none; }
.live-row .team-logo img { width: 38px; height: 38px; }
.live-score { font-size: 40px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-align: center; }
.live-min { text-align: center; color: var(--red); font-weight: 800; font-size: 13px; }

/* ---------- Grids / stats ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.stat-card { padding: 14px; }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.stat-value small { font-size: 14px; color: var(--text-2); font-weight: 600; margin-left: 2px; }
.stat-sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.form { display: flex; gap: 6px; margin-top: 10px; }
.form span { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.f-V { background: var(--win); } .f-E { background: var(--draw); } .f-D { background: var(--loss); }

/* ---------- Linha de jogo ---------- */
.match { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; width: 100%; text-align: left; transition: background .15s; }
.match:active { background: var(--card-2); }
.match-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.match-meta .comp { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.match-teams { display: grid; gap: 6px; min-width: 0; }
.mt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; min-width: 0; }
.mt img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.mt .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt.inter .n { font-weight: 800; }
.mt .g { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.mt.lose { color: var(--text-3); }
.match-side { text-align: right; min-width: 64px; }
.match-time { font-weight: 800; font-size: 15px; }
.match-day { font-size: 12px; color: var(--text-3); text-transform: capitalize; }
.res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; font-weight: 800; color: #fff; font-size: 13px; }
.match-tv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- TV ---------- */
.tv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); }
.tv-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--red)); }
.tv-btn.maybe { opacity: .7; font-weight: 600; }
.tv-warn { font-size: 11px; color: var(--text-3); font-weight: 500; }

/* ---------- Segmented ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--card-2); border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); }
.seg button { padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: all .2s; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.scroller::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.pill.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px -8px var(--red); }
.month { font-size: 13px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin: 20px 4px 8px; }

/* ---------- Tabela ---------- */
.table-wrap { overflow-x: auto; }
table.std { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.std th { font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 10px 6px; text-align: center; position: sticky; top: 0; background: var(--card); }
table.std td { padding: 9px 6px; text-align: center; border-top: 1px solid var(--line); }
table.std th:nth-child(2), table.std td:nth-child(2) { text-align: left; }
table.std td.pos { width: 34px; font-weight: 700; color: var(--text-2); position: relative; }
table.std td.pos::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--zone, transparent); }
table.std td.team { font-weight: 600; white-space: nowrap; width: 100%; }
table.std td.team .tc { display: flex; align-items: center; gap: 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
table.std td.team img { width: 20px; height: 20px; object-fit: contain; flex: none; }
table.std td.pts { font-weight: 800; }
table.std tr.inter td { background: var(--red-soft); }
table.std tr.inter td.team { color: var(--red); font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 14px; font-size: 11.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.phase { padding: 14px 16px; }
.phase-name { font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phase-note { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.bracket { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 18px; }
.bracket::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--red), var(--line)); border-radius: 2px; }
.bracket .node { position: relative; }
.bracket .node::before { content: ""; position: absolute; left: -16px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); }

/* ---------- Notícias ---------- */
.news-feature { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 240px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-lg); background: #222 center/cover; }
.news-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.85)); }
.news-feature .in { position: relative; padding: 18px; }
.news-feature h3 { font-size: 21px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -.02em; font-weight: 800; }
.news { display: grid; grid-template-columns: 1fr 92px; gap: 12px; padding: 14px 16px; text-align: left; width: 100%; }
.news.noimg { grid-template-columns: 1fr; }
.news h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-thumb { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--card-2); }
.news-src { font-size: 12px; color: var(--text-3); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.news-src b { color: var(--red); font-weight: 800; }
.paid { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: rgba(232,182,74,.18); color: #B07800; }
.news-feature .paid { background: var(--gold); color: #3a2600; }
.article-img { width: calc(100% + 40px); margin: -20px -20px 16px; max-height: 260px; object-fit: cover; border-radius: 0; }
.article h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin: 8px 0 12px; font-weight: 800; }
.article p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; border-radius: 16px; font-weight: 800; font-size: 15.5px; background: var(--red); color: #fff; box-shadow: 0 12px 28px -12px var(--red); margin-top: 18px; }
.btn.ghost { background: var(--card-2); color: var(--text); box-shadow: none; }

/* ---------- Elenco ---------- */
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 10px; }
.player { position: relative; overflow: hidden; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 172px; }
.player .num { position: absolute; top: 6px; right: 12px; font-size: 40px; font-weight: 800; letter-spacing: -.05em; color: var(--red); opacity: .14; }
.avatar { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(150deg, #F01423, #7A000A); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--card-2); }
.player-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.player-meta { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.player-meta img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
.mini-stats { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); margin-top: auto; font-weight: 600; }
.mini-stats b { color: var(--text); }
.leaders { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.leader { padding: 14px; }
.leader-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.leader-row .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.leader-row .nm { flex: 1; font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row .vl { font-weight: 800; font-size: 16px; color: var(--red); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head .avatar { width: 96px; height: 96px; border-radius: 28px; font-size: 30px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kv div { background: var(--card-2); border-radius: 14px; padding: 10px 12px; }
.kv small { display: block; font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kv b { font-size: 17px; font-weight: 800; }

/* ---------- Clube ---------- */
.club-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 18px; color: #fff; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, rgba(200,0,15,.92), rgba(90,0,8,.96)), var(--img, none) center/cover; }
.club-hero h2 { font-size: 26px; letter-spacing: -.03em; margin: 12px 0 4px; font-weight: 800; line-height: 1.1; }
.club-hero .crest { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.fact { padding: 14px; }
.fact small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fact b { display: block; font-size: 15.5px; margin-top: 4px; font-weight: 800; line-height: 1.25; }
.fact span { font-size: 12px; color: var(--text-2); }
.trophy { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 14px 16px; }
.trophy-count { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(150deg, var(--c1, #F01423), var(--c2, #7A000A)); box-shadow: 0 8px 20px -10px var(--c1, var(--red)); }
.trophy-name { font-weight: 800; font-size: 15px; }
.trophy-years { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.timeline { position: relative; padding: 6px 0 6px 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--red), var(--line)); }
.tl { position: relative; padding: 10px 0; }
.tl::before { content: ""; position: absolute; left: -22px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl b { font-size: 13px; color: var(--red); font-weight: 800; }
.tl p { margin: 2px 0 0; font-size: 14.5px; }

/* ---------- Detalhe do jogo ---------- */
.md-head { text-align: center; }
.md-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0; }
.md-teams .team-logo { background: var(--card-2); box-shadow: none; }
.md-score { font-size: 42px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.info-list { display: grid; gap: 0; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.info-row span:first-child { color: var(--text-2); }
.info-row span:last-child { font-weight: 700; text-align: right; }
.events { display: grid; gap: 0; }
.ev { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; padding: 8px 0; font-size: 13.5px; }
.ev .min { text-align: center; font-weight: 800; color: var(--text-2); font-size: 12.5px; }
.ev .l { text-align: right; } .ev .r { text-align: left; }
.ev .ico { display: inline-block; width: 10px; height: 13px; border-radius: 2px; vertical-align: -2px; margin: 0 6px; }
.ico.amarelo { background: #FACC15; } .ico.vermelho { background: #E11D48; }
.lineups { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.lineup h5 { margin: 0 0 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.lineup h5 img { width: 18px; height: 18px; object-fit: contain; }
.lineup ol { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.lineup li { padding: 4px 0; display: flex; gap: 8px; }
.lineup li b { width: 20px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.lineup li.sub { color: var(--text-3); }

/* ---------- Sheet (modal inferior estilo iOS) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet-backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 720px; margin: 0 auto; max-height: calc(100dvh - var(--safe-t) - 24px); background: var(--bg-2); border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: 0 -20px 60px rgba(0,0,0,.3); }
.sheet.show { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--text-3); opacity: .4; margin: 8px auto 0; flex: none; }
.sheet-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; color: var(--text-2); z-index: 2; }
.sheet-body { overflow-y: auto; padding: 20px 20px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.sheet-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 22px 0 8px; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); max-width: 560px; margin: 0 auto; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px; border-radius: 24px; background: var(--glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(0,0,0,.35); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 18px; color: var(--text-3); font-size: 10.5px; font-weight: 700; transition: color .2s, background .2s; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--red); background: var(--red-soft); }

/* ---------- Pull to refresh ---------- */
.ptr { position: fixed; top: calc(var(--safe-t) + 64px); left: 50%; z-index: 25; transform: translate(-50%, -60px); transition: transform .2s, opacity .2s; pointer-events: none; opacity: 0; }
.ptr.pulling, .ptr.loading { opacity: 1; }
.ptr-spinner { width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; }
.ptr-spinner::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--red); border-right-color: transparent; }
.ptr.loading .ptr-spinner::after { animation: spin .7s linear infinite; }

/* ---------- Skeleton / estados ---------- */
.sk { background: linear-gradient(90deg, var(--card-2) 0%, var(--card) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 28px 16px; text-align: center; color: var(--text-2); font-size: 14px; }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.footer-note { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 28px; line-height: 1.6; }
.footer-note a { text-decoration: underline; }

@media (min-width: 600px) { .hero-teams .team-logo { width: 84px; height: 84px; } .hero-teams .team-logo img { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============ v1.1 — ajustes ============ */
/* Barras de rolagem: some nas faixas horizontais e no painel; fina e discreta na página */
.scroller, .table-wrap, .sheet-body { scrollbar-width: none; -ms-overflow-style: none; }
.scroller::-webkit-scrollbar, .table-wrap::-webkit-scrollbar, .sheet-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
.scroller { overscroll-behavior-x: contain; }
.view { overflow-x: clip; }

/* Classificação: escudos e nomes alinhados à esquerda */
table.std { table-layout: auto; }
table.std td.team { display: table-cell; flex-direction: initial; }
table.std th.th-team, table.std td.team { text-align: left !important; width: 100%; padding-left: 4px; }
table.std td.team .tc { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0; max-width: none; }
table.std td.team .tc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
table.std td.team img { width: 22px; height: 22px; }
table.std td, table.std th { padding-left: 5px; padding-right: 5px; }

/* Avatares com foto */
.avatar { position: relative; overflow: hidden; flex: none; }
.avatar > span { position: relative; z-index: 0; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: 1; background: var(--card-2); }
.avatar.has-photo { background: linear-gradient(160deg, #3a0a0e, #120305); }
.leader-row .avatar > img { object-position: 50% 8%; transform: scale(1.5); transform-origin: 50% 0; }
.profile-head .avatar > img { object-position: 50% 5%; }

/* Card de jogador com foto grande */
.player { padding: 0; min-height: 0; gap: 0; }
.player .avatar { width: 100%; height: auto; aspect-ratio: 4 / 4.4; border-radius: 0; font-size: 34px; }
.player .avatar.has-photo > img { object-position: 50% 0%; }
.player .num { top: 8px; right: 10px; z-index: 2; color: #fff; opacity: .95; font-size: 22px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: 2px 10px; border-radius: 12px; letter-spacing: -.02em; }
.player-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.player .mini-stats { margin-top: 4px; }
.leader-row.others { width: 100%; text-align: left; padding: 10px 16px; }

/* Transferências */
.transfer { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; }
.tr-arrow { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.tr-arrow.in { background: var(--win); } .tr-arrow.out { background: var(--loss); }
.tr-name { font-weight: 800; font-size: 15px; }
.tr-sub { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tr-logo { width: 16px; height: 16px; object-fit: contain; }
.tr-side { text-align: right; display: grid; gap: 3px; justify-items: end; }
.tr-val { font-weight: 800; font-size: 13px; color: var(--red); }

/* ============ v1.2 ============ */
/* Forma recente com escudos */
.form-card { padding: 14px; }
.form-crests { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.fc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-radius: 14px; background: var(--card-2); }
.fc:active { transform: scale(.96); }
.fc-logo { position: relative; width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.fc-logo img { width: 28px; height: 28px; object-fit: contain; }
.fc-res { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; border: 2px solid var(--card-2); }
.fc-score { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fc-ha { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Temporada */
.season-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px 14px; }
.kpi small { display: block; font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.kpi span { font-size: 12px; color: var(--text-2); }
.stat-table table.std td.team .tc span { max-width: 120px; }
.stat-table table.std tr.tot td { font-weight: 800; background: var(--red-soft); }
.stat-table table.std th .ico { width: 9px; height: 12px; display: inline-block; border-radius: 2px; vertical-align: -1px; }

/* Totais no Inter no card do jogador */
.club-tot { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); font-weight: 600; margin-top: 6px; padding: 6px 8px; border-radius: 10px; background: var(--red-soft); }
.club-tot b { color: var(--text); font-weight: 800; }
.club-tot .lbl, .mini-stats .lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.mini-stats .lbl { color: var(--text-3); }
.player .mini-stats { gap: 8px; padding: 0 8px; }

/* Transferências (lista do ano) */
.transfer { grid-template-columns: 36px minmax(0, 1fr) auto; }
.tr-crest { width: 36px; height: 36px; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.tr-crest img { width: 26px; height: 26px; object-fit: contain; }
.tr-noclub { color: #999; font-weight: 800; }
.tr-sub b { color: var(--text); font-weight: 700; }
.tr-head { font-size: 12.5px; font-weight: 800; margin: 12px 4px 8px; }
.tr-head.in { color: var(--win); } .tr-head.out { color: var(--loss); }

/* Títulos clicáveis e finais */
button.trophy { width: 100%; text-align: left; grid-template-columns: 56px 1fr auto; }
button.trophy:active { background: var(--card-2); }
.chev { font-size: 26px; color: var(--text-3); font-weight: 300; padding-right: 2px; }
.fin-leg { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 12px 16px 0; }
.fin-game { padding: 10px 16px 14px; }
.fin-meta { font-size: 12px; color: var(--text-2); text-align: center; }
.fin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 10px; }
.fin-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 13.5px; }
.fin-team img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.fin-score { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fin-score span { color: var(--text-3); font-weight: 500; font-size: 20px; }
.fin-obs { text-align: center; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.fin-agg { padding: 12px 16px; font-size: 13.5px; text-align: center; background: var(--red-soft); }
.club-tot { flex-direction: column; align-items: flex-start; gap: 1px; }
.club-tot > div { font-size: 12.5px; }

/* ============ v1.3 ============ */
.brand-stats { color: var(--red); font-weight: 800; }
.seg.years { margin-bottom: 12px; }

/* Ícones de troféu */
.trophy-icon { position: relative; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a0a0e, #12060a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.trophy-icon svg { width: 40px; height: 40px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.trophy-badge { position: absolute; right: -6px; bottom: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--red); border: 2px solid var(--card); }
.trophy-icon.big { width: 92px; height: 92px; border-radius: 28px; margin: 0 auto; }
.trophy-icon.big svg { width: 66px; height: 66px; }
.trophy-icon.big .trophy-badge { min-width: 32px; height: 32px; font-size: 15px; border-color: var(--bg-2); }
:root[data-theme="light"] .trophy-icon { background: radial-gradient(circle at 50% 35%, #5a0d14, #24070b); }

/* Símbolos */
.symbols { width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 14px 16px; }
.sym-strip { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sym-strip::-webkit-scrollbar { display: none; }
.sym-strip img { width: 52px; height: 52px; object-fit: contain; flex: none; background: #fff; border-radius: 14px; padding: 5px; }
.sym-cta { display: flex; flex-direction: column; margin-top: 6px; }
.sym-timeline { position: relative; margin-top: 18px; padding-left: 4px; }
.sym-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sym-img { width: 84px; height: 84px; background: #fff; border-radius: 22px; display: grid; place-items: center; padding: 8px; box-shadow: var(--shadow); }
.sym-img img { width: 100%; height: 100%; object-fit: contain; }
.sym-period { font-size: 12px; font-weight: 800; color: var(--red); }
.sym-title { font-size: 16px; font-weight: 800; margin-top: 2px; }
.sym-body p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
/* Recorte do escudo (as imagens do site oficial são colagens com o distintivo no centro) */
.sym-crop { position: relative; overflow: hidden; border-radius: 50%; background: #fff; flex: none; }
.sym-crop img { position: absolute; left: 50%; top: 50%; width: 420%; max-width: none; height: auto; transform: translate(-50%, -50%); }
.sym-strip .sym-crop { width: 52px; height: 52px; }
.sym-img { padding: 0; border-radius: 50%; overflow: hidden; }
.sym-img .sym-crop { width: 100%; height: 100%; }
.sym-full { width: 100%; border-radius: 14px; margin-top: 10px; display: block; background: var(--card-2); }
/* Símbolos v2: card só com descrição; distintivos com fundo transparente */
.symbols { grid-template-columns: 44px minmax(0, 1fr) auto; }
.symbols::before { content: ""; width: 44px; height: 44px; border-radius: 14px; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E30613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4 5.5v6c0 5 3.4 8.8 8 10 4.6-1.2 8-5 8-10v-6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 22px no-repeat; }
.symbols .sym-cta { margin-top: 0; gap: 2px; }
.sym-img { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; width: 84px; height: 84px; }
.sym-png { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
/* Escalação: nome do time numa linha, formação embaixo */
.lineup h5 { align-items: flex-start; line-height: 1.25; margin-bottom: 2px; }
.lineup h5 img { flex: none; margin-top: 1px; }
.lu-name { min-width: 0; overflow-wrap: anywhere; }
.lu-form { font-size: 11.5px; font-weight: 700; color: var(--text-3); margin: 0 0 8px 24px; }
