/* Injected by announcement.js above the header when there's an active broadcast. */
.lylib-announce {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 44px 12px 18px;
  background: linear-gradient(90deg, var(--primary, #6366f1) 0%, var(--accent, #ec4899) 100%);
  color: #ffffff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  box-sizing: border-box;
  z-index: 500;
  animation: lylib-announce-in 0.35s ease;
}

@keyframes lylib-announce-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lylib-announce-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.lylib-announce-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lylib-announce-text {
  overflow-wrap: break-word;
  word-break: break-word;
}

.lylib-announce-image {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

.lylib-announce-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.lylib-announce-file:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lylib-announce-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lylib-announce-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
  .lylib-announce {
    padding: 10px 40px 10px 14px;
    font-size: 0.85rem;
  }
}
