/* fonts!! */
@font-face {
  font-family: "FOT";
  src: url("fonts/FOT-Seurat\ Pro\ B.otf") format("opentype");
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-VariableFont_wght.ttf") format("truetype");
}
@font-face {
  font-family: "SpaceGrotesk";
  src: url("fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
}
@media (max-width: 768px) {
  main > img[alt="QWRT Logo"] {
    width: 260px;
    height: auto;
  }
}
@media (max-width: 768px) {
  .site-logo {
    width: 260px;
    height: auto;
  }
}
:root {
    --font-heading: "FOT", sans-serif; 
    --font-sub: "FOT", sans-serif;     
    --font-body: "SpaceGrotesk", sans-serif;
    --font-caption: "FOT", sans-serif;
    --font-artist: "FOT", sans-serif; 
    --font-song: "FOT", sans-serif;
    --font-progress: "Rubik", sans-serif;
    --font-volume: "Rubik", sans-serif;
    --font-nav: "Rubik", sans-serif;
    --font-footer: "SpaceGrotesk", sans-serif;
    
    /* Colors and spacing */
    --bw-foreground: #0b0b0b;
    --bw-background: #ffffff;
    --muted: #6b6b6b;
    --border-light: #e6e6e6;
    --player-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --player-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --album-art-bg: linear-gradient(135deg, #f0f0f0, #fafafa);
    --album-art-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --btn-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.25);
    --volume-track-bg: #e0e0e0;
    --thumb-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --container: 1100px;
    --radius: 16px;
    --border-w: 5px;
    color-scheme: light;
  }

  [data-theme="dark"] {
    --bw-foreground: #f2f2f2;
    --bw-background: #0b0b0b;
    --muted: #9a9a9a;
    --border-light: #2a2a2a;
    --player-bg: linear-gradient(135deg, #141414 0%, #1c1c1c 100%);
    --player-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --album-art-bg: linear-gradient(135deg, #1a1a1a, #242424);
    --album-art-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --btn-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --btn-shadow-hover: 0 6px 22px rgba(0, 0, 0, 0.55);
    --volume-track-bg: #3a3a3a;
    --thumb-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
@media (max-width: 768px) {
  :root {
    --border-w: 3px;
  }
  .site-logo {
    width: 260px;
    height: auto;
  }
}
  *,*::before,*::after{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family: var(--font-body);
    color: var(--bw-foreground);
    background: var(--bw-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .radio-player,
  .theme-toggle {
    border: var(--border-w) solid var(--bw-foreground);
  }

  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    box-sizing: content-box;
    background: var(--bw-background);
    color: var(--bw-foreground);
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: opacity 200ms ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .theme-toggle svg {
    stroke-width: 2;
  }
  .theme-toggle__moon { display: none; }
  [data-theme="dark"] .theme-toggle__sun { display: none; }
  [data-theme="dark"] .theme-toggle__moon { display: block; }
  .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: var(--player-bg);
    box-shadow: var(--player-shadow);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* about the artist panel */
  .artist-panel {
    margin-top: 1rem;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    background: var(--player-bg);
    box-shadow: var(--player-shadow);
    transition: background 0.25s ease, box-shadow 0.25s ease, opacity 0.35s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
  .artist-panel.is-empty .artist-panel__description {
    color: var(--muted);
  }
  .artist-panel__photo {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: var(--album-art-bg);
    border: 1px solid var(--border-light);
    box-shadow: var(--album-art-shadow);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .artist-panel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .artist-panel__photo img.loaded { opacity: 1; }
  .artist-panel__photo-placeholder {
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
  }
  .artist-panel__body {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .artist-panel__label {
    font-family: var(--font-artist);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
  }
  .artist-panel__name {
    font-family: var(--font-song);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bw-foreground);
    line-height: 1.15;
    width: 100%;
  }
  .artist-panel__description {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
    margin: 0.15rem 0 0.5rem;
    width: 100%;
    max-width: none;
  }
  .artist-panel__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
  }
  .artist-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bw-background);
    color: var(--bw-foreground);
    text-decoration: none;
    transition: opacity 200ms ease, border-color 200ms ease, color 200ms ease;
    box-shadow: var(--btn-shadow);
  }
  .artist-panel__link svg,
  .artist-panel__link-icon {
    width: 18px;
    height: 18px;
    display: block;
  }
  .artist-panel__link svg {
    fill: currentColor;
  }
  .artist-panel__link-icon {
    object-fit: contain;
  }
  html[data-theme="dark"] .artist-panel__link-icon {
    filter: invert(1);
  }
  .artist-panel__link--website svg { stroke: currentColor; fill: none; }

  @media (max-width: 980px) {
    .artist-panel {
      padding: 1.25rem;
      gap: 1rem;
    }
    .artist-panel__photo {
      width: 72px;
      height: 72px;
    }
    .artist-panel__name { font-size: 1.1rem; }
    .artist-panel__description { font-size: 0.95rem; }
  }

  /* art */
  #album-art{
    width: 240px;
    height: 240px;
    border-radius: 14px;
    background: var(--album-art-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--album-art-shadow);
    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-song);
    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-artist);
    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-progress);
    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: var(--btn-shadow);
    transition: opacity 200ms ease;
    padding-left: 5px;
  }

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

#volume-display {
  font-family: var(--font-volume);
  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-nav);
    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-footer);
    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;
  }
}

/* artist panel — match mobile player layout (mobile UA only via .mobile-version) */
.artist-panel.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;
  margin-top: 0.75rem;
}

.artist-panel.mobile-version .artist-panel__photo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.artist-panel.mobile-version .artist-panel__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.artist-panel.mobile-version .artist-panel__label {
  font-size: 0.65rem;
}

.artist-panel.mobile-version .artist-panel__name {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-panel.mobile-version .artist-panel__description {
  font-size: 0.8rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.artist-panel.mobile-version .artist-panel__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  margin-top: 0;
}

.artist-panel.mobile-version .artist-panel__link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.artist-panel.mobile-version .artist-panel__link svg,
.artist-panel.mobile-version .artist-panel__link-icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 600px) {
  .artist-panel.mobile-version .artist-panel__photo {
    width: 44px;
    height: 44px;
  }
  .artist-panel.mobile-version .artist-panel__name {
    font-size: 0.95rem;
  }
  .artist-panel.mobile-version .artist-panel__description {
    font-size: 0.75rem;
  }
}

#volume:focus { outline: none; }

#volume::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--volume-track-bg);
  border-radius: 6px;
}
#volume::-moz-range-track {
  height: 6px;
  background: var(--volume-track-bg);
  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: var(--thumb-shadow);
  cursor: pointer;
}
#volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bw-foreground);
  border: none;
  box-shadow: var(--thumb-shadow);
  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; }

/* Universal button hover — opacity fade; bordered variants also shift to foreground */
.theme-toggle:hover,
.artist-panel__link:hover,
#play-btn:hover,
.content-btn:hover {
  opacity: 0.75;
}
.artist-panel__link:hover,
.content-btn--muted:hover {
  border-color: var(--bw-foreground);
  color: var(--bw-foreground);
}

.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: opacity 200ms ease, border-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
.content-btn--muted {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-light);
}

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;
}