/* Extras for the live demo only: the notice bar and the fake stream player. */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  min-height: 36px; padding: 6px 16px; background: var(--surface); border-bottom: 1px solid var(--sep);
  color: var(--text-2); font-size: 13px; text-align: center;
}
.demo-bar b { color: var(--text); font-weight: 600; }
.demo-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: demo-pulse 1.6s ease-in-out infinite; }
.demo-bar a { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
@keyframes demo-pulse { 50% { opacity: .35; } }

.demo-player-bg {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .7); animation: fade .2s var(--ease);
}
.demo-player {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "video chat" "meta chat";
  width: min(1180px, 100%); max-height: calc(100dvh - 40px); overflow: hidden;
  border-radius: var(--r-card); background: var(--surface); animation: sheetIn .35s var(--spring);
}
.demo-video { grid-area: video; position: relative; aspect-ratio: 16 / 9; background: #000; }
.demo-video img { width: 100%; height: 100%; display: block; }
.demo-video .live-badge { position: absolute; left: 12px; top: 12px; }
.demo-meta { grid-area: meta; display: grid; gap: 2px; padding: 14px 18px 18px; }
.demo-meta b { font-size: 17px; }
.demo-meta span, .demo-meta p { color: var(--text-2); font-size: 13px; margin: 0; }
.demo-chat { grid-area: chat; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--sep); }
.demo-chat header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--sep); font-size: 13px; }
.demo-chat ol { flex: 1; min-height: 0; margin: 0; padding: 10px 16px; list-style: none; overflow-y: auto; font-size: 13px; line-height: 1.45; }
.demo-chat li { padding: 3px 0; overflow-wrap: anywhere; animation: fade .25s var(--ease); }
.demo-chat footer { padding: 10px 16px; border-top: 1px solid var(--sep); color: var(--text-3); font-size: 12px; }
.demo-x { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--text); font-size: 18px; line-height: 1; }
.demo-x:hover { background: var(--fill-hover); }

@media (max-width: 760px) {
  .demo-player { grid-template-columns: 1fr; grid-template-areas: "video" "meta" "chat"; }
  .demo-chat { border-left: 0; border-top: 1px solid var(--sep); height: 34dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-bar .dot, .demo-player, .demo-chat li { animation: none; }
}

@media (max-width: 760px) {
  .demo-bar { gap: 8px; font-size: 12px; }
  .demo-bar > span:not(.dot) { display: none; }
}
