/* BAJT EMULATOR – ciemny interfejs (niezależnie od trybu portalu) */
.bemu { --em-bg: #0d1218; --em-panel: #151c24; --em-border: #263241; --em-text: #e4eaf0; --em-muted: #8796a5; --em-accent: #2cc5c9;
  background: var(--em-bg); color: var(--em-text); border-radius: 12px; padding: 1.25rem; margin-top: 1rem; border: 1px solid var(--em-border); }
.bemu .muted { color: var(--em-muted); }
.bemu a { color: #6cc8e6; }
.bemu .btn { background: var(--em-panel); color: var(--em-text); border-color: var(--em-border); }
.bemu .btn:hover { border-color: var(--em-accent); color: var(--em-accent); }
.bemu .btn-primary { background: var(--em-accent); border-color: var(--em-accent); color: #061718; }
.bemu .btn-primary:hover { color: #061718; filter: brightness(1.1); }
.bemu-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--em-border); margin-bottom: 1rem; }
.bemu-brand { display: flex; align-items: center; gap: .6rem; }
.bemu-brand .logo-mark { color: #fff; }
.bemu-brand-sub { font-family: var(--mono); letter-spacing: .3em; color: var(--em-accent); font-weight: 700; }
.bemu-state { display: flex; gap: .75rem; align-items: center; font-size: .9rem; }
.bemu-status { font-family: var(--mono); font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--em-border); }
.bemu-status[data-state="running"] { color: #7fdca1; border-color: #2c6b45; }
.bemu-status[data-state="paused"] { color: #ffcc66; border-color: #6b5420; }
.bemu-status[data-state="error"] { color: #ff8a80; border-color: #6b2c2c; }
.bemu-drop { border: 2px dashed var(--em-border); border-radius: 12px; padding: 2.5rem 1rem; text-align: center; transition: border-color .15s, background .15s; }
.bemu-drop.is-over { border-color: var(--em-accent); background: rgba(44, 197, 201, .06); }
.bemu-drop-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.bemu-drop .btn { margin: .25rem; }
.bemu-formats { margin-top: 1rem; font-size: .9rem; }
.bemu-msg { margin: 1rem 0 0; padding: .7rem 1rem; border-radius: 8px; background: var(--em-panel); border-left: 3px solid var(--em-accent); }
.bemu-msg-error { border-left-color: #ff8a80; color: #ffb4ab; }
.bemu-info { margin-top: 1rem; background: var(--em-panel); border: 1px solid var(--em-border); border-radius: 10px; padding: 1rem; }
.bemu-info .h-small { color: var(--em-muted); margin-top: 1rem; }
.bemu-dir { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bemu-dir th, .bemu-dir td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--em-border); }
.bemu-dir th { color: var(--em-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.bemu-dir code { background: none; border: 0; color: #a8b8ff; font-size: .95rem; }
.bemu-start-row { margin-top: 1rem; }
.bemu-screen-wrap { margin-top: 1rem; }
.bemu-screen { background: #000; border-radius: 10px; overflow: hidden; border: 1px solid var(--em-border); max-width: 960px; margin: 0 auto; }
#bemu-player { width: 100%; aspect-ratio: 4 / 3; }
.bemu-controls { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; margin: .9rem auto 0; max-width: 960px; }
.bemu-controls .btn { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.bemu-vol { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--em-muted); }
.bemu-vol input { width: 110px; accent-color: var(--em-accent); padding: 0; border: 0; background: none; }
.bemu-hint { text-align: center; max-width: 760px; margin: .75rem auto 0; }
.bemu kbd { font-family: var(--mono); font-size: .8em; padding: .05em .35em; border: 1px solid var(--em-border); border-radius: 4px; background: var(--em-panel); }
.bemu-licenses { margin-top: 1.5rem; font-size: .88rem; color: var(--em-muted); }
.bemu-licenses summary { cursor: pointer; }
@media (max-width: 640px) { .bemu { padding: .75rem; } .bemu-controls .btn { flex: 1 1 45%; } }
.bemu-screen-wrap { scroll-margin-top: 130px; }
