:root {
  color-scheme: light;
  --bg: #e7efd7;
  --ink: #142a1c;
  --ink-1: rgba(20, 42, 28, 0.66);
  --ink-2: rgba(20, 42, 28, 0.62);
  --ink-3: rgba(20, 42, 28, 0.44);
  --green: #138a52;
  --green-deep: #0c3b27;
  --lime: #b7e24a;
  --neon: #e8ff3a;
  --warm: #f0a868;
  --glass: rgba(255, 255, 255, 0.40);
  --glass-2: rgba(255, 255, 255, 0.60);
  --glass-3: rgba(255, 255, 255, 0.30);
  --hair: rgba(20, 42, 28, 0.10);
  --hair-2: rgba(20, 42, 28, 0.16);
  --blur: blur(22px) saturate(140%);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --shadow: 0 24px 60px rgba(12, 59, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(120% 75% at 6% -10%, rgba(183, 226, 74, 0.50), transparent 55%),
    radial-gradient(95% 60% at 100% 0%, rgba(232, 255, 58, 0.38), transparent 52%),
    radial-gradient(120% 90% at 88% 108%, rgba(240, 168, 104, 0.20), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

/* Camada de imagem (torcedor) — atmosférica, atrás dos cards */
.field-photo {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/fan.jpg");
  background-repeat: no-repeat;
  background-position: center 26%;
  background-size: cover;
  opacity: 0.6;
  mix-blend-mode: multiply;
  filter: contrast(1.12) saturate(1.1);
  -webkit-mask-image: radial-gradient(140% 120% at 50% 42%, #000 64%, transparent 100%);
  mask-image: radial-gradient(140% 120% at 50% 42%, #000 64%, transparent 100%);
  pointer-events: none;
}

/* Fundo abstrato — fluxo, órbitas, pontos */
.field-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.field-bg svg {
  width: 100%;
  height: 100%;
}

.field-bg .node {
  animation: pulseNode 5s ease-in-out infinite;
}

@keyframes pulseNode {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

a {
  color: var(--green);
}

.shell {
  position: relative;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero,
.expand {
  margin-bottom: 14px;
}

/* Respiro entre o header e o primeiro card (antes vinha da margem do alert-status). */
.hero {
  margin-top: 22px;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

h2 {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 500;
}

/* ---------- Header ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px 4px;
}

.brand {
  flex: none;
  line-height: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(12, 59, 39, 0.24);
}

.topbar-titles {
  flex: 1;
  min-width: 0;
}

.topbar-titles h1 {
  line-height: 1.04;
}

.topbar-titles .eyebrow {
  margin: 6px 0 0 -2px;
}

.topbar-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 138, 82, 0.30);
  background: var(--glass-2);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.alert-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(232, 255, 58, 0.4);
  background: rgba(19, 138, 82, 0.14);
}

.ghost-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  background: var(--glass-2);
  color: var(--green-deep);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.ghost-icon:hover {
  border-color: rgba(19, 138, 82, 0.4);
  transform: translateY(-1px);
}

.alert-status {
  margin: 0 4px 14px;
  text-align: right;
  color: var(--ink-2);
  font-size: 0.74rem;
}

/* Sem texto (estado inicial) não ocupa espaço; o JS preenche quando há status. */
.alert-status:empty {
  display: none;
}

.icon-bell,
.icon-calendar,
.icon-check {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: currentColor;
}

.icon-bell { mask: url("assets/bell.svg") center / contain no-repeat; -webkit-mask: url("assets/bell.svg") center / contain no-repeat; }
.icon-calendar { mask: url("assets/calendar.svg") center / contain no-repeat; -webkit-mask: url("assets/calendar.svg") center / contain no-repeat; }
.icon-check { mask: url("assets/check.svg") center / contain no-repeat; -webkit-mask: url("assets/check.svg") center / contain no-repeat; }

/* ---------- GlassCard base ---------- */
.match-panel,
.expand,
.broadcast-grid article {
  background: var(--glass);
  border: 1px solid var(--glass-2);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---------- Hero ---------- */
.match-panel {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.match-panel::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 255, 58, 0.28), transparent 70%);
  pointer-events: none;
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: rgba(19, 138, 82, 0.12);
  border: 1px solid rgba(19, 138, 82, 0.28);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(19, 138, 82, 0.8);
}

/* O ponto só "pulsa" quando o jogo está de fato AO VIVO. */
.badge-live::before {
  animation: livePulse 1.7s ease-in-out infinite;
}

.badge-finished::before {
  background: var(--ink-3);
  box-shadow: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 24px 0 22px;
}

.team {
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--glass-3);
  font-size: clamp(1.3rem, 4.2vw, 2.15rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.team:last-child {
  text-align: right;
}

.team-scorers {
  display: block;
  margin-top: 9px;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(20, 42, 28, 0.64);
  font-variant-numeric: tabular-nums;
}

.versus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(19, 138, 82, 0.10);
  border: 1px solid rgba(19, 138, 82, 0.25);
  color: var(--green);
  font-weight: 400;
  font-size: 0.9rem;
}

.versus.has-score {
  /* Cresce na vertical p/ caber o placar + (opcional) os pênaltis, sem transbordar. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: auto;
  min-width: 48px;
  height: auto;
  min-height: 48px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.04;
  color: var(--green-deep);
  background: rgba(232, 255, 58, 0.55);
  border-color: rgba(19, 138, 82, 0.30);
  box-shadow: 0 0 26px rgba(232, 255, 58, 0.55);
  font-variant-numeric: tabular-nums;
}

/* Placar de pênaltis (mata-mata), abaixo do resultado dentro da pílula. */
.versus .pens {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--green-deep);
  opacity: 0.85;
  white-space: nowrap;
}

/* "Quem leva?" — probabilidade pré-jogo (índice Elo) */
.predict {
  margin: 0 0 18px;
}

.predict .eyebrow {
  margin: 0 0 8px;
}

.predict-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass-3);
  border: 1px solid var(--hair);
}

.predict-bar .seg {
  height: 100%;
  min-width: 0;
  transition: width 0.4s ease;
}

.predict-bar .seg.home { background: var(--green-deep); }
.predict-bar .seg.draw { background: rgba(20, 42, 28, 0.22); }
.predict-bar .seg.away { background: var(--lime); }

.predict-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px 12px;
  align-items: start;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--ink-1);
}

.predict-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.predict-legend span:nth-child(2) { justify-self: center; }
.predict-legend span:nth-child(3) { justify-self: end; text-align: right; }

.predict-legend b {
  font-weight: 600;
  white-space: nowrap;
}

.predict-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot.home { background: var(--green-deep); }
.dot.draw { background: rgba(20, 42, 28, 0.30); }
.dot.away { background: var(--lime); }

.predict-note {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--ink-2);
}

/* Meta (cidade / horários) */
.match-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.match-meta div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  background: var(--glass-3);
}

dt {
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Countdown — barra escura viva */
.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(12, 38, 27, 0.88);
  border: 1px solid rgba(232, 255, 58, 0.22);
  box-shadow: 0 0 30px rgba(19, 138, 82, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.countdown span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown strong {
  font-size: clamp(1.5rem, 4.6vw, 2.05rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(232, 255, 58, 0.45);
  letter-spacing: 0.02em;
}

/* ---------- WatchOptions ---------- */
.live-streams {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(232, 255, 58, 0.10);
  border: 1px solid rgba(19, 138, 82, 0.20);
}

.live-streams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#live-streams-label {
  margin: 0;
}

.region-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass-2);
}

.region-toggle button {
  padding: 9px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}

.region-toggle button.active {
  background: var(--green-deep);
  color: #fff;
}

.stream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.stream-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: var(--glass-2);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.region-tag {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(19, 138, 82, 0.14);
  color: var(--green-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stream-link small {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 0.74rem;
}

.stream-link:hover {
  border-color: rgba(19, 138, 82, 0.4);
  transform: translateY(-1px);
}

.stream-link:focus-visible,
.region-toggle button:focus-visible,
.segmented button:focus-visible,
.row-action:focus-visible,
.alert-btn:focus-visible,
.ghost-icon:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.stream-link.is-live {
  border-color: rgba(19, 138, 82, 0.4);
  background: rgba(232, 255, 58, 0.5);
  box-shadow: 0 0 22px rgba(232, 255, 58, 0.5);
}

.stream-link.is-live .region-tag {
  background: var(--green-deep);
  color: #fff;
}

.stream-link.is-other-region {
  opacity: 0.5;
}

/* Player */
.player {
  margin-top: 14px;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.player-head strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#player-open {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

#player-close {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--hair);
  color: var(--ink-1);
  font-weight: 500;
  font-size: 0.8rem;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #04140e;
  border: 1px solid var(--hair-2);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Seções expansíveis ---------- */
.expand {
  overflow: hidden;
}

.expand > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
}

.expand > summary::-webkit-details-marker {
  display: none;
}

.summary-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.summary-title strong {
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--green-deep);
}

.chev {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  background: var(--glass-3);
  color: var(--green-deep);
  font-size: 0.9rem;
  transition: transform 0.25s ease, background 0.2s;
}

.expand[open] .chev {
  transform: rotate(180deg);
  background: rgba(19, 138, 82, 0.14);
}

.expand-body {
  padding: 0 24px 24px;
}

/* ---------- Transmissão por partida ---------- */
.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.broadcast-grid article {
  padding: 18px;
}

.country-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.flag-pill {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(19, 138, 82, 0.16);
  color: var(--green-deep);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.flag-pill.portugal {
  background: rgba(240, 168, 104, 0.24);
  color: #8a4a1f;
}

.country-head h2 {
  font-size: 0.96rem;
}

.broadcast-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.broadcast-grid li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  background: var(--glass-3);
  line-height: 1.4;
}

.label {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.broadcast-detail {
  display: grid;
  gap: 5px;
}

.broadcast-detail strong {
  color: var(--green-deep);
  font-weight: 500;
}

.broadcast-detail small {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Agenda ---------- */
.schedule-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass-2);
}

.segmented button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s, background 0.2s;
}

.segmented button.active {
  background: var(--green-deep);
  color: #fff;
}

.match-list {
  display: grid;
  gap: 9px;
}

.match-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.3fr) minmax(170px, 0.8fr) minmax(180px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--glass-3);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.match-row:hover {
  border-color: rgba(19, 138, 82, 0.3);
  background: var(--glass);
  transform: translateY(-1px);
}

