/* © 2026 Alan Evangelista de Souza Martins (AlanSouzaDev7). Todos os direitos reservados. Autor: Alan Evangelista de Souza Martins. Uso, cópia ou redistribuição só com autorização do autor (veja LICENSE). */
/* CazéStats.TV — grade de clubes, página do clube, partida, sobre, transição, keyframes e responsivo (parte de css/styles.css dividida por área; a ordem dos arquivos no index.html é a da cascata) */
/* ==========================================================================
   Grade de clubes
   ========================================================================== */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 10px 0 24px; flex-wrap: wrap; }
.page-head h1,
.display {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
  text-transform: uppercase;
}
.page-head p { color: var(--text-2); max-width: 520px; margin: 10px 0 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.club-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  color: var(--k-on);
  background: var(--k1);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.club-card:hover { box-shadow: 0 24px 50px -20px var(--k1), 0 0 0 1px rgb(255 255 255 / 0.12) inset; }
.club-card .kit-bg { position: absolute; inset: 0; z-index: -2; opacity: 0.9; transition: transform 0.8s var(--ease); }
.club-card:hover .kit-bg { transform: scale(1.08) rotate(-2deg); }
.club-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.22), transparent 60%),
    linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.1) 60%);
}
.club-card .crest-wrap { position: absolute; top: 18px; left: 18px; transition: transform 0.5s var(--ease-bounce); }
.club-card:hover .crest-wrap { transform: scale(1.1) rotate(-6deg); }
.club-card .info { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.club-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
}
.club-card p { margin: 6px 0 0; font-size: 12px; opacity: 0.8; display: flex; justify-content: space-between; }
.club-card .rank {
  position: absolute;
  top: 18px;
  right: 18px;
  font: 900 13px var(--font);
  padding: 5px 9px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.club-card .go {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  transform: translateX(20px) scale(0.6);
  opacity: 0;
  transition: transform 0.35s var(--ease-bounce), opacity 0.35s var(--ease-bounce);
}
.club-card:hover .go { transform: none; opacity: 1; }

/* ==========================================================================
   Página do clube
   ========================================================================== */
.club-page { --accent: var(--c1); }

.hero {
  position: relative;
  min-height: 430px;
  margin: -24px calc(50% - 50vw) 0;
  padding: 56px 40px 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-c1);
  background: var(--c1);
}
.hero .kit-bg { position: absolute; inset: 0; z-index: -3; opacity: 0.55; animation: drift 30s linear infinite; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, var(--c1) 30%, color-mix(in srgb, var(--c1) 40%, transparent) 70%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}
.hero::after {
  content: attr(data-short);
  position: absolute;
  right: -2vw;
  bottom: -6vw;
  z-index: -1;
  font: 900 clamp(160px, 26vw, 380px) / 1 var(--font-display);
  font-stretch: 62%;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--on-c1) 22%, transparent);
  animation: slideIn 1.2s var(--ease) both 0.15s;
}
.hero-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.hero .crest-big { animation: crestIn 0.9s var(--ease-bounce) both; }
.hero h1 {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(54px, 8.5vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 8px 0 14px;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span { display: inline-block; animation: wordUp 0.9s var(--ease) both; animation-delay: calc(0.12s + var(--i) * 90ms); }
.hero .eyebrow { color: inherit; opacity: 0.85; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-c1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-c1) 18%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: 13px;
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(0.4s + var(--i) * 70ms);
}
/* ---------- aparições temáticas dos escudos ---------- */
.scene { margin: 0; position: relative; }
.scene svg { display: block; width: 100%; height: auto; }
.scene .x { transform-box: fill-box; transform-origin: center; }
.scene.play .x { animation: var(--an) var(--du, 1s) var(--ea, cubic-bezier(0.22, 1, 0.36, 1)) var(--d, 0s) both; }
.scene.play .tw { animation: appear 0.6s ease var(--d, 0s) both, twinkle var(--tw, 2s) ease-in-out calc(var(--d, 0s) + 0.6s) infinite alternate; }
.scene .glide, .scene .spinIn, .scene .spinSlow, .scene .beam { transform-box: view-box; }
.scene .glide { transform: translate(120px, 120px) scale(0); }
.scene.play .glide { animation: glide 2.9s ease-in-out both; }
.scene.play .spinIn { animation: spinIn 2.8s cubic-bezier(0.5, 0, 0.3, 1) both; }
.scene.play .spinSlow { animation: spin 18s linear infinite; }
.scene.play .beam { animation: beam 3.2s ease-in-out infinite alternate; }
.scene.play .wv { animation: waveMove 3.2s linear infinite; }
.scene.play .oars { animation: rowStroke 0.5s ease-in-out infinite alternate; }
.scene.play .crest-in { animation: crestIn 0.9s var(--ease-bounce) 2.7s both, crestFloat 4s ease-in-out 3.6s infinite; }
.scene .crest-in image { filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.45)); }

