/* Screen tab + the "is sharing" bar shown on the other tabs. */
.tab { position: relative; }
.tab-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ff4e45; box-shadow: 0 0 0 2px var(--bg); animation: tab-dot 1.6s ease-in-out infinite; }
@keyframes tab-dot { 50% { opacity: .35; } }

.share-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 16px; background: #14304a; border-bottom: 1px solid var(--long); }
.share-x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.share-x:hover { color: var(--text); }
body.yt .share-bar { background: #272727; border-bottom: 0; color: #f1f1f1; }

.scr { max-width: 1500px; margin: 0 auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.scr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.scr-title { margin-right: auto; min-width: 0; }
.scr-title h2 { margin: 0; color: var(--text); font-size: 1.1rem; }
.scr-title span { display: block; min-height: 1.3em; }
.scr-timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.scr-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.scr-seg button { background: var(--card2); border: 0; color: var(--muted); padding: 9px 12px; cursor: pointer; font-size: .9rem; }
.scr-seg button + button { border-left: 1px solid var(--line); }
.scr-seg button[aria-pressed="true"] { background: var(--text); color: #111; font-weight: 600; }

.scr-stage { position: relative; height: calc(100dvh - 142px); min-height: 280px; background: #000; border-radius: var(--r); overflow: hidden; }
.scr-stage:fullscreen { border-radius: 0; height: 100%; }
#scrVideo { display: block; width: 100%; height: 100%; object-fit: contain; }
.scr-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--muted); }
.scr-empty b { color: var(--text); font-size: 1.15rem; font-weight: 600; }
.scr-unmute { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 8px 14px; border: 0; border-radius: 18px; background: #fff; color: #111; font-weight: 600; cursor: pointer; }
.scr-mine { position: absolute; right: 12px; top: 12px; z-index: 2; width: min(240px, 34%); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 4px 18px rgba(0,0,0,.6); }
.scr-mine video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.scr-mine span { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; }
.scr-bar { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .15s; }
.scr-stage:hover .scr-bar, .scr-bar:focus-within { opacity: 1; }
.scr-vol { display: flex; align-items: center; gap: 6px; color: #fff; font-size: .9rem; }
.scr-vol input { width: 90px; padding: 0; accent-color: #fff; }

@media (hover: none) { .scr-bar { opacity: 1; } }
@media (max-width: 820px) {
  .scr-stage { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .scr-title { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tab-dot { animation: none; } .scr-bar { transition: none; } }
