/* «Битва фильмов» (n73 gC, film-battle.js): the card is hall-game.css's .hg-card; here the pair of posters, the strip
   of the eight, the voters' faces, the coin and the podium with tonight's film. */
.fb-card { background: #101218; width: min(680px, calc(100% - 20px)); } /* opaque: the lobby must not show through (game-cards.test.js) */
.fb-strip { display: flex; justify-content: center; gap: 5px; margin: 2px 0 8px; }
.fb-mini { position: relative; width: 26px; height: 39px; border-radius: 4px; overflow: hidden; background: #1a1d24; border: 1px solid var(--line); flex: none; transition: opacity .3s, filter .3s; }
.fb-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-mini.out { opacity: .32; filter: grayscale(1); }
.fb-mini.out::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: var(--bad, #e5534b); transform: rotate(-56deg); }
.fb-mini.won { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hg-card.fb-card .hg-bar { margin-bottom: 10px; }

.fb-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; }
.fb-vs { align-self: center; margin-top: -40px; font-size: 15px; font-weight: 900; letter-spacing: .06em; color: var(--accent); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.fb-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 8px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; text-align: center; transition: border-color .15s, background .15s, opacity .3s, transform .15s; }
button.fb-side { cursor: pointer; }
button.fb-side:hover { background: rgba(255, 255, 255, .04); border-color: var(--line); }
button.fb-side:active { transform: scale(.98); }
.fb-side.mine { border-color: var(--accent); background: rgba(255, 255, 255, .05); }
.fb-side.won { border-color: var(--accent); }
.fb-side.lost { opacity: .45; }
.fb-poster { position: relative; display: block; width: min(100%, 190px, 30vh); aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #2a2f3a, #14171e); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.fb-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-ptitle { position: absolute; inset: auto 8px 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .55); } /* under the image: shows only when there is no poster */
.fb-poster img + .fb-ptitle { display: none; }
.fb-side.mine .fb-poster { box-shadow: 0 0 0 3px var(--accent), 0 10px 28px rgba(0, 0, 0, .45); }
.fb-side.won .fb-poster { box-shadow: 0 0 0 3px var(--accent), 0 0 26px rgba(255, 200, 80, .35); }
.fb-badge { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #111; font-size: 12px; font-weight: 800; animation: fb-pop .35s ease-out; }
.fb-t { display: block; max-width: 100%; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.fb-t small { color: var(--muted); font-weight: 500; }
.fb-src { display: block; font-size: 12px; color: var(--muted); margin: 0; }
.fb-voters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; min-height: 28px; }
.fb-face { position: relative; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #3a4256; border: 1px solid rgba(255, 255, 255, .28); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--text); animation: fb-drop .35s ease-out both; }
.fb-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-face.me { box-shadow: 0 0 0 2px var(--accent); }
.fb-names { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.fb-note { color: var(--muted); }
.fb-coinrow, .fb-result { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; font-size: 14px; font-weight: 600; text-align: center; }
.fb-coin { font-size: 24px; display: inline-block; animation: fb-spin 1.2s ease-in-out infinite; }
.fb-coin.flip { animation: fb-spin .9s ease-out 1; }
.fb-wait { color: var(--muted); font-size: 13px; }

.fb-podium { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.fb-poster.big { width: min(200px, 34vh); }
.fb-ptext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fb-ptext h3 { margin: 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.fb-ptext h3 small { color: var(--muted); font-size: 15px; font-weight: 500; }
.fb-path, .fb-pay { margin: 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.fb-pay { color: var(--text); }
.fb-card .hg-go { border: 0; background: var(--accent); color: #111; font-weight: 800; }
.fb-watch { align-self: flex-start; min-height: 46px; margin-top: 6px; font-size: 16px; font-weight: 800; }

@keyframes fb-pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes fb-drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fb-spin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) { .fb-badge, .fb-face, .fb-coin { animation: none; } }

@media (max-width: 760px) {
  .fb-card { width: 100%; }
  .fb-pair { gap: 4px; }
  .fb-side { padding: 6px 4px; }
  .fb-poster { width: min(100%, 170px, 32vh); }
  .fb-vs { font-size: 13px; }
  .fb-mini { width: 22px; height: 33px; }
  .fb-podium { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .fb-poster.big { width: min(150px, 26vh); }
  .fb-ptext { align-items: center; }
  .fb-watch { align-self: stretch; }
}