.match-row time {
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.92rem;
}

.match-row strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  color: var(--green-deep);
}

.small-muted {
  color: var(--ink-2);
  font-size: 0.8rem;
}

.broadcast-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.broadcast-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19, 138, 82, 0.10);
  border: 1px solid var(--hair);
  color: var(--ink-1);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Canais clicáveis na agenda (embed abre o player; demais abrem o site). */
.chan-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(19, 138, 82, 0.10);
  border: 1px solid var(--hair);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.chan-chip:hover {
  border-color: rgba(19, 138, 82, 0.4);
  background: rgba(232, 255, 58, 0.42);
  transform: translateY(-1px);
}

.chan-chip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.chan-chip.is-embed {
  background: rgba(232, 255, 58, 0.30);
}

.chan-play {
  font-size: 0.66rem;
  line-height: 1;
  color: var(--green);
}

/* ---------- Rodapé ---------- */
.site-footer {
  margin-top: 24px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--hair);
  text-align: center;
  color: var(--ink-1);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(19, 138, 82, 0.5);
  transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
  color: var(--green);
  border-color: var(--green);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 20px;
    font-size: 0.84rem;
  }
}

.row-action {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--hair-2);
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.row-action:hover {
  border-color: rgba(19, 138, 82, 0.4);
  background: rgba(232, 255, 58, 0.4);
  transform: translateY(-1px);
}

