/* ============================================================================
   PROVÁVEIS DO CARTOLA — STYLES (clean, comentado e responsivo)
   Hebert — 2025-08 → rev 2025-12
   ---------------------------------------------------------------------------
   Diretrizes:
   - Tokens centralizados em :root
   - Layout em trilho (rail) com largura fluida e max-width
   - Componentes com variações compact/tight/quiet/micro
   - Responsividade mobile-first (breakpoints: 360, 768, 992)
   - Acessibilidade: foco visível, prefers-reduced-motion
   - Compatível com Bootstrap Icons
   - Evita overflow horizontal em pequenos viewports
   ========================================================================== */

/* ============================================================================
   TOKENS / FOUNDATIONS
   ========================================================================== */
:root {
  /* Tipografia */
  --font-ui:
    system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', Arial, sans-serif;

  /* Trilho responsivo */
  --rail-w: 90%; /* porcentagem do container */
  --rail-w-mobile: 100%;
  --rail-max: 1400px; /* limite em desktop */

  /* Radii / Sombra / Superfícies */
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.04);
  --border-1: 1px solid rgba(0, 0, 0, 0.06);
  --surface: rgba(0, 0, 0, 0.03);
  --surface-2: rgba(0, 0, 0, 0.04);
}

/* Base tipográfica e links */
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden; /* evita scroll horizontal em mobile antigo */
}
body {
  color: var(--cinza-escuro);
  font-family: var(--font-ui);
  -webkit-text-size-adjust: 100%;
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}
i {
  transition: 0.2s ease;
}
.aviso {
  font-size: 0.9rem;
}
.assine {
  text-align: center;
  margin: 20px 0 0;
}

/* Trilho compartilhado (alinha tudo no mesmo contêiner central) */
.container-avisosize,
#provaveis-container .custom-provaveis-item,
#provaveis-container .club-grid {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin-inline: auto;
  box-sizing: border-box;
}
.club-grid {
  margin-bottom: 10rem;
}

/* ============================================================================
   BASE COMPONENTS
   ========================================================================== */

/* Cartões genéricos */
:is(.arb-card, .status-card, .empty-card) {
  background: #fff;
  border: var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 14px 16px;
  margin: 10px 0 6px;
}
.surface {
  background: var(--surface);
  border-radius: 10px;
}

/* Pills / chips genéricos */
.pill,
.tag,
.chip,
.status-badge,
.arb-badge,
.mb-countdown,
.match-chip,
.arb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 700;
}
.status-badge {
  font-size: 0.65rem;
  color: var(--cinza-claro);
  background: var(--surface-2);
}
.arb-badge {
  background: var(--azul);
  color: #fff;
  border-color: transparent;
  font-size: 0.72rem;
}
.mb-countdown {
  background: var(--surface-2);
  font-size: 0.8rem;
  color: var(--cinza-escuro);
}
.match-chip,
.arb-pill {
  background: var(--surface-2);
  color: var(--cinza-escuro);
}
.match-chip i,
.arb-pill i {
  color: var(--azul) !important;
}

/* Ícones semânticos rápidos */
.ico-fouls i {
  color: var(--laranja) !important;
}
.ico-pen i {
  color: var(--verde) !important;
}
.ico-yellow i {
  color: #ffc107 !important;
}
.ico-red i {
  color: #dc3545 !important;
}

/* Botões base */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s,
    background-color 0.15s;
}
.btn:focus-visible {
  outline: 3px solid rgba(251, 89, 4, 0.45);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--laranja);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
  background: #ff6a1a;
  transform: translateY(-1px);
  color: #fff;
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) inset;
}

/* CTA principal "Assine" (desktop base; mobile ajusta em @media) */
.btn-assine {
  background: linear-gradient(90deg, var(--laranja), #ff9800);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
}
.btn-assine:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  filter: saturate(1.05);
}
.btn-assine:visited,
.btn-assine:active,
.btn-assine:focus {
  color: #fff;
}

