/* Widgets do Fyte recriados em HTML/CSS a partir do SwiftUI do app
   (Widget.Its.Time/Widget_Its_Time.swift e FollowWidget.swift). Usado por home/widgets.js.
   Unidade: 1px = 1pt do iOS; quem usa aplica o zoom por fora (zoom ou transform no contêiner).
   Tamanhos de um iPhone de 402pt: small 170x170, medium 360x170, large 360x379.
   Tudo com prefixo fw- para não colidir com o site. Inter (variável) e Rajdhani 700 vêm de home.css;
   aqui só entra a Rajdhani 500 (o "VS" dos widgets). */

@font-face {
  font-family: "Rajdhani"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/rajdhani-500.ttf") format("truetype");
}

.fw {
  --fw-yellow: #FBFF05;      /* championshipYellowDark: numerado ou cinturão */
  --fw-red: #FF0550;         /* boutRed: fight night */
  --fw-red-glow: #F13C54;    /* boutGlow */
  --fw-cyan: #00C7FF;        /* contenderCyan */
  --fw-gray: #8E8E93;        /* Color.gray do sistema */
  --fw-card: #111111;
  --fw-accent: var(--fw-red); --fw-glow: var(--fw-red-glow);
  position: relative; overflow: hidden; isolation: isolate; box-sizing: border-box;
  border-radius: 24px; color: #fff; background: #000; text-align: left;
  font-family: "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 400; line-height: 1;
  font-feature-settings: "tnum" 0; letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), inset 0 1px 0.5px rgba(255, 255, 255, 0.22), inset 0 -1px 0.5px rgba(255, 255, 255, 0.08);
}
.fw--small { width: 170px; height: 170px; }
.fw--medium { width: 360px; height: 170px; }
.fw--large { width: 360px; height: 379px; }
.fw * { position: absolute; box-sizing: border-box; margin: 0; padding: 0; border: 0; white-space: nowrap; }
.fw img { max-width: none; height: auto; }
.fw .fw-raj { font-family: "Rajdhani", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1; }
.fw .fw-sys { font-family: "Inter", system-ui, sans-serif; line-height: 1; }
.fw .fw-cx { transform: translate(-50%, -50%); }   /* ancorado pelo centro */
.fw .fw-cy { transform: translateY(-50%); }        /* ancorado pelo meio vertical */
.fw .fw-clip { overflow: hidden; text-overflow: ellipsis; }   /* lineLimit(1) */
.fw .fw-gray { color: var(--fw-gray); }
.fw[data-accent="championship"], .fw [data-accent="championship"] { --fw-accent: var(--fw-yellow); --fw-glow: var(--fw-yellow); }
.fw[data-accent="bout"], .fw [data-accent="bout"] { --fw-accent: var(--fw-red); --fw-glow: var(--fw-red-glow); }
.fw[data-accent="contender"], .fw [data-accent="contender"] { --fw-accent: var(--fw-cyan); --fw-glow: var(--fw-cyan); }
.fw .fw-accent { color: var(--fw-accent); }

