/* Live-stream additions. Uses the playdd.online design tokens from styles.css (colors, fonts, buttons). */
body.live-body { padding-bottom: 0; }
.live-section { padding: 2rem 0 1rem; position: relative; }
.live-titlebar { text-align: left; margin-bottom: 1rem; }
.live-titlebar .section-title { margin: 0.2rem 0 0; text-align: left; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: stretch; }
.player-card, .chat-card {
  background: linear-gradient(180deg, rgba(10,14,31,.92), rgba(5,7,15,.96));
  border: 1px solid rgba(0,229,255,.22); box-shadow: 0 0 36px rgba(176,38,255,.14);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.player-card { padding: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.player-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.player-badge { position: absolute; top: .6rem; left: .6rem; padding: .25rem .6rem; font: 800 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; background: rgba(0,0,0,.7); border: 1px solid var(--cyan); color: var(--cyan-hot); }
.player-badge.is-live { border-color: var(--magenta); color: #fff; background: rgba(255,43,214,.35); }
.player-offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  background: radial-gradient(ellipse at center, rgba(2,4,10,.78), rgba(2,4,10,.95)), url(assets/dd-hero-power.jpg) center / cover; }
.player-offline img { filter: drop-shadow(0 0 16px rgba(0,229,255,.6)); }
.offline-title { margin: .5rem 0 0; font: 800 1.4rem var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.offline-sub { margin: 0; color: var(--muted); }
.player-note { margin: 0; font-size: .82rem; color: var(--muted); }

.chat-card { display: flex; flex-direction: column; min-height: 420px; padding: .85rem; gap: .6rem; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; }
.chat-head h2 { margin: 0; font: 800 1.05rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.chat-viewers { font-size: .78rem; color: var(--muted); }
.chat-log { list-style: none; margin: 0; padding: .4rem; flex: 1 1 auto; min-height: 150px; max-height: 360px; overflow-y: auto; border: 1px solid rgba(0,229,255,.12); border-radius: 8px; background: rgba(2,4,10,.6); font-size: .9rem; }
.chat-log li { padding: .2rem 0; word-break: break-word; }
.chat-log .who { color: var(--cyan-hot); font-weight: 700; margin-right: .35rem; }
.chat-log .sys { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: .5rem; }
.chat-form input { flex: 1; min-height: 44px; padding: .5rem .7rem; font-size: 16px; border-radius: 8px; border: 1px solid rgba(0,229,255,.3); background: rgba(5,7,15,.95); color: var(--silver); font-family: var(--font-body); }
.chat-form input:focus { outline: 2px solid var(--cyan-hot); outline-offset: 2px; }
.chat-error { margin: 0; color: var(--danger); font-size: .82rem; }
.chat-signup { border-top: 1px solid rgba(0,229,255,.15); padding-top: .6rem; overflow-y: auto; }
.chat-signup-lead { margin: 0 0 .6rem; font-size: .85rem; color: var(--silver); }
.chat-signup .signup-field { margin-bottom: .6rem; }
.chat-signup .signup-field input { min-height: 42px; }
.chat-signup .btn { width: 100%; }
.privacy-note { margin: .6rem 0 0; font-size: .72rem; line-height: 1.45; color: var(--muted); }
.signup-status { min-height: 1.1em; margin: .4rem 0 0; font-size: .82rem; color: var(--danger); }
.signup-status.ok { color: var(--cyan-hot); }
.chat-whoami { font-size: .8rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--cyan-bright); cursor: pointer; font: inherit; text-decoration: underline; }

.store-hero-block { padding: 2.5rem 0 0; margin-top: 1.5rem; border-top: 1px solid rgba(0,229,255,.12); }
.store-hero-block .store-hero-inner { text-align: center; }
.store-hero-block .section-lead { margin-bottom: 1rem; }

/* ---- Streamer login / stage pages ---- */
.stage-page { padding: 2.5rem 0 3rem; }
.auth-wrap { width: min(460px, calc(100% - 2rem)); margin: 0 auto; text-align: center; }
.auth-wrap h1 { font: 900 2rem var(--font-display); margin: .2rem 0 .4rem; text-transform: uppercase; }
.auth-wrap .lede { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.auth-card { text-align: left; padding: 1.2rem 1rem 1.35rem; background: rgba(2,4,10,.72); border: 1px solid rgba(0,229,255,.2); box-shadow: 0 0 28px rgba(176,38,255,.12);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); margin-bottom: 1rem; }
.auth-card h2 { margin: 0 0 .7rem; font: 800 1.05rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.auth-card .btn { width: 100%; }
.auth-note { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; }
.msg-err { color: var(--danger); } .msg-ok { color: var(--cyan-hot); }

.stage-shell { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.stage-top h1 { margin: 0; font: 900 1.7rem var(--font-display); text-transform: uppercase; }
.stage-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--cyan); color: var(--cyan-hot); font: 800 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.stage-pill.live { border-color: var(--magenta); background: rgba(255,43,214,.3); color: #fff; }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.canvas-wrap { background: #000; border: 1px solid rgba(0,229,255,.25); box-shadow: 0 0 36px rgba(176,38,255,.18); }
.canvas-wrap canvas { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; }
.side-card { background: rgba(8,11,24,.9); border: 1px solid rgba(0,229,255,.2); padding: .8rem; margin-bottom: .8rem; }
.side-card h2 { margin: 0 0 .5rem; font: 800 .9rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-hot); }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .88rem; }
.side-card li:last-child { border-bottom: 0; }
.mini { padding: .3rem .6rem; font: 700 .7rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; border: 1px solid rgba(0,229,255,.4); background: rgba(0,229,255,.08); color: var(--silver); cursor: pointer; }
.mini:hover { background: rgba(0,229,255,.2); } .mini.danger { border-color: rgba(244,114,182,.6); color: var(--danger); }
.stage-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.stage-actions .btn { padding: .65rem 1rem; font-size: .8rem; }
.empty { color: var(--muted); font-size: .85rem; }
.stage-log { font-size: .78rem; color: var(--muted); max-height: 110px; overflow: auto; }
.secret-once { display: block; margin-top: .4rem; padding: .4rem .5rem; background: rgba(0,229,255,.08); border: 1px dashed var(--cyan); font-family: ui-monospace, monospace; font-size: .85rem; word-break: break-all; }
.stage-video-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.self-preview { width: 100%; background: #000; aspect-ratio: 16/9; }
.field-inline { display: flex; gap: .4rem; margin: .3rem 0; }
.field-inline input { flex: 1; min-height: 36px; padding: .3rem .5rem; border-radius: 6px; border: 1px solid rgba(0,229,255,.3); background: rgba(5,7,15,.95); color: var(--silver); font-size: 14px; min-width: 0; }

@media (max-width: 960px) {
  .live-grid, .stage-layout { grid-template-columns: 1fr; }
  .chat-card { min-height: 460px; }
}
[hidden] { display: none !important; }

/* Stage: host-enforced state on the guest's own screen, layout controls */
.host-state-badge { display: inline-block; margin: .6rem 0 0; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 92, 92, .6); background: rgba(255, 60, 60, .12); color: #ffb3b3; font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
#composite { cursor: pointer; }
.mini-row { display: inline-flex; flex-wrap: wrap; gap: 2px; }
/* Discreet link to the host Hub: a single period after the footer links, same color as the footer text, no underline. */
.footer-links a.hub-dot, .footer-links a.hub-dot:hover, .footer-links a.hub-dot:focus, .footer-links a.hub-dot:visited { color: inherit; text-decoration: none; cursor: default; }