/* Botões de navegação e notícia */
.nav-rail {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 0 auto 12px;
}
.btn-noticia,
.btn-nav {
  display: inline-block;
  background: var(--laranja);
  color: #fff;
  padding: 7px 18px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s,
    background-color 0.15s;
}
.btn-noticia:hover,
.btn-noticia:focus,
.hero-buttons .btn-nav:hover,
.hero-buttons .btn-nav:focus {
  background: #ff6a1a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(251, 89, 4, 0.25);
  transform: translateY(-1px);
}
.btn-noticia:active,
.hero-buttons .btn-nav:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
}

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
header {
  text-align: center;
  padding: 0;
  border-bottom: none;
}
header p {
  margin-bottom: 0;
}
#header-especialista {
  margin: 10px 0 5px;
  position: relative;
}
#logo-container {
  display: flex;
  justify-content: center;
}

/* header específico da imagem */
#main-image-container {
  padding-top: 8px;
  padding-bottom: 0;
}

#navbar {
  padding: 10px;
  margin: 10px auto;
}
#navbar a {
  width: 80px;
  color: #444;
}
#navbar a:hover {
  color: var(--azul);
}

/* ============================================================================
   HERO / BANNERS / NAV BUTTONS
   ========================================================================== */
.custom-provaveis-item {
  width: 100%;
  text-align: center;
  position: relative;
  margin: 80px 0 20px;
}
.provaveis-image {
  width: 90%;
  height: auto;
  border-radius: 20px;
  border: 1px solid transparent;
}
.custom-provaveis-item .provaveis-image:not(.banner-assine) {
  clip-path: inset(0 0 7.083% 0 round 20px);
}
.provaveis-image.banner-assine {
  clip-path: none;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  text-align: center;
}
.cta-sub {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.9;
  color: var(--cinza-escuro);
}

/* estado ativo na nav hero */
.hero-buttons .btn-nav[aria-current='page'],
.hero-buttons .btn-nav.is-active,
.hero-buttons .btn-nav.is-active:hover {
  background: linear-gradient(90deg, var(--laranja), #ff9800);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 10px 26px rgba(251, 89, 4, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
.hero-buttons .btn-nav[aria-current='page'] i,
.hero-buttons .btn-nav.is-active i {
  color: #fff !important;
}
.hero-buttons .btn-nav[aria-current='page']::after,
.hero-buttons .btn-nav.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: rgba(251, 89, 4, 0.7);
  box-shadow: 0 4px 12px rgba(251, 89, 4, 0.35);
}
.hero-buttons .btn-nav.is-active:focus-visible {
  outline: 3px solid rgba(64, 168, 176, 0.35);
  outline-offset: 2px;
}

/* ============================================================================
   MARKET BAR + PLANTÃO
   ========================================================================== */
.marketbar-lane {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 6px auto 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.status-mercado {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--cinza-claro);
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--shadow-2);
  white-space: nowrap;
}
.status-mercado i {
  color: var(--azul);
}
.status-mercado .mb-status {
  color: var(--cinza-escuro);
  font-weight: 800;
}
.status-mercado .sep {
  opacity: 0.45;
}
.mb-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--cinza-escuro);
  font-weight: 700;
}
.mb-countdown i {
  font-size: 0.95rem;
  color: var(--cinza-escuro);
}
.status-mercado.-open i {
  color: var(--verde);
}
.status-mercado.-closed i {
  color: #999;
}
.status-mercado.-maint i {
  color: var(--azul);
}
.status-mercado.-soon .mb-countdown {
  background: rgba(251, 89, 4, 0.1);
  border-color: rgba(251, 89, 4, 0.28);
  color: var(--laranja);
  font-weight: 800;
}
.status-mercado.-urgent .mb-countdown {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.28);
  color: #dc3545;
  font-weight: 800;
}
.status-mercado.-error {
  border-color: #f7c6c6;
  background: #fff6f6;
}

/* ============================================================================
   LINEUPS / DESFALQUES / CAMPINHO
   ========================================================================== */
.lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}
.lineup-col {
  display: flex;
  flex-direction: column;
}

