/* RCR Radio Player v1.0 
 * RadioPlayer cu date și statistici în timp real pentru Radio Click România
 * Autor BaiatRau on IRC RomaniaChat - https://baiatrau.pages.dev
*/

/* FOOTER */
.radio-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 -5px 25px rgba(0,0,0,.8);
  z-index: 9999;
}

.radio-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-artwork);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.4);
  opacity: 0.85;
  z-index: -1;
  transition: background-image .6s ease;
}

/* CONTAINER */
.player-container {
 /* max-width: 1200px; */
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LEFT */
.radio-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.radio-left img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.radio-meta {
  max-width: 240px;
}

.radio-meta small {
  font-size: 12px;
  color: var(--muted);
}

/* MARQUEE */
.marquee {
  position: relative;
  overflow: hidden;
  width: 500px;
  height: 18px;
}

.marquee span {
  position: absolute;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* CENTER */
.radio-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.radio-center button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
 /*  background: var(--accent); */
  background: #666;
  font-size: 20px;
  transition: transform .15s ease;
}

.radio-center button:hover {
  transform: scale(1.08);
}

/* VOLUME */
.volume-wrapper {
  position: relative;
}

#volumeBtn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

#volume {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  display: none;
}

.volume-wrapper.open #volume {
  display: block;
}

/* RIGHT */
.radio-right {
  display: flex;
  gap: 10px;
  padding-right: 10px;
}

.radio-right button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: transform .15s ease;
}

.radio-right button:hover {
  transform: scale(1.1);
}

/* HISTORY PANEL */
.history-panel {
  position: fixed;
  bottom: 80px;
  right: 0;
  width: 300px;
  height: 400px;
  background: var(--bg);
  color: var(--text);
  transform: translateX(100%);
  transition: .3s ease;
  padding: 15px;
  overflow-y: auto;
}

.history-panel.open {
  transform: translateX(0);
}

.history-panel ul {
  list-style: none;
  padding: 0;
}

.history-panel li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.history-panel img {
  width: 45px;
  height: 45px;
  border-radius: 4px;
}

/* MOBILE */
@media (max-width: 600px) {
  #waveform {
    display: none;
  }

  #volume {
    display: none !important;
  }

  .marquee {
    width: 140px;
  }

}






