/* RadioExtasy Chat V2.8.4: Neon-Segmentleiste, design-only and accessible.
   Loaded after app.css and stream-volume.css so existing code stays untouched. */

#chatForm.composer {
  gap: clamp(4px, .65vw, 9px);
  padding-block: 5px;
  min-width: 0;
}

#chatForm .rx-composer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid rgba(248, 95, 218, .8);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(120,49,152,.46), rgba(34,12,54,.85));
  box-shadow: inset 0 1px 0 rgba(255,221,255,.17), 0 0 0 1px rgba(130,36,171,.16), 0 2px 16px rgba(195,39,169,.22);
  white-space: nowrap;
}

#chatForm .rx-composer-actions > .composer-tool {
  box-sizing: border-box;
  display: inline-grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  width: 39px;
  min-width: 39px !important;
  height: 39px;
  border: 1px solid rgba(225,145,255,.33) !important;
  border-radius: 12px !important;
  color: #fff0ff !important;
  background: linear-gradient(160deg, rgba(141,71,167,.59), rgba(63,29,87,.8)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.19), inset 0 -2px 0 rgba(58,7,74,.2);
  font: 750 22px/1 system-ui, sans-serif;
  text-shadow: 0 0 8px rgba(250,179,255,.4);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

#chatForm .rx-composer-actions > .gif-tool {
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .025em;
  text-shadow: none;
}

#chatForm .rx-composer-actions > .gif-upload-tool {
  font-size: 29px !important;
  font-weight: 500 !important;
  background: linear-gradient(142deg, #9b257f, #d322ad 67%, #b72bd3) !important;
  border-color: #ff7ee5 !important;
  box-shadow: inset 0 1px 0 rgba(255,247,255,.3), 0 0 12px rgba(235,49,191,.35);
}

#chatForm .rx-composer-actions > .composer-tool:hover:not([hidden]) {
  transform: translateY(-1px);
  background: linear-gradient(155deg, #a04cc5, #6d2a90) !important;
  border-color: #ffb7f4 !important;
  box-shadow: 0 0 14px rgba(241,93,219,.4), inset 0 1px 0 rgba(255,255,255,.23);
}

#chatForm .rx-composer-actions > .gif-upload-tool:hover:not([hidden]) {
  background: linear-gradient(145deg, #f34abb, #bc26d3) !important;
}

#chatForm .rx-composer-actions > .composer-tool:active {
  transform: translateY(1px);
  filter: brightness(.95);
}

#chatForm .rx-composer-actions > .composer-tool:focus-visible {
  outline: 3px solid #83eeff !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(27,15,44,.9), 0 0 17px rgba(102,237,255,.5) !important;
}

#chatForm .rx-composer-actions > .composer-tool[aria-expanded="true"] {
  border-color: #ff9eef !important;
  background: linear-gradient(145deg, #a63aaf, #6d287e) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 13px rgba(231,64,210,.33);
}

#chatForm .rx-composer-actions > .composer-tool[hidden] {
  display: none !important;
}

@media (max-width: 650px) {
  #chatForm.composer { gap: 5px; padding: 5px; }
  #chatForm .rx-composer-actions { gap: 3px; padding: 3px; border-radius: 13px; }
  #chatForm .rx-composer-actions > .composer-tool {
    width: 33px;
    min-width: 33px !important;
    height: 34px;
    border-radius: 9px !important;
    font-size: 19px !important;
  }
  #chatForm .rx-composer-actions > .gif-tool { font-size: 10px !important; }
  #chatForm .rx-composer-actions > .gif-upload-tool { font-size: 26px !important; }
}

@media (max-width: 370px) {
  #chatForm.composer { gap: 3px; padding-inline: 3px; }
  #chatForm .rx-composer-actions { gap: 2px; padding: 2px; }
  #chatForm .rx-composer-actions > .composer-tool {
    width: 30px; min-width: 30px !important; height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chatForm .rx-composer-actions > .composer-tool { transition: none !important; }
}

@media (forced-colors: active) {
  #chatForm .rx-composer-actions { border: 1px solid CanvasText; background: Canvas; }
  #chatForm .rx-composer-actions > .composer-tool { color: ButtonText !important; border: 1px solid ButtonText !important; background: ButtonFace !important; }
  #chatForm .rx-composer-actions > .composer-tool:focus-visible { outline: 3px solid Highlight !important; }
}
