/* style.css */

/* Nord Palette Colors */
:root {
--nord-bg: #2E3440;
--nord-bg-alt: #3b4252;
--nord-fg: #D8DEE9;
--nord-accent: #88C0D0;
--nord-highlight: #556282;
--nord-active: #F2BC7B;
--nord-medium: #9ba3b2;
}
body {
font-family: 'Segoe UI', sans-serif;
background: var(--nord-bg);
color: var(--nord-fg);
margin: 0;
padding: 2rem;
}
h1 {
margin-bottom: 2rem;
color: var(--nord-accent);
text-align: left;
}

/* Horizontal station buttons */
.stations {
    display: flex;
    flex-wrap: wrap;       /* wrap to next line if needed */
    gap: 1rem;             /* space between buttons */
    margin-bottom: 1rem;
    justify-content: flex-start; /* align left on desktop */
}

.station-btn {
    flex: 1 1 150px;       /* grow/shrink, min 150px */
    max-width: 250px;
    padding: 0.75rem 1.5rem;
    background: var(--nord-bg-alt);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    color: var(--nord-fg);
    transition: background 0.2s, box-shadow 0.2s;
}

.station-btn:hover {
    background: var(--nord-highlight);
}

.station-btn.active {
    background: var(--nord-active);
    color: var(--nord-bg);
    box-shadow: 0 0 10px var(--nord-active);
}

/* Description text below buttons */
.station-description {
    font-size: 1rem;
    color: var(--nord-fg);
    margin-bottom: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .stations {
        justify-content: center;
    }
    .station-btn {
        flex: 1 1 45%;  /* two buttons per row on small screens */
        min-width: 120px;
    }
}


a, a:hover, a:visited, a:active {
color: #88C0D0;
    text-decoration: none;
}


.slider-container {
  position: relative;
  width: 200px;
  height: 8px;
}

/* Full track */
.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  border-radius: 4px;
  background: var(--nord-bg-alt);
  z-index: 0;
}

/* Left fill */
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--nord-medium);
  z-index: 1;
  width: 50%; /* initial fill */
  pointer-events: none;
}

/* Slider thumb */
input[type=range] {
  -webkit-appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  z-index: 2;
  outline: none;
}

/* Chrome & Edge */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--nord-fg);
  background: var(--nord-bg-alt);
  cursor: pointer;
  margin-top: -3px;
  transition: transform 0.2s;
}
input[type=range]:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

/* Firefox */
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--nord-fg);
  background: var(--nord-active);
}
input[type=range]::-moz-range-track {
  background: transparent;
}
input[type=range]::-moz-range-progress {
  background: var(--nord-accent);
  height: 8px;
  border-radius: 4px;
}



.now-playing {
    font-size: 1.2rem;
    color: var(--nord-accent);
    transition: background 0.2s;
}
