/* ondevê — mobile-first, fiel ao protótipo (azul celeste + verde campo) */

/* ---------------------------------------------------------------- tokens */
:root {
    --navy: #0f1c26;
    --ink-2: #42525e;
    --muted: #8595a1;
    --muted-2: #5a6b78;
    --muted-3: #93a2ad;
    --muted-4: #7c8b96;

    --green: #2e9d63;
    --green-deep: #237a4c;
    --green-bright: #35aa6d;
    --green-tint: #eef7f0;
    --green-soft: #e9f6ee;

    --blue: #4da3dd;
    --blue-deep: #2273ae;
    --blue-text: #1b5c85;
    --blue-zone: #56a8de;
    --chip-blue-bg: #e4eff8;

    --red: #e74c3c;

    --bg-page: #fff;
    --bg-feed: #f6f8f8;
    --bg-soft: #f1f4f6;
    --line: #eef1f3;
    --line-2: #e6ebee;
    --line-dash: #e4e9ec;

    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;

    --radius-card: 14px;
    --shadow-card: 0 1px 2px rgba(15, 28, 38, .05);
    --max-w: 1080px;
}

@supports (color: oklch(0% 0 0)) {
    :root {
        --green: oklch(0.55 0.14 148);
        --green-deep: oklch(0.42 0.11 148);
        --green-bright: oklch(0.62 0.14 148);
        --green-tint: oklch(0.96 0.015 148);
        --green-soft: oklch(0.97 0.02 148);
        --blue: oklch(0.68 0.13 235);
        --blue-deep: oklch(0.48 0.13 235);
        --blue-text: oklch(0.42 0.12 235);
        --blue-zone: oklch(0.7 0.12 235);
        --chip-blue-bg: oklch(0.95 0.03 235);
    }
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
    color: var(--navy);
    background: var(--bg-feed);
    padding-bottom: 76px; /* espaço da bottom-nav no mobile */
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, dt, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 8px 14px;
    border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: relative;
    background: var(--bg-page);
    overflow: visible;
}
.header-net {
    position: absolute; inset: 0; pointer-events: none;
    opacity: .10;
    transform-origin: 50% 0;
    animation: netwave 3.2s ease-in-out infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M0 50L0 84L28 100M56 50L56 84L28 100' fill='none' stroke='%233a7fb8' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 24px 43px;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
}
@keyframes netwave {
    0%, 100% { transform: skewX(0deg) scaleY(1); }
    30%      { transform: skewX(1.6deg) scaleY(1.035); }
    65%      { transform: skewX(-1.1deg) scaleY(1.012); }
}
@media (prefers-reduced-motion: reduce) {
    .header-net { animation: none; }
}
.header-bar-top {
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--navy);
}
.header-bar-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-bright), var(--blue));
}
.header-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 19px 18px 17px;
}
.brand {
    display: flex; align-items: center; gap: 1px;
    font: 700 24px/1 var(--font-display);
    color: var(--navy);
    letter-spacing: -0.5px;
}
.brand-ball { display: block; margin-right: 1px; transform: rotate(-12deg); }
.brand-green { color: var(--green); }
.brand-blue { color: var(--blue); }

.header-nav { display: none; }
.header-actions { display: flex; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 0;
    background: var(--bg-soft); color: var(--muted-2);
    display: flex; align-items: center; justify-content: center;
    font: 600 15px var(--font-body);
}
.icon-btn:hover { background: var(--line-2); color: var(--navy); }

.menu-mobile {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--bg-page);
    border-top: 1px solid var(--line);
    padding: 6px 0 10px;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a {
    padding: 11px 18px;
    font: 600 14px var(--font-body);
    color: var(--ink-2);
}
.menu-mobile a:hover { background: var(--bg-soft); color: var(--navy); }

/* ------------------------------------------------------------------ page */
.page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 18px 32px;
}
.page-head { margin-bottom: 4px; }
.page-title {
    font: 700 22px/1.2 var(--font-display);
    letter-spacing: -0.4px;
    color: var(--navy);
    padding: 4px 0 2px;
}
.page-sub { font: 500 12.5px var(--font-body); color: var(--muted-4); margin: 4px 0 12px; }
.section-title {
    font: 700 17px/1.2 var(--font-display);
    letter-spacing: -0.3px;
    color: var(--navy);
    margin: 22px 0 10px;
}
.link-more { font: 700 13px var(--font-body); color: var(--blue-deep); }

