/* Fluxer Mods: Stream Zoom HUD + Telegram-style Sticker Packs */

.flx-zoom-hud {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(15, 17, 22, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0.55;
  pointer-events: auto;
  transition: opacity 0.16s ease;
  user-select: none;
}

.flx-zoom-container:hover .flx-zoom-hud,
.flx-zoom-container.flx-zoom-active .flx-zoom-hud,
.flx-zoom-hud:focus-within {
  opacity: 1;
}

.flx-zoom-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #eef1f7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.flx-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.flx-zoom-btn.is-on {
  background: #5865f2;
  color: #fff;
}

.flx-zoom-pct {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Composer Trigger Button */
.flx-stk-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--interactive-normal, #b5bac1);
  cursor: pointer;
  padding: 0;
  margin: 0 2px;
  transition: color 0.12s ease, background 0.12s ease;
  flex-shrink: 0;
}

.flx-stk-trigger:hover,
.flx-stk-trigger.is-open {
  color: var(--interactive-hover, #ffffff);
  background: rgba(255, 255, 255, 0.08);
}

/* Sticker Drawer */
.flx-stk-drawer {
  position: fixed;
  width: 410px;
  max-width: calc(100vw - 24px);
  height: 460px;
  max-height: calc(100vh - 96px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #1e1f24;
  color: #f2f3f5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-family: inherit;
}

.flx-stk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #24262d;
}

.flx-stk-search {
  flex: 1;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f3f5;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

.flx-stk-search:focus {
  border-color: #5865f2;
}

.flx-stk-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #202228;
}

.flx-stk-tab {
  border: none;
  background: transparent;
  color: #b5bac1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.flx-stk-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.flx-stk-tab.active {
  background: #5865f2;
  color: #fff;
}

.flx-stk-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

.flx-stk-pack-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1b20;
}

.flx-stk-pack-chip {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbdee1;
  font-size: 13px;
}

.flx-stk-pack-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.flx-stk-pack-chip.active {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.22);
}

.flx-stk-pack-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flx-stk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #dbdee1;
}

.flx-stk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.flx-stk-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background 0.12s ease;
}

.flx-stk-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
}

.flx-stk-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.flx-stk-star {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #b5bac1;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  padding: 0;
  transition: opacity 0.12s ease, color 0.12s ease;
}

.flx-stk-item:hover .flx-stk-star,
.flx-stk-star.is-fav {
  opacity: 1;
}

.flx-stk-star.is-fav {
  color: #faa61a;
}

.flx-stk-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #5865f2;
  color: #fff;
}

.flx-stk-btn:hover {
  filter: brightness(1.1);
}

.flx-stk-btn.secondary {
  background: #2e313a;
  color: #e3e5e8;
}

.flx-stk-btn.danger {
  background: #da373c;
  color: #fff;
}

.flx-stk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.flx-stk-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flx-stk-input {
  width: 100%;
  box-sizing: border-box;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f2f3f5;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

.flx-stk-card {
  background: #262830;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.flx-stk-msg-wrap {
  position: relative;
  display: inline-block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 176px !important;
}

.flx-stk-msg-img {
  width: 164px !important;
  height: auto !important;
  max-width: 164px !important;
  max-height: 164px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 6px !important;
}

.flx-stk-msg-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.14s ease;
  z-index: 20;
}

.flx-stk-msg-wrap:hover .flx-stk-msg-actions,
.flx-stk-native-wrap:hover .flx-stk-msg-actions {
  opacity: 1;
}

.flx-stk-msg-act {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 17, 22, 0.85);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  padding: 3px 6px;
  cursor: pointer;
}

.flx-stk-msg-act:hover {
  background: #5865f2;
}

.flx-stk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.flx-stk-modal {
  width: 460px;
  max-width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #1e1f24;
  color: #f2f3f5;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.flx-stk-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  background: #18191d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
