/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f6f6;
  color: #222;
}

a {
  text-decoration: none;
}

/* =========================
   CHAT CONTAINER (CENTERED + OUTLINE)
========================= */
.chat-container {
  width: 100%;
  max-width: 480px;
  margin: 16px auto;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #111;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* =========================
   CHAT HEADER
========================= */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #841617;
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;
}

/* Logo link */
.header-logo-link {
  display: flex;
  align-items: center;
}

/* Logo image */
.header-logo {
  height: 32px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

/* Title */
.header-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   LIVE / OFFLINE BADGE (FINAL)
========================= */
.live-badge {
  margin-left: auto;            /* pushes badge to right */
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.5);
  background: #666;
  color: #fff;
  transition: all 0.25s ease;
}

.live-badge.live {
  background: #ff2d2d;
  color: #fff;
  box-shadow: 0 0 8px rgba(255,45,45,0.8);
}

.live-badge.offline {
  background: #777;
  color: #eee;
}

/* =========================
   LIVE CTA (LISTEN + DONATE)
========================= */
.live-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 12px;
}

.live-cta button {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#listenLiveBtn {
  background: #b30000;
  color: #fff;
}

#donateBtn {
  background: #ffd54f;
  color: #111;
}

/* =========================
   CHAT MESSAGES (SCROLL AREA)
========================= */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #fdfdfd;
}

.message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
}

.message.bot {
  background: #f0f0f0;
}

.message.user {
  background: #841617;
  color: #fff;
  margin-left: auto;
}

.message.video {
  padding: 6px;
  background: transparent;
}

.message.video iframe {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* =========================
   FAN MESSAGE PANEL
========================= */
.fan-message-panel {
  margin: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* Header */
.fan-message-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  color: #b30000;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

/* Inputs */
.fan-message-panel input,
.fan-message-panel textarea {
  width: 100%;
  margin: 10px 0;
  padding: 9px 11px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Send button */
#sendFanMessage {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: #b30000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#sendFanMessage:hover {
  opacity: 0.9;
}

/* Status text */
.fan-message-status {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}

/* =========================
   CHAT INPUT (BOTTOM)
========================= */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 14px;
  border: none;
  font-size: 1rem;
}

.chat-input button {
  background: #841617;
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 1.2rem;
  cursor: pointer;
}