.scene-stage { width: 330px; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45)); animation: jerseyIn 1s var(--ease) both; }
.scene-hero { cursor: pointer; }
.scene-hero svg { border-radius: 28px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18) inset; }
.scene-hero figcaption { margin-top: 10px; text-align: center; color: var(--on-c1); }
.scene-hero figcaption b { display: block; font: 900 22px var(--font-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: 0.04em; }
.scene-hero figcaption span { font-size: 12px; opacity: 0.85; }
.card-scene { position: absolute; right: 14px; top: 52px; width: 128px; transition: transform 0.5s var(--ease-bounce); }
/* animações dos cartões: param fora da tela e, depois da entrada, só continuam com o mouse em cima */
.scene-card.idle *, .club-card:not(:hover) .scene-card.settled * { animation-play-state: paused !important; }
.card-scene svg { border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2) inset; }
.club-card:hover .card-scene { transform: translateY(-4px) scale(1.06) rotate(-2deg); }

@keyframes appear { from { opacity: 0; } }
@keyframes twinkle { to { opacity: 0.25; } }
@keyframes zoomIn { to { transform: scale(1.3); } }
@keyframes fadeOut { to { opacity: 0.14; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } 70% { transform: scale(1.25); } }
@keyframes sunrise { from { opacity: 0.2; transform: translateY(50px); } }
@keyframes riseUp { from { opacity: 0; transform: translateY(40px); } }
@keyframes sweep { from { transform: translateX(-340px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-120px); } 70% { transform: translateY(8px); } }
@keyframes growUp { from { transform: scaleY(0); } }
@keyframes oarL { from { opacity: 0; transform: rotate(-50deg) scale(0.6); } }
@keyframes oarR { from { opacity: 0; transform: rotate(50deg) scale(0.6); } }
@keyframes ring { from { opacity: 0; transform: rotate(-200deg) scale(0.3); } }
@keyframes starRise { 0% { opacity: 0; transform: translateY(90px) scale(0.3); } 70% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes crow { 0% { opacity: 0; transform: translateY(40px); } 40% { opacity: 1; transform: none; } 60% { transform: scale(1.12) rotate(-6deg); } 80%, 100% { transform: none; } }
@keyframes roar { 0% { transform: scale(0); } 50% { transform: scale(1.18); } 65% { transform: scale(0.94); } 80% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes chargeL { from { transform: translateX(-110px); } 80% { transform: translateX(16px); } to { transform: translateX(8px); } }
@keyframes burst { 0% { opacity: 0; transform: scale(0.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes arrow { from { transform: translate(-90px, 96px); } to { transform: translate(100px, 118px); } }
@keyframes rowAcross { from { transform: translate(-40px, 172px); } to { transform: translate(140px, 172px); } }
@keyframes sail { from { transform: translate(-60px, 180px); } to { transform: translate(124px, 180px); } }
@keyframes rowStroke { to { transform: rotate(18deg); } }
@keyframes waveMove { to { transform: translateX(60px); } }
@keyframes beam { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes spinIn { from { transform: rotate(0) scale(1.5); } to { transform: rotate(900deg) scale(0.35); opacity: 0.5; } }
@keyframes glide {
  0% { transform: translate(-40px, 70px) rotate(12deg) scale(0.7); }
  30% { transform: translate(110px, 40px) rotate(-4deg) scale(0.8); }
  55% { transform: translate(196px, 84px) rotate(-22deg) scale(0.9); }
  78% { transform: translate(110px, 104px) rotate(8deg) scale(1.1); opacity: 1; }
  100% { transform: translate(120px, 120px) scale(2.6); opacity: 0; }
}
@keyframes flash { 0% { opacity: 0; transform: scale(0.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes crestIn { 0% { opacity: 0; transform: scale(0.3) rotate(-12deg); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes crestFloat { 50% { transform: translateY(-5px); } }
.palette { display: flex; gap: 8px; margin-top: 18px; }
.palette i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-c1) 40%, transparent);
  animation: pop 0.5s var(--ease-bounce) both;
  animation-delay: calc(0.6s + var(--i) * 80ms);
}

.club-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.club-tabs .tabs { max-width: 1312px; margin: 0 auto; padding-left: 0; }
@media (max-width: 700px) {
  .club-tabs .tabs, .lu-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .club-tabs .tabs.at-end, .lu-tabs.at-end { -webkit-mask-image: none; mask-image: none; }
}

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(var(--c1), transparent 70%);
  opacity: 0.35;
}
.kpi small { color: var(--text-3); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi b { display: block; font: 900 40px / 1.05 var(--font-display); font-stretch: 75%; margin-top: 4px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--text-2); }

.chart { width: 100%; height: 220px; }
.chart .line { fill: none; stroke: var(--c1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s var(--ease) forwards 0.2s; }
.chart .area { fill: url(#areaGrad); opacity: 0; animation: fade 1s ease forwards 1s; }
.chart .grid line { stroke: var(--line-soft); }
.chart text { fill: var(--text-3); font: 600 11px var(--font); }
.chart .zone { opacity: 0.08; }
.chart .dot { fill: var(--surface); stroke: var(--c1); stroke-width: 3; opacity: 0; animation: pop 0.4s var(--ease-bounce) forwards 1.9s; }
:root[data-theme="light"] .chart .line { stroke: color-mix(in srgb, var(--c1) 85%, #000); }

.idol {
  position: relative;
  padding: 22px 18px;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 50%, #000));
  color: var(--on-c1);
  overflow: hidden;
}
.idol::before {
  content: "★";
  position: absolute;
  right: 10px;
  top: -24px;
  font-size: 140px;
  opacity: 0.12;
  animation: spin 40s linear infinite;
}
.idol h4 { margin: 4px 0 0; font: 900 34px / 1 var(--font-display); font-stretch: 70%; text-transform: uppercase; }
/* foto do ídolo ao fundo, sumindo num degradê da cor sólida do clube */
.idol.has-photo { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--c1); }
.idol.has-photo::before { display: none; }
.idol-photo { position: absolute; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.25) contrast(1.05); }
.idol.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--c1) 28%, color-mix(in srgb, var(--c1) 70%, transparent) 55%, transparent 100%),
    linear-gradient(0deg, var(--c1) 0%, transparent 45%);
}
.idol.has-photo > :not(.idol-photo) { position: relative; z-index: 1; }
.idol-credit { margin-top: 8px; font-size: 11px; opacity: .9; text-shadow: 0 1px 3px rgb(0 0 0 / 0.7); }

.derby {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  transition: background 0.2s;
}
.derby:hover { background: var(--surface-2); }
.derby .vs { font: 900 18px var(--font-display); font-stretch: 70%; color: var(--text-3); }

/* campo com escalação */
.pitch {
  position: relative;
  aspect-ratio: 68 / 100;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(to bottom, #1d7a43 0 10%, #1a6e3c 10% 20%);
}
.pitch svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 90px;
  animation: popIn 0.6s var(--ease-bounce) both;
  animation-delay: calc(0.1s + var(--i) * 60ms);
}
.player .shirt {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 14px var(--font);
  background: var(--c1);
  color: var(--on-c1);
  border: 2px solid var(--c2);
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.35);
  transition: transform 0.3s var(--ease-bounce);
}
.player:hover .shirt { transform: scale(1.18); }
.player span { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.8); text-align: center; line-height: 1.1; }
.player .rt {
  position: absolute;
  top: -6px;
  right: 18px;
  font: 800 10px var(--font);
  padding: 1px 4px;
  border-radius: 5px;
  color: #fff;
}

.squad-list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.squad-list { list-style: none; margin: 0; padding: 0; }
.squad-list .n { width: 26px; font-weight: 800; color: var(--text-3); }
.squad-list .p { margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }

/* ==========================================================================
   Página da partida
   ========================================================================== */
.match-hero {
  position: relative;
  margin: -24px calc(50% - 50vw) 24px;
  padding: 40px 24px 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--h1) 55%, var(--bg)) 0%, var(--bg) 50%, color-mix(in srgb, var(--a1) 55%, var(--bg)) 100%);
}
.match-hero .scoreline { max-width: 820px; margin: 0 auto; }
/* resumo embaixo do placar: gols (com minuto) e expulsões de cada time */
.mh-marks { max-width: 820px; margin: 14px auto 0; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 18px; animation: fade 0.4s ease both; }
.mh-marks[hidden] { display: none; }
.mk { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; font-size: 13px; }
.mk li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk li span:not(.mk-i) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mk li b { color: var(--text-2); font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.mk .mk-i { font-size: 12px; flex: none; }
.mk.h { justify-items: end; text-align: right; }
.mk.h li { flex-direction: row-reverse; }
.mk-sep { background: var(--line); }
@media (max-width: 560px) { .mh-marks { gap: 0 10px; } .mk { font-size: 12px; } }
.match-hero .big { font-size: clamp(56px, 9vw, 110px); }
.match-hero .side a { font: 900 clamp(18px, 2.4vw, 28px) var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.timeline { list-style: none; margin: 0; padding: 8px 0; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  padding: 8px 16px;
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms);
}
.timeline .min { text-align: center; font-weight: 800; font-size: 12px; color: var(--text-2); }
.timeline .ev { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.timeline .home { justify-content: flex-end; text-align: right; }
.card-ico { width: 11px; height: 15px; border-radius: 2px; }

/* ==========================================================================
   Sobre (portfólio do desenvolvedor)
   ========================================================================== */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.player-card {
  position: relative;
  aspect-ratio: 3 / 4.1;
  border-radius: 24px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  color: #1b1405;
  background: linear-gradient(150deg, #fff3c4, #f5c542 40%, #b8860b 100%);
  box-shadow: 0 40px 70px -30px rgb(245 197 66 / 0.6);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s;
}
.player-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgb(255 255 255 / 0.55), transparent 30%);
  animation: spin 6s linear infinite;
  mix-blend-mode: overlay;
}
.player-card .ovr { font: 900 72px / 0.9 var(--font-display); font-stretch: 70%; }
.player-card .role { font-weight: 900; letter-spacing: 0.1em; }
.player-card .avatar {
  width: 150px;
  height: 150px;
  margin: -40px auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 64px var(--font-display);
  font-stretch: 70%;
  background: rgb(0 0 0 / 0.12);
}
.player-card h2 { text-align: center; margin: 0; font: 900 38px / 1 var(--font-display); font-stretch: 70%; text-transform: uppercase; }
.player-card .attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 18px; border-top: 2px solid rgb(0 0 0 / 0.18); padding-top: 14px; font-weight: 800; }
.player-card .attrs b { font-size: 20px; margin-right: 6px; }

.skill { margin-bottom: 14px; }
.skill header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.skill .bar { height: 9px; }
.skill .bar i { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.timeline-cv { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline-cv li { position: relative; padding: 0 0 20px 16px; }
.timeline-cv li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline-cv b { display: block; }
.timeline-cv small { color: var(--text-3); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feature-list div { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-soft); transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature-list div:hover { transform: translateY(-4px); border-color: var(--brand); }
.feature-list b { display: block; margin-bottom: 4px; }
.feature-list p { margin: 0; color: var(--text-2); font-size: 13px; }

.footer { max-width: 1360px; margin: 30px auto 0; padding: 26px 24px 40px; color: var(--text-3); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }

/* ==========================================================================
   Transição entre páginas: cortina com as listras do clube
   ========================================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.curtain i { background: var(--cc, var(--brand)); transform: scaleY(0); transform-origin: top; }
.curtain.in i { animation: curtainIn 0.42s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.curtain.out i { transform: scaleY(1); transform-origin: bottom; animation: curtainOut 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.curtain .mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
}
.curtain.in .mark { opacity: 1; }
/* faixa escura atrás do placar: separa a faixa do clube das listras da cortina */
.curtain .mark::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: min(150px, 30vw); transform: translateY(-50%) scaleX(0); background: linear-gradient(90deg, rgb(4 8 20 / 0.2), rgb(4 8 20 / 0.62) 30%, rgb(4 8 20 / 0.62) 70%, rgb(4 8 20 / 0.2)); }
.curtain.in .mark::before { animation: cbBand 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) 0.12s both; }
.curtain.out .mark::before { transform: translateY(-50%); animation: cbOut 0.22s ease-in both; }
@keyframes cbBand { to { transform: translateY(-50%) scaleX(1); } }
.curtain.out .mark { opacity: 1; }
/* faixa no estilo do placar do gol: sigla, escudo saltando e o nome do clube */
.cbar { position: relative; width: 37.5em; height: 4.75em; font-size: min(16px, calc((100vw - 32px) / 37.5)); }
.cbar-name, .cbar-team { position: absolute; inset: 0; border-radius: 0.5em; overflow: hidden; }
.cbar-name { left: 13.5em; background: var(--base); color: var(--ink); display: flex; align-items: center; padding-left: 1.6em; border-radius: 0 0.5em 0.5em 0; box-shadow: 0 0 0 0.12em rgb(255 255 255 / 0.5), 0 1.2em 2em -0.4em rgb(0 0 0 / 0.45); }
.cbar-name b { font: 900 2.7em/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.cbar-crest { position: absolute; left: 7.9em; top: 50%; width: 5.9em; height: 5.9em; margin-top: -2.95em; z-index: 2; }
.cbar-crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0.25em 0.45em rgb(0 0 0 / 0.4)); }
.curtain .cbar-team, .curtain .cbar-name, .curtain .cbar-crest { opacity: 0; }
.curtain.in .cbar-team { opacity: 1; animation: cbWipe 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) 0.2s both; }
.curtain.in .cbar-name { opacity: 1; animation: cbName 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) 0.36s both; }
.curtain.in .cbar-name b { animation: gbSlide 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) 0.42s both; }
.curtain.in .cbar-crest { opacity: 1; animation: gbPop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 0.3s both; }
.curtain.out .cbar-team, .curtain.out .cbar-name, .curtain.out .cbar-crest { opacity: 1; animation: cbOut 0.22s ease-in both; }
@keyframes cbWipe { from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); } to { clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); } }
@keyframes cbName { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cbOut { to { opacity: 0; transform: translateX(3em); } }

/* View Transitions API (Chrome/Edge/Safari 18+) */
::view-transition-old(page) { animation: vtOut 0.28s var(--ease) both; }
::view-transition-new(page) { animation: vtIn 0.45s var(--ease) both; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease); }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

