/* ==========================================================
   Közös nézés (js/social/watch.js) – sáv és chat a lejátszóban
   ========================================================== */

.wt-panel {
  position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 54px); right: 16px; z-index: 8;
  display: grid; justify-items: end; gap: 8px;
  max-width: min(360px, calc(100% - 32px));
  pointer-events: none;
}
.wt-panel > * { pointer-events: auto; }
.wt-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  padding: 6px 6px 6px 12px; border-radius: 999px;
  background: rgba(10, 10, 14, .78); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
}
.wt-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.wt-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: wt-pulse 1.8s infinite; }
@keyframes wt-pulse { 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.wt-members { display: inline-flex; align-items: center; }
.wt-members > span { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #0a0a0e; display: inline-flex; }
.wt-members > span:first-child { margin-left: 0; }
.wt-members em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .7); margin-left: 6px; }
.wt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; cursor: pointer;
}
.wt-btn:hover { background: rgba(255, 255, 255, .18); }
.wt-unseen { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); font-size: 11px; display: inline-grid; place-items: center; }

.wt-chat {
  width: min(340px, calc(100vw - 32px)); max-height: min(380px, 50vh);
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: rgba(10, 10, 14, .86); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.wt-chat[hidden] { display: none; }
.wt-msgs { list-style: none; flex: 1; min-height: 60px; overflow-y: auto; padding: 10px 12px; display: grid; gap: 6px; align-content: start; font-size: 13.5px; line-height: 1.4; color: #e6e6ea; overflow-wrap: anywhere; }
.wt-msgs b { color: #fff; }
.wt-msgs li.mine b { color: var(--accent-2); }
.wt-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.wt-form input { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13.5px; outline: none; }
.wt-form input:focus { border-color: var(--accent); }
.wt-form button { padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; }

/* meghívó ablak a lejátszón belül */
.wt-modal { position: absolute; z-index: 20; }
.wt-link { display: flex; gap: 8px; }
.wt-link input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text-2); font: inherit; font-size: 13px; }

/* YouTube módban a fejléc alá kerül; keskeny képernyőn kisebb */
.player.yt-mode .wt-panel { top: calc(64px + env(safe-area-inset-top) + 8px); }
@media (max-width: 640px) {
  .wt-panel { right: 8px; left: 8px; max-width: none; }
  .wt-live { display: none; }
}
