/* UNDERDOG TV - watching on FILMY without leaving it (films-watch.js): the inline player under a row of tiles, the
   fight's card (sample data in red, the result hidden until asked), the dates of a tile, the share menu; and the
   player's quality menu (ui-films.js). */

/* ------------------------------------------------------------------ the inline player */
.bu-fw { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; min-width: 0; transition: grid-template-rows .5s var(--ease-out, ease); scroll-margin-top: calc(var(--header-h, 60px) + 10px); }
.bu-fw.is-open { grid-template-rows: 1fr; }
.bu-fw-in { min-height: 0; min-width: 0; overflow: hidden; }
.bu-fw[data-kind="top"] { margin: 0 0 6px; }
.bu-fw-box { position: relative; margin: 12px 0 4px; padding: 14px 18px 20px; border: 1px solid #ffffff21; border-radius: 20px;
  background: radial-gradient(120% 90% at 0% 0%, #3a0e1466, transparent 55%), linear-gradient(180deg, #15171e, #0c0d12);
  box-shadow: 0 30px 80px #000000a8, inset 0 1px 0 #ffffff0d;
  opacity: 0; transform: translateY(-14px) scale(.985); transform-origin: 50% 0; transition: opacity .35s .08s, transform .5s var(--ease-out, ease); }
.bu-fw.is-open .bu-fw-box { opacity: 1; transform: none; }
.bu-fw.is-closing .bu-fw-box { transition-delay: 0s; transition-duration: .25s; }
.bu-fw-notch { position: absolute; top: -9px; width: 16px; height: 16px; margin-left: -8px; border-top: 1px solid #ffffff26; border-left: 1px solid #ffffff26; background: #1c1216; transform: rotate(45deg); transition: left .35s var(--ease-out, ease); }
.bu-fw-notch[hidden] { display: none; }
.bu-fw-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.bu-fw-now { display: flex; align-items: center; flex: 1; gap: 9px; min-width: 0; margin: 0; color: #ff6b72; font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bu-fw-nowt { overflow: hidden; text-overflow: ellipsis; }
.bu-fw-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff3b45; animation: bu-fw-pulse 1.8s ease-out infinite; }
@keyframes bu-fw-pulse { 0% { box-shadow: 0 0 0 0 #ff3b4599; } 70% { box-shadow: 0 0 0 8px #ff3b4500; } 100% { box-shadow: 0 0 0 0 #ff3b4500; } }
.bu-fw-count { flex: none; color: #8a8e9b; letter-spacing: .06em; }
.bu-fw-page { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 9px; color: #c9ccd4; font: 600 12px var(--font-body); text-decoration: none; white-space: nowrap; }
.bu-fw-page:hover { color: #fff; background: #ffffff0d; }
.bu-fw-page .bu-ic { width: 14px; height: 14px; }
.bu-fw-close { flex: none; width: 40px; height: 40px; border: 1px solid #ffffff26; border-radius: 50%; background: #ffffff0a; color: #fff; }
.bu-fw-close:hover { background: #ff333d; border-color: #ff333d; }
.bu-fw-main { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.bu-fw[data-format="9x16"] .bu-fw-main, .bu-fw[data-format="4x5"] .bu-fw-main { grid-template-columns: auto minmax(0, 1fr); }
.bu-fw-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000 center / cover no-repeat; }
.bu-fw[data-format="9x16"] .bu-fw-stage { width: calc(min(72vh, 640px) * 9 / 16); aspect-ratio: 9 / 16; justify-self: start; }
/* a 4:5 film (the feeds' shape) stands like a tall one, a little lower: the words beside it keep their room */
.bu-fw[data-format="4x5"] .bu-fw-stage { width: calc(min(68vh, 600px) * 4 / 5); aspect-ratio: 4 / 5; justify-self: start; }
.bu-fw-stage > .bu-tvp { position: absolute; inset: 0; border-radius: inherit; box-shadow: none; }
.bu-fw .bu-tvp-scrub { height: 24px; }
/* a narrow player (a tall film on a phone): the 10 s jumps (a double tap does them) and the volume slider step aside */
.bu-fw-stage { container-type: inline-size; }
/* the narrowest (a fold's cover): the format switch steps aside too - the panel already plays the picture that fits */
@container (max-width: 330px) { .bu-tvp-formats { display: none; } }
@container (max-width: 420px) {
  .bu-tvp-left > .bu-icon-btn:nth-child(2), .bu-tvp-left > .bu-icon-btn:nth-child(3), .bu-tvp-slider { display: none; }
  .bu-tvp-time { font-size: 11px; }
}
.bu-fw-wait { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; background: #0000008c; }
.bu-fw-stage.is-waiting .bu-fw-wait { display: grid; }
.bu-fw-fail { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: #0b0c10f0; color: #d6d8df; text-align: center; font-size: 13px; }
.bu-fw-fail .bu-ic { width: 28px; height: 28px; color: #ff6b72; }
.bu-fw-fail p { margin: 0; }
.bu-fw-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: opacity .3s; }
.bu-fw-more { transition: opacity .3s; }
.bu-fw.is-swap .bu-fw-side, .bu-fw.is-swap .bu-fw-more { opacity: 0; transition: none; }
.bu-fw-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bu-fw-badges:empty { display: none; }
.bu-fw-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid #ffffff38; border-radius: 7px; background: #08090dbd; color: #fff; font: 700 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.bu-fw-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 700 clamp(22px, 1.9vw, 32px)/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.bu-fw-title .bu-title-deck { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #ff333d; color: #fff; font-size: .5em; letter-spacing: .04em; text-transform: uppercase; }
.bu-fw-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.bu-fw-credit:empty { display: none; }
.bu-fw-ava { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #34385f, #16182b); color: #fff; font: 700 10px var(--font-mono); }
.bu-fw-ava.is-studio { background: linear-gradient(135deg, #ff3838, #6b0d14); }
.bu-fw-role { flex: none; color: var(--text-3, #7d838f); font: 600 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.bu-fw-name { min-width: 0; color: #fff; font-weight: 600; text-decoration: none; }
a.bu-fw-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bu-fw-fighters { display: flex; align-items: center; gap: 7px; margin: 0; color: #c4c7d0; font-size: 13px; }
.bu-fw-fighters .bu-ic { flex: none; width: 15px; height: 15px; color: #ff5a5a; }
.bu-fw-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: #8a8e9b; font-size: 12px; }
.bu-fw-stats:empty { display: none; }
.bu-fw-desc { display: -webkit-box; margin: 0; overflow: hidden; color: #a9aab3; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bu-fw-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bu-fw-acts .bu-btn { min-height: 44px; }
.bu-fw-dl { display: grid; gap: 8px; }
.bu-fw-dl[hidden] { display: none; }
.bu-fw-more { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.bu-fw-more .bu-post { margin: 0; }
.bu-fp-card.is-watching { border-color: #ff3b45; box-shadow: 0 0 0 1px #ff3b45, 0 18px 50px #ff27321f; }
.bu-fp-card.is-watching .bu-fp-play { opacity: 1; transform: translate(-50%, -50%) scale(1); background: #ff333d; border-color: #ff333d; }
.bu-ft-item.is-watching .bu-ft-card { box-shadow: 0 0 0 2px #ff3b45; }

/* ------------------------------------------------------------------ the dates (every tile) */
.bu-fw-dates { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: #9a9eab; font-size: 12px; }
.bu-fw-date { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bu-fw-date .bu-ic { flex: none; width: 13px; height: 13px; color: #ff5a5a; }
.bu-fw-dk { color: #80848f; font: 600 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.bu-fw-date b { color: #e4e6ec; font-weight: 600; }

/* sample data: made up until the game sends the real one (CZEKA-NA-UNITY U10) - always red, always marked */
.bu-sample, .bu-fw-date b.bu-sample, .bu-fcard-row .bu-sample { color: #ff3b47 !important; text-decoration: underline dashed #ff3b4799; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ the fight's card */
.bu-fcard { position: relative; min-width: 0; padding: 18px; border: 1px solid #ffffff17; border-radius: 16px; background: linear-gradient(180deg, #13151c, #0e0f14); color: #eef0f4; }
.bu-fcard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.bu-fcard-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 15px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.bu-fcard-title .bu-ic { width: 16px; height: 16px; color: #ff5a5a; }
.bu-fcard-sampletag { padding: 3px 8px; border: 1px solid #ff3b4766; border-radius: 6px; background: #ff3b4714; color: #ff6b73; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.bu-fcard-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0 0; color: #b9bcc6; font-size: 12px; }
.bu-fcard-meta i { color: #5d616d; font-style: normal; }
.bu-fcard-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 16px 0 6px; }
.bu-fcard-fighter { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.bu-fcard-ava { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #4d8aea66; border-radius: 14px; background: linear-gradient(145deg, #172849, #254373); color: #9ac5ff; font: 700 16px var(--font-display); }
.bu-fcard-fighter.is-red .bu-fcard-ava { border-color: #ff555766; background: linear-gradient(145deg, #411822, #722731); color: #ff989a; }
.bu-fcard-name { max-width: 100%; overflow: hidden; font: 600 16px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.bu-fcard-sub { color: #8e95a4; font-size: 11.5px; }
.bu-fcard-vsword { color: #555b6c; font: 700 18px var(--font-display); }
.bu-fcard-rows { display: grid; }
.bu-fcard-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 9px 2px; border-bottom: 1px solid #ffffff0b; font-size: 13px; }
.bu-fcard-row > :first-child { text-align: left; }
.bu-fcard-row > :nth-child(3) { text-align: right; }
.bu-fcard-row strong { color: #f1f2f5; font-weight: 600; }
.bu-fcard-label { color: #8e95a4; font-size: 10.5px; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.bu-fcard-row.is-form strong { font: 600 11.5px var(--font-mono); letter-spacing: .06em; white-space: nowrap; }
.bu-fcard-row.is-h2h strong { font: 700 18px var(--font-display); }
.bu-fcard-draws { margin: 6px 0 0; color: #8e95a4; font-size: 11.5px; text-align: center; }
.bu-fcard-bar { display: flex; grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 3px; background: #e0444c; }
.bu-fcard-bar .is-a { background: #4d8aea; }
.bu-fcard-bar .is-b { flex: 1; background: #e0444c; }
.bu-fcard-spoiler { margin-top: 12px; }
.bu-fcard-veil { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border: 1px dashed #ffffff26; border-radius: 12px; background: repeating-linear-gradient(135deg, #ffffff06 0 8px, transparent 8px 16px); text-align: center; }
.bu-fcard-veil > .bu-ic { width: 22px; height: 22px; color: #9aa0ad; }
.bu-fcard-veil strong { font: 600 14px var(--font-body); }
.bu-fcard-veil span { color: #8e95a4; font-size: 12px; }
.bu-fcard-show { margin-top: 6px; min-height: 44px; }
.bu-fcard-result { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; padding: 11px 14px; border: 1px solid #e9b94933; border-radius: 10px; background: #e9b94912; color: #f3dfa6; font: 700 13px/1.4 var(--font-mono); letter-spacing: .05em; text-align: center; text-transform: uppercase; animation: bu-fw-reveal .45s var(--ease-out, ease); }
.bu-fcard-result .bu-ic { flex: none; width: 16px; height: 16px; }
@keyframes bu-fw-reveal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.bu-fcard-length { margin: 2px 0 6px; color: #8e95a4; font-size: 11.5px; text-align: center; }
.bu-fcard-hide { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; padding: 0 4px; border: 0; background: none; color: #a4a8b4; font: 500 12px var(--font-body); cursor: pointer; }
.bu-fcard-hide .bu-ic { width: 14px; height: 14px; }
.bu-fcard-hide:hover { color: #fff; }
.bu-fcard-always { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 4px; color: #a4a8b4; font-size: 12px; cursor: pointer; }
.bu-fcard-always input { width: 18px; height: 18px; margin: 0; accent-color: #ff3b45; }
.bu-fcard-note { display: flex; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #ffffff0d; color: #c99599; font-size: 11.5px; line-height: 1.5; }
.bu-fcard-dot { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #ff3b47; }
.bu-fcard-replay { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; color: #ff6b72; font-size: 13px; text-decoration: none; }
.bu-fcard-replay .bu-ic { width: 14px; height: 14px; }
.bu-fcard-show:focus-visible, .bu-fcard-hide:focus-visible, .bu-fcard-replay:focus-visible, .bu-fcard-always input:focus-visible { outline: 2px solid #ff5963; outline-offset: 3px; }
.bu-tvf-info > .bu-fcard { margin: 18px 0; }
.bu-tvf-meta .bu-tvf-dates { display: inline-flex; }
.bu-fcard-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 18px; overflow: auto; border: 1px solid #34343d; border-radius: 20px; background: #101115; color: #f4f4f5; box-shadow: 0 40px 120px #000c; }
.bu-fcard-dialog::backdrop { background: #020309b8; backdrop-filter: blur(8px); }
.bu-fcard-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid #383943; border-radius: 50%; background: #1e2027; color: #fff; }
.bu-fcard-film { margin: 4px 50px 12px 2px; color: #a9aab3; font-size: 13px; line-height: 1.4; }
.bu-fcard-dialog .bu-fcard { padding: 0; border: 0; background: none; }

/* ------------------------------------------------------------------ share */
.bu-share { position: fixed; z-index: 110; width: 300px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; overflow: auto; border: 1px solid #ffffff22; border-radius: 16px; background: #14161df7; color: #f1f2f5; box-shadow: 0 24px 60px #000000b8; backdrop-filter: blur(18px); opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .16s, transform .22s var(--ease-out, ease); }
.bu-share.is-on { opacity: 1; transform: none; }
.bu-share.is-sheet { top: auto; right: 0; bottom: 0; left: 0; width: auto; max-width: none; max-height: 86dvh; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-bottom: 0; border-radius: 22px 22px 0 0; transform: translateY(100%); }
.bu-share.is-sheet.is-on { transform: none; }
.bu-share-scrim { position: fixed; inset: 0; z-index: 109; background: #03040600; transition: background .2s; }
.bu-share-scrim.is-on { background: #03040699; }
.bu-share-head { margin-bottom: 6px; padding: 4px 8px 10px; border-bottom: 1px solid #ffffff12; }
.bu-share-title { margin: 0; font: 700 13px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.bu-share-film { margin: 3px 0 0; overflow: hidden; color: #8e95a4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bu-share-list { display: grid; gap: 2px; }
.bu-share.is-sheet .bu-share-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bu-share.is-sheet .bu-share-item.is-link { grid-column: 1 / -1; }
.bu-share-item { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 46px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: #f1f2f5; font: 600 13px var(--font-body); text-align: left; cursor: pointer; }
.bu-share-item:hover { background: #ffffff0f; }
.bu-share-item:focus-visible, .bu-share-cancel:focus-visible { outline: 2px solid #ff5963; outline-offset: -2px; background: #ffffff0f; }
.bu-share-glyph { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #ffffff14; color: #fff; }
.bu-share-glyph svg, .bu-share-glyph .bu-ic { width: 18px; height: 18px; }
.bu-share-item.is-link .bu-share-glyph { background: #ff333d; }
.bu-share-item.is-done .bu-share-glyph { background: #1f9d55; }
.bu-share-item.is-whatsapp .bu-share-glyph { background: #25d366; }
.bu-share-item.is-tiktok .bu-share-glyph { background: #000; box-shadow: inset -2px -2px 0 #25f4ee55, inset 2px 2px 0 #fe2c5555; }
.bu-share-item.is-x .bu-share-glyph { border: 1px solid #ffffff30; background: #000; }
.bu-share-item.is-facebook .bu-share-glyph { background: #1877f2; }
.bu-share-item.is-telegram .bu-share-glyph { background: #29a9eb; }
.bu-share-words { display: flex; flex-direction: column; min-width: 0; }
.bu-share-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bu-share-sub { overflow: hidden; color: #8e95a4; font-size: 11.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.bu-share-cancel { width: 100%; min-height: 48px; margin-top: 10px; border: 1px solid #ffffff22; border-radius: 12px; background: #ffffff08; color: #fff; font: 600 14px var(--font-body); cursor: pointer; }

/* ------------------------------------------------------------------ the player's quality (ui-films.js) */
.bu-tvp-q { display: flex; }
.bu-tvp-q[hidden] { display: none; }
.bu-tvp-qbtn { position: relative; }
.bu-tvp-qbtn .bu-ic { transition: transform .3s var(--ease-out, ease); }
.bu-tvp.bu-tvp-qopen .bu-tvp-qbtn .bu-ic { transform: rotate(60deg); }
.bu-tvp-qbadge { position: absolute; top: 3px; right: -2px; padding: 0 3px; border-radius: 3px; background: #ff333d; color: #fff; font-size: 10px; font-weight: 700; line-height: 13px; pointer-events: none; }
.bu-tvp-qbadge:empty { display: none; }
.bu-tvp-qmenu { position: absolute; right: 10px; bottom: 60px; z-index: 6; width: 220px; max-width: calc(100% - 20px); max-height: calc(100% - 72px); padding: 6px; overflow: auto; border: 1px solid #ffffff22; border-radius: 12px; background: #101218f2; box-shadow: 0 18px 50px #000000b8; backdrop-filter: blur(14px); }
.bu-tvp-qmenu[hidden] { display: none; }
.bu-tvp.bu-tvp-qopen.bu-tvp-idle .bu-tvp-bar { opacity: 1; transform: none; pointer-events: auto; }
.bu-tvp-qhead { margin: 4px 8px 6px; color: #8e95a4; font: 700 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.bu-tvp-qitem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: #eef0f4; font: 600 13px var(--font-body); text-align: left; cursor: pointer; }
.bu-tvp-qitem:hover, .bu-tvp-qitem:focus-visible { background: #ffffff14; outline: none; }
.bu-tvp-qitem:focus-visible { box-shadow: inset 0 0 0 2px #ff5963; }
.bu-tvp-qcheck { flex: none; width: 14px; height: 14px; border: 1.5px solid #ffffff55; border-radius: 50%; }
.bu-tvp-qitem[aria-checked="true"] .bu-tvp-qcheck { border-color: #ff3b45; background: radial-gradient(circle, #ff3b45 0 42%, transparent 48%); }
.bu-tvp-qname { flex: 1; }
.bu-tvp-qtag { padding: 1px 5px; border-radius: 4px; background: #ffffff14; color: #fff; font-size: 10px; }
.bu-tvp-qnote { margin: 6px 10px 4px; color: #7d838f; font-size: 11px; line-height: 1.4; }
.bu-tvp-feed .bu-tvp-q, .bu-tvp-feed .bu-tvp-qmenu { display: none; }
/* a small player (a phone's): the menu's essentials only */
.bu-tvp-qmenu.is-compact { bottom: 52px; width: 190px; max-height: calc(100% - 58px); padding: 4px; }
.bu-tvp-qmenu.is-compact .bu-tvp-qhead, .bu-tvp-qmenu.is-compact .bu-tvp-qnote { display: none; }
.bu-tvp-qmenu.is-compact .bu-tvp-qitem { min-height: 32px; padding: 4px 10px; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1099px) {
  .bu-fw-main { grid-template-columns: minmax(0, 1fr); }
  .bu-fw[data-format="9x16"] .bu-fw-main, .bu-fw[data-format="4x5"] .bu-fw-main { grid-template-columns: minmax(0, 1fr); }
  .bu-fw[data-format="9x16"] .bu-fw-stage { width: min(100%, calc(min(70vh, 620px) * 9 / 16)); justify-self: center; }
  .bu-fw[data-format="4x5"] .bu-fw-stage { width: min(100%, calc(min(70vh, 620px) * 4 / 5)); justify-self: center; }
  .bu-fw-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* watching: the list's filter bar stops following the page (the film gets the screen) */
  html.bu-fw-on .bu-fp-fbar { position: relative; top: auto; }
  .bu-fw[data-format="9x16"] .bu-fw-stage { width: min(100%, calc(60vh * 9 / 16)); }
  .bu-fw[data-format="4x5"] .bu-fw-stage { width: min(100%, calc(60vh * 4 / 5)); }
  .bu-fw-box { margin-top: 10px; padding: 10px 10px 14px; border-radius: 16px; }
  .bu-fw-bar { margin-bottom: 10px; }
  .bu-fw-page span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bu-fw-page { width: 40px; justify-content: center; padding: 0; }
  .bu-fw-stage { margin: 0 -4px; border-radius: 12px; }
  .bu-fw-main { gap: 14px; }
  .bu-fw-title { font-size: 22px; }
  .bu-fw-acts .bu-btn, .bu-fw-acts .bu-film-react { flex: 1 1 auto; justify-content: center; }
  .bu-fcard { padding: 14px; }
  .bu-fcard-row { gap: 4px 6px; font-size: 12.5px; }
  .bu-fcard-dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
@media (max-width: 380px) {
  .bu-fw-count { display: none; }
  .bu-fcard-row.is-form strong { font-size: 10.5px; letter-spacing: 0; }
}
/* a phone on its side / a low window: the film takes the height, the words go under it */
@media (orientation: landscape) and (max-height: 500px) {
  .bu-fw[data-format="16x9"] .bu-fw-stage, .bu-fw:not([data-format]) .bu-fw-stage { width: min(100%, calc((100dvh - 90px) * 16 / 9)); justify-self: center; }
  .bu-fw[data-format="9x16"] .bu-fw-stage { width: calc((100dvh - 90px) * 9 / 16); }
  .bu-fw[data-format="4x5"] .bu-fw-stage { width: min(100%, calc((100dvh - 90px) * 4 / 5)); }
}
@media (prefers-reduced-motion: reduce) {
  .bu-fw, .bu-fw-box, .bu-fw-notch, .bu-share, .bu-fcard-result { transition: none; animation: none; }
  .bu-fw-live { animation: none; }
}

/* ------------------------------------------------------------------ names: a creator, a fighter, Boxing Underdog - every one
   opens its person's card; :where() leaves each place's own look (size, colour) to the place */
:where(.bu-pname) { display: inline-block; vertical-align: middle; max-width: 100%; min-height: 24px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 24px; letter-spacing: inherit; text-align: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bu-pname { cursor: pointer; text-decoration: underline 1px transparent; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.bu-pname:hover { color: #fff; text-decoration-color: currentColor; }
.bu-pname[aria-expanded="true"] { text-decoration-color: #ff3b45; }
.bu-pname:focus-visible { outline: 2px solid #ff5963; outline-offset: 2px; border-radius: 3px; }
.bu-pnames { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.bu-pnames .bu-pname { flex: 0 1 auto; min-width: 0; }
/* a compilation (handheld takes from several fights): its line instead of "A vs B", its card lists the fights */
.bu-pcompilation { display: inline; overflow-wrap: anywhere; }
.bu-fcard-comp-count { color: #b9bcc6; font-size: 12px; }
.bu-fcard-comp-list { display: grid; gap: 10px; margin: 14px 0 6px; padding: 0; list-style: none; }
.bu-fcard-comp-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; min-width: 0; }
.bu-fcard-comp-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #ffffff22; border-radius: 8px; color: #b9bcc6; font-size: 12px; }
.bu-fcard-comp-who { flex-wrap: wrap; font-weight: 600; overflow-wrap: anywhere; }
.bu-fcard-comp-meta { margin: 0; }
.bu-fcard-comp-toggle[hidden] { display: none; }
.bu-pvs { flex: none; color: var(--text-3, #7d838f); font: 600 10.5px var(--font-mono); font-style: normal; text-transform: uppercase; }
/* a small Top 10 tile is one button (its preview): its creator's name stands above it */
.bu-ft-small .bu-pname { position: relative; z-index: 4; }
.bu-fcard-name.bu-pname { font: 600 16px/24px var(--font-display); }

/* ------------------------------------------------------------------ a person's card (the share menu's window) */
.bu-share.bu-pc { width: 320px; padding: 14px; }
.bu-pc-head { display: flex; align-items: center; gap: 12px; }
.bu-pc-ava { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #34385f, #16182b); color: #fff; font: 700 16px var(--font-display); }
.bu-pc-ava.is-fighter { background: linear-gradient(145deg, #411822, #722731); color: #ffd0d2; }
.bu-pc-ava.is-studio { background: linear-gradient(135deg, #ff3838, #6b0d14); }
.bu-pc-words { min-width: 0; }
.bu-pc-name { margin: 0; overflow: hidden; font: 700 20px/1.15 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.bu-pc-role { margin: 3px 0 0; color: #9aa0ad; font-size: 12px; }
.bu-pc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bu-pc-stats[hidden], .bu-pc-note[hidden] { display: none; }
.bu-pc-chip { padding: 4px 9px; border: 1px solid #ffffff1c; border-radius: 999px; background: #ffffff08; color: #e4e6ec; font: 600 12px var(--font-body); }
.bu-pc-chip.is-game { border-color: #e9b94955; color: #f3dfa6; }
.bu-pc-chip.is-wait { color: #7d838f; }
.bu-pc-chip.is-corner { --corner: #3ad57f; border-color: var(--corner); background: color-mix(in srgb, var(--corner) 16%, transparent); color: #fff; }
.bu-pc-note { margin: 10px 0 0; color: #a4a8b4; font-size: 12px; line-height: 1.5; }
.bu-pc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bu-pc-act { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #ffffff26; border-radius: 10px; background: #ffffff0a; color: #fff; font: 600 13px var(--font-body); text-decoration: none; cursor: pointer; }
.bu-pc-act:hover { border-color: #ffffff4d; }
.bu-pc-act.is-primary { border-color: #ff333d; background: #ff333d; }
.bu-pc-act .bu-ic { width: 16px; height: 16px; }
.bu-pc-act:focus-visible { outline: 2px solid #ff5963; outline-offset: 2px; }
.bu-pc .bu-pc-follow { flex: 1 1 auto; min-height: 44px; }
.bu-share.bu-pc.is-sheet { width: auto; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ the share window: the video itself, the link */
.bu-share.bu-share2 { width: 380px; padding: 12px; }
.bu-share.bu-share2.is-sheet { width: auto; }
.bu-share-sec { padding: 10px 0 4px; }
.bu-share-sec + .bu-share-sec { margin-top: 6px; border-top: 1px solid #ffffff12; }
.bu-share-sectitle { margin: 0 8px; font: 700 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.bu-share-sec.is-video .bu-share-sectitle { color: #ff6b72; }
.bu-share-secsub { margin: 3px 8px 8px; color: #8e95a4; font-size: 11.5px; line-height: 1.45; }
.bu-share2 .bu-share-sec.is-link .bu-share-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.bu-share2 .bu-share-sec.is-link .bu-share-item.is-link, .bu-share2 .bu-share-sec.is-link .bu-share-item.is-system { grid-column: 1 / -1; }
.bu-share2 .bu-share-sec.is-video .bu-share-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bu-share-wait { margin: 6px 8px; color: #7d838f; font-size: 12px; }
.bu-share-item.is-send { border: 1px solid #ff333d66; background: #ff333d1a; }
.bu-share-item.is-send .bu-share-glyph { position: relative; background: #ff333d; }
.bu-share-item.is-send[data-state="ready"] { border-color: #ff333d; background: #ff333d33; animation: bu-share-pulse 1.4s ease-in-out 2; }
.bu-share-item.is-send[data-state="done"] .bu-share-glyph { background: #1f9d55; }
.bu-share-ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(#fff var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: 0; }
.bu-share-item.is-send[data-state="loading"] .bu-share-ring { opacity: 1; }
@keyframes bu-share-pulse { 50% { box-shadow: 0 0 0 4px #ff333d33; } }
.bu-share-item.is-chrome .bu-share-glyph { background: #4285f4; }
a.bu-share-item { color: #f1f2f5; text-decoration: none; }
.bu-share-hint { margin: 0 8px; color: #a4a8b4; font-size: 11.5px; line-height: 1.45; }
.bu-share-dls { display: grid; gap: 6px; }
.bu-share2 .bu-dl { min-height: 46px; padding: 6px 10px; border-radius: 10px; }
.bu-share2 .bu-dl .bu-dl-label { font-size: 13px; }
.bu-share2 .bu-dl .bu-dl-sub { font-size: 11.5px; }
.bu-share-how { margin: 2px 8px 0; padding-left: 18px; color: #c4c7d0; font-size: 12px; line-height: 1.5; }
.bu-share-how li { margin: 4px 0; }
.bu-share-quicks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bu-share-quick { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid #ffffff26; border-radius: 999px; color: #fff; font: 600 12px var(--font-body); text-decoration: none; }
.bu-share-quick:hover { border-color: #ffffff55; }
.bu-share-quick svg { width: 15px; height: 15px; }
.bu-share-quick:focus-visible, .bu-share-copy:focus-visible, .bu-share2 .bu-dl:focus-visible { outline: 2px solid #ff5963; outline-offset: 2px; }
.bu-share-caption { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0; padding: 10px; border: 1px dashed #ffffff22; border-radius: 10px; }
.bu-share-caption p { flex: 1; min-width: 0; margin: 0; color: #c4c7d0; font-size: 11.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bu-share-copy { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid #ffffff26; border-radius: 9px; background: #ffffff0a; color: #fff; font: 600 12px var(--font-body); cursor: pointer; }
.bu-share-copy .bu-ic { width: 14px; height: 14px; }
.bu-share-copy.is-done { border-color: #1f9d55; color: #7fe0a5; }
@media (pointer: coarse) { .bu-share-quick { min-height: 40px; } .bu-share-copy { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .bu-share-item.is-send[data-state="ready"] { animation: none; } }

/* ------------------------------------------------------------------ a tile's own actions (films-watch.js filmTools, Damian
   07.10): Copy link, Download, Share - each its own button; the name in the tooltip and for screen readers, shown where a
   place gives it room. Each place (the list's tile, the Top 10's open tile) sets its size and look. */
.bu-fq { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.bu-fq-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; width: 36px; height: 36px; padding: 0;
  border: 1px solid #ffffff26; border-radius: 10px; background: #151923cc; color: #e8e9ee; font: 600 12.5px var(--font-body); white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s; }
.bu-fq-btn .bu-ic { flex: none; width: 17px; height: 17px; }
.bu-fq-btn:hover { border-color: #ffffff59; color: #fff; }
.bu-fq-btn:focus-visible { outline: 2px solid #ff5963; outline-offset: 2px; }
.bu-fq-btn:disabled { opacity: .55; cursor: progress; }
.bu-fq-btn.is-done { border-color: #2fbf71; background: #2fbf7124; color: #b8f5d0; }
.bu-fq-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the player panel's and the film page's own Copy link (a button with its name) */
.bu-fw-link .bu-fq-label, .bu-tvf-link .bu-fq-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.bu-fw-link.is-done, .bu-tvf-link.is-done { border-color: #2fbf71; color: #b8f5d0; }
