/* ASSOVEPE — visual público */
:root {
  --azul: #1592d8;
  --azul-esc: #0b6fae;
  --marinho: #0b1d33;
  --marinho-2: #13304f;
  --tinta: #13202f;
  --texto: #3b4a5c;
  --suave: #6b7a8c;
  --linha: #dde5ee;
  --fundo: #f3f6fa;
  --branco: #fff;
  --ok: #1f8a4c;
  --erro: #c23b3b;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(11, 29, 51, .06), 0 8px 24px rgba(11, 29, 51, .08);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; font: 400 16px/1.55 var(--corpo); color: var(--texto); background: var(--fundo);
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--azul-esc); }
h1, h2, h3 { font-family: var(--display); color: var(--tinta); line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.pular { position: absolute; left: -999px; top: 0; background: var(--branco); padding: .5rem 1rem; z-index: 99; }
.pular:focus { left: 1rem; }

/* ---------- Topo ---------- */
.topo { background: var(--marinho); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.topo-in { max-width: 1180px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1.25rem; }
.marca { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-right: auto; }
.marca img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.marca strong { display: block; font: 800 1.45rem/1 var(--display); letter-spacing: .04em; }
.marca small { display: block; font-size: .72rem; color: #9fb6cf; letter-spacing: .02em; }
.menu { display: flex; gap: .2rem; }
.menu a { color: #c9d7e6; text-decoration: none; font-weight: 500; font-size: .93rem; padding: .45rem .7rem; border-radius: 8px; }
.menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.menu a[aria-current] { color: #fff; background: var(--marinho-2); box-shadow: inset 0 -2px 0 var(--azul); }
.btn-conta { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .3rem .8rem .3rem .3rem; border-radius: 99px; background: var(--marinho-2); white-space: nowrap; }
.btn-conta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #23476e; }
.btn-conta span { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.btn-entrar { background: var(--azul); padding: .5rem 1rem; }
.btn-entrar:hover { background: var(--azul-esc); }

/* ---------- Conteúdo ---------- */
.conteudo { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.secao { margin: 2.75rem 0; }
.secao-cab { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.secao-cab p { margin: 0; color: var(--suave); }
.mais { font-weight: 600; text-decoration: none; white-space: nowrap; }
.mais::after { content: ' →'; }
.vazio { text-align: center; color: var(--suave); padding: 2.5rem 1rem; background: var(--branco); border-radius: var(--raio); border: 1px dashed var(--linha); }

.aviso { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; border-left: 4px solid; background: var(--branco); box-shadow: var(--sombra); }
.aviso-ok { border-color: var(--ok); color: #165f36; }
.aviso-erro { border-color: var(--erro); color: #8c2323; }
.aviso-info { border-color: var(--azul); color: var(--azul-esc); }

/* Botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem/1 var(--corpo); padding: .85rem 1.3rem;
  border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; background: var(--azul); color: #fff; transition: background .15s, transform .15s; }
.btn:hover { background: var(--azul-esc); }
.btn:active { transform: translateY(1px); }
.btn-claro { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-claro:hover { background: rgba(255,255,255,.2); }
.btn-sec { background: var(--branco); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha); }
.btn-sec:hover { background: #eef3f8; }
.btn-bloco { width: 100%; }

.cartao { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); padding: 1.5rem; }
.form-estreito { max-width: 460px; margin: 1rem auto; }
.form-medio { max-width: 760px; margin: 1rem auto; }
.campo { margin-bottom: 1rem; }
.campo label, .rotulo { display: block; font-weight: 600; color: var(--tinta); margin-bottom: .35rem; font-size: .95rem; }
.campo small { display: block; color: var(--suave); font-size: .82rem; margin-top: .3rem; }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=search], input[type=email], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--corpo); padding: .75rem .85rem; border: 1px solid #c8d3df; border-radius: 10px; background: #fff; color: var(--tinta); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(21,146,216,.18); }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(105deg, rgba(11,29,51,.94) 30%, rgba(11,29,51,.55)), url('../../images/hero-futebol.png') center/cover; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { color: #d3e0ee; max-width: 46ch; font-size: 1.08rem; }
.hero-acoes { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-num { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-num div { font-size: .85rem; color: #9fb6cf; }
.hero-num strong { display: block; font: 800 2.2rem/1 var(--display); color: #fff; }
.hero-pagina { padding: 2rem clamp(1.5rem, 4vw, 2.5rem); }
.hero-pagina h1 { max-width: none; }

/* ---------- Figurinha ---------- */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1.1rem; }
.fig, .r-bronze { --b1: #8c5a2b; --b2: #e0a669; --b3: #6b4220; }
.fig[hidden] { display: none; }
.fig {
  display: block; min-width: 0; text-decoration: none; color: inherit; border-radius: 14px; padding: 5px; aspect-ratio: 5 / 7.4;
  background: linear-gradient(145deg, var(--b2), var(--b1) 40%, var(--b3) 60%, var(--b2));
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease; position: relative; }
a.fig:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 28px rgba(0,0,0,.32); }
.fig-in { height: 100%; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #0d1b2c; position: relative; }
.fig-topo { display: flex; align-items: center; gap: .3rem; padding: .3rem .45rem; background: linear-gradient(90deg, var(--b1), var(--b3)); color: #fff; }
.fig-num { font: 800 1.15rem/1 var(--display); min-width: 1.3em; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.fig-rar { flex: 1; text-align: center; font: 700 .72rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.fig-logo { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.fig-foto { flex: 1; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, #2b4b70, #0d1b2c 75%); min-height: 0; }
.fig-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fig-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(13,27,44,.85)); pointer-events: none; }
.fig-selo { position: absolute; top: .6rem; right: -2.2rem; transform: rotate(35deg); background: #c23b3b; color: #fff; z-index: 2;
  font: 700 .62rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: .28rem 2.4rem; }
.fig-ex .fig-foto img { filter: grayscale(.85) contrast(1.05); }
.fig-base { padding: .35rem .5rem .45rem; text-align: center; color: #fff; background: #0d1b2c; }
.fig-nome { display: block; font: 800 1.2rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig-real { display: block; font-size: .66rem; color: #9fb6cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.fig-dados { display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem .4rem; margin-top: .25rem; font-size: .64rem; color: #c9d7e6; }
.fig-dados span + span::before { content: '•'; margin-right: .4rem; color: var(--b2); }
.fig-niv { display: flex; justify-content: center; gap: 3px; margin-top: .35rem; }
.fig-niv i { width: 7px; height: 7px; transform: rotate(45deg); background: rgba(255,255,255,.15); }
.fig-niv i.on { background: var(--b2); box-shadow: 0 0 4px var(--b2); }

.r-prata    { --b1: #7d8994; --b2: #eef2f6; --b3: #5d6873; }
.r-ouro     { --b1: #a87908; --b2: #ffe07a; --b3: #7a5703; }
.r-platina  { --b1: #3f9ea3; --b2: #d9fbff; --b3: #2b6f73; }
.r-diamante { --b1: #2560c9; --b2: #8fe3ff; --b3: #173f8a; }
.r-lenda    { --b1: #7b2ff7; --b2: #ffd36e; --b3: #e0306c; }

.r-platina .fig-in::after, .r-diamante .fig-in::after, .r-lenda .fig-in::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 250%;
  animation: reflexo 5s ease-in-out infinite; }
.r-diamante .fig-in::after { animation-duration: 3.5s; }
.r-lenda { background: conic-gradient(from var(--giro, 0deg), #ffd36e, #ff6aa2, #7b2ff7, #2bd2ff, #6bff9e, #ffd36e); animation: girar 6s linear infinite; }
.r-lenda .fig-topo { background: linear-gradient(90deg, #7b2ff7, #e0306c, #ffb02e); }
.r-lenda .fig-in::after { background: linear-gradient(115deg, transparent 20%, rgba(255,120,200,.45) 35%, rgba(120,220,255,.45) 50%, rgba(255,230,120,.45) 65%, transparent 80%);
  background-size: 300% 300%; mix-blend-mode: color-dodge; opacity: .55; animation-duration: 4s; }
@property --giro { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes girar { to { --giro: 360deg; } }
@keyframes reflexo { 0%, 100% { background-position: 100% 100%; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fig, .fig-in::after { animation: none !important; } a.fig:hover { transform: none; } }

.fig-g { max-width: 340px; width: 100%; margin: 0 auto; }
.fig-g .fig-topo { padding: .5rem .7rem; }
.fig-g .fig-num { font-size: 1.8rem; }
.fig-g .fig-rar { font-size: 1rem; }
.fig-g .fig-logo { width: 34px; height: 34px; }
.fig-g .fig-nome { font-size: 2rem; }
.fig-g .fig-real { font-size: .85rem; }
.fig-g .fig-dados { font-size: .85rem; }
.fig-g .fig-niv i { width: 10px; height: 10px; }
.fig-g .fig-base { padding: .6rem .8rem .8rem; }

/* Área escura do álbum */
.palco { background: radial-gradient(1200px 500px at 50% -10%, #1d4370, var(--marinho) 60%); border-radius: 22px; padding: clamp(1.1rem, 3vw, 2rem); color: #c9d7e6; }
.palco h1, .palco h2 { color: #fff; }
.palco .vazio { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.15); color: #9fb6cf; }
.filtros { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 1.5rem; }
.filtros input[type=search] { flex: 1 1 240px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; padding-left: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb6cf' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1.1rem; background-position: .8rem center; }
.filtros input[type=search]::placeholder { color: #8aa2bb; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: 600 .82rem/1 var(--corpo); padding: .5rem .8rem; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #c9d7e6; cursor: pointer; }
.chip[aria-pressed=true] { background: #fff; color: var(--marinho); border-color: #fff; }
.chip i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; background: var(--b2); }
.contador { font-size: .9rem; color: #9fb6cf; margin-left: auto; }

.legenda-rar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: 2rem; }
.legenda-rar div { background: rgba(255,255,255,.05); border-radius: 10px; padding: .7rem .8rem; border-left: 4px solid var(--b2); font-size: .85rem; }
.legenda-rar strong { display: block; color: #fff; font: 700 1.05rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Perfil ---------- */
.perfil { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 2.5rem; align-items: start; }
.perfil-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 1.25rem 0; }
.perfil-info dt { color: var(--suave); font-size: .9rem; }
.perfil-info dd { margin: 0; font-weight: 600; color: var(--tinta); }
.frase { font: italic 500 1.15rem/1.4 var(--corpo); color: var(--tinta); border-left: 4px solid var(--azul); padding: .2rem 0 .2rem 1rem; margin: 1rem 0; }
.barra-nivel { height: 8px; background: var(--linha); border-radius: 99px; overflow: hidden; margin: .4rem 0 .3rem; }
.barra-nivel span { display: block; height: 100%; background: linear-gradient(90deg, var(--azul), #6fd3ff); border-radius: 99px; }

/* ---------- Listas ---------- */
.grade-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.post-card { background: var(--branco); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s; }
.post-card:hover { transform: translateY(-3px); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--linha); }
.post-card div { padding: 1rem 1.15rem 1.25rem; }
.post-card time { font-size: .82rem; color: var(--suave); }
.post-card h3 { margin: .25rem 0 .5rem; color: var(--tinta); }
.post-card p { font-size: .93rem; margin: 0; }
.artigo { max-width: 760px; margin: 0 auto; }
.artigo img { border-radius: var(--raio); margin: 1rem 0 1.5rem; width: 100%; }
.artigo .texto { font-size: 1.07rem; line-height: 1.75; color: var(--tinta); }

.niver { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1rem; }
.niver-item { background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra); text-align: center; padding: 1rem .75rem; text-decoration: none; color: inherit; position: relative; }
.niver-item img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; margin: 0 auto .6rem; background: var(--linha); border: 3px solid var(--azul); }
.niver-item strong { display: block; color: var(--tinta); font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; line-height: 1.1; }
.niver-item span { font-size: .85rem; color: var(--suave); }
.niver-item.hoje { box-shadow: 0 0 0 3px #ffcf4a, var(--sombra); }
.niver-item.hoje::before { content: 'Hoje!'; position: absolute; top: .5rem; right: .5rem; background: #ffcf4a; color: #4a3500; font: 700 .7rem/1 var(--corpo); padding: .3rem .5rem; border-radius: 99px; }


/* ---------- Rodapé ---------- */
.rodape { background: var(--marinho); color: #9fb6cf; font-size: .9rem; padding: 2.5rem 1rem 1rem; }
.rodape-in { max-width: 1180px; margin: 0 auto; display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.rodape-in > div { display: flex; gap: 1rem; align-items: center; }
.rodape-in img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.rodape strong { color: #fff; }
.rodape nav { display: grid; grid-template-columns: repeat(2, auto); gap: .4rem 2rem; }
.rodape a { color: #c9d7e6; text-decoration: none; }
.rodape a:hover { color: #fff; }
.rodape-copy { text-align: center; margin: 2rem 0 0; font-size: .8rem; color: #6f88a3; }

.barra-app { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .marca small { display: none; }
  .barra-app { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--marinho);
    padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -2px 12px rgba(0,0,0,.2); }
  .barra-app a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #8aa2bb; text-decoration: none; font-size: .68rem; font-weight: 600; padding: .3rem 0; border-radius: 10px; }
  .barra-app svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .barra-app a[aria-current] { color: #fff; background: var(--marinho-2); }
  .barra-app a[aria-current] svg { stroke: #6fc8ff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .perfil { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .conteudo { padding: 1rem .75rem 2rem; }
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .fig-nome { font-size: 1.05rem; }
  .grade-2 { grid-template-columns: 1fr; }
  .btn-conta span { display: none; }
  .btn-conta { padding: .3rem; }
  .btn-entrar span, .btn-entrar { padding: .5rem .8rem; }
  .hero, .palco { border-radius: 16px; }
  .cartao { padding: 1.15rem; }
  .contador { width: 100%; margin: 0; }
}
.voltar { font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: .25rem; }
.selo-ano { display: inline-block; margin-bottom: .9rem; padding: .4rem .9rem; border-radius: 99px; border: 2px solid #6fc8ff;
  color: #fff; background: rgba(21,146,216,.25); font: 800 1rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }

/* Topo da página inicial: mais largo e mais baixo */
.hero-inicio { padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem); }
.hero-inicio .hero-titulo { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; }
.hero-inicio .selo-ano { margin: 0; order: 2; }
.hero-inicio h1 { max-width: none; margin: 0; }
.hero-inicio p { max-width: 75ch; margin: .6rem 0 0; }
.hero-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-inicio .hero-acoes, .hero-inicio .hero-num { margin-top: 0; }
.hero-inicio .hero-num strong { font-size: 1.9rem; }
@media (max-width: 560px) {
  .hero-inicio .selo-ano { order: 0; }
}

/* ---------- Vídeos ---------- */
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-peq { padding: .45rem .8rem; font-size: .85rem; }
.contagem { font: 500 1rem var(--corpo); color: var(--suave); text-transform: none; }
.timeline { max-width: 560px; margin: 0 auto; }
.timeline-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.timeline-cab p { margin: 0; color: var(--suave); font-size: .92rem; }
.clips { display: flex; flex-direction: column; gap: 1.5rem; }
.clip { background: #0d1b2c; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); color: #e6eef7; }
.clip-cab a { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; color: #fff; text-decoration: none; }
.clip-cab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #1b3556; border: 2px solid var(--azul); }
.clip-cab strong { display: block; font: 700 1.15rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.clip-cab small { font-size: .78rem; color: #9fb6cf; }
.rar-txt { font-weight: 700; color: var(--b2, #e0a669); }
.rar-txt.r-prata { color: #dfe6ee; } .rar-txt.r-ouro { color: #ffd862; } .rar-txt.r-platina { color: #a8f2f7; }
.rar-txt.r-diamante { color: #8fe3ff; } .rar-txt.r-lenda { color: #ffb4d6; }
.clip-midia { position: relative; width: 100%; max-height: 78vh; margin: 0 auto; background: #000; cursor: pointer; }
.clip-midia video { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; display: block; background: #000; }
.clip-som { position: absolute; right: .7rem; bottom: .7rem; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); display: grid; place-items: center; }
.clip-som svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clip-som .ic-som { display: none; }
.clip-som.ligado .ic-som { display: inline; } .clip-som.ligado .ic-mudo { display: none; }
.clip-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .2s; }
.clip-play svg { width: 64px; height: 64px; fill: rgba(255,255,255,.9); filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.clip.tocando .clip-play { opacity: 0; }
.clip-legenda { margin: 0; padding: .75rem .95rem .95rem; font-size: .95rem; }
.clip-mais { height: 1px; }
.clip-fim { text-align: center; color: var(--suave); margin: 2rem 0 0; }
.clips-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; align-items: start; }
.clips-grade .clip-midia, .clips-grade .clip-midia video { max-height: 60vh; }

.meus-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.meus-videos figure { margin: 0; background: #0d1b2c; border-radius: 12px; overflow: hidden; }
.meus-videos video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; display: block; }
.meus-videos figcaption { padding: .5rem .6rem .6rem; font-size: .82rem; color: #e6eef7; display: flex; flex-direction: column; gap: .4rem; }
.envio-video .video-previa { width: 100%; max-height: 55vh; background: #000; border-radius: 12px; margin: 1rem 0; }
@media (max-width: 560px) {
  .timeline-cab h1 { font-size: 2rem; }
  .clip { border-radius: 14px; }
  .clips-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
}

/* Vídeos sempre verticais: o quadro tem a altura da tela e o vídeo vertical preenche sem tarjas */
.timeline { max-width: min(520px, calc((100vh - 190px) * 0.5625 + 0px)); min-width: min(100%, 300px); }
.timeline-cab { flex-wrap: wrap; }
.clip-midia { aspect-ratio: 9 / 16 !important; max-height: none; }
.clip-midia video { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.clips-grade .clip-midia, .clips-grade .clip-midia video { max-height: none; }
@media (max-width: 560px) { .timeline { max-width: 100%; } }

/* O vídeo inteiro (com nome e legenda) cabe na tela; sobra espaço dos lados se precisar */
.timeline { max-width: 520px; min-width: 0; }
.clips .clip { width: min(100%, calc((100vh - 230px) * 0.5625)); width: min(100%, calc((100svh - 230px) * 0.5625)); margin: 0 auto; }
@media (max-width: 900px) {
  /* celular: desconta topo, barra de baixo, nome do atleta e legenda */
  .clips .clip { width: min(100%, calc((100vh - 300px) * 0.5625)); width: min(100%, calc((100svh - 300px) * 0.5625)); }
  .clip-cab a { padding: .5rem .7rem; }
  .clip-cab img { width: 34px; height: 34px; }
  .clip-legenda { padding: .55rem .75rem .7rem; font-size: .9rem; }
}
/* Na página de vídeos, a rolagem encaixa cada cartão no centro da tela */
html:has(body.pg-videos) { scroll-snap-type: y proximity; }
.pg-videos .clips .clip { scroll-snap-align: center; scroll-margin-top: 70px; }

/* ---------- Curtir e comentar ---------- */
.clip-acoes { display: flex; gap: .4rem; padding: .45rem .6rem 0; }
.acao { display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: 0; color: #e6eef7; cursor: pointer;
  font: 600 .95rem var(--corpo); padding: .35rem .55rem; border-radius: 99px; }
.acao:hover { background: rgba(255,255,255,.08); }
.acao svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.acao-curtir[aria-pressed=true] { color: #ff4d6d; }
.acao-curtir[aria-pressed=true] svg { fill: currentColor; }
.acao-curtir.pulsar svg { animation: pulsar .35s ease; }
@keyframes pulsar { 50% { transform: scale(1.3); } }
.acao:disabled { opacity: .7; cursor: wait; }
.clip-acoes + .clip-legenda { padding-top: .25rem; }
.busca-videos { margin: 0 0 1.25rem; }
.busca-videos input { background-repeat: no-repeat; background-size: 1.1rem; background-position: .8rem center; padding-left: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a8c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }

.painel-com { border: 0; padding: 0; border-radius: 18px; width: min(520px, 94vw); max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.painel-com::backdrop { background: rgba(11,29,51,.6); }
.painel-com-in { display: flex; flex-direction: column; max-height: 86vh; }
.painel-com-cab { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--linha); }
.painel-com-cab h2 { margin: 0; font-size: 1.5rem; }
.painel-fechar { border: 0; background: var(--fundo); width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--tinta); }
.lista-com { list-style: none; margin: 0; padding: .6rem 1.1rem; overflow-y: auto; flex: 1; min-height: 120px; }
.com { display: flex; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid #eef2f6; }
.com:last-child { border-bottom: 0; }
.com-av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; object-position: 50% 20%; background: #dbe7f3;
  display: grid; place-items: center; font: 700 .8rem var(--corpo); color: var(--azul-esc); }
.com-corpo { flex: 1; min-width: 0; }
.com-cab { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.com-nome { font-weight: 700; color: var(--tinta); text-decoration: none; font-size: .92rem; }
.com-selo { font: 700 .62rem/1 var(--corpo); text-transform: uppercase; letter-spacing: .05em; background: var(--azul); color: #fff; padding: .2rem .4rem; border-radius: 99px; }
.com-cab time { font-size: .75rem; color: var(--suave); }
.com-corpo p { margin: .15rem 0 0; font-size: .95rem; color: var(--tinta); overflow-wrap: anywhere; }
.com-carregando, .com-vazio { color: var(--suave); text-align: center; padding: 1rem; margin: 0; }
.link-sair { border: 0; background: none; color: var(--suave); font-size: .78rem; cursor: pointer; padding: 0; text-decoration: underline; }
.painel-com-rodape { border-top: 1px solid var(--linha); padding: .8rem 1.1rem 1rem; }
.painel-com-rodape p { margin: 0 0 .6rem; font-size: .9rem; }
.com-quem { font-size: .8rem; color: var(--suave); margin-bottom: .35rem; }
.com-escrever { display: flex; gap: .5rem; align-items: flex-end; }
.com-escrever textarea { resize: none; min-height: 44px; }
.com-escrever .btn { padding: .75rem 1rem; }
.com-contador { color: var(--suave); font-size: .75rem; }
.painel-com-rodape .aviso { margin: .6rem 0 0; }
@media (max-width: 560px) {
  .painel-com { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .painel-com-in { max-height: 88vh; }
}
.privacidade h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.privacidade li { margin-bottom: .4rem; }

/* ---------- Banner "Instale o app" ---------- */
.instalar { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 140%); z-index: 45; width: min(560px, calc(100% - 1.5rem));
  display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 16px; background: #fff; color: var(--tinta);
  box-shadow: 0 10px 40px rgba(11,29,51,.35); transition: transform .35s ease; }
.instalar.visivel { transform: translate(-50%, 0); }
.instalar img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.instalar-txt { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.35; }
.instalar-txt strong { display: block; font-size: .95rem; }
.instalar-txt svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.instalar-fechar { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--suave); cursor: pointer; padding: .2rem .4rem; }
@media (max-width: 900px) { .instalar { bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* Dentro do app instalado: respeita a barra de status do iPhone */
.modo-app .topo { padding-top: env(safe-area-inset-top); }

/* ---------- Vídeo em tela cheia: nome e ações por cima, com degradê azul transparente ---------- */
.clip { position: relative; }
.clip-cab, .clip-rodape { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; color: #fff; }
.clip-cab a, .clip-rodape button, .clip-rodape a { pointer-events: auto; }
.clip-cab { top: 0; background: linear-gradient(rgba(11,29,51,.82), rgba(11,29,51,.45) 60%, transparent); padding-bottom: 1.4rem; }
.clip-cab a { padding: .6rem 3.6rem .6rem .7rem; }
.clip-cab strong, .clip-cab small, .clip-legenda { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.clip-cab small { color: #d6e3f1; }
.clip-rodape { bottom: 0; background: linear-gradient(transparent, rgba(11,29,51,.5) 35%, rgba(11,29,51,.88)); padding-top: 2rem; }
.clip-acoes { padding: 0 .55rem; }
.clip-acoes + .clip-legenda, .clip-legenda { padding: .1rem .85rem .75rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acao { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
/* Som: canto superior direito, ao lado do nome */
.clip-som { top: .7rem; bottom: auto; right: .7rem; z-index: 3; background: rgba(11,29,51,.55); }
.clips-grade .clip-cab a { padding-right: 3.2rem; }

/* O cartão agora é só o vídeo: pode ocupar mais altura da tela */
.clips .clip { width: min(100%, calc((100vh - 150px) * 0.5625)); width: min(100%, calc((100svh - 150px) * 0.5625)); }
@media (max-width: 900px) {
  .clips .clip { width: min(100%, calc((100vh - 165px) * 0.5625)); width: min(100%, calc((100svh - 165px) * 0.5625)); }
  .clip-cab a { padding: .5rem 3.4rem .5rem .6rem; }
}
.pg-videos .clips .clip { scroll-margin-top: 80px; }
.instalar[hidden] { display: none; }
/* O encaixe da rolagem centraliza o vídeo no espaço entre o topo e a barra de baixo */
html:has(body.pg-videos) { scroll-padding-top: 72px; }
.pg-videos .clips .clip { scroll-margin-top: 0; }
@media (max-width: 900px) { html:has(body.pg-videos) { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
/* O encaixe agora é feito pelo timeline.js (funciona igual em todos os celulares) */
html:has(body.pg-videos) { scroll-snap-type: none; }