/* LINEUP CARD + PITCH + PLAYERS */
.lineup-card {
  position: relative;
  width: 100%;
  max-width: 631px;
  aspect-ratio: 631/892;
  background: center/contain no-repeat url('/assets/img/campinhos/campinho.webp');
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Chips fixos no topo do card */
.lineup-card > .chip-stack {
  position: absolute;
  top: 4px;
  left: 8px;
  z-index: 20;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}
.lineup-card .pitch {
  position: relative;
  width: 100% !important;
  max-width: 631px;
  height: auto !important;
  aspect-ratio: 631/892;
  background: url('/assets/img/campinhos/campinho.webp') 0 0/100% 100% no-repeat;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: none !important;
}
.lineup-card .pitch::after {
  display: none;
}

/* ============================================================================
   MATCH GRID / SEPARATORS
   ========================================================================== */
#provaveis-container .custom-provaveis-item .provaveis-image {
  width: 100%;
}
.jogo {
  scroll-margin-top: 70px;
}
.jogo .custom-provaveis-item {
  position: relative;
}
.jogo .custom-provaveis-item::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: var(--rail-w);
  max-width: var(--rail-max);
  height: 16px;
  pointer-events: none;
  border-radius: 12px;
  background: radial-gradient(50% 80% at 50% 0%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.25;
}
.separador {
  border: 0;
  height: 26px;
  margin: 22px auto;
  background: transparent;
  position: relative;
}
.separador::before {
  content: '';
  position: absolute;
  inset: 12px 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: var(--rail-w);
  max-width: var(--rail-max);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1) 12%,
    rgba(0, 0, 0, 0.1) 88%,
    transparent
  );
  border-radius: 1px;
}
.separador::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 10px;
  background: var(--bg-logo);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-2);
}
.jogo:nth-of-type(even) .custom-provaveis-item {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent 30%);
  border-radius: 16px;
  padding-top: 2px;
}

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid #eee;
  background: #fff;
  padding: 24px 0 32px;
  text-align: center;
}
.site-footer .footer-rail {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 50px 0 10px;
}
.footer-title {
  margin: 0;
  font-weight: 600;
}
.link-discreto {
  color: var(--cinza-claro);
  font-weight: 700;
}
.link-discreto:hover,
.link-discreto:focus {
  color: var(--laranja);
  text-decoration: underline;
}
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.social {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e9e9e9;
  transition:
    transform 0.15s,
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.social i {
  font-size: 20px;
  line-height: 1;
  color: var(--cinza-claro);
}
.social:hover,
.social:focus {
  background: var(--azul);
  border-color: var(--azul);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.social:hover i,
.social:focus i {
  color: #fff;
}
.footer-bottom {
  display: grid;
  gap: 10px;
}
.rodape-copy {
  margin: 8px 0 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.rodape-copy .sep {
  opacity: 0.5;
}
.aviso-legal {
  margin: 0 auto;
  max-width: 980px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--cinza-claro);
  padding: 0 12px;
}

/* ============================================================================
   PÁGINAS: SOBRE / CONTATO
   ========================================================================== */
.sobre-card h1.sobre-titulo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cinza-escuro);
}
.contato-cta {
  margin-top: 18px;
  padding: 18px;
  border-left: 5px solid var(--laranja);
}
.cont-card {
  cursor: pointer;
  border-radius: 14px;
}
.cont-card .cont-email {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  background: #fff;
  padding: 8px 10px;
  border: 1px dashed #eaeaea;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cinza-claro);
  margin-top: 4px;
  user-select: text;
  white-space: nowrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.75rem;
  color: #253035;
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1;
  cursor: pointer;
}
.copy-btn:hover {
  background: #efefef;
}
.copy-btn:focus-visible {
  outline: 2px solid rgba(64, 168, 176, 0.35);
  outline-offset: 2px;
}

/* ============================================================================
   VOLTAR AO TOPO (linha + botão central)
   ========================================================================== */
