:root {
  font-family: ui-sans-serif, system-ui, sans-serif;
  --bg: #010101;
  --card: #18181b;
  --line: #27272a;
  --muted: #a1a1aa;
  --text: #f4f4f5;
  --accent: #fe2c55;
  --live: #fe2c55;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); min-height: 100%; }
body { min-height: 100vh; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar a { font-size: 13px; margin-left: 10px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--live); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px;
}
.live-badge.wait { background: #3f3f46; }
.meta-pill {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.55); padding: 6px 10px; border-radius: 999px;
  font-size: 13px; backdrop-filter: blur(8px);
}

.stage-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 168px;
  background: #000;
}
@media (max-width: 800px) {
  .stage-wrap { grid-template-columns: 1fr; }
}

.main-tile {
  position: relative;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}
.main-tile video, .main-tile .player {
  width: 100%; height: 100vh; object-fit: cover; background: #000;
}
.main-tile .player { position: absolute; inset: 0; }

.guest-rail {
  display: flex; flex-direction: column; gap: 10px;
  padding: 72px 10px 120px;
  background: linear-gradient(180deg, #050505 0%, #111 100%);
  border-left: 1px solid #1f1f1f;
}
@media (max-width: 800px) {
  .guest-rail {
    position: absolute; top: 64px; right: 10px; z-index: 8;
    width: 112px; padding: 0; background: none; border: 0;
  }
}
.guest-tile {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.guest-tile video, .guest-tile .player { width: 100%; height: 100%; object-fit: cover; }
.guest-tile .tag, .main-tile .host-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  background: rgba(0,0,0,0.6); padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.main-tile .host-tag { left: 16px; bottom: auto; top: 58px; }
.guest-tile .kick {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff;
}
.empty-guest {
  aspect-ratio: 9/16; border-radius: 14px;
  border: 1px dashed #3f3f46; color: var(--muted);
  display: grid; place-items: center; font-size: 11px; text-align: center; padding: 8px;
}

.overlay-chat {
  position: absolute; left: 12px; right: 180px; bottom: 88px; z-index: 6;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; max-height: 38vh; overflow: hidden; pointer-events: none;
}
@media (max-width: 800px) { .overlay-chat { right: 128px; bottom: 96px; } }
.chat-line {
  align-self: flex-start;
  background: rgba(0,0,0,0.42); padding: 6px 10px; border-radius: 12px;
  font-size: 14px; max-width: 100%; word-break: break-word;
}
.chat-line b { color: #ffd0d8; margin-right: 6px; font-weight: 700; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; gap: 8px; align-items: center;
  padding: 12px 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
}
.dock input {
  flex: 1; border: 0; border-radius: 999px; padding: 12px 16px;
  background: rgba(255,255,255,0.12); color: #fff; outline: none;
}
.dock .icon {
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 20px;
}
.dock .icon.hot { background: var(--accent); }

.hearts { position: absolute; right: 188px; bottom: 96px; z-index: 7; pointer-events: none; }
@media (max-width: 800px) { .hearts { right: 16px; } }
.heart {
  position: absolute; bottom: 0; right: 0; font-size: 22px;
  animation: floatHeart 1.6s ease-out forwards;
}
@keyframes floatHeart {
  to { transform: translate(-20px, -140px) scale(1.4); opacity: 0; }
}

.panel {
  position: fixed; z-index: 30; right: 14px; top: 64px;
  width: min(320px, calc(100vw - 28px));
  background: rgba(20,20,22,0.92); border: 1px solid #2a2a2e;
  border-radius: 16px; padding: 14px; backdrop-filter: blur(12px);
}
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.panel label { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.panel input, .panel button {
  width: 100%; margin: 6px 0; padding: 10px; border-radius: 10px; border: 0;
}
.panel input { background: #09090b; color: #fff; }
.panel button { background: var(--accent); color: #fff; font-weight: 700; }
.panel button.secondary { background: #3f3f46; }
.req {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #2a2a2e; font-size: 13px;
}
.req button { width: auto; margin: 0; padding: 6px 10px; }
.id-box {
  padding: 8px; border-radius: 8px; background: #09090b;
  font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all;
}
.muted { color: var(--muted); font-size: 13px; }
.status-line { margin: 8px 0 0; font-size: 13px; color: #e4e4e7; }

.hub { max-width: 520px; margin: 72px auto; padding: 0 16px; }
.hub h1 { font-size: 26px; margin: 0 0 8px; }
.hub p { color: var(--muted); }
.hub a.card {
  display: block; margin: 12px 0; padding: 16px; border-radius: 14px;
  background: #141416; border: 1px solid #27272a; color: inherit;
}
.hub a.card:hover { border-color: #52525b; }
.hub header, header.plain {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