/* ---------- Resultados ---------- */
.result-list {
  display: grid;
  gap: 9px;
}

.result-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  gap: 14px;
  align-items: baseline;
  padding: 13px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: var(--glass-3);
}

.result-row time {
  color: var(--green-deep);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}

.result-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3px 12px;
  align-items: baseline;
}

.result-team {
  min-width: 0;
  font-weight: 400;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.result-team.home {
  grid-column: 1;
  grid-row: 1;
}

.result-score {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.result-team.away {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}

.result-team.win {
  color: var(--green-deep);
  font-weight: 500;
}

.result-scorers {
  grid-row: 2;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(20, 42, 28, 0.64);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.result-scorers.home {
  grid-column: 1;
}

.result-scorers.away {
  grid-column: 3;
  text-align: right;
}

.result-score {
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(19, 138, 82, 0.12);
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-stage {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.result-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--hair-2);
  color: var(--green-deep);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.pager-btn:hover:not(:disabled) {
  border-color: rgba(19, 138, 82, 0.4);
  background: rgba(232, 255, 58, 0.42);
  transform: translateY(-1px);
}

.pager-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager-info {
  color: var(--ink-1);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Classificação ---------- */
.standings-note {
  margin: 0 0 16px;
}

.standings {
  display: grid;
  gap: 20px;
}

.standings-group h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.standings-table th {
  padding: 0 5px 6px;
  text-align: center;
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.standings-table td {
  padding: 8px 5px;
  text-align: center;
  border-top: 1px solid var(--hair);
  color: var(--ink-1);
}

.standings-table .c-pos {
  width: 24px;
  color: var(--ink-2);
}

.standings-table .c-team {
  text-align: left;
  color: var(--green-deep);
  overflow-wrap: anywhere;
}

.standings-table td b {
  color: var(--green-deep);
}

.standings-table tr.qualified td {
  background: rgba(19, 138, 82, 0.08);
}

.standings-table tr.qualified .c-pos {
  color: var(--green);
  font-weight: 700;
}

.standings-table tr.qualified .c-team {
  font-weight: 600;
}

@media (max-width: 600px) {
  .standings-table .c-vd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge::before,
  .field-bg .node {
    animation: none;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 920px) {
  .match-row {
    grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  }

  .match-row .times {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .shell {
    width: calc(100% - 22px);
  }

  .topbar {
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  /* Título com mais presença no mobile: ocupa pelo menos a largura do eyebrow. */
  .topbar-titles h1 {
    font-size: 1.58rem;
  }

  .alert-btn-label {
    display: none;
  }

  .alert-btn {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .alert-status {
    text-align: right;
  }

  .match-panel {
    padding: 20px;
  }

  .scoreline {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0;
  }

  .team,
  .team:last-child {
    text-align: left;
  }

  .versus {
    width: 34px;
    height: 24px;
    margin: -2px auto;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: var(--ink-2);
    font-size: 0.82rem;
  }

  /* Cidade/horários: um único bloco compacto */
  .match-meta {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--hair);
    border-radius: var(--radius-xs);
    background: var(--glass-3);
    overflow: hidden;
  }

  .match-meta div {
    border: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
  }

  .match-meta div + div {
    border-top: 1px solid var(--hair);
  }

  dd {
    margin: 0;
    text-align: right;
    font-size: 0.86rem;
  }

  .countdown strong {
    font-size: 1.7rem;
  }

  .expand > summary,
  .expand-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .broadcast-grid {
    grid-template-columns: 1fr;
  }

  .broadcast-grid li {
    grid-template-columns: 1fr;
  }

  .schedule-head {
    justify-content: stretch;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 0 8px;
  }

  /* Agenda vira cards empilhados */
  .match-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .match-row .times {
    display: block;
  }

  .row-action {
    width: 100%;
    min-height: 44px;
  }

  .result-row {
    grid-template-columns: 1fr;
    gap: 9px;
    justify-items: center;
    text-align: center;
  }

  .result-match {
    width: 100%;
  }

  .result-stage {
    color: var(--ink-3);
  }
}