.backtop-lane {
  position: relative;
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 10px auto 0;
  height: 34px;
}
.backtop-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  width: 82%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.12) 15%,
    rgba(0, 0, 0, 0.12) 85%,
    transparent
  );
  border-radius: 1px;
}
.backtop-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--cinza-claro);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-2);
  border-radius: 999px;
  padding: 0;
  width: 36px;
  height: 36px;
  transition:
    transform 0.15s,
    background-color 0.15s,
    box-shadow 0.15s,
    padding 0.15s,
    width 0.15s;
}
.backtop-btn i {
  color: var(--azul);
  font-size: 1.15rem;
  line-height: 1;
}
.backtop-btn span {
  display: none;
}
.backtop-btn:focus-visible {
  outline: 3px solid rgba(251, 89, 4, 0.25);
  outline-offset: 2px;
}
.backtop-btn:hover {
  transform: translate(-50%, -50%) translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.backtop-btn.-logo i {
  display: none;
}
.backtop-btn.-logo::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url('/assets/img/icons/icon.ico') center/cover no-repeat;
  border-radius: 50%;
}

/* Back-to-top dentro da arb (corrigido pro trilho) */
.arb-wrap .backtop-lane {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 12px auto 6px;
  display: flex !important;
  justify-content: center !important;
}

/* ============================================================================
   ASSINATURA DO AUTOR
   ========================================================================== */
.copy-note {
  color: var(--cinza-claro);
  font-weight: 700;
}
.byline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-weight: 800;
  color: #253035;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.byline-pill:hover,
.byline-pill:focus {
  transform: translateY(-1px);
  border-color: rgba(251, 89, 4, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  outline: none;
}
.byline-pill img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

/* ============================================================================
   CANAL WHATSAPP
   ========================================================================== */
.canal-whats-lane {
  width: var(--rail-w);
  max-width: var(--rail-max);
  margin: 14px auto;
  box-sizing: border-box;
}
.canal-whats-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff9e6;
  border: 1px solid #ffe08a;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.cw-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: #5c4400;
}
.cw-left i {
  font-size: 1.2rem;
  color: #d97706;
  margin-top: 2px;
}
.cw-text {
  min-width: 0;
}
.cw-text strong {
  display: block;
  font-weight: 700;
  color: #3d2e00;
  line-height: 1.2;
}
.cw-text span {
  display: block;
  font-size: 0.9rem;
  color: #5c4400;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.cw-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.cw-btn:hover {
  background: #1ebe5d;
}
.cw-btn i {
  font-size: 1.1rem;
}

/* ============================================================================
   LIVE BUTTON (YouTube/Twitch)
   ========================================================================== */
.btn-live {
  background: #dc3545 !important;
  color: #fff !important;
  border: 2px solid #dc3545;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation:
    live-flash 1s infinite,
    live-glow 1s infinite;
  box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45);
  position: relative;
  overflow: hidden;
}
.btn-live i {
  color: currentColor !important;
  font-size: 1.1rem;
}
.btn-live::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse-dot 1s infinite ease-in-out;
}
@keyframes live-flash {
  0%,
  49% {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
  }
  50%,
  100% {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
  }
}
@keyframes live-glow {
  0%,
  49% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45);
  }
  50%,
  100% {
    box-shadow: 0 0 18px 2px rgba(220, 53, 69, 0.35);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.6;
  }
}
.btn-live:hover,
.btn-live:focus {
  animation-play-state: paused;
  background: #fff !important;
  color: #dc3545 !important;
  border-color: #dc3545;
}
.btn-live:hover::before,
.btn-live:focus::before {
  animation-play-state: paused;
}

/* ============================================================================
   UTILIDADES / TOOLTIP GENÉRICO
   ========================================================================== */
.has-tip {
  position: relative;
}
.has-tip .tip {
  position: absolute;
  top: calc(100% + 6px); /* vem pra baixo */
  bottom: auto; /* garante que o bottom não interfira */
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-2);
  z-index: 20;
}
.has-tip:hover .tip {
  display: inline-flex;
  gap: 0.35rem;
}

/* ============================================================================
   NAVBAR MOBILE FIXA + BANNER FIXO (Clever / Ads)
   ========================================================================== */

