/*
 * WetMeFast Streaming  —  streaming.css v4.0
 * Instagram / Facebook Live aesthetic.
 * Dark video-first UI, controls overlaid on video.
 */

/* ================================================================
   GLOBAL TOKENS
================================================================ */
:root {
  --wmf-red:      #ed4956;
  --wmf-pink:     #e91e8c;
  --wmf-purple:   #7209b7;
  --wmf-blue:     #4cc9f0;
  --wmf-gold:     #ffd60a;
  --wmf-green:    #06d6a0;
  --wmf-bg:       #0a0a0f;
  --wmf-surface:  #13131a;
  --wmf-surface2: #1c1c28;
  --wmf-border:   rgba(255,255,255,.1);
  --wmf-text:     #f0f0f0;
  --wmf-muted:    rgba(255,255,255,.5);
  --wmf-grad:     linear-gradient(135deg,#e91e8c 0%,#7209b7 100%);
  --wmf-glass:    rgba(0,0,0,.55);
  --wmf-glass2:   rgba(255,255,255,.12);
}

/* ================================================================
   WRAP  —  the root container
================================================================ */
.wmf-wrap,
.wmf-wrap * {
  box-sizing: border-box;
}

.wmf-wrap {
  position: relative;
  width:    100%;
  background: #000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;

  /* Portrait video on mobile */
  aspect-ratio: 9 / 16;
  max-height: 92vh;
  border-radius: 0;
}

/* Desktop: landscape */
@media (min-width: 768px) {
  .wmf-wrap {
    aspect-ratio: 16 / 9;
    max-height: 85vh;
    border-radius: 12px;
  }
}

/* ================================================================
   BACKGROUND VIDEOS
================================================================ */
.wmf-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ================================================================
   BAR COMMON  (top & bottom overlays)
================================================================ */
.wmf-bar {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 20;
  pointer-events: none;
}

.wmf-bar > * {
  pointer-events: auto;
}

.wmf-bar-top {
  top: 0;
  padding-top: 14px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, transparent 100%);
}

.wmf-bar-left  { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.wmf-bar-right { display: flex; align-items: center; gap: 8px;  flex-shrink: 0; }

.wmf-bar-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1px;
  text-align: center;
  flex: 1;
}

/* ================================================================
   ICON BUTTON  (circular, glass)
================================================================ */
.wmf-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width:  38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.wmf-icon-btn svg { width: 18px; height: 18px; display: block; }

.wmf-icon-btn:hover  { background: rgba(255,255,255,.2); }
.wmf-icon-btn:active { transform: scale(.88); }

/* ================================================================
   LIVE PILL  &  VIEWER CHIP
================================================================ */
.wmf-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--wmf-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(237,73,86,.55);
}

.wmf-call-pill { background: var(--wmf-blue); box-shadow: 0 2px 8px rgba(76,201,240,.45); }

.wmf-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: wmfPulse 1.4s ease-in-out infinite;
}

@keyframes wmfPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.wmf-viewer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: default;
  border: none;
}

.wmf-viewer-chip svg { width: 14px; height: 14px; }

.wmf-timer-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .3px;
}

/* ================================================================
   HOST INFO PILL  (viewer top bar)
================================================================ */
.wmf-host-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  max-width: 180px;
  overflow: hidden;
  flex-shrink: 1;
}

.wmf-host-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}

.wmf-host-nm {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================================
   PRE-LIVE SCREEN
================================================================ */
.wmf-prelive-screen {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
}

/* Pre-live uses the actual video as background — just an overlay for controls */
.wmf-prelive-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px 24px;
  gap: 12px;
}

.wmf-prelive-hint {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-align: center;
}

.wmf-prelive-input {
  width: 100%;
  max-width: 340px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.wmf-prelive-input::placeholder { color: rgba(255,255,255,.4); }
.wmf-prelive-input:focus {
  border-color: rgba(233,30,140,.6);
  background: rgba(255,255,255,.16);
}

@media (max-width: 767px) {
  /* Prevent iOS zoom on input focus */
  .wmf-prelive-input { font-size: 16px; }
}

.wmf-prelive-footer {
  padding: 0 20px 28px;
  display: flex;
  justify-content: center;
}

.wmf-btn-golive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wmf-grad);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  padding: 15px 40px;
  cursor: pointer;
  letter-spacing: .2px;
  box-shadow: 0 6px 28px rgba(233,30,140,.5);
  transition: opacity .15s, transform .12s;
  min-width: 200px;
  justify-content: center;
}

.wmf-btn-golive:hover   { opacity: .9; }
.wmf-btn-golive:active  { transform: scale(.96); }
.wmf-btn-golive:disabled { opacity: .4; pointer-events: none; }

