/* ==========================================================================
   FYTE — tela de Events do iPad em paisagem, em código (home/ipad.js).
   A tela mede 1000 x 750 (metade do print de 2000 x 1500); o home.js aplica o zoom.
   Classes com prefixo ipd-. Fontes: as do site (Rajdhani 700/500 e Inter).
   ========================================================================== */
.ipd { position: relative; width: 1000px; height: 750px; overflow: hidden; background: #000; color: #fff; text-align: left;
  font-family: "Inter", system-ui, sans-serif; line-height: 1; --ipd-a: #FBFF05; --ipd-on: #000; }
.ipd * { margin: 0; padding: 0; box-sizing: border-box; }
.ipd ul { list-style: none; }
.ipd-bg { position: absolute; inset: 0; background:
  radial-gradient(70% 62% at 64% 30%, color-mix(in srgb, var(--ipd-a) 15%, transparent), transparent 100%),
  linear-gradient(180deg, color-mix(in srgb, var(--ipd-a) 13%, #000) 0%, #060606 62%, #000 100%); }

/* fotos de corpo dos dois lutadores, escuras, atrás dos nomes */
.ipd-photos { position: absolute; left: 330px; top: 30px; width: 630px; height: 440px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%); }
.ipd img.ipd-st { position: absolute; top: 4px; height: 930px; width: auto; max-width: none; opacity: .22; filter: saturate(.6) sepia(.45); }
.ipd img.ipd-st--a { left: -70px; right: auto; } .ipd img.ipd-st--b { right: -70px; left: auto; }
.ipd img.ipd-st.is-mirror { transform: scaleX(-1); }

.ipd-status { position: absolute; left: 18px; top: 6px; right: 18px; height: 12px; display: flex; align-items: center; gap: 8px; font: 500 10.5px/1 "Inter", sans-serif; }
.ipd-batt { margin-left: auto; width: 20px; height: 9px; border-radius: 3px; background: #39d353; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ipd-logo { position: absolute; left: 14px; top: 31px; display: flex; align-items: flex-start; gap: 3px; }
.ipd .ipd-logo img { width: 47px; height: auto; display: block; }
.ipd-logo b { font: 700 5.5px/1 "Inter", sans-serif; background: var(--ipd-a); color: var(--ipd-on); padding: 1.5px 2px; border-radius: 1.5px; }
.ipd-nav { position: absolute; left: 354px; top: 23px; width: 292px; height: 32px; border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
  display: flex; align-items: center; gap: 0; padding: 0 3px; font: 500 12.5px/1 "Inter", sans-serif; }
.ipd-nav b { font-weight: 500; color: var(--ipd-a); background: rgba(255,255,255,.1); border-radius: 13px; padding: 7px 11px; }
.ipd-nav span { padding: 7px 12px; }
.ipd-search { width: 11px; height: 11px; border: 1.6px solid #fff; border-radius: 50%; margin-left: 11px; position: relative; }
.ipd-search::after { content: ""; position: absolute; left: 8px; top: 8px; width: 4.5px; height: 1.6px; background: #fff; transform: rotate(45deg); transform-origin: 0 50%; }
.ipd-user { position: absolute; right: 12px; top: 27px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1);
  background-image: radial-gradient(circle at 50% 38%, #d8d8d8 0 3.2px, transparent 3.6px), radial-gradient(ellipse 6.5px 4.5px at 50% 80%, #d8d8d8 0 99%, transparent 100%); }

/* coluna da esquerda: abas e lista de eventos */
.ipd-tabs { position: absolute; left: 7px; top: 64px; width: 276px; height: 26px; display: flex; align-items: center; font: 700 9px/1 "Rajdhani", sans-serif; }
.ipd-tabs span { flex: 1; text-align: center; color: #7b7b80; }
.ipd-tabs b { flex: 1; text-align: center; padding: 8.5px 0; border-radius: 13px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.ipd-list { position: absolute; left: 7px; top: 104px; width: 277px; }
.ipd-ev { position: relative; height: 59px; display: flex; align-items: center; gap: 0; padding: 0 12px; border-bottom: .5px solid rgba(255,255,255,.12); }
.ipd-ev.is-on { height: 48px; margin-bottom: 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.1); }
.ipd-ev__d { width: 38px; text-align: center; font: 600 8.5px/1 "Inter", sans-serif; color: #9a9aa0; display: grid; gap: 6px; margin-left: -8px; }
.ipd-ev__d b { font: 700 14px/1 "Rajdhani", sans-serif; color: #fff; }
.ipd-ev__n { flex: 1; min-width: 0; display: grid; gap: 6px; margin-left: 12px; }
.ipd-ev__n b { font: 700 14.5px/1 "Rajdhani", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipd-ev__n span { font: 700 8.5px/1 "Inter", sans-serif; letter-spacing: .03em; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipd-chev { width: 5px; height: 5px; border: solid #6b6b70; border-width: 1.2px 1.2px 0 0; transform: rotate(45deg); margin-left: 9px; flex: none; }
.ipd-oct { display: inline-block; flex: none; width: 13px; height: 13px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.ipd-oct--sm { width: 13px; height: 13px; } .ipd-oct--xs { width: 7px; height: 7px; }
.ipd-note { position: absolute; left: 20px; top: 464px; width: 252px; font: 400 7.6px/1.6 "Inter", sans-serif; color: #5f5f64; }

/* painel da direita: o evento */
.ipd-main { position: absolute; left: 449px; top: 0; width: 392px; height: 750px; }
.ipd-main > * { position: absolute; left: 0; right: 0; }
.ipd-name { top: 87px; text-align: center; font: 700 15.5px/1 "Rajdhani", sans-serif; color: var(--ipd-a); letter-spacing: .01em; }
.ipd-wc { top: 111px; display: flex; justify-content: center; align-items: center; gap: 5px; font: 500 12.5px/1 "Rajdhani", sans-serif; letter-spacing: .02em; }
.ipd-wc b { font-weight: 500; color: var(--ipd-a); }
.ipd-f { text-align: center; font-family: "Rajdhani", sans-serif; font-weight: 700; line-height: .8; color: var(--ipd-a); white-space: nowrap;
  text-shadow: 0 0 22px color-mix(in srgb, var(--ipd-a) 55%, transparent); left: -80px !important; right: -80px !important; }
.ipd-f:nth-of-type(3) { top: 163px; } .ipd-f:nth-of-type(5) { top: 308px; }
.ipd-vs { top: 250px; height: 30px; display: flex; align-items: center; gap: 12px; left: 15px !important; right: 15px !important; }
.ipd-vs i { flex: 1; height: .5px; background: rgba(255,255,255,.3); }
.ipd-vs span { font: 500 11px/1 "Rajdhani", sans-serif; color: #c9c9cd; }
.ipd img.ipd-flag { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; display: block; }
.ipd-place { top: 406px; text-align: center; font: 500 12px/1 "Rajdhani", sans-serif; letter-spacing: .03em; white-space: nowrap; }
.ipd-place i { font-style: normal; margin: 0 2px; }

.ipd-cd { top: 455px; height: 76px; border-radius: 14px; background: var(--ipd-a); color: var(--ipd-on); display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.ipd-cd > div:first-child { display: grid; gap: 8px; }
.ipd-cd b { font: 700 18.5px/1 "Rajdhani", sans-serif; display: block; }
.ipd-cd span { font: 500 9px/1 "Inter", sans-serif; }
.ipd-cd__n { display: flex; gap: 15px; text-align: center; }
.ipd-cd__n span { display: grid; gap: 8px; }
.ipd-info { top: 549px; display: flex; align-items: center; gap: 9px; padding: 0 2px 16px; border-bottom: .5px solid rgba(255,255,255,.14); }
.ipd-info i { flex: none; width: 19px; height: 23px; border-radius: 5px; background: #1c1c1c; position: relative; }
.ipd-info i::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 6px; height: 4px; border-radius: 1.5px; background: var(--ipd-a); }
.ipd-info span { font: 400 9.4px/1.3 "Inter", sans-serif; color: #9a9aa0; }
.ipd-card { top: 611px; text-align: center; display: grid; gap: 9px; }
.ipd-card b { font: 700 14.5px/1 "Rajdhani", sans-serif; }
.ipd-card span { font: 500 6.4px/1 "Inter", sans-serif; letter-spacing: .06em; color: #6b6b70; }
.ipd-fight { height: 62px; border-radius: 8px; background: #1a1a1b; padding-top: 8px; }
.ipd-fight:nth-of-type(n) { top: 646px; } .ipd-fight ~ .ipd-fight { top: 716px; }
.ipd-fight__wc { display: flex; justify-content: center; align-items: center; gap: 4px; font: 500 8px/1 "Inter", sans-serif; letter-spacing: .03em; color: #8e8e93; text-transform: uppercase; }
.ipd-fight__wc b { font-weight: 500; color: var(--ipd-a); }
.ipd-fight__row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 7px; padding: 0 10px; }
.ipd-side { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ipd-side--a { justify-items: end; text-align: right; } .ipd-side--b { justify-items: start; }
.ipd-nm { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; font: 700 11.5px/1 "Rajdhani", sans-serif; white-space: nowrap; overflow: hidden; }
.ipd-rank { font: 700 7px/1 "Rajdhani", sans-serif; padding: 2px 2.5px 1.5px; border-radius: 2.5px; background: rgba(142,142,147,.6); color: #fff; flex: none; }
.ipd-rank--c { background: var(--ipd-a); color: var(--ipd-on); }
.ipd-rec { font: 400 8.5px/1 "Inter", sans-serif; color: #9a9aa0; }
.ipd-mid { flex: none; display: flex; align-items: center; gap: 0; }
.ipd-mid span { font: 500 8px/1 "Inter", sans-serif; color: #8e8e93; margin: 0 5px; }
.ipd-hs { width: 24px; height: 24px; border-radius: 50%; background: no-repeat center / 187.5% auto; display: block; }
.ipd img.ipd-fl { width: 10px; height: 10px; border-radius: 50%; object-fit: cover; margin: 0 -3px; position: relative; z-index: 1; }

/* dentro da moldura do site: ocupa a tela toda e o zoom vem do home.js */
.ipad__code { position: absolute; inset: 0; overflow: hidden; background: #000; }
/* o site estica toda <img> dentro de uma tela de aparelho (.pane img); aqui cada imagem tem o próprio tamanho */
.ipad__code img { position: static; inset: auto; width: auto; height: auto; object-fit: fill; }
.ipd img.ipd-st { position: absolute; bottom: auto; object-fit: contain; }
.ipd img.ipd-flag, .ipd img.ipd-fl { object-fit: cover; }
.ipd img.ipd-fl { position: relative; }

/* um painel por evento, empilhados; só o escolhido aparece (ipad.js troca .is-on) */
.ipd-view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 420ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 420ms; }
.ipd-view.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.ipd-view.is-on .ipd-f, .ipd-view.is-on .ipd-cd { animation: ipd-in 520ms cubic-bezier(.2,.8,.2,1) both; }
.ipd-view.is-on .ipd-f:nth-of-type(5) { animation-delay: 60ms; } .ipd-view.is-on .ipd-cd { animation-delay: 120ms; }
@keyframes ipd-in { from { opacity: 0; transform: translateY(10px); } }
.ipd-ev { transition: background-color 300ms, border-color 300ms; border: 1px solid transparent; border-bottom: .5px solid rgba(255,255,255,.12); }
.ipd-ev.is-on { border-bottom: 1px solid rgba(255,255,255,.3); }
.ipd-logo b, .ipd-nav b { transition: color 400ms, background-color 400ms; }
/* o "toque" na lista quando o evento muda */
.ipd-tap { position: absolute; left: 236px; top: 128px; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 0; pointer-events: none; }
.ipd-tap.is-on { animation: ipd-tap 620ms ease-out both; }
@keyframes ipd-tap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .ipd-view, .ipd-view.is-on .ipd-f, .ipd-view.is-on .ipd-cd, .ipd-tap.is-on { transition: none; animation: none; } }
/* o texto sobre a faixa na cor do evento é sempre preto, como no app (Rafael, 17/11/2026) */
.ipd { --ipd-on: #000; }

/* Fotos dos atletas como no app (Fyte/EventDetailView.swift, cabeçalho do evento, modo dividido):
   opacidade 45% com blend "hard light" sobre o degradê da cor do evento (20% no topo até transparente),
   altura de 1250 pt (909 aqui), 180 pt para cada lado do centro (131 aqui), 70 pt abaixo do topo (51 aqui),
   e dois degradês iguais do preto (embaixo) ao transparente (em cima) apagando a parte de baixo.
   Sem máscara no contêiner: a máscara isolaria as fotos e o blend deixaria de enxergar o fundo. */
.ipd-bg { background: linear-gradient(180deg, color-mix(in srgb, var(--ipd-a) 20%, transparent) 0, transparent 600px), #000; }
.ipd-photos { left: 290px; top: 0; width: 710px; height: 600px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.ipd img.ipd-st { top: 51px; height: 909px; opacity: .45; filter: none; mix-blend-mode: hard-light; }
.ipd img.ipd-st--a { left: 224px; right: auto; transform: translateX(-50%); }
.ipd img.ipd-st--b { left: 486px; right: auto; transform: translateX(-50%); }
.ipd img.ipd-st--a.is-mirror, .ipd img.ipd-st--b.is-mirror { transform: translateX(-50%) scaleX(-1); }
.ipd-photos::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #000, transparent), linear-gradient(0deg, #000, transparent); }
/* 165 de cada lado do centro (no app são 131): fica um espaço entre as duas fotos, sem encostar nem cortar na coluna (Rafael, 17/11/2026) */
.ipd img.ipd-st--a { left: 190px; }
.ipd img.ipd-st--b { left: 520px; }
/* O apagado de baixo das fotos cobre a tela inteira, não só o painel da direita: antes ele terminava na borda
   da lista e parecia que o menu era uma faixa separada. O fundo tem que ser um só (Rafael, 17/11/2026). */
.ipd-photos { left: 0; width: 1000px; }
.ipd img.ipd-st--a { left: 480px; }
.ipd img.ipd-st--b { left: 810px; }

/* as linhas da lista são clicáveis (escolhem o evento e param a passagem automática) */
.ipd-ev { cursor: pointer; }
.ipd-ev:not(.is-on):hover { background: rgba(255,255,255,.05); }
