/* Mango Bullfight — หน้าจอลูกค้า (ใช้โทเคนสีจาก football.css: --brand ส้ม, --card, --line, --muted) · ซ้าย = แดง · ขวา = ฟ้า */
:root { --sa: #ef4444; --sb: #3b82f6; --ok: #22c55e; --bad: #f87171; --warn: #fbbf24 }

/* ช่องโปรโมต 16:9 */
.pm { position: relative; margin: 4px 0 14px; border-radius: 16px; overflow: hidden; background: #0b0b0b; aspect-ratio: 16 / 9 }
.pm-track { position: absolute; inset: 0 }
.pm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; pointer-events: none }
.pm-slide.on { opacity: 1; pointer-events: auto }
.pm-slide img, .pm-slide video, .pm-slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; background: #000 }
.pm-slide video { object-fit: contain }
.pm-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); display: flex; flex-direction: column; gap: 2px }
.pm-cap b { font-size: 17px; color: #fff }
.pm-cap span { font-size: 12.5px; color: #e5e5e5 }
.pm-cta { align-self: flex-start; margin-top: 6px; background: var(--brand); color: #1a0f00; font-weight: 700; border-radius: 10px; padding: 6px 12px; font-size: 13px }
.pm-ext { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px }
.pm-dots { position: absolute; top: 8px; right: 10px; display: flex; gap: 5px }
.pm-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer }
.pm-dots button.on { background: var(--brand); width: 20px; border-radius: 5px }
.pm-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px }

/* ทั่วไป */
.bf-h { font-size: 15px; font-weight: 600; margin: 16px 2px 8px; color: var(--text) }
.bf-empty { padding: 26px 12px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 14px }
.bf-empty.sm { padding: 14px }
.bf-rule { font-size: 12px; color: var(--dim); margin: 14px 4px }
.bf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 13px; background: var(--brand); color: #1a0f00; font-weight: 700; font-size: 15px; border: 0 }
.bf-btn.wide { width: 100% }
.bf-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); margin-top: 10px }
.bf-btn:disabled { opacity: .45 }
.pill.bf-login { padding: 6px 14px; font-weight: 600; color: #1a0f00; background: var(--brand) }
.bf-dim { color: var(--dim) }
.bf-st { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #1f1f1f; color: var(--muted); white-space: nowrap }
.bf-st.live { background: rgba(239, 68, 68, .15); color: #fca5a5 }
.bf-st.done, .bf-st.ok { background: rgba(34, 197, 94, .15); color: #86efac }
.bf-st.warn { background: rgba(251, 191, 36, .15); color: #fde68a }
.bf-st.bad { background: rgba(248, 113, 113, .15); color: #fca5a5 }

.bf-guest { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line) }
.bf-guest span { color: var(--muted); font-size: 13.5px }

/* แถบกำลังชน + รายการคู่ */
.bf-livestrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px }
.bf-livecard { flex: none; min-width: 210px; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(239, 68, 68, .18), var(--card)); border: 1px solid rgba(239, 68, 68, .35) }
.bf-livecard small { color: var(--muted) }
.bf-event { margin-bottom: 12px; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line) }
.bf-event header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--card2); border-bottom: 1px solid var(--line) }
.bf-event header small { color: var(--muted); font-size: 12px }
.bf-row { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit }
.bf-row:last-child { border-bottom: 0 }
.bf-row.live { background: rgba(239, 68, 68, .07) }
.bf-seq { flex: none; width: 24px; height: 24px; border-radius: 8px; background: #1f1f1f; display: grid; place-items: center; font-size: 12px; color: var(--muted) }
.bf-vs { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 8px; align-items: center }
.bf-side { display: flex; flex-direction: column; min-width: 0 }
.bf-side.b { text-align: right }
.bf-side small { font-size: 11px; color: var(--muted) }
.bf-fn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.bf-side.a .bf-fn { color: #fca5a5 }
.bf-side.b .bf-fn { color: #93c5fd }
.bf-x { color: var(--dim); font-size: 12px }
.bf-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px }
.bf-price { color: var(--brand2); font-weight: 600 }
.bf-cam { color: var(--muted) }
.bf-odds { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted) }
.bf-odds b { color: var(--text) }

/* หน้าคู่ชน */
.bf-stream { margin: 2px -2px 12px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9 }
.bf-stream iframe, .bf-stream video { width: 100%; height: 100%; border: 0; display: block }
.bf-nolive { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px }
.bf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px }
.bf-head h1 { font-size: 18px; margin: 0 }
.bf-fighters { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch }
.bf-fcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: var(--card); border: 2px solid var(--line) }
.bf-fcard.a { border-color: rgba(239, 68, 68, .45) }
.bf-fcard.b { border-color: rgba(59, 130, 246, .45) }
.bf-fcard img, .bf-noimg { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1b1b1b; font-size: 34px }
.bf-fcard small { font-size: 11.5px; color: var(--muted) }
.bf-fcard .rec { color: var(--text) }
.bf-vsbig { align-self: center; font-weight: 800; color: var(--brand) }
.bf-pricebox { margin: 12px 0 8px; text-align: center; font-size: 22px }
.bf-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.bf-pick { min-height: 68px; border-radius: 16px; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; color: #fff }
.bf-pick b { font-size: 16px }
.bf-pick.a { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .5) }
.bf-pick.b { background: rgba(59, 130, 246, .2); border-color: rgba(59, 130, 246, .5) }
.bf-pick.on { box-shadow: 0 0 0 3px var(--brand) }
.bf-pick:disabled { opacity: .45 }
.bf-slip { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--card2); border: 1px solid var(--brand); display: flex; flex-direction: column; gap: 10px }
.bf-slip-h { display: flex; justify-content: space-between; align-items: center }
.bf-slip-h button { width: 34px; height: 34px; border-radius: 10px; background: #262626; color: var(--muted) }
.bf-stake { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted) }
.bf-stake input { min-height: 50px; border-radius: 12px; background: #0b0b0b; border: 1px solid var(--line); color: var(--text); font-size: 22px; text-align: center; font-family: Inter, sans-serif }
.bf-chips { display: flex; gap: 6px; flex-wrap: wrap }
.bf-chips button { flex: 1; min-height: 38px; border-radius: 10px; background: #1f1f1f; color: var(--text); font-size: 13px }
.bf-calc { font-size: 14px; color: var(--muted) }
.bf-calc b { color: var(--brand2) }
.bf-note { margin: 10px 2px; font-size: 13.5px; color: var(--brand2) }

/* บิล */
.bf-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px }
.bf-tabs button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #141414; border: 1px solid var(--line); color: var(--muted); font-size: 13px }
.bf-tabs button.on { background: var(--brand); border-color: var(--brand); color: #1a0f00; font-weight: 600 }
.bf-sum { font-size: 12.5px; color: var(--muted); margin: 0 2px 8px }
.bf-bet { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line) }
.bf-bet > div { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.bf-bet .r { align-items: flex-end; text-align: right }
.bf-bet small { font-size: 11.5px; color: var(--muted) }
.bf-bet.ok { border-color: rgba(34, 197, 94, .4) }
.bf-bet.warn { border-color: rgba(251, 191, 36, .4) }