/* ================================================================
   LIVE UI OVERLAY  (host)
================================================================ */
.wmf-live-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.wmf-live-ui > * { pointer-events: auto; }

/* ================================================================
   VIEWER UI OVERLAY
================================================================ */
.wmf-viewer-ui,
.wmf-call-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.wmf-viewer-ui > *,
.wmf-call-ui > * { pointer-events: auto; }

/* ================================================================
   FLOATING MESSAGES
================================================================ */
.wmf-msgs-float {
  position: absolute;
  left: 0;
  right: 80px;   /* leave room for floating reactions */
  bottom: 165px; /* above host-bottom (chat row + control bar) */
  max-height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 14px;
  pointer-events: none;
  z-index: 15;
}

/* Viewer mode has shorter bottom bar */
.wmf-viewer-ui .wmf-msgs-float {
  bottom: 110px;
}

@media (min-width: 768px) {
  .wmf-msgs-float        { bottom: 160px; max-height: 260px; }
  .wmf-viewer-ui .wmf-msgs-float { bottom: 90px; }
}

.wmf-msg-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 6px 12px 6px 7px;
  font-size: 13px;
  max-width: 100%;
  align-self: flex-start;
  animation: wmfMsgIn .22s cubic-bezier(.34,1.56,.64,1);
  line-height: 1.35;
  pointer-events: auto;
}

@keyframes wmfMsgIn {
  from { opacity: 0; transform: translateY(8px) scale(.95); }
  to   { opacity: 1; transform: none; }
}

.wmf-msg-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 1px;
}

.wmf-msg-name { color: #f72585; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.wmf-msg-text { color: rgba(255,255,255,.9); word-break: break-word; }

.wmf-msg-row.wmf-msg-gift .wmf-msg-name { color: var(--wmf-gold); }
.wmf-msg-row.wmf-msg-gift .wmf-msg-text { color: #ffe97d; }

/* ================================================================
   HOST BOTTOM CONTROL BAR
================================================================ */
.wmf-host-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, transparent 100%);
  z-index: 20;
}

@media (min-width: 768px) {
  .wmf-host-bottom { padding: 10px 20px 20px; gap: 10px; }
}

.wmf-host-bar {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.wmf-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 60px;
  padding: 12px 8px 10px;
  background: rgba(30,30,40,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .12s, border-color .15s;
}

.wmf-ctrl-btn:hover  { background: rgba(60,60,80,.9); border-color: rgba(255,255,255,.35); }
.wmf-ctrl-btn:active { transform: scale(.9); }

.wmf-ctrl-btn:disabled { opacity: .4; cursor: not-allowed; }

.wmf-ctrl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  transition: background .15s;
}

.wmf-ctrl-icon svg { width: 22px; height: 22px; display: block; }

.wmf-ctrl-active .wmf-ctrl-icon  { background: rgba(255,255,255,.18); }
.wmf-ctrl-inactive .wmf-ctrl-icon { background: rgba(237,73,86,.35); }

.wmf-ctrl-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}

/* End/End Call — red */
.wmf-ctrl-end .wmf-ctrl-icon {
  background: rgba(237,73,86,.55);
  border: 1.5px solid rgba(237,73,86,.8);
}

.wmf-ctrl-end:hover .wmf-ctrl-icon { background: rgba(237,73,86,.8); }
.wmf-ctrl-end .wmf-ctrl-label       { color: #ff8a8a; }

/* Touch sizing on mobile */
@media (max-width: 767px) {
  .wmf-ctrl-btn  { min-width: 66px; }
  .wmf-ctrl-icon { width: 50px; height: 50px; }
  .wmf-ctrl-icon svg { width: 24px; height: 24px; }
}

/* ================================================================
   VIEWER BOTTOM BAR
================================================================ */
.wmf-viewer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 100%);
  z-index: 20;
}

@media (min-width: 768px) {
  .wmf-viewer-bar { padding: 12px 20px 18px; }
}

.wmf-chat-row {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  overflow: hidden;
  min-width: 0;
}

.wmf-chat-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  min-width: 0;
}

.wmf-chat-input::placeholder { color: rgba(255,255,255,.45); }

@media (max-width: 767px) {
  .wmf-chat-input { font-size: 16px; }  /* prevent iOS zoom */
}

.wmf-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--wmf-grad);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 2px 10px rgba(233,30,140,.4);
}

.wmf-send-btn svg     { width: 16px; height: 16px; }
.wmf-send-btn:hover   { opacity: .88; }
.wmf-send-btn:active  { transform: scale(.9); }

