#stage.redlight-active .g-body{max-width:none!important;width:100%;padding:0!important;display:flex;flex-direction:column;flex:1;min-height:0}
#stage.redlight-active .g-wrap{height:100%;max-height:none;display:flex;flex-direction:column;min-height:0}
.rl-live{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:#151c32;border:1px solid var(--line-2);border-radius:14px;overflow:hidden}
.rl-live-top,.rl-live-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:15px;background:#1b223d;color:var(--txt);font-size:13px;flex:none}.rl-live-top small{color:var(--dim);font-size:11px}.rl-live-top b{color:#bdaceb}.rl-live-clock{font:25px monospace;color:#e7dbf6;direction:ltr}
.rl-live-world{position:relative;flex:1;min-height:300px;background:#b6c8bb;overflow:hidden}.rl-live-canvas{position:absolute;inset:0}.rl-live-canvas canvas{display:block;width:100%;height:100%}
.rl-live-signal{position:absolute;top:20px;left:50%;transform:translateX(-50%);padding:10px 22px;border:1px solid #cbd8e54a;border-radius:30px;background:#1a293fe8;backdrop-filter:blur(10px);color:#dbeadf;font-size:15px;text-align:center;white-space:nowrap}.rl-live-signal[data-phase=amber]{background:#504130e8;color:#ffe1ae}.rl-live-signal[data-phase=red]{background:#522a3be8;color:#ffc4d4}.rl-live-signal small{display:block;font-size:11px;opacity:.75}
.rl-live-foot{font-size:12px}.rl-live-foot button{border:1px solid var(--line-2);border-radius:8px;padding:7px 12px;color:var(--txt);background:var(--surf-2);cursor:pointer}.rl-live-paused{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:10px;background:#111a32c9;color:var(--txt);backdrop-filter:blur(5px)}.rl-live-paused[hidden]{display:none}.rl-live-paused button{padding:10px 20px;border:1px solid #b4a0dd66;border-radius:9px;background:#9b88d8;color:#16182f;cursor:pointer}
@media(max-width:650px){.rl-live-top,.rl-live-foot{padding:10px;font-size:10px}.rl-live-top small{font-size:9px}.rl-live-clock{font-size:20px}.rl-live-signal{font-size:12px;top:14px}.rl-live-signal small{font-size:9px}.rl-live-world{min-height:280px}}

/* ── الميدان يملأ الصفحة ──
   نفس معاملة الكراسي: في وضع العرض يمتدّ المسرح إلى الحافّتين
   ويقف فوق شريط تحكّم المذيع، فيصير الميدانُ هو الشاشة. والإطارُ
   والزوايا المستديرة تذهب — حدٌّ في منتصف شاشة البثّ يبدو خطأً. */
body.shell-ok.shell-cinema #stage.redlight-active{
  inset-inline:0 !important;
  inset-block-end:72px !important;
}
#stage.redlight-active{border-color:transparent !important}
body.shell-ok.shell-cinema #stage.redlight-active .rl-live{
  border-radius:0;border-color:transparent;
}
/* الميدان يأخذ ما بقي بعد الشريطين، ولا ينكمش إلى ارتفاعٍ افتراضيّ */
#stage.redlight-active .rl-live-world{min-height:0;flex:1 1 auto}

/* ── الميدان هو الصفحة ──
   طلبٌ صريح: اللعبة على كامل الشاشة، والإعدادات وحدها تظهر فوقها
   في بارٍ عائم، ومسحةٌ حمراء خفيفة تُذكّر بالضوء. فالشريط العلويّ
   وسطرُ الحالة يذوبان في البار، ولا يبقى إطارٌ ولا زاوية. */
body.shell-ok.shell-cinema #stage.redlight-active{
  inset:0 !important;
  border-radius:0 !important;
}
#stage.redlight-active .rl-live{
  border:0;border-radius:0;background:#0d1424;
}
#stage.redlight-active .rl-live-world{
  min-height:0;flex:1 1 auto;
}
/* مسحةٌ حمراء فوق الميدان — طبقةٌ لا تمسّ الألوان تحتها */
#stage.redlight-active .rl-live-world::after{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:2;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(214,58,74,.20), transparent 62%),
    radial-gradient(100% 70% at 50% 100%, rgba(150,26,48,.24), transparent 66%);
  mix-blend-mode:soft-light;
}
/* وتشتدّ الحمرة لحظةَ الضوء الأحمر — الشاشة كلّها تُنذر */
#stage.redlight-active .rl-live-world:has(.rl-live-signal[data-phase=red])::after{
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(236,60,80,.34), transparent 68%),
    radial-gradient(110% 80% at 50% 100%, rgba(170,20,44,.38), transparent 70%);
}

/* ── البار: الإعدادات وحدها ──
   الشريطان (العلويّ والسفليّ) كانا يقتطعان صفّين من الميدان.
   صارا بارَين عائمَين شفّافَين فوقه — يُقرآن ولا يأكلان مساحة. */
#stage.redlight-active .rl-live-top,
#stage.redlight-active .rl-live-foot{
  position:absolute;inset-inline:0;z-index:6;
  background:rgba(13,20,36,.62);backdrop-filter:blur(12px);
  border:0;pointer-events:none;
}
#stage.redlight-active .rl-live-top{
  inset-block-start:0;
  border-bottom:1px solid rgba(236,90,110,.22);
}
#stage.redlight-active .rl-live-foot{
  inset-block-end:0;
  border-top:1px solid rgba(236,90,110,.22);
}
#stage.redlight-active .rl-live-top button,
#stage.redlight-active .rl-live-foot button{pointer-events:auto}
#stage.redlight-active .rl-live-clock{color:#ffd9df}
