/* زدسک — رموت با وب */
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0f1720; color: #e6edf3; font-family: "Vazirmatn", Tahoma, sans-serif; }
a { color: #4fd1b8; }
.muted { color: #8a99a8; font-size: 12px; }
[hidden] { display: none !important; }

.connect { max-width: 520px; margin: 0 auto; padding: 28px 18px 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #0c6e6e, #1b9c85); }
.card { background: #17212b; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card h1 { margin: 0 0 4px; font-size: 24px; }
.sub { margin: 0 0 18px; color: #a8b5c2; font-size: 14px; }
label { display: block; font-size: 13px; color: #a8b5c2; margin: 12px 0 6px; }
input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #2a3846; background: #0f1720; color: #fff; font-size: 18px; text-align: center; font-family: inherit; }
select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #2a3846; background: #0f1720; color: #fff; font-size: 15px; font-family: inherit; }
select:focus, input:focus { outline: 2px solid #1b9c85; border-color: transparent; }
.btn { width: 100%; margin-top: 18px; padding: 13px; border: 0; border-radius: 12px; font: 700 17px "Vazirmatn", Tahoma, sans-serif;
       color: #fff; background: linear-gradient(135deg, #0c6e6e, #1b9c85); cursor: pointer; }
.btn.cancel { background: #5a6672; }
.status { min-height: 22px; margin-top: 12px; font-size: 14px; color: #c9d4de; text-align: center; }
.me { margin-top: 16px; font-size: 13px; color: #a8b5c2; text-align: center; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.recent button { background: #0f1720; color: #fff; border: 1px solid #2a3846; border-radius: 16px; padding: 5px 12px; cursor: pointer; font-family: inherit; direction: ltr; }
.info { margin-top: 18px; display: grid; gap: 8px; font-size: 13px; color: #a8b5c2; line-height: 1.8; }

.session { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
.bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #1e2536; flex-wrap: wrap; direction: rtl; }
.bar button { background: #2a3346; color: #fff; border: 0; border-radius: 8px; padding: 5px 10px; font: 13px "Vazirmatn", Tahoma, sans-serif; cursor: pointer; }
.bar button:hover { background: #3a4560; }
.bar button.danger { background: #b3261e; margin-inline-start: auto; }
.stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; outline: none; }
#screen { max-width: 100%; max-height: 100%; cursor: default; image-rendering: auto; background: #000; }
.waiting { position: absolute; color: #8a99a8; font-size: 15px; pointer-events: none; }
.notice { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(23,33,43,.92); color: #fff;
          padding: 8px 14px; border-radius: 10px; font-size: 14px; max-width: 90%; text-align: center; pointer-events: none; }

/* ── نوارِ اطلاعیه‌ها ── */
.news { display: flex; align-items: center; height: 34px; margin-top: 16px; border-radius: 17px; overflow: hidden; text-decoration: none; color: #fff;
        background: linear-gradient(90deg, rgba(12,110,110,.18), rgba(12,110,110,.42)); }
.news[hidden] { display: none; }
.news.link { cursor: pointer; }
.news-badge { flex: 0 0 auto; height: 100%; display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 700; border-radius: 17px; background: #0c6e6e; }
.news-track { position: relative; flex: 1; height: 100%; overflow: hidden; }
.news-text { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; animation: zd-news 16s linear infinite; }
.news.link .news-text { text-decoration: underline; text-underline-offset: 3px; }
.news:hover .news-text { animation-play-state: paused; }
@keyframes zd-news { from { right: -100%; } to { right: 100%; } }
@media (prefers-reduced-motion: reduce) { .news-text { animation: none; right: 8px; } }

/* ── حالتِ فقط مشاهده ── */
.view-badge { padding: 3px 10px; border-radius: 10px; background: #e65100; color: #fff; font-size: 12px; font-weight: 700; }
.view-badge[hidden] { display: none; }
.bar button.on { background: #e65100; color: #fff; }
