/* Scrolling ticker along the bottom of the screen */
#ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(31, 78, 120, 0.95); color: #fff;
  height: 38px; overflow: hidden; display: flex; align-items: center;
  font-size: 16px; white-space: nowrap;
}
#ticker.hidden { display: none; }
#ticker .track { display: inline-flex; animation: ticker-scroll linear infinite; }
#ticker a, #ticker span.msg { color: #fff; text-decoration: underline; padding: 0 2px; }
#ticker .sep { opacity: .6; padding: 0 16px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Full-screen media playlist */
#screen {
  position: fixed; inset: 0; z-index: 800; background: #000;
  display: flex; align-items: center; justify-content: center;
}
#screen.hidden { display: none; }
#screen img, #screen video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
#screen .stop { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.85); border: none; border-radius: 8px; padding: 8px 12px; font-size: 14px; }

/* Screen tab panel */
.dpanel h2 { font-size: 16px; margin: 16px 0 6px; color: #1F4E78; }
.dpanel label { display: block; font-size: 13px; color: #666; margin-top: 8px; }
.dpanel input, .dpanel textarea { width: 100%; padding: 9px; font-size: 15px; border: 1px solid #bbb; border-radius: 8px; margin-top: 3px; }
.dpanel textarea { min-height: 80px; }
.dpanel .btn { background: #1F4E78; color: #fff; border: none; border-radius: 10px; padding: 11px 14px; font-size: 15px; width: 100%; margin: 8px 0; }
.dpanel .btn.alt { background: #fff; color: #1F4E78; border: 1px solid #1F4E78; }
.dpanel .status { font-size: 13px; color: #555; margin: 6px 0; min-height: 18px; }

/* Offers tab: full-screen playlist with its own controls */
#screen .ctl { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; z-index: 2; }
#screen .ctl button { background: rgba(255,255,255,.85); border: none; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
#screen #oStatus { position: absolute; top: 16px; left: 12px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; z-index: 2; }
#screen #oEmpty { color: #fff; font-size: 18px; }
#screen #oEmpty.hidden { display: none; }