/* Navbar mobile (atalhos) */
.nav-shortcuts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.18);
  padding: 0.35rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}
.nav-shortcut {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--laranja);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.nav-shortcut i {
  font-size: 16px;
  line-height: 1;
}
.nav-shortcut span {
  white-space: nowrap;
  line-height: 1.1;
}
.nav-shortcut.is-active {
  background: #ff9533;
}

/* container do anúncio inferior (Clever ou similar) */
.clever-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1060;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0.75rem;
}

/* botão de fechar, pequeno e flutuando */
.close-ad-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.65;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease,
    transform 0.12s ease;
}
.close-ad-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

/* navbar mobile começa escondida; aparece após fechar anúncio */
.nav-shortcuts {
  display: none;
}
body.ad-closed .nav-shortcuts {
  display: flex;
}

/* ============================================================================
   AVISO ESCALAÇÕES
   ========================================================================== */
#aviso-escalacoes.esc-alert {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #166534;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.esc-alert-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.esc-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}
.esc-alert-icon i {
  font-size: 1rem;
}
.esc-alert-body {
  flex: 1;
  min-width: 0;
}
.esc-alert-title {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #166534;
}
.esc-alert-text {
  margin: 0;
  font-size: 0.88rem;
  color: #166534;
}
.esc-alert-cta {
  flex-shrink: 0;
}
.esc-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: #16a34a;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}
.esc-alert-btn i {
  font-size: 1rem;
}
.esc-alert-btn:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

/* ============================================================================
   RESPONSIVE (ajustes gerais)
   ========================================================================== */

/* Evita encolhimento do trilho no root de jogos em mobile */
@media (max-width: 768px) {
  :root {
    --rail-w: 100vw;
    --rail-max: 100vw;
  }
  #jogos-root .container-avisosize {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin-top: 8px;
  }
}

/* Mobile ≤768px — layout principal */
@media (max-width: 768px) {
  .custom-provaveis-item {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    margin-top: 22px;
    width: var(--rail-w);
    max-width: var(--rail-max);
  }
  .provaveis-image {
    display: block;
    width: 100%;
    height: auto;
  }
  .container-avisosize {
    width: var(--rail-w);
    max-width: var(--rail-max);
    padding: 0 12px;
    margin-top: 8px;
  }
}

