:root {
  --rf-player-bg: linear-gradient(110deg, #e0e8f0 0%, #f2f1e6 60%, #d8e5ea 100%);
  --rf-player-accent: #278fb4;
  --rf-player-accent2: #d6c865;
  --rf-player-accent3: #c18cc6;
  --rf-player-shadow: 0 2px 8px #278fb412, 0 0 0 1px #278fb433;
  --rf-player-bg-history: #e8eef2;
  --rf-player-bg-current: #eef4f8;
}

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

.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.8rem 1.2rem 0.8rem;
  min-width: 160px;
  border-left: 2px solid var(--rf-player-accent);
  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: bold;
  font-size: 1em;
  margin-bottom: 0.8em;
  letter-spacing: 0.02em;
  text-shadow: 0 0 2px var(--rf-player-accent2);
}

.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: #f4f7fa;
  border-bottom: 1px solid var(--rf-player-accent2);
  padding: 4px 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: 'Fira Mono', 'Menlo', 'Consolas', monospace;
  color: var(--rf-player-accent) !important;
  font-size: 0.97em;
}
.radio-player-history-list .has-text-white {
  font-size: 1em;
  font-weight: bold;
  color: var(--rf-player-accent) !important;
  letter-spacing: 0.01em;
  text-shadow: 0 0 1px #d8e5ea;
}
.radio-player-history-list .has-text-accent-light {
  font-size: 0.97em;
  color: var(--rf-player-accent3) !important;
}
.radio-player-history-list .media-right {
  min-width: 26px;
  text-align: right;
  font-size: 0.95em;
  color: var(--rf-player-accent3);
  padding-left: 4px;
}
.radio-player-history-list .current-track {
  border-left: 2px solid var(--rf-player-accent2);
  background: #f9f9ec;
  border-radius: 0;
}

.radio-player-section {
  padding: 1.2rem 1rem 1rem 1rem;
  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);
  box-shadow: 0 0 0 2px var(--rf-player-accent);
  padding: 0.7rem 0.7rem 0.7rem 0.5rem;
  margin-bottom: 1.1rem;
  border-radius: 0;
}

.radio-player-art {
  min-width: 62px;
  min-height: 62px;
  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 2px 6px #278fb420;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 0;
  background: var(--white);
}

.radio-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15em;
  position: relative;
}
.radio-player-title {
  font-size: 1.15em;
  font-weight: bold;
  color: var(--rf-player-accent);
  margin-bottom: 0.05em;
  letter-spacing: 0.02em;
  text-shadow: 0 0 2px var(--rf-player-accent2);
  line-height: 1.15em;
  display: inline-block;
}
.radio-player-artist {
  font-size: 1em;
  color: var(--rf-player-accent3);
  margin-bottom: 0.05em;
  line-height: 1.1em;
}
.radio-player-timer {
  color: var(--rf-player-accent2);
  font-size: 0.95em;
  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: #f7f6f0;
  box-shadow: 0 0 0 2px var(--rf-player-accent2);
  border-radius: 0;
  padding: 0.4em 0.6em;
  font-size: 1em;
}

.radio-player-play-btn {
  background: var(--rf-player-accent);
  border: none;
  outline: 2px solid var(--rf-player-accent2);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 0 6px var(--rf-player-accent), 0 0 0 2px var(--rf-player-accent2);
  border-radius: 0;
  transition: box-shadow 0.18s, background 0.18s;
  position: relative;
}
.radio-player-play-btn:active {
  outline: 2px solid var(--rf-player-accent3);
}
.radio-player-play-btn:hover,
.radio-player-play-btn:focus {
  background: var(--rf-player-accent2);
  box-shadow: 0 0 7px var(--rf-player-accent2), 0 0 0 2px var(--rf-player-accent);
}
#vagrant-play-icon svg {
  width: 22px; height: 22px;
  fill: var(--white);
  display: block;
}

.radio-player-status {
  color: var(--rf-player-accent3);
  font-size: 0.98em;
  font-weight: 500;
}
.radio-player-listeners {
  color: var(--rf-player-accent);
  font-size: 1em;
  font-weight: bold;
  margin-left: auto;
  text-shadow: 0 0 2px #fffbe6;
  background: none;
}

/* PROGRESS BAR SECTION - moved timer below bar desktop */
.radio-player-progress {
  height: 9px;
  background: #e8eef2;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--rf-player-accent);
  margin-top: 7px;
  margin-bottom: 2px;
  border-radius: 0;
  width: 100%;
}
#vagrant-progress {
  height: 100%;
  transition: width .25s;
  background: linear-gradient(90deg, var(--rf-player-accent2) 0%, var(--rf-player-accent) 80%);
  box-shadow: 0 0 2px var(--rf-player-accent);
  border-radius: 0;
  width: 100%;
}

.radio-player-progress-time {
  display: block;
  position: static;
  font-size: 0.98em;
  line-height: 1.4em;
  color: var(--rf-player-accent3);
  font-weight: bold;
  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: 2px solid var(--rf-player-accent);
    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.5rem 0.3rem 0.4rem 0.3rem;
    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.3em 0.3em;
    width: 100%;
  }
  .radio-player-play-btn {
    width: 32px; height: 32px;
    font-size: 1em;
  }
  #vagrant-play-icon svg {
    width: 16px; height: 16px;
  }
}