/* ------------------------------------------------------------ date chips */
.date-chips {
    display: flex; gap: 8px;
    margin: 10px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.date-chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    padding: 9px 16px; border-radius: 99px;
    background: var(--bg-soft);
    font: 600 13px var(--font-body); color: var(--muted-2);
    white-space: nowrap;
}
.chip:hover { background: var(--line-2); color: var(--navy); }
.chip.is-active { background: var(--green); color: #fff; font-weight: 700; }
.chip-arrow {
    padding: 9px 13px;
    font-weight: 800;
    color: var(--green-deep);
    background: var(--green-tint);
}
.chip-arrow:hover { background: var(--green); color: #fff; }

/* --------------------------------------------------------------- destaque */
.featured {
    border-radius: 18px; overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, #23425c 70%, #23644a 100%);
    color: #fff;
    padding: 20px 20px 18px;
    margin-bottom: 18px;
}
.featured-kicker {
    font: 700 10.5px var(--font-body);
    color: #a9d9bd;
    letter-spacing: .1em;
}
.featured-teams {
    display: flex; align-items: center; gap: 16px;
    margin-top: 16px;
}
.featured-team {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font: 700 12px var(--font-body);
    text-align: center;
    min-width: 72px;
}
.featured-team img { width: 46px; height: 46px; object-fit: contain; }
.featured-initials {
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff; color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font: 700 12px var(--font-body);
}
.featured-center { flex: 1; text-align: center; }
.featured-time {
    display: block;
    font: 700 26px/1 var(--font-display);
    letter-spacing: -1px;
}
.featured-sub { font: 600 10.5px var(--font-body); color: rgba(255, 255, 255, .65); }
.featured-actions { display: flex; gap: 8px; margin-top: 18px; }

.btn-light {
    flex: 1; text-align: center;
    padding: 11px; border-radius: 10px; border: 0;
    background: #fff; color: var(--navy);
    font: 700 12.5px var(--font-body);
}
.btn-ghost {
    min-width: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .14); color: inherit;
    font: 600 14px var(--font-body);
    padding: 0 12px;
}
.featured .btn-ghost { border: 0; }
.btn-dark {
    display: inline-block; text-align: center;
    padding: 13px 18px; border-radius: 11px; border: 0;
    background: var(--navy); color: #fff;
    font: 700 13px var(--font-body);
}

/* ------------------------------------------------------------------ feed */
.feed { display: flex; flex-direction: column; gap: 10px; }
.group-header {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px;
}
.group-header:first-child { margin-top: 0; }
.comp-badge {
    width: 20px; height: 20px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 8px var(--font-body); color: #fff;
    flex: none;
}
.comp-badge-green { background: var(--green); }
.comp-badge-blue { background: var(--blue); }
.comp-badge-navy { background: var(--navy); }
.group-title { font: 700 13px var(--font-body); color: var(--navy); }
a.group-title:hover { color: var(--blue-deep); }
.group-meta { font: 600 11px var(--font-body); color: var(--muted); margin-left: auto; }

/* ------------------------------------------------------------ match card */
.match-card {
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 10px;
}
.match-card-link { display: block; padding: 14px 16px; color: inherit; }
.match-main { display: flex; align-items: center; gap: 12px; }
.match-teams { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.team-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team-badge {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: contain; flex: none;
}
.team-initials {
    background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 9px var(--font-body);
    width: 26px; height: 26px; border-radius: 50%;
    flex: none;
}
.team-initials-sm { width: 22px; height: 22px; font-size: 8px; }
.team-name {
    font: 600 14px var(--font-body); color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-score { margin-left: auto; font: 700 14px var(--font-display); color: var(--navy); }

.match-side { text-align: center; padding: 0 4px; flex: none; }
.match-side.has-divider { border-left: 1px solid var(--line); padding-left: 14px; }
.match-side-main { display: block; font: 700 16px var(--font-display); color: var(--navy); }
.match-side-final { font-size: 13px; }
.match-side-sub { display: block; font: 600 10px var(--font-body); color: var(--muted); margin-top: 2px; max-width: 88px; }
.live-indicator { display: block; font: 800 11px var(--font-body); color: var(--green); }

.match-watch {
    display: flex; align-items: center; gap: 6px;
    margin-top: 12px; padding-top: 11px;
    border-top: 1px dashed var(--line-dash);
    flex-wrap: wrap;
}
.watch-label {
    font: 700 10px var(--font-body);
    color: var(--blue-deep);
    letter-spacing: .06em;
}
.watch-chips { display: flex; gap: 6px; margin-left: 2px; flex-wrap: wrap; }
.chip-channel {
    padding: 5px 10px; border-radius: 8px;
    background: var(--chip-blue-bg);
    font: 700 11px var(--font-body); color: var(--blue-text);
    white-space: nowrap;
}
.chip-channel-sm { padding: 4px 9px; border-radius: 7px; font-size: 10.5px; }
.watch-unknown { font: 600 11px var(--font-body); color: var(--muted); }
.watch-live { margin-left: auto; font: 700 11px var(--font-body); color: var(--green); }

.chip-channel-more { background: var(--bg-soft); color: var(--muted-2); }

/* Bloco informativo: emissoras com direitos da competição (não confirma o jogo) */
.league-channels { margin-top: 14px; }
.league-channel-list { display: flex; flex-direction: column; gap: 6px; }
.league-channel-list li { font: 600 13px var(--font-body); color: var(--navy); }
.league-channel-list span { font-weight: 500; color: var(--muted-4); }
.league-channels .data-notice { margin: 4px 0 0; }

.watch-intl { margin-top: 14px; font: 500 12.5px var(--font-body); color: var(--muted-2); }
.watch-intl summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); }
.watch-intl ul { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; padding-left: 2px; }
.watch-intl strong { color: var(--ink-2); }

/* ------------------------------------------------------------- match row */
.match-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
    margin-bottom: 10px;
    color: inherit;
}
.match-row-teams {
    flex: 1;
    font: 600 13.5px var(--font-body); color: var(--navy);
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-row-time, .match-row-score { font: 700 13px var(--font-display); color: var(--navy); }
.day-header {
    font: 700 11px var(--font-body); color: var(--muted);
    letter-spacing: .06em;
    margin: 16px 0 10px;
}

/* --------------------------------------------------------- follow banner */
.follow-banner {
    border-radius: var(--radius-card);
    background: var(--green-tint);
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    margin-top: 8px;
}
.follow-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font: 700 14px var(--font-body);
    flex: none;
}
.follow-banner strong { font: 700 13px var(--font-body); color: var(--navy); }
.follow-banner p { font: 500 11.5px var(--font-body); color: var(--muted-2); }
.follow-banner > div { flex: 1; }
.follow-banner > a { font: 700 13px var(--font-body); color: var(--green-deep); white-space: nowrap; }

