:root {
  --rf-player-bg: #464448;
  --rf-player-accent: #34eee5;
  --rf-player-accent2: #2a686b;
  --rf-player-accent3: #f3f4f6;
  --rf-player-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  --rf-player-bg-history: #3f3d41;
  --rf-player-bg-current: #3a383c;
  --rf-player-outline: rgba(255, 255, 255, 0.12);
  --rf-player-radius: 16px;
}

.radio-player {
  background: var(--rf-player-bg);
  box-shadow: var(--rf-player-shadow);
  padding: 0;
  border: 1px solid var(--rf-player-outline);
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  border-radius: var(--rf-player-radius);
  font-size: 0.97em;
  height: 350px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.radio-player-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  height: 100%;
  width: 100%;
}

.radio-player-section,
.radio-player-history {
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.radio-player-history {
  background: var(--rf-player-bg-history);
  padding: 1.2rem 0.9rem;
  min-width: 180px;
  border-left: 1px solid var(--rf-player-outline);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 0;
  height: 100%;
  justify-content: flex-start;
  font-size: 0.97em;
  overflow: hidden;
}

.radio-player-history-title {
  text-align: center;
  color: var(--rf-player-accent);
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 0.8em;
  letter-spacing: 0.02em;
}

.radio-player-history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  height: 100%;
}

.radio-player-history-list .media {
  background: transparent;
  border-bottom: 1px solid var(--rf-player-outline);
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 0;
  position: relative;
  border-radius: 0;
  margin: 0;
}
.radio-player-history-list .media-left {
  display: none;
}
.radio-player-history-list .media-content {
  flex: 1;
  font-family: var(--sv-font, inherit);
  color: #ffffff !important;
  font-size: 0.92em;
}
.radio-player-history-list .has-text-white {
  font-size: 0.95em;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.01em;
}
.radio-player-history-list .has-text-accent-light {
  font-size: 0.9em;
  color: #c9cbd1 !important;
}
.radio-player-history-list .media-right {
  min-width: 34px;
  text-align: right;
  font-size: 0.85em;
  color: #c9cbd1;
  padding-left: 6px;
}
.radio-player-history-list .current-track {
  border-left: 3px solid var(--rf-player-accent);
  background: rgba(52, 238, 229, 0.08);
  border-radius: 6px;
  padding-left: 6px;
}

.radio-player-section {
  padding: 1.4rem 1.2rem 1.1rem 1.2rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  height: 100%;
  min-height: 0;
  overflow-y: visible;
}

.radio-player-current {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--rf-player-bg-current);
  border: 1px solid var(--rf-player-outline);
  padding: 0.85rem 0.85rem 0.85rem 0.7rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
}

.radio-player-art {
  min-width: 310px;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.radio-player-art img {
  box-shadow: 0 0 0 2px var(--rf-player-accent2), 0 6px 14px rgba(16, 17, 20, 0.12);
  width: 310px;
  height: 310px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.radio-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15em;
  position: relative;
}
.radio-player-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.05em;
  letter-spacing: 0.01em;
  line-height: 1.2em;
  display: inline-block;
}
.radio-player-artist {
  font-size: 0.95em;
  color: #c9cbd1;
  margin-bottom: 0.05em;
  line-height: 1.1em;
}
.radio-player-timer {
  color: #c9cbd1;
  font-size: 0.9em;
  margin-bottom: 0.05em;
  line-height: 1em;
  display: inline-block;
}
.radio-player-next {
  color: var(--rf-player-accent3);
  font-size: 0.93em;
  margin-top: 0.2em;
  opacity: 0.8;
  line-height: 1em;
}

.radio-player-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--rf-player-outline);
  border-radius: 12px;
  padding: 0.45em 0.6em;
  font-size: 0.95em;
}

.radio-player-play-btn {
  background: var(--rf-player-accent);
  border: none;
  outline: none;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 8px 18px rgba(52, 238, 229, 0.3);
  border-radius: 999px;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
  position: relative;
}
.radio-player-play-btn:active {
  transform: scale(0.98);
}
.radio-player-play-btn:hover,
.radio-player-play-btn:focus {
  background: #2bc9c1;
  box-shadow: 0 12px 22px rgba(52, 238, 229, 0.4);
}
#vagrant-play-icon svg {
  width: 22px; height: 22px;
  fill: var(--white);
  display: block;
}

.radio-player-status {
  color: #e5e7eb;
  font-size: 0.92em;
  font-weight: 500;
}
.radio-player-listeners {
  color: var(--rf-player-accent);
  font-size: 0.95em;
  font-weight: 600;
  margin-left: auto;
  background: none;
}

/* PROGRESS BAR SECTION - moved timer below bar desktop */
.radio-player-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rf-player-outline);
  margin-top: 7px;
  margin-bottom: 2px;
  border-radius: 999px;
  width: 100%;
}
#vagrant-progress {
  height: 100%;
  transition: width .25s;
  background: var(--rf-player-accent);
  border-radius: 999px;
  width: 100%;
}

.radio-player-progress-time {
  display: block;
  position: static;
  font-size: 0.9em;
  line-height: 1.4em;
  color: #c9cbd1;
  font-weight: 600;
  margin-left: auto;
  margin-top: 0.1em;
  margin-bottom: 0.2em;
  text-align: right;
  background: transparent;
  width: 100%;
}

/* --- MOBILE STYLES --- */
@media (max-width: 700px) {
  .radio-player {
    font-size: 0.93em;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .radio-player-main {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }
  .radio-player-history {
    border-left: none;
    border-top: 1px solid var(--rf-player-outline);
    min-width: 0;
    padding: 0.8rem 0.5rem 0.5rem 0.5rem;
    min-height: 0;
    height: auto;
    border-radius: 0;
    font-size: 0.93em;
  }
  .radio-player-section {
    padding: 0.7rem 0.4rem;
    min-height: 0;
    height: auto;
    overflow-y: visible;
  }
  .radio-player-history {
    padding: 0.7rem 0.4rem;
    min-height: 0;
    height: auto;
    overflow-y: auto;
  }
  .radio-player-current {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.5rem 0.5rem 0.5rem;
    margin-bottom: 0.7rem;
  }
  .radio-player-art {
    display: none; /* Hide album art */
  }
  .radio-player-info {
    width: 100%;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
  }
  .radio-player-title {
    display: inline-block;
    margin-right: 1em;
    max-width: 65%;
    vertical-align: top;
  }
  .radio-player-timer {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 0.1em;
    margin-top: 0;
    font-size: 1em;
    color: var(--rf-player-accent2);
    background: transparent;
    z-index: 2;
    display: inline-block;
    font-weight: bold;
    line-height: 1.2em;
  }
  .radio-player-progress {
    height: 7px;
    margin-top: 5px;
    margin-bottom: 1px;
    width: 100%;
  }
  .radio-player-progress-time {
    position: fixed;
    top: 1em;
    right: 1em;
  }
  .radio-player-controls {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding: 0.4em 0.4em;
    width: 100%;
  }
  .radio-player-play-btn {
    width: 32px; height: 32px;
    font-size: 1em;
  }
  #vagrant-play-icon svg {
    width: 16px; height: 16px;
  }
}