/* Player chrome is outside the official provider iframe. */
.bms-overlay-page { margin: 0; overflow: hidden; background: transparent; color: #fff; }
.bms-overlay-page #overlay-player { width: 100vw; height: 100vh; display: grid; place-items: center; }
.bms-overlay-page .bms-player-shell { max-height: 100vh; }
.bms-player-shell { width: 100%; min-width: 0; color: #fff; font-family: system-ui, sans-serif; }
.bms-player-frame { display: grid; grid-template-rows: 44px minmax(0, 1fr) 12px; width: 100%; min-width: 0; background: #000; }
.bms-player-header { grid-row: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 14px 0 8px; height: 44px; background: #000; font-family: 'VT323', 'Courier New', monospace; font-size: 38px; font-weight: 400; line-height: 44px; color: #fff; }
.bms-player-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bms-player-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.bms-player-flag { flex: 0 0 auto; color: #d4d4d4; font-size: 24px; }
.bms-player-flag[hidden] { display: none; }
/* Secondary to the title: flag-sized and grey, and it gives up space first when the bar is tight. */
.bms-player-requester { flex: 0 1 auto; min-width: 0; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4d4d4; font-size: 24px; }
.bms-player-requester[hidden] { display: none; }
.bms-player-pause-icon { width: 30px; height: 30px; border-radius: 50%; background: #74777c; display: flex; align-items: center; justify-content: center; gap: 4px; }
.bms-player-pause-icon::before, .bms-player-pause-icon::after { content: ''; width: 4px; height: 13px; border-radius: 1px; background: #f2f2f2; }
.bms-player-stage { grid-row: 2; position: relative; width: 100%; min-width: 0; min-height: 200px; aspect-ratio: var(--bms-aspect, 16 / 9); background: #090b10; }
.bms-player-host, .bms-player-host > div, .bms-player-host iframe { width: 100%; height: 100%; min-height: 200px; }
.bms-player-host { position: absolute; inset: 0; }
.bms-player-host iframe { display: block; border: 0; border-radius: 0; }
.bms-player-progress { grid-row: 3; height: 12px; overflow: hidden; background: #25171a; }
.bms-player-progress-fill { height: 100%; background: #ff4444; width: 0; }
.bms-player-shell[data-paused="true"] .bms-player-progress-fill { background: #999; }
/* At 1080p these remain legible when the OBS source is scaled down on stream. */
.bms-overlay-page { --bms-header-height: clamp(44px, 9.26vh, 100px); --bms-progress-height: clamp(10px, 2.22vh, 24px); }
.bms-overlay-page .bms-player-frame { grid-template-rows: var(--bms-header-height) minmax(0, 1fr) var(--bms-progress-height); }
.bms-overlay-page .bms-player-header { height: var(--bms-header-height); font-size: clamp(30px, 6.67vh, 72px); line-height: 1; gap: clamp(8px, 1.25vw, 24px); padding: 0 clamp(10px, 1.25vw, 24px); }
.bms-overlay-page .bms-player-flag, .bms-overlay-page .bms-player-requester { font-size: clamp(16px, 3.34vh, 36px); }
.bms-overlay-page .bms-player-pause-icon { width: clamp(24px, 5.56vh, 60px); height: clamp(24px, 5.56vh, 60px); gap: clamp(3px, .56vh, 6px); }
.bms-overlay-page .bms-player-pause-icon::before, .bms-overlay-page .bms-player-pause-icon::after { width: clamp(3px, .74vh, 8px); height: clamp(12px, 2.59vh, 28px); }
.bms-overlay-page .bms-player-progress { height: var(--bms-progress-height); background: #4d2020; }
.bms-player-feedback { margin: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #201c1c; color: #ffe2d9; font-size: 13px; line-height: 1.5; }
.bms-player-feedback[hidden] { display: none; }
.bms-player-feedback button { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border: 1px solid #b87b6d; border-radius: 6px; background: #392821; color: #fff4ed; font: inherit; cursor: pointer; }
.bms-player-feedback button:hover { background: #52352a; }
.bms-player-feedback button:focus-visible { outline: 2px solid #ffb39c; outline-offset: 3px; }
.bms-player-empty { display: flex; height: 100%; min-height: 200px; box-sizing: border-box; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 30px; background: #11151b; }
.bms-player-empty svg { width: 40px; height: 40px; color: #828c9d; margin-bottom: 6px; }
.bms-player-empty strong { font-size: 18px; font-weight: 600; color: #f0f2f6; }
.bms-player-empty p { max-width: 38ch; margin: 0; color: #a8b0bf; font-size: 13px; line-height: 1.6; }
.bms-player-demo { display: flex; height: 100%; flex-direction: column; box-sizing: border-box; justify-content: space-between; padding: clamp(20px, 4vw, 44px); background: #212b30; color: #e5ede9; overflow: hidden; }
.bms-player-demo-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.bms-player-demo-badge { padding: 5px 8px; background: #d0e6ae; color: #1e2d21; border-radius: 3px; font-weight: 700; }
.bms-player-demo-scene { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px 0; }
.bms-player-demo-scene strong { display: block; max-width: 16ch; font-family: 'VT323', 'Courier New', monospace; font-weight: 400; font-size: clamp(36px, 6vw, 76px); line-height: .95; }
.bms-player-demo-meter { display: flex; align-items: end; height: 54px; gap: 5px; }
.bms-player-demo-meter span { flex: 1; height: var(--bms-meter-height); background: #a7c78c; opacity: .75; max-width: 22px; }
.bms-player-demo-bottom { display: flex; justify-content: space-between; gap: 16px; color: #c1ccc7; font-size: 12px; line-height: 1.5; }
.bms-player-demo-position { font-variant-numeric: tabular-nums; font-family: 'VT323', 'Courier New', monospace; font-size: 24px; color: #e5ede9; }
.bms-player-shell[data-surface="obs"][data-active="false"], .bms-player-shell[data-surface="obs"][data-empty="true"] { visibility: hidden; }
.bms-overlay-connection { position: fixed; bottom: 16px; left: 16px; margin: 0; max-width: min(480px, calc(100vw - 64px)); padding: 12px 16px; border-radius: 6px; background: #171b22; color: #e7eaf0; font: 14px/1.5 system-ui, sans-serif; }
.bms-overlay-connection[hidden] { display: none; }
@media (max-width: 480px) {
  .bms-overlay-page { --bms-header-height: 44px; --bms-progress-height: 10px; }
  .bms-overlay-page .bms-player-header { font-size: 30px; gap: 8px; padding: 0 8px; }
  .bms-overlay-page .bms-player-flag, .bms-overlay-page .bms-player-requester { font-size: 16px; }
  .bms-overlay-page .bms-player-pause-icon { width: 24px; height: 24px; gap: 3px; }
  .bms-overlay-page .bms-player-pause-icon::before, .bms-overlay-page .bms-player-pause-icon::after { width: 3px; height: 12px; }
  .bms-player-header { font-size: 29px; padding-right: 8px; }
  .bms-player-demo { padding: 12px 14px; gap: 8px; }
  .bms-player-demo-top { gap: 8px; font-size: 9px; }
  .bms-player-demo-badge { padding: 4px 6px; }
  .bms-player-demo-scene { padding: 4px 0; gap: 8px; }
  .bms-player-demo-scene strong { font-size: 32px; }
  .bms-player-demo-meter { height: 20px; }
  .bms-player-demo-bottom { gap: 8px; font-size: 10px; line-height: 1.3; }
  .bms-player-demo-position { flex: 0 0 auto; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bms-player-shell * { scroll-behavior: auto; } }
/* Dashboard while OBS plays: a still of what is on stream instead of a second, muted copy. */
.bms-player-still { position: relative; height: 100%; min-height: 200px; overflow: hidden; background: #11151b; }
/* The thumbnail fills the player area, so it grows and shrinks with the Now playing section like the video would. */
.bms-player-still-art { position: absolute; inset: 0; background: #1d2228; }
.bms-player-still-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bms-player-still p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, #000000d9); color: #e6e9ef; font-size: 13px; line-height: 1.5; text-align: center; }
