/* Modo embed ? chat exclusivo por webradio (slug radio-PORTA) */

.radio-embed-mode .chat-list-col,
.radio-embed-mode .selected-chat-col,
.radio-embed-mode .chat-room-selector,
.radio-embed-mode .mobile-chat-list-toggle,
.radio-embed-mode .all-room-unread,
.radio-embed-mode #auth-modal {
  display: none !important;
}

.radio-embed-mode .chat-messages-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.radio-embed-mode #content-wrapper {
  width: 100% !important;
}

.radio-embed-mode .message-card-body:has(.radio-guest-join) .chat-scroll {
  display: none !important;
}

.radio-embed-mode .message-card-body:has(.radio-guest-join) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
}

.radio-embed-mode .radio-guest-join {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 2rem) !important;
  max-width: 380px !important;
  height: auto !important;
  display: block !important;
  flex-direction: column !important;
  flex: none !important;
  z-index: 100;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: center;
  padding: 2rem 1.75rem 1.75rem;
  margin: 0 !important;
}

.radio-embed-mode .radio-guest-join p,
.radio-embed-mode .radio-guest-title {
  margin: 0 0 1.25rem 0 !important;
  align-self: auto !important;
  margin-left: 0 !important;
}

.radio-embed-mode .radio-guest-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

.radio-embed-mode .radio-guest-form {
  width: 100%;
}

.radio-embed-mode .radio-guest-input {
  border-radius: 10px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

.radio-embed-mode .radio-guest-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.radio-embed-mode .radio-guest-btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: none !important;
}

.radio-embed-mode .radio-embed-user-name {
  color: #5eead4;
  font-weight: 600;
  font-size: 0.875rem;
}

.radio-embed-mode .nav-logo .logo {
  pointer-events: none;
  cursor: default;
}

.radio-embed-mode .nav-logo .logo .radio-embed-logo {
  max-height: 42px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.radio-embed-mode .nav-logo .logo .small {
  display: none !important;
}

.radio-embed-mode .chat-nav .chat-header {
  flex: 1;
  text-align: center;
}

.radio-embed-mode.boxed-wrapper {
  max-width: 100% !important;
}

.radio-embed-mode .radio-guest-join .alert {
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.radio-embed-mode .chat-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 56px;
  padding: 4px 0.75rem;
}

.radio-embed-mode .chat-nav .chat-header {
  flex: 0 1 auto;
  min-width: 72px;
  overflow: hidden;
}

.radio-embed-mode .chat-nav .chat-title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-embed-topo-player {
  flex: 1 1 auto;
  max-width: 380px;
  min-width: 120px;
  line-height: 0;
  margin: 0 0.25rem;
}

.radio-embed-topo-player iframe {
  display: block;
  width: 100%;
  height: 50px;
  border: 0;
}

.radio-embed-mode .chat-nav .ml-auto {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .radio-embed-mode .chat-nav .chat-header {
    display: none;
  }

  .radio-embed-topo-player {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .radio-embed-topo-player {
    max-width: 160px;
    min-width: 100px;
  }

  .radio-embed-mode .radio-embed-user-name {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.radio-embed-mode .message-data.grp .sender-name {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 4px;
  padding: 4px 8px 0;
}

.radio-embed-mode .sent .message-data.grp .sender-name {
  color: #5eead4;
  text-align: right;
}

.radio-embed-mode .replies .message-data.grp .sender-name {
  color: #94a3b8;
  text-align: left;
}

.radio-embed-mode .message-card-body:not(:has(.radio-guest-join)) {
  display: block;
  min-height: 0;
}