.wmf-viewer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wmf-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.wmf-action-btn svg    { width: 20px; height: 20px; }
.wmf-action-btn:hover  { background: rgba(255,255,255,.22); }
.wmf-action-btn:active { transform: scale(.88); }

.wmf-heart-btn:active { color: var(--wmf-red); }

/* ================================================================
   TOAST NOTIFICATION
================================================================ */
.wmf-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,30,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  z-index: 50;
  white-space: nowrap;
  pointer-events: none;
  animation: wmfToastIn .25s ease-out;
}

.wmf-toast-live   { border-color: rgba(237,73,86,.5);  color: #ff8a8a; }
.wmf-toast-warn   { border-color: rgba(255,214,10,.5); color: var(--wmf-gold); }
.wmf-toast-error  { border-color: rgba(237,73,86,.5);  color: var(--wmf-red); }
.wmf-toast-info   { border-color: rgba(76,201,240,.3); color: var(--wmf-blue); }

@keyframes wmfToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================================================================
   GIFT BURST
================================================================ */
.wmf-gift-layer {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.wmf-gift-burst {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: wmfBurstIn 2.8s cubic-bezier(.22,1,.36,1) forwards;
  pointer-events: none;
}

.wmf-burst-emoji {
  font-size: 90px;
  filter: drop-shadow(0 0 20px rgba(247,37,133,.7));
  display: block;
}

.wmf-burst-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--wmf-gold);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .3px;
}

@keyframes wmfBurstIn {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(-12deg); }
  18%  { opacity: 1; transform: translate(-50%,-60%) scale(1.35) rotate(4deg); }
  55%  { opacity: 1; transform: translate(-50%,-68%) scale(1.05); }
  85%  { opacity: .9; transform: translate(-50%,-72%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-85%) scale(.7); }
}

/* ================================================================
   FLOATING REACTIONS
================================================================ */
.wmf-reactions-layer {
  position: absolute;
  bottom: 100px;
  right: 16px;
  width: 50px;
  pointer-events: none;
  z-index: 40;
}

.wmf-float-reaction {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 30px;
  animation: wmfFloatUp 3s ease-out forwards;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

@keyframes wmfFloatUp {
  0%   { opacity: 0; transform: translateY(0)     scale(.6); }
  15%  { opacity: 1; transform: translateY(-12px)  scale(1.2); }
  70%  { opacity: .8; transform: translateY(-100px) scale(1); }
  100% { opacity: 0; transform: translateY(-180px) scale(.7); }
}

/* ================================================================
   ERROR BOX
================================================================ */
.wmf-error-box {
  padding: 48px 24px;
  text-align: center;
  color: var(--wmf-red);
  background: rgba(237,73,86,.06);
  border-radius: 14px;
  border: 1px solid rgba(237,73,86,.2);
}

/* ================================================================
   SPINNER
================================================================ */
.wmf-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--wmf-pink);
  border-radius: 50%;
  animation: wmfSpin .65s linear infinite;
  vertical-align: middle;
}

@keyframes wmfSpin { to { transform: rotate(360deg); } }

/* ================================================================
   GIFT MODAL  (slide-up sheet)
================================================================ */
.wmf-gift-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: wmfModalBgIn .2s ease-out;
}

@keyframes wmfModalBgIn {
  from { background: transparent; }
  to   { background: rgba(0,0,0,.72); }
}

.wmf-gift-box {
  background: var(--wmf-surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--wmf-border);
  padding: 20px 16px 28px;
  width: 100%;
  max-height: 76%;
  overflow-y: auto;
  animation: wmfSheetUp .28s cubic-bezier(.34,1.56,.64,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

@media (min-width: 768px) {
  .wmf-gift-modal { align-items: center; }
  .wmf-gift-box {
    width: 480px; max-width: 90%;
    max-height: 82%;
    border-radius: 20px;
    border-top: none;
    border: 1px solid var(--wmf-border);
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
  }
}

@keyframes wmfSheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.wmf-gift-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wmf-gift-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  border-radius: 3px;
  background: var(--wmf-grad);
}

.wmf-coin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255,214,10,.06);
  border: 1px solid rgba(255,214,10,.15);
  border-radius: 10px;
  margin-bottom: 14px;
}

.wmf-coin-balance-label { font-size: 13px; font-weight: 700; color: var(--wmf-gold); }

.wmf-get-coins-link {
  font-size: 11px; font-weight: 700;
  color: var(--wmf-pink);
  text-decoration: none;
  padding: 4px 10px;
  border: 1.5px solid var(--wmf-pink);
  border-radius: 14px;
  white-space: nowrap;
  transition: background .15s;
}

