* {
  box-sizing: border-box;
}


#ticker-container {
  width: 100%;
  max-width: 800px;
  height: 60px;
  overflow: hidden;
  border: 2px solid #5a5ac6;
  background: linear-gradient(135deg, #c0d8f8, #ffffff);
  margin: 10px auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#ticker-label {
  font-weight: 700;
  color: #ffffff;
  background: #2143ee;
  padding: 6px 14px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-right: 12px;
  z-index: 2;
  font-size: 18px;
  text-transform: uppercase;
}

#ticker-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 1.8em;
}

.msg-gap {
  display: inline-block;
  width: 60px;
  flex-shrink: 0;
}

#ticker {
  display: flex;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.ticker-content {
  display: inline-block;
  padding-right: 60px;
  font-size: 18px;
  color: #2906b2;
  font-weight: 500;
}

.error {
  color: #4d4d4d;
  font-style: italic;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 600px) {
  #ticker-container { 
    height: 50px; 
    padding: 8px 10px; 
    margin: 5px auto; 
  }
  #ticker-label { 
    font-size: 16px; 
    padding: 5px 10px; 
  }
  .ticker-content, .error { 
    font-size: 16px; 
  }
}