/* FÍF Beinleiðis — the live block on the front page. Uses the theme's tokens. */
.fif-bl, .fif-bl-strip, .fif-bl-sheet {
  --bl-ink: var(--ink, #0d1b33); --bl-soft: var(--ink-soft, #3c4a63); --bl-faint: var(--ink-faint, #6b7a94);
  --bl-line: var(--line, #d7e0ee); --bl-blue: var(--blue, #1d4ed8); --bl-deep: var(--blue-deep, #16368f);
  --bl-red: var(--red, #dc3a2c); --bl-surface: var(--surface, #fff);
  font-family: inherit;
}
.fif-bl [hidden], .fif-bl-strip[hidden], .fif-bl-sheet[hidden], .fif-bl-sheet [hidden] { display: none !important; }

/* thin red strip above the header */
.fif-bl-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; background: var(--bl-red); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.fif-bl-strip.off { background: var(--bl-deep); }
.fif-bl-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; animation: fifBlPulse 1.6s ease-in-out infinite; }
.off .fif-bl-dot, .fif-bl-badge.off .fif-bl-dot { animation: none; opacity: .6; }
@keyframes fifBlPulse { 50% { opacity: .35; } }

.fif-bl { background: linear-gradient(180deg, #0d1b33 0%, #13254a 100%); color: #fff; padding: 28px 0 32px; }
.fif-bl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* head */
.fif-bl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.fif-bl-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--bl-red); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.fif-bl-badge.off { background: rgba(255,255,255,.14); }
.fif-bl-title { margin: 10px 0 4px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; color: #fff; font-weight: 800; }
.fif-bl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: rgba(255,255,255,.75); }
.fif-bl-meta b { color: #fff; font-weight: 600; }
.fif-bl-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.fif-bl-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px 14px; min-width: 76px; }
.fif-bl-stat small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.fif-bl-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 700; }
.fif-bl-stat.clock b { color: #ffd166; }
.fif-bl-stat.clock b.long { font-size: 18px; line-height: 27px; white-space: nowrap; }

/* grid: player + photos on top, results under */
.fif-bl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "player photos" "results results"; gap: 16px; }
.fif-bl-player { grid-area: player; position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.fif-bl-photos { grid-area: photos; position: relative; }
.fif-bl-results { grid-area: results; }

.fif-bl-classic { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fif-bl-stage { position: absolute; inset: 0; }
.fif-bl-cam { all: unset; display: block; position: relative; box-sizing: border-box; cursor: pointer; background: #111; overflow: hidden; }
.fif-bl-cam video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.fif-bl-cam.main { position: absolute; inset: 0; cursor: default; }
.fif-bl-cam.main video { object-fit: contain; }
.fif-bl-cam-label { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.fif-bl-cam-label .fif-bl-dot { width: 6px; height: 6px; background: var(--bl-red); }
.fif-bl-cam.main .fif-bl-cam-label, .fif-bl-cam.main .fif-bl-cam-hint { display: none; }
.fif-bl-cam-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,27,51,.55); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.fif-bl-cam.pip:hover .fif-bl-cam-hint, .fif-bl-cam.pip:focus-visible .fif-bl-cam-hint { opacity: 1; }

.fif-bl-pips { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.fif-bl-pips .fif-bl-cam { width: 22%; min-width: 120px; max-width: 220px; aspect-ratio: 16 / 9; border-radius: 8px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.fif-bl-pips { width: 22%; min-width: 120px; max-width: 220px; }
.fif-bl-pips .fif-bl-cam { width: 100%; min-width: 0; }

.fif-bl-ov { position: absolute; top: 10px; display: flex; gap: 6px; z-index: 3; pointer-events: none; }
.fif-bl-tl { left: 10px; }
.fif-bl-tr { right: 10px; }
.fif-bl-chip, .fif-bl-clock { background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.fif-bl-clock { font-size: 15px; font-variant-numeric: tabular-nums; color: #ffd166; }

.fif-bl-finisher { position: absolute; left: 14px; bottom: 14px; z-index: 4; max-width: calc(100% - 28% - 40px); animation: fifBlIn .3s ease-out; }
.fif-bl-ft-top { display: inline-block; background: var(--bl-red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px 6px 0 0; }
.fif-bl-ft-main { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.96); color: var(--bl-ink); padding: 8px 14px; border-radius: 0 10px 10px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.fif-bl-ft-main b { background: var(--bl-deep); color: #fff; font-size: 14px; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.fif-bl-ft-main span { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fif-bl-ft-main em { font-style: normal; font-weight: 800; font-size: 18px; color: var(--bl-red); font-variant-numeric: tabular-nums; }
@keyframes fifBlIn { from { transform: translateY(12px); opacity: 0; } }

.fif-bl-unmute { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.95); color: var(--bl-ink); font: inherit; font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.fif-bl-full { position: absolute; left: 10px; bottom: 10px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.fif-bl-finisher:not([hidden]) ~ .fif-bl-full { display: none; }
.fif-bl-wait { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at center, #1b3266 0%, #0b1730 75%); }
.fif-bl-wait b { font-size: 20px; }
.fif-bl-wait p { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 14px; max-width: 34ch; }
.fif-bl-player:fullscreen { border-radius: 0; aspect-ratio: auto; }

/* photos */
.fif-bl-ph-inner { position: absolute; inset: 0; display: flex; flex-direction: column; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.fif-bl-ph-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px 8px; }
.fif-bl-ph-head h3, .fif-bl-res-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: inherit; }
.fif-bl-ph-head small { color: rgba(255,255,255,.6); font-size: 12px; }
.fif-bl-ph-row { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; align-content: start; }
.fif-bl-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #0b1730; }
.fif-bl-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fif-bl-ph .tag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.fif-bl-ph .tag.mal { background: var(--bl-red); }
.fif-bl-ph .bib { position: absolute; right: 4px; top: 4px; background: #fff; color: var(--bl-ink); font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.fif-bl-ph.new { animation: fifBlIn .5s ease-out; outline: 2px solid #ffd166; outline-offset: -2px; }
.fif-bl-ph-row .fif-bl-empty { grid-column: 1 / -1; }

/* results */
.fif-bl-results { background: var(--bl-surface); color: var(--bl-ink); border-radius: 14px; overflow: hidden; }
.fif-bl-res-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--bl-line); }
.fif-bl-res-head small { display: inline-flex; align-items: center; gap: 6px; color: var(--bl-faint); font-size: 12px; }
.fif-bl-res-head small i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.fif-bl-res-head input { margin-left: auto; flex: 0 1 240px; min-width: 0; font: inherit; font-size: 14px; padding: 7px 11px; border: 1px solid var(--bl-line); border-radius: 8px; background: #f6f9fd; color: var(--bl-ink); }
.fif-bl-res-cols { display: grid; grid-template-columns: 1fr 1fr; }
.fif-bl-res-cols > div { min-width: 0; }
.fif-bl-res-cols > div + div { border-left: 1px solid var(--bl-line); }
.fif-bl-res-sub { display: flex; align-items: center; min-height: 40px; padding: 6px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bl-soft); background: #f6f9fd; border-bottom: 1px solid var(--bl-line); }
.fif-bl-res-sub select { font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--bl-ink); border: 1px solid var(--bl-line); border-radius: 7px; padding: 4px 8px; background: #fff; max-width: 100%; }
.fif-bl-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fif-bl-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.fif-bl-list li { display: grid; grid-template-columns: 30px 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #edf2f9; font-size: 14px; }
.fif-bl-list .p { font-weight: 700; color: var(--bl-faint); text-align: right; }
.fif-bl-list .b { font-size: 12px; font-weight: 700; color: var(--bl-deep); background: var(--blue-tint, #dbe6fa); border-radius: 5px; text-align: center; padding: 1px 0; }
.fif-bl-list .w b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fif-bl-list .w small { display: block; font-size: 12px; color: var(--bl-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fif-bl-list .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.fif-bl-empty { margin: 0; padding: 18px 16px; color: var(--bl-faint); font-size: 14px; }
.fif-bl-ph-row .fif-bl-empty { color: rgba(255,255,255,.6); padding: 8px 4px; }
.fif-bl-res-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--bl-faint); }
.fif-bl-res-foot a { color: var(--bl-blue); font-weight: 600; text-decoration: none; }

/* tablet: photos go under the player as a strip */
@media (max-width: 960px) {
  .fif-bl-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "photos" "results"; }
  .fif-bl-ph-inner { position: static; }
  .fif-bl-ph-row { display: flex; overflow-x: auto; overflow-y: hidden; }
  .fif-bl-ph { flex: 0 0 140px; }
}
/* phone */
@media (max-width: 700px) {
  .fif-bl { padding: 18px 0 22px; }
  .fif-bl-wrap { padding: 0 12px; }
  .fif-bl-head { align-items: flex-start; }
  .fif-bl-stats { width: 100%; }
  .fif-bl-stat { flex: 1; min-width: 0; padding: 6px 10px; }
  .fif-bl-stat b { font-size: 18px; }
  .fif-bl-player { border-radius: 10px; margin: 0 -12px; border-radius: 0; }
  .fif-bl-pips { width: 34%; min-width: 0; right: 6px; bottom: 6px; }
  .fif-bl-finisher { left: 8px; bottom: 8px; max-width: calc(66% - 16px); }
  .fif-bl-ft-main { gap: 8px; padding: 6px 10px; }
  .fif-bl-ft-main span { font-size: 13px; }
  .fif-bl-ft-main em { font-size: 15px; }
  .fif-bl-ov .fif-bl-chip#fifBlSound { display: none; }
  .fif-bl-res-head input { margin-left: 0; flex: 1 1 100%; }
  .fif-bl-res-cols { grid-template-columns: 1fr; }
  .fif-bl-res-cols > div + div { border-left: 0; border-top: 1px solid var(--bl-line); }
  .fif-bl-list { max-height: 340px; }
  .fif-bl-list li { padding: 7px 12px; grid-template-columns: 24px 38px minmax(0, 1fr) auto; }
}

/* Send mynd */
.fif-bl-ph-head { gap: 8px; align-items: center; }
.fif-bl-ph-head small { margin-right: auto; }
.fif-bl-send-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #ffd166; color: #0d1b33; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.fif-bl-send-btn:hover { background: #ffdb85; }
.fif-bl-ph .hide { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(220,58,44,.9); color: #fff; font-size: 15px; font-weight: 700; border-radius: 50%; }
html.fif-bl-lock { overflow: hidden; }
.fif-bl-sheet { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13,27,51,.6); }
.fif-bl-sheet-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: var(--bl-ink); border-radius: 16px; padding: 22px 20px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 12px; }
.fif-bl-sheet-box h3 { margin: 0; font-size: 20px; color: inherit; }
.fif-bl-sheet-lead { margin: -4px 0 0; color: var(--bl-soft); font-size: 14px; }
.fif-bl-x { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--bl-faint); cursor: pointer; }
.fif-bl-pick { position: relative; display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--bl-line); border-radius: 12px; background: #f6f9fd; cursor: pointer; overflow: hidden; text-align: center; color: var(--bl-deep); }
.fif-bl-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fif-bl-pick span { display: grid; justify-items: center; gap: 6px; font-size: 15px; pointer-events: none; }
.fif-bl-pick img { width: 100%; max-height: 260px; object-fit: contain; display: block; pointer-events: none; }
.fif-bl-fld { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.fif-bl-fld small { font-weight: 400; color: var(--bl-faint); }
.fif-bl-fld input { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--bl-line); border-radius: 9px; color: var(--bl-ink); background: #fff; }
.fif-bl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fif-bl-sheet-err { margin: 0; color: var(--bl-red); font-size: 14px; font-weight: 600; }
.fif-bl-go { border: 0; background: var(--bl-blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; padding: 13px; border-radius: 10px; cursor: pointer; }
.fif-bl-go:disabled { opacity: .5; cursor: default; }
.fif-bl-sheet-box.sent > :not(.fif-bl-done):not(.fif-bl-x):not(h3) { display: none; }
.fif-bl-done { text-align: center; display: grid; gap: 8px; }
.fif-bl-done b { font-size: 20px; color: #16a34a; }
.fif-bl-done p { margin: 0 0 6px; color: var(--bl-soft); }
@media (max-width: 700px) {
  .fif-bl-sheet { align-items: flex-end; padding: 0; }
  .fif-bl-sheet-box { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* Vís aftur */
.fif-bl-list li { grid-template-columns: 30px 42px minmax(0, 1fr) auto 28px; }
.fif-bl-again { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blue-tint, #dbe6fa); color: var(--bl-deep); cursor: pointer; padding: 0 0 0 2px; }
.fif-bl-again:hover { background: var(--bl-blue); color: #fff; }
.fif-bl-replay { position: absolute; inset: 0; z-index: 6; background: #000; }
.fif-bl-replay video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.fif-bl-rp-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.fif-bl-chip.rp { background: rgba(29,78,216,.92); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fif-bl-rp-close { pointer-events: auto; white-space: nowrap; flex: none; border: 0; background: var(--bl-red); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.fif-bl-rp-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 600; pointer-events: none; text-align: center; padding: 20px; }
.fif-bl-player.replaying .fif-bl-pips, .fif-bl-player.replaying .fif-bl-finisher, .fif-bl-player.replaying .fif-bl-unmute { display: none !important; }
.fif-bl-rewind { position: absolute; left: 52px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fif-bl-finisher:not([hidden]) ~ .fif-bl-rewind { display: none; }
.fif-bl-rwpanel { position: absolute; left: 10px; bottom: 54px; z-index: 7; width: min(320px, calc(100% - 20px)); background: rgba(255,255,255,.97); color: var(--bl-ink); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.4); display: grid; gap: 8px; font-size: 14px; }
.fif-bl-rwpanel input[type=range] { width: 100%; }
.fif-bl-rw-btns { display: flex; gap: 8px; }
.fif-bl-rw-btns button { flex: 1; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-ink); font: inherit; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; }
.fif-bl-rw-btns .go { background: var(--bl-blue); border-color: var(--bl-blue); color: #fff; }
@media (max-width: 700px) {
  .fif-bl-list li { grid-template-columns: 24px 38px minmax(0, 1fr) auto 28px; }
  .fif-bl-rewind { left: 48px; bottom: 6px; height: 30px; padding: 0 10px; }
  .fif-bl-rp-close { font-size: 12px; padding: 5px 10px; }
  .fif-bl-chip.rp { font-size: 11px; }
}

/* logos in the corner of the picture (organiser · FÍF · sponsor) */
.fif-bl-player { container-type: inline-size; }
.fif-bl-tr { flex-direction: column; align-items: flex-end; gap: 6px; }
.fif-bl-tr-row { display: flex; gap: 6px; }
.fif-bl-bugs { display: flex; gap: 5px; align-items: stretch; }
.fif-bl-bug { display: flex; align-items: center; justify-content: center; height: clamp(22px, 4.2cqw, 46px); padding: 3px 7px; background: rgba(255,255,255,.9); border-radius: 7px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.fif-bl-bug img { height: 100%; width: auto; max-width: clamp(56px, 12cqw, 130px); object-fit: contain; display: block; }
.fif-bl-player:fullscreen .fif-bl-bug { height: clamp(30px, 3.6cqw, 60px); }
@media (max-width: 700px) { .fif-bl-bug { padding: 2px 5px; border-radius: 5px; } .fif-bl-bugs { gap: 4px; } }

/* photo column head: the button never squeezes; the heading takes the room left */
.fif-bl-ph-head { flex-wrap: wrap; row-gap: 6px; }
.fif-bl-ph-head h3 { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.fif-bl-ph-head small { margin-right: 0; flex: none; }
.fif-bl-send-btn { flex: 1 1 100%; order: 3; justify-content: center; white-space: nowrap; line-height: 1; padding: 11px 14px; font-size: 15px; border-radius: 10px; }
@media (max-width: 960px) { .fif-bl-send-btn { flex: none; order: 0; padding: 8px 12px; font-size: 13px; border-radius: 999px; } }
@media (min-width: 961px) and (max-width: 1180px) { .fif-bl-ph-head h3 { font-size: 15px; } }

/* desktop photo column (300px): heading / count / button on three clean rows */
@media (min-width: 961px) {
  .fif-bl-ph-head { flex-wrap: wrap; align-items: baseline; row-gap: 4px; padding: 14px 14px 10px; }
  .fif-bl-ph-head h3 { flex: 1 1 100%; white-space: normal; font-size: 17px; line-height: 1.25; }
  .fif-bl-ph-head small { flex: 1 1 100%; order: 2; font-size: 12px; }
  .fif-bl-ph-head small:empty { display: none; }
  .fif-bl-send-btn { order: 3; margin-top: 6px; }
}

/* replay: label and close button on their own strip ABOVE the video, so they never
   cover the browser's own controls (Safari puts its volume pill in the top corner) */
.fif-bl-replay { display: flex; flex-direction: column; }
.fif-bl-rp-top { order: -1; position: static; flex: none; padding: 8px 10px; background: #0b1730; pointer-events: auto; }
.fif-bl-replay video { flex: 1 1 auto; min-height: 0; height: auto; }
.fif-bl-rp-msg { top: 46px; }

.fif-bl-replay-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: #ffd166; color: #0d1b33; font-weight: 800; font-size: 16px; text-decoration: none; padding: 12px 20px; border-radius: 999px; }
.fif-bl-replay-link::before { content: ''; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* photo lightbox */
html.fiflb-lock { overflow: hidden; }
.fiflb { position: fixed; inset: 0; z-index: 100000; background: rgba(5,10,22,.94); display: flex; align-items: center; justify-content: center; }
.fiflb figure { margin: 0; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fiflb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.fiflb figcaption { color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.fiflb-x { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.fiflb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 36px; cursor: pointer; }
.fiflb-nav.prev { left: 12px; } .fiflb-nav.next { right: 12px; }
.fiflb-nav[hidden] { display: none; }
@media (max-width: 700px) { .fiflb figure { max-width: 100vw; } .fiflb-nav { width: 40px; height: 52px; font-size: 30px; background: rgba(0,0,0,.35); } }