/* Mobile ≤768px — layout principal + arbitragem empilhada */
@media (max-width: 768px) {
  .custom-provaveis-item {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    margin-top: 22px;
    width: var(--rail-w);
    max-width: var(--rail-max);
  }
  .provaveis-image {
    display: block;
    width: 100%;
    height: auto;
  }
  .container-avisosize {
    width: var(--rail-w);
    max-width: var(--rail-max);
    padding: 0 12px;
    margin-top: 8px;
  }

  /* ================== ARBITRAGEM ================== */

  /* card em volta da arbitragem, mais clean */
  .arb-card {
    padding: 8px 10px;
    margin: 8px 0 4px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed #e5e7eb;
    box-shadow: none;
  }

  /* pill em 3 “linhas”: ARBITRAGEM / NOME / STATS */
  .arb-pill.arb-micro {
    width: 100%;
    max-width: var(--rail-max);
    margin: 0 auto 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px 8px;
    font-size: 0.8rem;
    color: #6b7280;
  }

  /* some o ícone no mobile pra não pesar a linha */
  .arb-pill.arb-micro i {
    display: none;
  }

  /* 1ª linha: label ARBITRAGEM */
  .arb-pill.arb-micro .arb-tag {
    flex: 0 0 100%;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    margin-bottom: 2px;
  }

  /* 2ª linha: nome do árbitro */
  .arb-pill.arb-micro .ref {
    flex: 0 0 100%;
    font-weight: 800;
    color: #374151;
  }

  /* esconde aquele pontinho separador */
  .arb-pill.arb-micro .sep {
    display: none;
  }

  /* 3ª linha: stats em linha, com mais espaço entre elas */
  .arb-pill.arb-micro .k {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #6b7280;
    margin-top: 4px;
    margin-inline: 8px; /* aumenta o espaço lateral entre F / A / V / P */
  }

  .arb-pill.arb-micro .k + .k {
    margin-left: 10px;
  }

  /* faixa do botão “topo” logo abaixo */
  .arb-slot .backtop-lane {
    margin: 6px auto 4px;
    width: 100%;
    max-width: var(--rail-max);
  }

  /* ================== CTA / HERO / GERAL ================== */

  .hero-cta {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 12px;
    text-align: center;
    max-width: var(--rail-max);
    padding: 0 12px;
  }
  .btn-assine {
    position: relative;
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff7a06, #ff9800, #ff7a06);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 900;
    font-size: 1.025rem;
    letter-spacing: 0.2px;
    text-align: center;
    box-shadow:
      0 10px 26px rgba(251, 89, 4, 0.28),
      0 2px 0 rgba(255, 255, 255, 0.25) inset;
    transform: translateZ(0);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      filter 0.15s ease,
      background-position 0.8s ease;
  }
  .btn-assine:hover,
  .btn-assine:focus {
    background-position: 100% 0;
    filter: saturate(1.05) brightness(1.02);
    box-shadow:
      0 14px 34px rgba(251, 89, 4, 0.38),
      0 2px 0 rgba(255, 255, 255, 0.25) inset;
    transform: translateY(-1px);
  }
  .btn-assine:active {
    transform: translateY(0) scale(0.985);
    box-shadow:
      0 8px 18px rgba(251, 89, 4, 0.28),
      0 2px 0 rgba(0, 0, 0, 0.08) inset;
  }
  .btn-assine::after {
    font-family: 'bootstrap-icons';
    content: '\F135';
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 1.05em;
    line-height: 0;
    transform: translateX(0);
    transition: transform 0.15s ease;
    vertical-align: middle;
  }
  .btn-assine:hover::after,
  .btn-assine:focus::after {
    transform: translateX(2px);
  }
  .btn-assine::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, 0.25), transparent 50%),
      linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.08));
    opacity: 0.9;
    transition: opacity 0.2s ease;
  }
  .btn-assine:active::before {
    opacity: 1;
  }
  .cta-sub {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #3a3f45;
    font-weight: 800;
  }
  .cta-sub::before {
    content: '🔒 ';
  }

  #provaveis-container h1 {
    text-align: center;
  }
  #provaveis-container h1,
  #provaveis-container .col-md-6,
  #provaveis-container .col-12 {
    margin-bottom: 32px;
  }

  footer {
    padding: 16px 0;
  }
  #redes-sociais {
    gap: 20px;
  }
  footer i {
    font-size: 20px;
  }
  .provaveis-image.banner-assine {
    display: none;
  }

  .hero-buttons {
    gap: 10px;
    margin: 6px auto 18px;
    padding: 0 12px;
    width: var(--rail-w);
    max-width: var(--rail-max);
  }
  .btn-nav {
    width: 100%;
  }

  .lineups {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .separador {
    height: 22px;
    margin: 18px auto;
  }
  .separador::before {
    width: var(--rail-w);
    max-width: var(--rail-max);
  }
  .separador::after {
    width: 28px;
    height: 8px;
    top: 7px;
  }
  .jogo .custom-provaveis-item::after {
    width: var(--rail-w);
    max-width: var(--rail-max);
    bottom: -10px;
    height: 12px;
    opacity: 0.22;
  }

  /* WhatsApp banner mobile */
  .canal-whats-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cw-left {
    justify-content: center;
  }
  .cw-btn {
    justify-content: center;
    width: 100%;
  }

  /* Back to top dentro da arb */
  .arb-wrap .backtop-lane {
    margin-top: 4px;
  }

  /* Upd mini (se usado) */
  .upd-mini-lane {
    justify-content: center;
    padding: 0 12px;
  }
  .upd-mini {
    font-size: 0.72rem;
  }

  /* Status-card mobile mais discreto */
  .status-card {
    padding: 8px 10px;
    background: #fff;
    border: 1px dashed #eaeaea;
    box-shadow: none;
    border-radius: 12px;
  }
  .status-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .status-group {
    background: transparent;
    border: 0;
    padding: 6px;
  }
  .sg-title {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 4px;
  }
  .tag {
    font-size: 0.5rem;
    padding: 2px 4px;
    border-color: #eaeaea;
    background: #fff;
    box-shadow: none;
  }
  .tag.-out {
    background: #fff7f7;
    border-color: #f4caca;
  }
  .tag.-susp {
    background: #fffaf0;
    border-color: #ffe1a3;
  }

  /* Esconde MarketBar em telas pequenas */
  .marketbar-lane,
  .marketbar-lane .status-mercado {
    display: none !important;
  }
}

