:root {
  --bg-color: rgba(0, 0, 0, 0.00);
  --font-color: #ffffff;
  --highlight-color: #ffffff;
  --control-padding: 12px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--font-color);
  font-family: Arial, sans-serif;
}

#webradio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
  border: 0px solid var(--highlight-color);
  padding: 0px;
  height: 60px;
  position: relative;
}

#audio-playbutton {
  padding-left: var(--control-padding);
  margin-right: 5px;
  z-index: 2;
}

.icon-button {
  background: none;
  border: none;
  color: var(--font-color);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  transform: scale(1.1);
}

#title-container {
  flex-grow: 1;
  margin: 0 10px;
  height: 40px;
  min-width: 0;
  position: relative;
}

#radio-name {
  font-size: 10pt;
  color: var(--font-color);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#radio-name-display {
  overflow: hidden;
  white-space: nowrap;
  height: 16px;
  position: relative;
}

#scrolling-radio-name {
  font-size: 10pt;
  color: var(--font-color);
  position: absolute;
  white-space: nowrap;
  left: 0;
}

#scrolling-radio-name.scroll {
  animation: scroll-text 15s linear infinite;
  transform: translateX(100%);
}

#title-display {
  overflow: hidden;
  white-space: nowrap;
  height: 24px;
  position: relative;
}

#scrolling-title {
  font-size: 11pt;
  color: var(--font-color);
  position: absolute;
  white-space: nowrap;
  left: 0;
}

#scrolling-title.scroll {
  animation: scroll-text 15s linear infinite;
  transform: translateX(100%);
}

#scrolling-title.error {
  color: #ff6666;
  animation: none;
  transform: translateX(0);
}

@keyframes scroll-text {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

#volume-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

#volume-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#volume-control-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

#vol-control {
  flex-grow: 1;
  cursor: pointer;
  accent-color: var(--highlight-color);
  text-decoration: none;
  outline: none;
}

#audio-vol {
  padding-right: var(--control-padding);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}

#volume-percent {
  font-size: 10pt;
  min-width: 30px;
}