/* Página Julgadores + avatares do Panorama. Escuro de propósito: o retrato é o protagonista. */

.jg { background: #0A0A0A; color: #F4F3F1; position: relative; overflow: hidden; }
.jg::before {   /* brilho que acompanha o mouse, definido por --mx/--my no JS */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(209,1,11,.22), transparent 65%);
}
.jg-topo { padding: 64px 0 28px; position: relative; text-align: center; }
.jg-topo h1 { font-family: var(--serifa); font-weight: 900; font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; }
.jg-topo h1 em { color: var(--vermelho); font-style: normal; }
.jg-topo p { max-width: 640px; margin: 14px auto 0; color: #B9B4B0; font-family: var(--texto); font-size: 1.05rem; }

.jg-abas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 38px; position: relative; }
.jg-abas button {
  font-family: var(--ui); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: #F4F3F1; background: transparent; border: 1px solid #3a3633; padding: 12px 22px; cursor: pointer;
  position: relative; overflow: hidden; transition: color .3s, border-color .3s;
}
.jg-abas button::before {
  content: ""; position: absolute; inset: 0; background: var(--vermelho); transform: translateY(101%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: -1;
}
.jg-abas button { z-index: 0; }
.jg-abas button:hover::before, .jg-abas button[aria-selected="true"]::before { transform: none; }
.jg-abas button:hover, .jg-abas button[aria-selected="true"] { border-color: var(--vermelho); }
.jg-abas small { opacity: .65; margin-left: 6px; font-weight: 600; }

.jg-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; padding-bottom: 70px; position: relative; perspective: 1200px; }

.jg-card {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left;
  background: #1A1817; color: #fff; font: inherit;
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  transition-delay: calc(var(--i, 0) * 70ms);
  transform-style: preserve-3d;
}
.jg-card.vis { opacity: 1; transform: none; }
.jg-card.vis:hover, .jg-card.vis:focus-visible {
  transition-delay: 0s; transition: transform .15s ease-out, box-shadow .35s;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(14px);
  box-shadow: 0 30px 60px -18px rgba(209,1,11,.55);
  outline: none;
}
.jg-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  transform: scale(1.06); transition: filter .5s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.jg-card:hover img, .jg-card:focus-visible img { filter: none; transform: scale(1.12); }
.jg-card::before {   /* véu vermelho→preto que some quando a cor entra */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(209,1,11,.0) 30%, rgba(10,10,10,.92) 100%),
              linear-gradient(135deg, rgba(209,1,11,.35), transparent 55%);
  mix-blend-mode: normal; transition: opacity .5s;
}
.jg-card:hover::before { opacity: .75; }
.jg-card::after {    /* brilho especular que segue o cursor */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 60%);
}
.jg-card:hover::after { opacity: 1; }
.jg-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 18px 20px; transform: translateZ(40px); }
.jg-info strong { display: block; font-family: var(--serifa); font-weight: 800; font-size: 1.28rem; line-height: 1.15; }
.jg-info span { display: block; margin-top: 6px; font-family: var(--ui); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff6b73; }
.jg-info::before { content: ""; display: block; width: 28px; height: 3px; background: var(--vermelho); margin-bottom: 12px; transition: width .45s cubic-bezier(.2,.7,.2,1); }
.jg-card:hover .jg-info::before { width: 70px; }
.jg-pres { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--vermelho); color: #fff; font-family: var(--ui); font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; }

.jg-nota { position: relative; max-width: 760px; margin: 0 auto; padding: 0 0 56px; text-align: center; color: #8C8783; font-size: .82rem; line-height: 1.6; }
.jg-nota a { color: #ff6b73; }

/* ficha ampliada */
.jg-ficha { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,5,5,.88); backdrop-filter: blur(10px); }
.jg-ficha.on { display: flex; animation: jg-fade .3s; }
@keyframes jg-fade { from { opacity: 0; } }
.jg-ficha-corpo { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); max-width: 860px; width: 100%; background: #141211; color: #F4F3F1; border-top: 4px solid var(--vermelho); animation: jg-sobe .5s cubic-bezier(.2,.7,.2,1); position: relative; }
@keyframes jg-sobe { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.jg-ficha-corpo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.jg-ficha-texto { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.jg-ficha-texto small { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #ff6b73; }
.jg-ficha-texto h2 { font-family: var(--serifa); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.jg-ficha-texto p { color: #B9B4B0; font-family: var(--texto); }
.jg-ficha-texto .btn { align-self: flex-start; margin-top: 8px; }
.jg-x, .jg-nav { position: absolute; background: rgba(0,0,0,.55); color: #fff; border: 0; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; transition: background .25s; z-index: 2; }
.jg-x { top: 10px; right: 10px; } .jg-x:hover, .jg-nav:hover { background: var(--vermelho); }
.jg-nav.ant { left: -52px; top: 50%; } .jg-nav.prox { right: -52px; top: 50%; }
@media (max-width: 760px) {
  .jg-ficha-corpo { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .jg-ficha-corpo img { aspect-ratio: 4 / 4; max-height: 38vh; }
  .jg-nav.ant { left: 6px; top: 12px; } .jg-nav.prox { right: 58px; top: 10px; right: 58px; left: auto; }
  .jg-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .jg-info strong { font-size: 1rem; } .jg-info { padding: 12px; }
}

/* ── cartão flutuante e avatares (usados no Panorama) ── */
.julgador-pop { position: fixed; z-index: 2000; width: 280px; display: flex; gap: 12px; align-items: center; padding: 10px; background: #0A0A0A; color: #fff; border-left: 3px solid var(--vermelho); box-shadow: 0 18px 40px rgba(0,0,0,.4); pointer-events: none; opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.julgador-pop[data-lado="acima"] { transform: translateY(calc(-100% + 8px)); }
.julgador-pop[data-lado="abaixo"] { transform: translateY(-8px); }
.julgador-pop.on[data-lado="acima"] { transform: translateY(-100%); }
.julgador-pop.on[data-lado="abaixo"] { transform: none; }
.julgador-pop.on { opacity: 1; }
.julgador-pop img { width: 86px; height: 108px; object-fit: cover; flex: none; }
.julgador-pop strong { display: block; font-family: var(--serifa); font-size: 1rem; line-height: 1.2; }
.julgador-pop span { display: block; margin-top: 4px; font-family: var(--ui); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff6b73; }
.julgador-pop em { display: block; margin-top: 4px; font-size: .78rem; color: #B9B4B0; font-style: normal; }
svg .av-julgador { cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1); transform-box: fill-box; transform-origin: center; }
svg .av-julgador:hover { transform: scale(1.35); }
.av-inline { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -6px; margin-right: 6px; border: 2px solid #D1010B; }

@media (prefers-reduced-motion: reduce) { .jg-card, .jg-card img, .jg-ficha-corpo { transition: none !important; animation: none !important; opacity: 1; transform: none; } }