/* gol ao vivo: o placar do clube que marcou, por cima da página (js/goal-bug.js › alerta) */
.goal-alert { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: #fff;
  font-size: min(14px, calc((100vw - 28px) / 37.5)); padding: 14px 18px 10px; border-radius: 18px; text-decoration: none;
  background: rgb(6 10 22 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
  animation: gaIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.goal-alert.bye { animation: gaOut 0.4s ease-in forwards; }
.goal-alert .gb { padding-bottom: 2.1em; }
.ga-txt { margin: 0; text-align: center; line-height: 1.25; }
.ga-txt b { display: block; font: 900 18px var(--font-display); font-stretch: 75%; letter-spacing: 0.05em; text-transform: uppercase; }
.ga-txt span { font-size: 12px; opacity: 0.8; }
@keyframes gaIn { from { opacity: 0; transform: translate(-50%, 40px) scale(0.94); } }
@keyframes gaOut { to { opacity: 0; transform: translate(-50%, 30px) scale(0.96); } }
@media (max-width: 900px) { .goal-alert { bottom: calc(86px + env(safe-area-inset-bottom)); padding: 10px 10px 8px; } }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.2); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes drift { to { background-position: 400px 0; } }
@keyframes jerseyIn { from { opacity: 0; transform: translateY(60px) rotate(8deg) scale(0.9); } }
@keyframes crestIn { from { opacity: 0; transform: scale(0.3) rotate(-30deg); } }
@keyframes wordUp { from { transform: translateY(105%); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(15%); } }
@keyframes goal { 0%, 100% { transform: none; } 20% { transform: scale(1.6); color: var(--live); } 40% { transform: scale(1); } }
@keyframes curtainIn { to { transform: scaleY(1); } }
@keyframes curtainOut { to { transform: scaleY(0); } }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px) scale(0.99); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(120%); } }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout > .left { display: none; }
}
@media (max-width: 900px) {
  .layout,
  .grid-2,
  .grid-2.even,
  .about { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .scene-stage { position: absolute; right: 12px; top: 18px; width: 140px; }
  .scene-hero figcaption { display: none; }
  .kpis,
  .kpis.league-kpis { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
}
@media (max-width: 560px) {
  .view { padding: 16px; }
  .hero { margin-top: -16px; padding: 36px 16px 0; min-height: 380px; }
  .club-tabs { margin-bottom: 16px; padding: 0 16px; }
  .match-hero { margin-top: -16px; }
  .header { padding: 0 16px; gap: 12px; }
  .logo-word { display: none; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  .table .hide-sm { display: none; }
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  justify-content: space-around;
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bottom-nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--text-3); padding: 4px 10px; border-radius: 10px; }
.bottom-nav a.active { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* ==========================================================================
   Celular (iPhone e Android) — toque, leitura e áreas seguras
   ========================================================================== */
@media (max-width: 700px) {
  /* topo dos clubes: placar do gol em cima, texto embaixo, sem cortar o nome */
  .hero h1 { font-size: clamp(40px, 13vw, 64px); overflow-wrap: anywhere; }
  .hero .facts span { font-size: 12px; padding: 6px 10px; }

  /* alvos de toque de pelo menos 40–44 px */
  .star { padding: 12px; margin: -12px; }
  .round-nav button { width: 44px; height: 44px; }
  .logo-mark { width: 40px; height: 40px; }
  .table td.club a { min-height: 40px; }
  .league-h a, .card-h small a, .card-h a { display: inline-block; padding: 12px 8px; margin: -12px -8px; }
  .league-h a { margin-left: auto; }
  .chip { min-height: 38px; }
  .tab { padding: 10px 12px; }
  .icon-btn { width: 44px; height: 44px; }
  .bottom-nav a { min-width: 56px; min-height: 44px; justify-content: center; }

  /* texto legível */
  .card-h small, .source, .league-h small, .legend, .lu-source, .lu-hint { font-size: 12px; }
  .lu-pitch .slot small { display: none; }
  .slot.b .bn b { font-size: 13px; }
  .lu-h small { font-size: 11px; }
  .source a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }

  /* busca: 16 px evita o zoom automático do iOS ao tocar no campo */
  .search input { font-size: 16px; }

  /* Bora pro jogo */
  .bp-pick { min-width: 0; }
  .bp-pick select { width: 100%; min-width: 0; font-size: 22px; }
  .bp-head [data-bp-swap] { justify-self: center; }
  .bt em { display: none; }
  .bt span { width: 24px; height: 24px; font-size: 11px; }
  .board { max-width: 100%; }

  /* barra inferior acima da barra de gestos do iPhone */
  .bottom-nav { bottom: calc(12px + env(safe-area-inset-bottom)); left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .header { padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
}
@media (hover: none) {
  /* no toque não existe "passar o mouse": nada de efeitos presos depois do toque */
  .club-card:hover .card-scene, .club-card:hover { transform: none; }
}

