/* fonts!! */
  :root {
    --font-heading: "IBM Plex Sans", system-ui, sans-serif; 
    --font-sub: "IBM Plex Sans", system-ui, sans-serif;     
    --font-body: "IBM Plex Sans", system-ui, sans-serif;    
    --font-caption: "IBM Plex Sans", system-ui, sans-serif; 
    
    /* Colors and spacing */
    --bw-foreground: #0b0b0b;
    --bw-background: #ffffff;
    --muted: #6b6b6b;
    --border-light: #e6e6e6;
    --container: 1100px;
    --radius: 16px;
    --border-w: 2px;
  }

  *,*::before,*::after{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family: var(--font-body);
    color: var(--bw-foreground);
    background: linear-gradient(180deg,#fafafa,#ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
  }
  .wrap{
    max-width: var(--container);
    margin: 2rem auto;
    padding: 1.5rem;
  }

  /* font vars */
  .font-heading { font-family: var(--font-heading); }
  .font-sub     { font-family: var(--font-sub); }
  .font-body    { font-family: var(--font-body); }
  .font-caption { font-family: var(--font-caption); }

  /* player */
  .radio-player{
    border-radius: var(--radius);
    padding: 2rem;
    background: linear-gradient(135deg,#ffffff 0%,#f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: var(--border-w) solid var(--bw-foreground);
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* art */
  #album-art{
    width: 240px;
    height: 240px;
    border-radius: 14px;
    background: linear-gradient(135deg,#f0f0f0,#fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
  }
  #album-art img{opacity:0;transition:opacity 0.5s ease}
  #album-art img.loaded{opacity:1}

  /* track info */
  .track-info{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }
  #song-title{
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--bw-foreground);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #artist-name{
    font-family: var(--font-sub);
    color: var(--muted);
    font-size: 1.45rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* prog bar styles */
  .progress-container {
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
  }
  .progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: var(--bw-foreground);
    width: 0%;
    transition: width 1s linear;
  }
  .progress-time {
    font-family: var(--font-caption);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
  }

  .controls{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }

  #play-btn{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bw-foreground);
    color: var(--bw-background);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 200ms ease;
    padding-left: 5px;
  }
  #play-btn:hover{transform:scale(1.06);box-shadow:0 6px 20px rgba(0,0,0,0.25)}
  #play-btn:active{transform:scale(0.95)}

  /* volume */
.volume-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#volume-display {
  font-family: var(--font-caption);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
}

.volume-track {
  position: relative;
  width: 30px;
  height: 110px;
  display: flex;
  justify-content: center;
}

.radio-player:not(.mobile-version) #volume {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 110px;
  height: 30px;
  background: transparent;
  transform: rotate(-90deg);
  top: 40px; 
  margin: 0;
  cursor: pointer;
}

  /* navigation */
  .text-nav {
    display: flex;
    gap: 2rem;
    margin: 3rem 0 2rem;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
  }
  .nav-item {
    font-family: var(--font-heading);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--muted);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
  }
  /* nav hover style */
  .nav-item:hover, .nav-item.active {
    color: var(--bw-foreground);
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  /* dYnAmIc tExT */
  .content-area h2 {
    font-family: var(--font-heading);
    margin: 0 0 0.25rem;
    font-size: 2.2rem;
    font-weight: 800;
  }
  .content-area h3 {
    font-family: var(--font-sub);
    margin: 0 0 1rem;
    font-weight: 500;
    color: var(--muted);
    font-size: 1.25rem;
  }
  .content-area p {
    font-family: var(--font-body);
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bw-foreground);
    margin: 0;
  }

  footer.site-footer{
    margin-top: 4rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-caption);
    font-size: 0.95rem;
  }
  footer a{color:var(--bw-foreground);text-decoration:none;font-weight:600;transition:opacity 200ms ease}
  footer a:hover{opacity:0.6}

  @media(max-width:980px){
    .wrap{padding:1rem;margin:1rem auto}
    .radio-player{flex-wrap:wrap}
    #album-art{width:140px;height:140px}
    #song-title{font-size:1.4rem}
    #artist-name{font-size:1rem}
  }
/* mobile SHITTT */
.radio-player.mobile-version {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  padding: 0.75rem !important;
  min-height: auto !important;
  height: auto !important;
  gap: 0.75rem !important;
  align-items: center;
  justify-content: flex-start;
}

.radio-player.mobile-version #album-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.radio-player.mobile-version .track-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.radio-player.mobile-version #song-title {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-player.mobile-version #artist-name {
  font-size: 0.8rem;
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.radio-player.mobile-version .progress-container {
  width: 100%;
  order: 3;
  margin-top: 0.4rem;
}

.radio-player.mobile-version .progress-track {
  width: 100%;
}

/* Fix for the wonky mobile slider position */
.radio-player.mobile-version #volume {
  -webkit-appearance: none;
  appearance: none;
  position: static !important; /* Resets the floating desktop position */
  transform: none !important; /* Resets the rotation */
  width: 100px !important;     /* Horizontal width */
  max-width: 100%;
  height: 18px !important;
  background: transparent;
  margin: 0 !important;
}

@media (max-width: 600px) {
  .radio-player.mobile-version #album-art {
    width: 48px;
    height: 48px;
  }
  .radio-player.mobile-version #song-title {
    font-size: 0.95rem;
  }
  .radio-player.mobile-version #artist-name {
    font-size: 0.75rem;
  }
  .mobile-controls {
    gap: 6px;
  }
}

/* Container for the art - ensures the overlay stays centered */
.mobile-art-btn {
  width: 60px !important;
  height: 60px !important;
  cursor: pointer;
  flex-shrink: 0;
  position: relative; /* CRITICAL: Keeps the play icon centered over the art */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* Dark background helps the blur look cleaner */
}

/* scrapped, could be fun to add back in later with a more subtle effect
.mobile-art-btn:hover img,
.mobile-art-btn:active img {
  filter: blur(4px) brightness(0.6);
  transform: scale(1.05); 
  transition: all 0.3s ease;
}
*/

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 22px;
  z-index: 5;
  opacity: 0.35;
  transition: opacity 0.2s ease;
  pointer-events: none; 
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.mobile-art-btn:hover .play-overlay,
.mobile-art-btn:active .play-overlay,
.mobile-art-btn.playing .play-overlay {
  opacity: 1;
}

#volume:focus { outline: none; }

#volume::-webkit-slider-runnable-track {
  height: 6px;
  background: #e0e0e0;
  border-radius: 6px;
}
#volume::-moz-range-track {
  height: 6px;
  background: #e0e0e0;
  border-radius: 6px;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bw-foreground);
  margin-top: -5px; /* Centers thumb on track */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
#volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bw-foreground);
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
/* Rich body content elements */
.content-area p a,
.content-area a {
  color: var(--bw-foreground);
  font-weight: 700;
  text-underline-offset: 4px;
  transition: opacity 200ms ease;
}
.content-area a:hover { opacity: 0.5; }

.content-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--bw-foreground);
  color: var(--bw-background);
  border: 2px solid var(--bw-foreground);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}
.content-btn:hover { opacity: 0.75; }
.content-btn--muted {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-light);
}
.content-btn--muted:hover { border-color: var(--bw-foreground); color: var(--bw-foreground); }

blockquote {
  border-left: 3px solid var(--bw-foreground);
  margin: 0.75rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  color: var(--muted);
  font-style: italic;
}

.content-area hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1rem 0;
}

.content-area ul,
.content-area ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}
.content-area li { margin-bottom: 0.3rem; }

code {
  font-family: monospace;
  background: var(--border-light);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}