/* Mobile aviso escalações (≤640) */
@media (max-width: 640px) {
  #aviso-escalacoes.esc-alert {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
    padding: 12px 12px 10px;
  }
  .esc-alert-main {
    align-items: flex-start;
  }
  .esc-alert-cta {
    margin-top: 8px;
    width: 100%;
  }
  .esc-alert-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer e social menores em mobile */
@media (max-width: 768px) {
  .social {
    width: 40px;
    height: 40px;
  }
  .social i {
    font-size: 18px;
  }
  .aviso-legal {
    font-size: 0.68rem;
  }
}

/* Viewports muito pequenos */
@media (max-width: 360px) {
  .match-chip {
    font-size: 0.68rem;
    padding: 3px 7px;
  }
  .tag.-soon .t-desk {
    display: none;
  }
  .tag.-soon .t-mob {
    display: inline;
  }
}

/* Desktop ≥992px */
@media (min-width: 992px) {
  .custom-provaveis-item .provaveis-image ~ .arb-wrap.container-avisosize {
    margin-top: -70px;
  }
  #jogo-01 .arb-wrap.container-avisosize {
    margin-top: 10px;
  }
  .status-mercado {
    width: max-content;
    margin: 6px 0 12px auto;
    padding: 6px 10px;
    border-radius: 10px;
    gap: 0.45rem;
    font-size: 0.82rem;
  }
  .marketbar-lane {
    justify-content: flex-end;
    margin: 2px auto 24px;
  }
  .status-mercado .mb-label {
    display: none;
  }
  .mb-countdown {
    padding: 3px 8px;
    font-size: 0.78rem;
    border-radius: 999px;
  }
  .mb-countdown i {
    font-size: 0.95rem;
    margin-right: 0.2rem;
  }

  .arb-card {
    padding: 8px 10px;
    margin: 10px 0 6px;
    border-radius: 12px;
  }
  .arb-head {
    margin-bottom: 6px;
    gap: 6px;
  }
  .arb-ref {
    font-size: 0.95rem;
  }
  .arb-match {
    font-size: 0.85rem;
  }
  .arb-stats {
    gap: 8px;
  }
  .arb-stat {
    min-height: 34px;
    padding: 6px 4px;
    border-radius: 10px;
  }
  .arb-stat .ico {
    font-size: 1rem;
    gap: 4px;
  }
  .arb-stat .val {
    font-size: 1rem;
    margin-top: 1px;
  }
  .arb-stat .lbl {
    font-size: 0.72rem;
    margin-top: -1px;
  }

  /* Helper de trilho à direita para alinhar widgets externos */
  .rail-right {
    width: max-content;
    margin-left: auto;
    margin-right: calc((100% - min(90vw, var(--rail-max))) / 2);
  }
}

/* Esconde navbar shortcuts em desktop se quiser (já controlado via JS/ad) */
@media (min-width: 768px) {
  /* opcional: .nav-shortcuts{display:none!important} */
}

/* ============================================================================
   Acessibilidade / prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .btn-live,
  .btn-live::before,
  .pa-topbar,
  .pa-left i,
  .pa-onair .dot,
  .pa-btn {
    animation: none;
  }
  .backtop-btn {
    transition: none;
  }
  .cont-card .cont-email {
    font-size: 0.75rem;
    text-align: center;
    display: block;
    margin-top: 6px;
  }
}


html, body{
  min-height: 100dvh;
}