.wmf-get-coins-link:hover { background: rgba(233,30,140,.15); }

.wmf-gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wmf-gift-btn {
  background: var(--wmf-surface2);
  border: 1.5px solid var(--wmf-border);
  border-radius: 16px;
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--wmf-text);
  transition: background .15s, transform .12s, border-color .15s;
}

.wmf-gift-btn:hover  { border-color: rgba(233,30,140,.5); background: rgba(233,30,140,.1); }
.wmf-gift-btn:active { transform: scale(.93); }

.wmf-gift-emoji { font-size: 36px; line-height: 1; }
.wmf-gift-name  { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.75); text-align: center; }
.wmf-gift-price {
  font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.1);
  padding: 2px 8px; border-radius: 12px;
  color: var(--wmf-text);
}

.wmf-gift-insufficient { opacity: .32; cursor: not-allowed !important; }

/* ================================================================
   VIEWERS PANEL  (host moderation)
================================================================ */
.wmf-viewers-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: wmfModalBgIn .2s ease-out;
}

.wmf-viewers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.wmf-viewer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--wmf-surface2);
  border-radius: 12px;
  border: 1px solid var(--wmf-border);
}

.wmf-viewer-av-placeholder {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
  display: inline-block;
}

.wmf-viewer-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wmf-viewer-actions-row { display: flex; gap: 6px; flex-shrink: 0; }

.wmf-mod-btn {
  font-size: 11px; font-weight: 800;
  padding: 5px 12px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: opacity .15s;
}

.wmf-mod-kick {
  background: rgba(255,214,10,.15);
  color: var(--wmf-gold);
  border: 1px solid rgba(255,214,10,.3);
}

.wmf-mod-ban {
  background: rgba(237,73,86,.15);
  color: var(--wmf-red);
  border: 1px solid rgba(237,73,86,.3);
}

.wmf-mod-kick:hover { background: rgba(255,214,10,.28); }
.wmf-mod-ban:hover  { background: rgba(237,73,86,.28); }

.wmf-viewers-empty {
  text-align: center;
  color: var(--wmf-muted);
  font-size: 14px;
  padding: 24px 0;
}

/* ================================================================
   SHARED BUTTONS
================================================================ */
.wmf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}

.wmf-btn:hover  { opacity: .88; }
.wmf-btn:active { transform: scale(.96); }

.wmf-btn-primary { background: var(--wmf-grad); color: #fff; box-shadow: 0 4px 18px rgba(233,30,140,.4); }
.wmf-btn-danger  { background: linear-gradient(135deg,#ed4956,#b71c1c); color: #fff; }
.wmf-btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.25); color: var(--wmf-text); }
.wmf-btn-outline:hover { border-color: rgba(255,255,255,.45); }

.hidden { display: none !important; }

/* ================================================================
   BROWSE PAGE  (unchanged — shows grid of live streams)
================================================================ */
.wmf-browse-page { padding: 0; min-height: 60vh; }

.wmf-browse-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 16px 14px;
  background: linear-gradient(135deg, rgba(233,30,140,.08) 0%, rgba(114,9,183,.06) 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 12px;
}

.wmf-browse-title {
  font-size: 22px; font-weight: 900;
  background: var(--wmf-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.wmf-browse-sub { font-size: 12px; color: var(--wmf-muted); margin-top: 3px; }

.wmf-btn-go-live-sm {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wmf-grad); color: #fff; border: none;
  border-radius: 24px; font-size: 13px; font-weight: 800;
  padding: 10px 20px; cursor: pointer; text-decoration: none;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 20px rgba(233,30,140,.4);
  white-space: nowrap;
}

.wmf-btn-go-live-sm:hover  { opacity: .9; color: #fff; }
.wmf-btn-go-live-sm:active { transform: scale(.96); }

.wmf-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 12px 20px;
}

@media (min-width: 580px) { .wmf-rooms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .wmf-rooms-grid { grid-template-columns: repeat(4, 1fr); } }

.wmf-room-card {
  background: var(--wmf-surface2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.wmf-room-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.7); border-color: rgba(233,30,140,.35); }
.wmf-room-card:active { transform: scale(.97); }

.wmf-room-thumb { width: 100%; aspect-ratio: 9/16; position: relative; overflow: hidden; background: var(--wmf-surface); }
.wmf-room-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.wmf-room-card:hover .wmf-room-thumb img { transform: scale(1.06); }

.wmf-room-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(160deg, hsl(var(--card-hue,240),55%,14%), hsl(var(--card-hue,240),40%,9%));
}

.wmf-room-live-tag {
  position: absolute; top: 9px; left: 9px;
  background: var(--wmf-red); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .6px;
  padding: 3px 8px; border-radius: 5px;
  text-transform: uppercase;
  animation: wmfPulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(237,73,86,.5);
}

.wmf-room-viewers {
  position: absolute; top: 9px; right: 9px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 3px;
}

.wmf-room-bottom-grad {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 100%);
}