/* Fundos (containerBackground de cada widget) */
.fw .fw-bg { inset: 0; }
.fw--free .fw-bg { background: radial-gradient(circle 250px at 0 0, color-mix(in srgb, var(--fw-glow) 7.5%, transparent) 50px, transparent 250px), #000; }
.fw--cal .fw-bg { background: radial-gradient(circle 250px at 100% 100%, color-mix(in srgb, var(--fw-glow) 7.5%, transparent) 50px, transparent 250px), #000; }
.fw--follow .fw-bg { background: radial-gradient(circle 250px at 0 0, color-mix(in srgb, var(--fw-red-glow) 7.5%, transparent) 50px, transparent 250px), var(--fw-card); }
.fw--pro .fw-bg { background: radial-gradient(circle 125px at 0 0, color-mix(in srgb, var(--fw-glow) 7.5%, transparent) 25px, transparent 125px), var(--fw-card); }

/* PRO: fotos de corpo (stance) em colorDodge 80% e os degradês por cima */
.fw--pro .fw-stance { top: -4px; height: 372px; width: auto; opacity: 0.8; mix-blend-mode: color-dodge; filter: brightness(1.2); }
.fw--pro .fw-stance--mirror { transform: scaleX(-1); }
.fw--pro .fw-veil { inset: 0; background:
  radial-gradient(circle 250px at 50% 100%, color-mix(in srgb, var(--fw-glow) 10%, transparent) 65px, transparent 250px),
  linear-gradient(to top, rgba(17, 17, 17, 0.75), rgba(17, 17, 17, 0)),
  linear-gradient(to top, rgba(17, 17, 17, 1), rgba(17, 17, 17, 0)); }

/* Linha do VS: traço, bandeira, VS, bandeira, traço */
.fw .fw-vs { display: flex; align-items: center; transform: translateY(-50%); }
.fw .fw-vs > * { position: static; flex: none; }
.fw .fw-vs i { flex: 1; height: 1px; background: rgba(142, 142, 147, 0.5); }
.fw--pro .fw-vs i { background: rgba(142, 142, 147, 0.25); }
.fw .fw-vs img { display: block; border-radius: 50%; }
.fw .fw-vs span { font-family: "Rajdhani", "Arial Narrow", sans-serif; font-weight: 500; color: var(--fw-gray); line-height: 1; }

/* Contagem */
.fw .fw-cd { display: flex; align-items: center; gap: 8px; transform: translateY(-50%); }
.fw .fw-cd > * { position: static; }
.fw .fw-cd b { font-family: "Rajdhani", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1; }
.fw .fw-cd span { font-weight: 500; color: var(--fw-gray); line-height: 1; }

/* Calendar */
.fw .fw-day { width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 500; line-height: 16px; text-align: center; transform: translate(-50%, -50%); }
.fw .fw-day--today { background: #fff; color: #000; }
.fw .fw-day--championship { background: var(--fw-yellow); color: #000; }
.fw .fw-day--bout { background: var(--fw-red); color: #fff; }
.fw .fw-day--contender { background: var(--fw-cyan); color: #000; }
.fw .fw-wd { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.5); line-height: 1; transform: translate(-50%, -50%); }

/* Follow: cada luta é uma linha em flex (fotos + bandeiras, nomes, dias/evento) */
.fw .fw-rule { height: 1px; background: rgba(142, 142, 147, 0.22); }
.fw .fw-rule--soft { background: rgba(142, 142, 147, 0.2); }
.fw .fw-frow { display: flex; align-items: center; gap: 8px; left: 18px; right: 18px; }
.fw .fw-frow * { position: static; flex: none; }
.fw .fw-fvis { display: flex; align-items: center; gap: 3px; }
.fw .fw-fpair { display: flex; align-items: center; }
.fw .fw-hs { position: relative; width: var(--fw-hs, 24px); height: var(--fw-hs, 24px); border-radius: 50%; overflow: hidden; background: var(--fw-accent); }
.fw .fw-hs--empty { background: rgba(255, 255, 255, 0.12); }
.fw .fw-hs img { position: absolute; left: 50%; top: 50%; width: 188.24%; height: 188.24%; object-fit: cover; transform: translate(-50%, -50%); }   /* 64/34 do círculo */
.fw .fw-fl { display: block; width: 12px; height: 12px; border-radius: 50%; margin: 0 -3px; position: relative; z-index: 1; }
.fw .fw-fpair > .fw-fl:first-child { margin-left: 0; }
.fw .fw-fpair > .fw-fl:last-child { margin-right: 0; }
.fw .fw-fvs { font-family: "Rajdhani", "Arial Narrow", sans-serif; font-weight: 500; font-size: 11px; line-height: 1; color: var(--fw-gray); }
.fw .fw-names { flex: 1 1 0; min-width: 0; margin-left: -2px; font-size: 13px; line-height: 16px; color: var(--fw-gray); white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fw .fw-names * { white-space: normal; }
.fw .fw-names b { font-weight: 600; color: #fff; }
.fw .fw-fmeta { display: flex; flex-direction: column; align-items: flex-end; max-width: 96px; min-width: 0; }
.fw .fw-fleft { font-size: 13px; font-weight: 700; line-height: 16px; }
.fw .fw-fevent { max-width: 100%; font-size: 10px; font-weight: 500; line-height: 13px; color: var(--fw-gray); overflow: hidden; text-overflow: ellipsis; }
.fw .fw-fempty { left: 18px; right: 18px; top: 50%; font-size: 12px; font-weight: 500; line-height: 15px; color: var(--fw-gray); white-space: normal; }
/* pequeno: sem nomes, fotos de 26pt, 4pt a mais de margem lateral */
.fw--small .fw-frow { gap: 6px; left: 20px; right: 20px; justify-content: space-between; --fw-hs: 26px; }
.fw--small .fw-fvs { font-size: 10px; }
.fw--small .fw-fmeta { max-width: 54px; flex: 0 1 auto; }
.fw--small .fw-fleft { font-size: 11px; line-height: 14px; }
.fw--small .fw-fevent { font-size: 8px; line-height: 10px; }
.fw--small .fw-fempty { left: 20px; right: 20px; }
/* grande: até 7 lutas empilhadas, fotos de 22pt, nomes em 12pt */
.fw .fw-flist { display: flex; flex-direction: column; gap: 8px; left: 18px; right: 18px; top: 49px; }
.fw .fw-flist > * { position: static; flex: none; }
.fw--large .fw-frow { --fw-hs: 22px; }
.fw--large .fw-names { font-size: 12px; line-height: 15px; }

/* iPhone e Home Screen (402 x 874 pt) */
.fw-phone { position: relative; width: 402px; height: 874px; border-radius: 56px; overflow: hidden; background: #000; text-align: left; }
.fw-phone .fw-wall { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 45% at 50% 0%, rgba(251, 255, 5, 0.07), transparent 70%),
  radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255, 5, 80, 0.06), transparent 70%),
  linear-gradient(180deg, #0c0c0d, #060606); }
.fw-phone .fw-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 5; }
.fw-phone .fw-status { position: absolute; left: 0; right: 0; top: 0; height: 54px; color: #fff; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 17px; z-index: 4; }
.fw-phone .fw-time { position: absolute; left: 52px; top: 21px; line-height: 1; letter-spacing: -0.2px; }
.fw-phone .fw-status svg { position: absolute; right: 34px; top: 22px; }
.fw-phone .fw-slot { position: absolute; }
.fw-phone .fw-homebar { position: absolute; left: 50%; bottom: 8px; width: 139px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); transform: translateX(-50%); }