/* ------------------------------------------------------------ bottom nav */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; justify-content: space-around;
    padding: 10px 8px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--bg-page);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 64px;
    font: 600 11px var(--font-body); color: var(--muted-3);
}
.bottom-nav-icon { font: 600 16px var(--font-display); }
.bottom-nav-item.is-active { color: var(--blue-deep); font-weight: 700; }

/* ------------------------------------------------------------ match page */
.match-page {
    background: #fff; border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.match-hero {
    background: linear-gradient(160deg, var(--navy) 0%, #1d3d55 100%);
    padding: 16px 18px 22px;
    color: #fff;
}
.match-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-back { font: 600 14px var(--font-body); color: rgba(255, 255, 255, .75); }
.hero-context {
    font: 600 11px var(--font-body); color: rgba(255, 255, 255, .6);
    letter-spacing: .05em;
    text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-share {
    background: none; border: 0; color: rgba(255, 255, 255, .75);
    font: 600 15px var(--font-body);
    padding: 4px 6px;
}
.match-hero-teams {
    display: flex; align-items: flex-start; justify-content: center; gap: 22px;
    margin-top: 22px;
}
.hero-team {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 96px;
}
.hero-team img { width: 52px; height: 52px; object-fit: contain; }
.hero-initials {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font: 700 14px var(--font-body);
}
.hero-initials-light { background: #fff; color: var(--navy); }
.hero-initials-green { background: var(--green-deep); color: #fff; }
.hero-team-name { font: 700 14px var(--font-body); text-align: center; }
.hero-center { text-align: center; padding-top: 6px; }
.hero-time {
    display: block;
    font: 700 30px/1 var(--font-display);
    letter-spacing: -1px;
}
.hero-when {
    display: block;
    font: 600 11px var(--font-body);
    color: #a9d9bd;
    margin-top: 4px;
    letter-spacing: .03em;
}
.hero-live { color: var(--green-bright); }
.hero-venue {
    text-align: center;
    font: 600 12px var(--font-body); color: rgba(255, 255, 255, .6);
    margin-top: 14px;
}

.match-body { padding: 18px; }
.match-lead {
    font: 500 13.5px/1.65 var(--font-body);
    color: var(--ink-2);
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.match-lead a { font-weight: 700; }
.comp-body .match-lead { background: #fff; border: 0; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-card); }

.faq-item {
    background: #fff; border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 13px 16px;
    margin-bottom: 9px;
    font: 500 13px/1.6 var(--font-body); color: var(--ink-2);
}
.faq-item summary { cursor: pointer; font: 700 14px var(--font-body); color: var(--navy); }
.faq-item p { margin-top: 8px; }
.match-section-title {
    font: 700 18px var(--font-display);
    color: var(--navy);
    letter-spacing: -0.3px;
}
.match-section-sub { font: 500 12.5px var(--font-body); color: var(--muted-4); margin-top: 3px; }

.watch-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.watch-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 12px;
    border: 1px solid var(--line-2);
}
.watch-item-featured {
    border: 1.5px solid var(--green);
    background: var(--green-soft);
}
.watch-logo {
    width: 42px; height: 42px; border-radius: 10px;
    object-fit: contain; flex: none;
    background: #fff;
}
.watch-logo-initials {
    background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 10px var(--font-body);
}
.watch-logo-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 8px; }
.watch-info { flex: 1; min-width: 0; }
.watch-info strong { display: block; font: 700 14px var(--font-body); color: var(--navy); }
.watch-info span { font: 500 11.5px var(--font-body); color: var(--muted-4); }
.watch-tag {
    padding: 8px 14px; border-radius: 9px;
    font: 700 12px var(--font-body);
    flex: none;
}
.watch-tag-aberta { background: var(--green); color: #fff; }
.watch-tag-assinatura, .watch-tag-streaming, .watch-tag-tv { background: var(--bg-soft); color: var(--ink-2); }

.watch-empty {
    margin-top: 14px;
    border: 1px dashed var(--line-2); border-radius: 12px;
    padding: 14px 16px;
    font: 500 13px var(--font-body); color: var(--ink-2);
    display: flex; flex-direction: column; gap: 10px;
}
.watch-rights small { color: var(--muted); }

.match-ficha {
    margin-top: 18px;
    padding: 14px 16px; border-radius: 12px;
    background: var(--bg-feed);
    display: flex; flex-direction: column; gap: 10px;
}
.ficha-title {
    font: 700 11px var(--font-body); color: var(--muted);
    letter-spacing: .06em;
}
.ficha-row {
    display: flex; justify-content: space-between; gap: 12px;
    font: 600 13px var(--font-body); color: var(--ink-2);
}
.ficha-row dt { color: var(--muted); font-weight: 600; }
.ficha-row dd { text-align: right; }
.tv-rights { font: 500 13px var(--font-body); color: var(--ink-2); }

.match-actions { display: flex; gap: 10px; margin-top: 16px; }
.match-actions .btn-dark { flex: 1; }
.match-actions .btn-ghost { color: var(--muted-2); background: #fff; }

/* lembrete ativado */
.btn-dark.is-on { background: var(--green); }
.btn-ghost.is-on { background: var(--green); color: #fff; border-color: var(--green); }

/* -------------------------------------------------------------- standings */
.standings {
    background: #fff; border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}
.standings .section-title { margin: 14px 18px 6px; }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-feed);
    font: 700 10.5px var(--font-body); color: var(--muted);
    letter-spacing: .04em;
}
.standings-table th.col-club { text-align: left; }
.standings-table td {
    padding: 11px 4px;
    text-align: center;
    font: 600 13px var(--font-body);
    color: var(--muted-4);
    border-left: 3px solid transparent;
}
.standings-table td:not(:first-child) { border-left: 0; }
.standings-table tbody tr:nth-child(even) { background: #fbfcfc; }
.standings-table .col-rank { width: 34px; font: 700 12px var(--font-display); color: var(--navy); }
.standings-table .col-club { text-align: left; color: var(--navy); width: auto; }
.standings-table td.col-club img,
.standings-table td.col-club .team-initials { vertical-align: middle; margin-right: 8px; }
.standings-table td.col-club { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; min-width: 140px; }
.standings-table td.col-club a { color: var(--navy); }
.standings-table td.col-club a:hover { color: var(--blue-deep); }
.standings-table .col-points { font: 800 13px var(--font-display); color: var(--navy); width: 40px; }
.standings-table th:first-child, .standings-table td:first-child { padding-left: 15px; }
.standings-table th:last-child, .standings-table td:last-child { padding-right: 15px; }

.standings-table tr.zone-green td:first-child { border-left-color: var(--green); }
.standings-table tr.zone-blue td:first-child { border-left-color: var(--blue-zone); }
.standings-table tr.zone-red td:first-child { border-left-color: var(--red); }

.zones-legend {
    display: flex; gap: 14px; flex-wrap: wrap;
    padding: 14px 4px 16px;
    font: 600 11px var(--font-body); color: var(--muted-2);
}
.zones-legend span { display: flex; align-items: center; gap: 6px; }
.zone-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.zone-dot-green { background: var(--green); }
.zone-dot-blue { background: var(--blue-zone); }
.zone-dot-red { background: var(--red); }

/* ------------------------------------------------------------- comp hero */
.competition-page, .team-page {
    background: #fff; border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.comp-hero { padding: 16px 18px 18px; color: #fff; }
.comp-hero-green { background: linear-gradient(150deg, var(--green-deep) 0%, var(--green) 100%); }
.comp-hero-blue { background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%); }
.comp-hero-navy { background: linear-gradient(150deg, var(--navy) 0%, #24455f 100%); }
.comp-hero .hero-back { color: rgba(255, 255, 255, .8); }
.comp-hero-id { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.comp-hero-badge {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    object-fit: contain;
    padding: 4px;
    flex: none;
}
.comp-hero-initials {
    display: flex; align-items: center; justify-content: center;
    font: 700 15px var(--font-body); color: #fff;
}
.comp-hero-id h1 { font: 700 21px var(--font-display); letter-spacing: -0.4px; }
.comp-hero-id p { font: 600 12px var(--font-body); color: rgba(255, 255, 255, .75); margin-top: 2px; }
.comp-hero-stats {
    display: flex; gap: 22px;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.comp-hero-stats dt { font: 700 17px var(--font-display); }
.comp-hero-stats dd { font: 600 10.5px var(--font-body); color: rgba(255, 255, 255, .7); }
.btn-follow { margin-top: 16px; flex: none; }
.btn-follow[aria-pressed="true"] { background: var(--green-tint); color: var(--green-deep); }

.comp-tabs { display: flex; border-bottom: 1px solid var(--line); }
.comp-tab {
    flex: 1; text-align: center;
    padding: 13px 0;
    font: 600 13px var(--font-body); color: var(--muted-3);
    border-bottom: 2.5px solid transparent;
}
.comp-tab.is-active { font-weight: 700; color: var(--navy); border-bottom-color: var(--green); }
.comp-body { padding: 16px 18px 20px; background: var(--bg-feed); }
.comp-body .day-header:first-child { margin-top: 0; }

.channel-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-bottom: 8px; }
.channel-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
}
.channel-card strong { display: block; font: 700 14px var(--font-body); color: var(--navy); }
.channel-card span { font: 500 11.5px var(--font-body); color: var(--muted-4); }
.channel-section { margin-bottom: 18px; }

/* ------------------------------------------------------------ team picker */
.team-picker { display: grid; grid-template-columns: 1fr; gap: 9px; }
.team-pick {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-card);
}
.team-pick-id { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--navy); font: 600 14px var(--font-body); min-width: 0; }
.team-pick-id span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-pick-star {
    border: 1px solid var(--line-2); border-radius: 9px;
    background: #fff; color: var(--muted-3);
    font: 600 15px var(--font-body);
    width: 38px; height: 38px;
    flex: none;
}
.team-pick-star:hover { color: var(--green); border-color: var(--green); }
.team-pick-star[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* cartão do time do coração atual */
.heart-current {
    display: flex; align-items: center; gap: 12px;
    background: var(--green-tint);
    border: 1px solid var(--green);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin: 14px 0 4px;
}
.heart-current-badge {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font: 700 18px var(--font-body); color: var(--green);
    flex: none;
    overflow: hidden;
}
.heart-current-badge img { object-fit: contain; }
.heart-current strong { font: 700 15px var(--font-body); color: var(--navy); }
.heart-current p { font: 500 12px var(--font-body); color: var(--muted-2); }
.heart-current > div { flex: 1; }
.heart-current .btn-ghost { background: #fff; color: var(--muted-2); }

/* ------------------------------------------------------------- artilharia */
.scorer-list { display: flex; flex-direction: column; gap: 9px; counter-reset: none; }
.scorer-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 12px;
    padding: 11px 14px;
    box-shadow: var(--shadow-card);
}
.scorer-rank { width: 22px; font: 700 14px var(--font-display); color: var(--muted); text-align: center; flex: none; }
.scorer-item:first-child .scorer-rank { color: var(--green); }
.scorer-photo {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; background: var(--bg-soft);
    flex: none;
}
.scorer-photo-empty { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.scorer-info { flex: 1; min-width: 0; }
.scorer-info strong { display: block; font: 700 14px var(--font-body); color: var(--navy); }
.scorer-info span { display: flex; align-items: center; gap: 5px; font: 500 11.5px var(--font-body); color: var(--muted-4); }
.scorer-info span img { flex: none; }
.scorer-goals { font: 800 18px var(--font-display); color: var(--navy); text-align: center; flex: none; }
.scorer-goals small { display: block; font: 600 9px var(--font-body); color: var(--muted); letter-spacing: .05em; }

.widget-scorers { display: flex; flex-direction: column; }
.widget-scorers li {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}
.widget-scorers li:last-child { border-bottom: 0; }
.widget-scorer-rank { width: 14px; font: 700 11px var(--font-display); color: var(--muted); flex: none; }
.widget-scorers img { border-radius: 50%; object-fit: cover; flex: none; }
.widget-scorers div { flex: 1; min-width: 0; }
.widget-scorers strong { display: block; font: 700 12.5px var(--font-body); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-scorers div span { font: 500 11px var(--font-body); color: var(--muted-4); }
.widget-scorers b { font: 800 14px var(--font-display); color: var(--navy); }

/* ------------------------------------------------------------ chaveamento */
.bracket { margin-bottom: 18px; }
.bracket .section-title { margin-top: 4px; }
.bracket-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tie-card {
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 13px 15px;
}
.tie-name {
    font: 700 10px var(--font-body); color: var(--muted);
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 9px;
}
.tie-team {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 0;
    font: 600 14px var(--font-body); color: var(--navy);
}
.tie-team img { flex: none; object-fit: contain; width: 24px; height: 24px; }
.tie-team-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie-team-winner .tie-team-name { font-weight: 800; }
.tie-team-out { opacity: .55; }
.tie-check { color: var(--green); font-weight: 800; flex: none; }
.tie-agg { font: 800 16px var(--font-display); color: var(--navy); flex: none; min-width: 26px; text-align: right; }
.tie-agg small { font: 600 11px var(--font-body); color: var(--muted-2); }
.tie-legs {
    display: flex; flex-wrap: wrap; gap: 6px 12px;
    margin-top: 9px; padding-top: 9px;
    border-top: 1px dashed var(--line-dash);
    font: 600 11px var(--font-body); color: var(--muted-2);
}
.tie-pending { color: var(--blue-deep); font-weight: 700; }

@media (min-width: 720px) {
    .bracket-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------- momento e último confronto */
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-team { font: 600 13px var(--font-body); color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-pills { display: flex; gap: 4px; flex: none; }
.form-pill {
    width: 20px; height: 20px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 10px var(--font-body); font-style: normal; color: #fff;
}
.form-pill-v { background: var(--green); }
.form-pill-e { background: var(--muted-3); }
.form-pill-d { background: var(--red); }

.last-meeting { display: block; color: inherit; }
.last-meeting-score { display: block; font: 600 13.5px var(--font-body); color: var(--navy); }
.last-meeting-score b { font: 800 14px var(--font-display); padding: 0 4px; }
.last-meeting-meta { font: 500 11.5px var(--font-body); color: var(--muted); }
.last-meeting:hover .last-meeting-score { color: var(--blue-deep); }

/* ---------------------------------------------------------- aceite cookies */
.cookie-banner {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    background: var(--navy); color: #fff;
    border-radius: var(--radius-card);
    padding: 14px 16px;
    box-shadow: 0 6px 24px rgba(15, 28, 38, .35);
    display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font: 500 12.5px/1.5 var(--font-body); color: rgba(255, 255, 255, .85); }
.cookie-banner strong { color: #fff; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn-dark { background: var(--green); flex: 1; padding: 11px; }
.cookie-actions .btn-ghost { border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }

@media (min-width: 720px) {
    .cookie-banner {
        left: auto; right: 24px; bottom: 24px;
        max-width: 380px;
        flex-direction: row; align-items: center;
    }
    .cookie-actions { flex: none; }
    .cookie-actions .btn-dark { flex: none; padding: 11px 16px; }
}

/* ----------------------------------------------------------------- busca */
.search-form { display: flex; gap: 8px; margin: 12px 0 20px; }
.search-input {
    flex: 1;
    padding: 12px 14px; border-radius: 11px;
    border: 1px solid var(--line-2);
    font: 600 14px var(--font-body); color: var(--navy);
    background: #fff;
}
.search-input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------------------------------------------------------- estados vazios */
.empty-state {
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px 20px;
    text-align: center;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    margin: 8px 0;
}
.empty-state h2, .empty-state h1 { font: 700 17px var(--font-display); color: var(--navy); }
.empty-state p { font: 500 13px var(--font-body); color: var(--muted-4); max-width: 420px; }
.empty-state .btn-dark { margin-top: 8px; }
.error-page { padding: 48px 20px; }
.error-code { font: 700 48px var(--font-display); color: var(--line-2); }

.data-notice {
    font: 500 11.5px var(--font-body); color: var(--muted);
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 0;
}

/* ---------------------------------------------------------------- subnav */
.subnav {
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    overflow-x: auto;
    scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 18px;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.subnav a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 10px;
    font: 700 12.5px var(--font-body);
    color: rgba(255, 255, 255, .9);
}
.subnav a:hover { color: #fff; text-shadow: 0 0 1px rgba(255, 255, 255, .6); }
.subnav .comp-badge { width: 18px; height: 18px; font-size: 7.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.subnav-sep {
    width: 1px; height: 18px;
    background: rgba(255, 255, 255, .3);
    margin: 0 8px;
    flex: none;
}

/* ---------------------------------------------------------------- portal */
.page-head-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin-bottom: 12px;
}
.page-head-row .date-chips { margin: 0; }

.portal-grid { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
.portal-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.portal-aside { display: flex; flex-direction: column; gap: 14px; }

.section-head {
    display: flex; align-items: center; gap: 8px;
    border-left: 4px solid var(--green);
    padding-left: 10px;
    margin-bottom: 12px;
}
.section-head .section-title { margin: 0; }
.section-head .section-title a { color: inherit; }
.section-head .section-title a:hover { color: var(--blue-deep); }
.section-more {
    margin-left: auto;
    font: 700 12px var(--font-body); color: var(--blue-deep);
    white-space: nowrap;
}
.section-head .group-meta { margin-left: 0; }
.section-head + .card-grid { margin-top: 0; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card-grid .match-card { margin-bottom: 0; }

.match-card-tag {
    display: flex; align-items: center; gap: 7px;
    font: 700 11px var(--font-body); color: var(--muted-2);
    padding-bottom: 10px;
    margin-bottom: 11px;
    border-bottom: 1px solid var(--line);
}
.match-card-tag .comp-badge { width: 18px; height: 18px; font-size: 7.5px; }
.match-card-tag-day { margin-left: auto; font: 600 10.5px var(--font-body); color: var(--muted); }

.empty-day {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px 18px;
    font: 500 13px var(--font-body); color: var(--ink-2);
}
.empty-day strong { color: var(--navy); }

/* destaque com foto do jogo */
.featured { position: relative; }
.featured-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .55;
}
.featured-has-photo { background: var(--navy); }
.featured-has-photo::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 28, 38, .96) 25%, rgba(15, 28, 38, .72) 60%, rgba(15, 28, 38, .45));
    z-index: 1;
}
.featured-content { z-index: 2; }
.featured-content { position: relative; }
.featured-channels {
    display: flex; align-items: center; gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.watch-label-light { color: #9fc6e8; font: 700 10px var(--font-body); letter-spacing: .06em; }
.chip-channel-dark {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* faixa "agora ao vivo" (protótipo 1e) */
.live-strip-wrap { margin: 18px 0 0; }
.live-strip {
    display: flex; gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.live-strip::-webkit-scrollbar { display: none; }
.live-card {
    flex: none; width: 210px;
    border: 1px solid var(--line-2); border-radius: var(--radius-card);
    background: #fff;
    padding: 13px 14px;
    color: inherit;
}
.live-card-top { display: flex; align-items: center; justify-content: space-between; }
.live-card-comp { font: 600 10px var(--font-body); color: var(--muted); }
.live-card-row {
    display: flex; align-items: center; gap: 8px;
    font: 600 13px var(--font-body); color: var(--navy);
    margin-top: 8px;
}
.live-card-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card-score { font: 700 13px var(--font-display); }
.live-card-foot {
    margin-top: 10px; padding-top: 9px;
    border-top: 1px dashed var(--line-dash);
    font: 700 11px var(--font-body); color: var(--blue-text);
}

/* --------------------------------------------------------------- widgets */
.widget {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
}
.widget-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px;
}
.widget-head h2 { font: 700 14px var(--font-display); color: var(--navy); letter-spacing: -0.2px; }
.widget-more {
    display: block;
    margin-top: 10px;
    font: 700 12px var(--font-body); color: var(--blue-deep);
}

.widget-table { width: 100%; border-collapse: collapse; }
.widget-table th {
    font: 700 10px var(--font-body); color: var(--muted);
    letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 4px; text-align: center;
}
.widget-table th.wt-club { text-align: left; }
.widget-table td {
    padding: 7px 4px;
    font: 600 12.5px var(--font-body); color: var(--muted-4);
    text-align: center;
    border-top: 1px solid var(--line);
}
.widget-table td:first-child {
    font: 700 11px var(--font-display); color: var(--navy);
    border-left: 3px solid transparent;
    width: 26px;
}
.widget-table tr.zone-green td:first-child { border-left-color: var(--green); }
.widget-table tr.zone-blue td:first-child { border-left-color: var(--blue-zone); }
.widget-table tr.zone-red td:first-child { border-left-color: var(--red); }
.widget-table td.wt-club {
    text-align: left; color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 0; min-width: 110px;
}
.widget-table td.wt-club img { vertical-align: middle; margin-right: 6px; }
.widget-table td.wt-points { font: 800 12.5px var(--font-display); color: var(--navy); }

.widget-channels { display: flex; flex-direction: column; gap: 10px; }
.widget-channels li { display: flex; align-items: center; gap: 10px; }
.widget-channels strong { display: block; font: 700 13px var(--font-body); color: var(--navy); }
.widget-channels span:not(.watch-logo) { font: 500 11px var(--font-body); color: var(--muted-4); }

.widget-links { display: flex; flex-direction: column; }
.widget-links a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 0;
    font: 700 13px var(--font-body); color: var(--navy);
    border-bottom: 1px solid var(--line);
}
.widget-links li:last-child a { border-bottom: 0; }
.widget-links a:hover { color: var(--blue-deep); }

.widget-agenda { display: flex; flex-direction: column; }
.widget-agenda a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.widget-agenda li:last-child a { border-bottom: 0; }
.widget-agenda-teams {
    display: block;
    font: 700 13px var(--font-body); color: var(--navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.widget-agenda-when { font: 600 11px var(--font-body); color: var(--muted); }

.widget-follow {
    background: var(--green-tint);
    display: flex; align-items: center; gap: 12px;
}
.widget-follow strong { font: 700 13px var(--font-body); color: var(--navy); }
.widget-follow p { font: 500 11.5px var(--font-body); color: var(--muted-2); }
.widget-follow > div { flex: 1; }
.widget-follow > a { font: 700 13px var(--font-body); color: var(--green-deep); white-space: nowrap; }

/* --------------------------------------------------- banner + relacionados */
.comp-banner { height: 76px; overflow: hidden; background: var(--navy); }
.comp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-games { margin-top: 24px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
    background: var(--bg-page);
    border-top: 1px solid var(--line);
    margin-top: 24px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 26px 18px 30px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.footer-brand {
    display: flex; align-items: center; gap: 1px;
    font: 700 18px var(--font-display); color: var(--navy);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.footer-brand img { transform: rotate(-12deg); }
.footer-col-brand p { font: 500 12px var(--font-body); color: var(--muted-2); max-width: 420px; }
.footer-col-brand .footer-fine { font-size: 11px; color: var(--muted); margin-top: 8px; }
.footer-col h2 {
    font: 700 11px var(--font-body); color: var(--muted);
    letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: 8px;
}
.footer-col a {
    display: block;
    padding: 5px 0;
    font: 600 13px var(--font-body); color: var(--ink-2);
}
.footer-col a:hover { color: var(--blue-deep); }

/* ================================================================ desktop */
@media (min-width: 720px) {
    body { padding-bottom: 0; font-size: 15px; }
    .bottom-nav { display: none; }
    .menu-toggle { display: none; }
    .menu-mobile { display: none !important; }

    .header-nav { display: flex; gap: 6px; margin-left: 10px; margin-right: auto; }
    .header-nav a {
        padding: 9px 14px; border-radius: 99px;
        font: 600 13.5px var(--font-body); color: var(--muted-2);
    }
    .header-nav a:hover { background: var(--bg-soft); color: var(--navy); }
    .header-nav a[aria-current="page"] { background: var(--green); color: #fff; font-weight: 700; }

    .page { padding: 24px 24px 48px; }
    .page-title { font-size: 26px; }

    .featured { padding: 26px 28px 22px; }
    .featured-time { font-size: 32px; }
    .featured-actions .btn-light { flex: 0 0 auto; padding: 11px 22px; }

    .match-hero { padding: 22px 26px 26px; }
    .match-body { padding: 24px 26px; }
    .comp-body { padding: 20px 24px 26px; }

    .channel-grid, .team-picker { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) and (max-width: 959px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-aside {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 14px;
    }
}

@media (min-width: 960px) {
    /* grid de portal: conteúdo + sidebar fixa */
    .portal-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 24px;
        align-items: start;
    }
    .card-grid { grid-template-columns: repeat(2, 1fr); }

    .featured-content { max-width: 640px; }
    .featured-teams { gap: 26px; }
    .featured-team { min-width: 96px; }

    .comp-banner { height: 110px; }

    .team-picker, .channel-grid { grid-template-columns: repeat(3, 1fr); }

    .match-page, .competition-page, .team-page, .related-games { max-width: 760px; margin-left: auto; margin-right: auto; }
    .related-games { margin-top: 26px; }

    .subnav a { padding: 12px 12px; font-size: 13px; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
}