.wmf-room-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; }
.wmf-card-creator-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.wmf-card-creator-avatar { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); object-fit: cover; flex-shrink: 0; }
.wmf-card-creator-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmf-card-title { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wmf-card-shimmer { background: var(--wmf-surface2); border-radius: 12px; aspect-ratio: 9/16; overflow: hidden; position: relative; border: 1px solid var(--wmf-border); }
.wmf-card-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%); animation: wmfShimmer 1.4s ease-in-out infinite; }
@keyframes wmfShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.wmf-empty-state { grid-column: 1/-1; text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wmf-empty-icon { font-size: 64px; animation: wmfEmptyFloat 3s ease-in-out infinite; }
@keyframes wmfEmptyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.wmf-empty-title { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.7); }
.wmf-empty-sub   { font-size: 13px; color: var(--wmf-muted); }

/* ================================================================
   INCOMING CALL NOTIFICATION
================================================================ */
.wmf-incoming-call {
  position: fixed;
  bottom: 28px; right: 24px;
  background: var(--wmf-surface);
  border: 1px solid rgba(233,30,140,.3);
  border-radius: 20px;
  padding: 18px 20px;
  width: 300px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  z-index: 9999;
  display: flex; flex-direction: column; gap: 14px;
  animation: wmfSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes wmfSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.95); }
  to   { opacity: 1; transform: none; }
}

.wmf-incoming-ring {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  background: var(--wmf-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex; align-items: center; gap: 6px;
  animation: wmfRingFlash 1.2s ease-in-out infinite;
}

.wmf-incoming-ring::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wmf-pink); flex-shrink: 0;
  animation: wmfPulse 1.2s ease-in-out infinite;
  -webkit-text-fill-color: initial;
}

@keyframes wmfRingFlash { 0%,100% { opacity:1; } 50% { opacity:.5; } }

.wmf-incoming-caller { display: flex; align-items: center; gap: 12px; }
.wmf-incoming-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--wmf-pink); box-shadow: 0 0 0 4px rgba(233,30,140,.2); }
.wmf-incoming-name   { font-size: 17px; font-weight: 800; line-height: 1.2; }
.wmf-incoming-sub    { font-size: 12px; color: var(--wmf-muted); margin-top: 2px; }
.wmf-incoming-actions { display: flex; gap: 10px; }

.wmf-btn-accept {
  flex: 1; background: linear-gradient(135deg,#06d6a0,#07b082); color: #fff;
  border: none; border-radius: 12px; padding: 11px;
  font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 12px rgba(6,214,160,.4);
  transition: opacity .15s;
}

.wmf-btn-decline {
  flex: 1; background: linear-gradient(135deg,#ed4956,#b71c1c); color: #fff;
  border: none; border-radius: 12px; padding: 11px;
  font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 12px rgba(237,73,86,.4);
  transition: opacity .15s;
}

.wmf-btn-accept:hover,
.wmf-btn-decline:hover { opacity: .88; }

/* ================================================================
   LIVE STRIP  (in main feed)
================================================================ */
.wmf-live-strip {
  background: var(--wmf-surface); border-radius: 12px;
  margin-bottom: 14px; padding: 12px 14px 10px;
  border: 1px solid rgba(255,255,255,.06);
}

.wmf-live-strip-title {
  font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  background: var(--wmf-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}

.wmf-live-strip-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #f72585; flex-shrink: 0;
  animation: wmfPulse 2s ease-in-out infinite;
  -webkit-text-fill-color: initial;
}

.wmf-live-list {
  display: flex; gap: 14px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wmf-live-list::-webkit-scrollbar { display: none; }
.wmf-live-list li { flex: 0 0 auto; text-align: center; cursor: pointer; transition: transform .15s; }
.wmf-live-list li:hover { transform: scale(1.06); }
.wmf-live-avatar-wrap { position: relative; width: 60px; height: 60px; margin: 0 auto 5px; }
.wmf-live-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; outline: 2.5px solid #f72585; outline-offset: 2px; }
.wmf-live-badge {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  background: var(--wmf-red); color: #fff; font-size: 8px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px; letter-spacing: .5px;
}
.wmf-live-name { font-size: 11px; color: rgba(255,255,255,.75); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
