@font-face {
  font-family: "Oswald Local";
  src: url("/fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald Local";
  src: url("/fonts/oswald-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Local";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Local";
  src: url("/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-core: #111111; 
  --panel-bg: #000000;
  --line-dim: #333333;
  --line-bright: #666666;
  --red-sharp: #d62828;
  --red-hover: #ba1f1f;
  --text-pure: #ffffff;
  --text-dim: #aaaaaa;
}

* {
  box-sizing: border-box;
  scrollbar-width: auto;
  scrollbar-color: var(--red-sharp) var(--line-dim);
  border-radius: 0 !important; 
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-core);
  color: var(--text-pure);
  font-family: "Space Grotesk Local", sans-serif;
  overflow-x: hidden;
  text-transform: uppercase; 
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--red-sharp);
  color: var(--bg-core);
  padding: 1rem 1.5rem;
  font-weight: 700;
  border: 4px solid var(--text-pure);
}
.skip-link:focus-visible { top: 1rem; outline: 4px solid #000; }

.backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-core);
  /* Brutalist hazard stripes only, flags removed */
  background-image: 
    repeating-linear-gradient(45deg, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.5) 5px, transparent 5px, transparent 15px);
  background-size: 100%;
}

.radio-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

/* --- TELEVISION FULLSCREEN MODE (BRUTAL REDESIGN) --- */
:fullscreen, :fullscreen body {
  background: #000;
  color: var(--text-pure);
  overflow: hidden;
}
:fullscreen .radio-page {
  padding: 0;
  max-width: 100vw;
  height: 100vh;
  margin: 0;
  background: #000;
}
:fullscreen .backdrop,
:fullscreen .masthead,
:fullscreen .ticker-strip,
:fullscreen .info-panel,
:fullscreen .queue-panel,
:fullscreen .history-panel,
:fullscreen .progress-block,
:fullscreen .action-bar,
:fullscreen .inline-links,
:fullscreen .hero-album { display: none !important; }

:fullscreen .player-grid {
  display: grid;
  grid-template-columns: 50vw 50vw !important;
  gap: 0;
  height: 100vh;
  width: 100vw;
}

/* L-Side: Now Playing Art/Meta */
:fullscreen .core-player {
  padding: 5vh 5vw;
  border: none;
  border-right: 8px solid var(--red-sharp);
  background: #000;
  box-shadow: none;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100vh;
}
:fullscreen .art-wrapper {
  max-width: 45vh;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 4vh auto;
  border: 8px solid var(--text-pure);
  flex-shrink: 0;
  height: auto;
}
:fullscreen .artist-album-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2vh;
}
:fullscreen .hero-title {
  font-size: clamp(2rem, 4vw, 5rem);
  text-shadow: none;
  background: var(--red-sharp);
  color: #fff;
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 2vh;
  line-height: 1;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
:fullscreen .hero-artist {
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  background: var(--text-pure);
  color: #000;
  padding: 0.2rem 1rem;
  margin-bottom: 2vh;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
:fullscreen .hero-upnext {
  margin-top: auto; 
  padding-bottom: 2vh;
  font-size: 1.5vw;
}

/* R-Side: Lyrics Sync */
:fullscreen .meta-sidebar {
  padding: 0;
  height: 100vh;
  display: block;
  background: #000;
  overflow: hidden;
}
:fullscreen .lyrics-panel {
  border: none;
  box-shadow: none;
  transform: none;
  height: 100%;
  background: transparent;
}
:fullscreen .panel-heading {
  display: none !important;
}
:fullscreen .lyrics-scrollbox {
  padding: 25vh 5vw;
  text-align: center;
  font-size: 3.5vw !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  height: 100vh;
}
:fullscreen .lyric-line {
  background: transparent !important;
  color: var(--line-bright);
  opacity: 0.3;
  margin-bottom: 4vh;
  display: block;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
  transform: none;
}
:fullscreen .lyric-line.active {
  background: transparent !important;
  color: var(--red-sharp);
  opacity: 1;
  font-size: 1.25em;
  border: none;
  padding: 0;
  margin-bottom: 4vh;
  display: block;
  font-weight: 700;
  margin-left: 0;
}

/* --- HEADER --- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.masthead-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark {
  width: 85px;
  height: 85px;
  border: 4px solid var(--red-sharp);
  background: #000;
  padding: 0.2rem;
  transform: translateY(12px) rotate(-3deg);
}

.brand-text h1 {
  margin: 0;
  font-family: "Oswald Local", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text-pure);
  text-shadow: 4px 4px 0px var(--red-sharp);
}

.presented {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-pure);
  font-weight: 600;
  letter-spacing: 0.2em;
  background: #000;
  display: inline-block;
  padding: 0.2rem 0.5rem;
}

.subline {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  color: var(--text-pure);
  background: var(--red-sharp);
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  display: inline-block;
  transform: rotate(1deg);
}

.masthead-side {
  display: flex;
  gap: 1rem;
}

.outlined-link {
  border: 4px solid #000;
  background: var(--text-pure);
  padding: 0.75rem 1rem;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.1s ease;
  box-shadow: 6px 6px 0px #000;
  transform: rotate(-2deg);
}

.outlined-link:hover, .outlined-link:focus-visible {
  border-color: var(--text-pure);
  background: #000;
  color: var(--red-sharp);
  box-shadow: 6px 6px 0px var(--red-sharp);
  transform: translate(-2px, -2px) rotate(0deg);
  outline: none;
}

/* --- STATEMENT STRIP --- */
.ticker-strip {
  background: var(--red-sharp);
  color: #fff;
  padding: 0.75rem;
  font-family: "Oswald Local", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  border: 4px solid var(--text-pure);
  box-shadow: 8px 8px 0px #000;
  transform: rotate(-0.5deg);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker-slide 60s linear infinite;
  padding-left: 100%;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --- PLAYER GRID --- */
.player-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 2rem;
  flex: 1;
  min-height: 0;
}

/* --- COMMON PANELS --- */
.panel-box {
  background: var(--panel-bg);
  border: 4px solid var(--line-dim);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 12px 0px var(--line-dim);
}

/* --- CORE PLAYER --- */
.core-player {
  padding: 2.5rem;
  justify-content: space-between;
  border-color: var(--red-sharp);
  box-shadow: 16px 16px 0px var(--red-sharp);
}

.art-wrapper {
  position: relative;
  height: 40vh;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 2rem;
  background: var(--red-sharp);
  border: 4px solid var(--text-pure);
  overflow: hidden;
  align-self: center;
}

.super-art {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  opacity: 1;
  transition: opacity 0.2s linear;
}

.art-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  font-family: "Oswald Local", sans-serif;
  font-size: 3rem;
  color: var(--red-sharp);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 1;
  transition: opacity 0.1s;
}
.art-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.meta-stamp {
  font-family: "Oswald Local", sans-serif;
  color: var(--red-sharp);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
  background: #000;
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border: 2px solid var(--red-sharp);
}

.hero-title {
  font-family: "Oswald Local", sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.9;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  word-wrap: break-word;
  text-shadow: 4px 4px 0px var(--red-sharp);
}

.artist-album-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.hero-artist { 
  margin: 0; 
  font-size: 1.8rem; 
  font-weight: 700; 
  color: #000; 
  background: var(--text-pure); 
  padding: 0.2rem 0.8rem; 
  transform: rotate(-1deg);
}
.hero-album { 
  margin: 0; 
  font-size: 1.3rem; 
  color: var(--text-dim); 
  background: #000;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-dim);
}

.hero-upnext {
  font-family: "Space Grotesk Local", monospace;
  font-size: 1.1rem;
  color: var(--line-bright);
  font-weight: 700;
  margin: -0.5rem 0 2rem 0;
  text-transform: uppercase;
}

.inline-links {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.inline-link {
  font-family: "Oswald Local", sans-serif;
  color: var(--text-pure);
  background: var(--red-sharp);
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  font-weight: 700;
  transform: rotate(-1deg);
  display: inline-block;
  font-size: 1.1rem;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
}
.inline-link:hover, .inline-link:focus-visible {
  background: var(--text-pure);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px var(--red-sharp);
}

.progress-block {
  margin-bottom: 2rem;
  width: 100%;
}

.time-readout {
  display: flex;
  justify-content: space-between;
  font-family: "Space Grotesk Local", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.progress-rail {
  height: 20px;
  background: repeating-linear-gradient(45deg, #000 0, #000 10px, #222 10px, #222 20px);
  border: 4px solid #000;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  background: var(--text-pure);
  height: 100%;
  width: 0%;
  transition: width 0.25s linear;
}

/* ACTION BAR */
.action-bar {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

button {
  font-family: "Oswald Local", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 4px solid var(--text-pure);
  cursor: pointer;
  padding: 0 2rem;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s linear;
}

.btn-primary {
  background: var(--red-sharp);
  color: #fff;
  border-color: #000;
  flex: 0 0 auto;
  min-width: 200px;
  box-shadow: 8px 8px 0px #000;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--text-pure);
  color: #000;
  border-color: #000;
  box-shadow: 8px 8px 0px var(--red-sharp);
  transform: translate(-3px, -3px);
  outline: none;
}

.btn-secondary {
  background: #000;
  color: var(--text-pure);
  border-color: var(--line-dim);
  box-shadow: 6px 6px 0px var(--line-dim);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--text-pure);
  color: #000;
  border-color: var(--text-pure);
  box-shadow: 6px 6px 0px var(--red-sharp);
  transform: translate(-3px, -3px);
  outline: none;
}

.volume-slider {
  display: flex;
  align-items: center;
  background: #000;
  padding: 0 1rem;
  gap: 1rem;
  flex: 1; 
  border: 4px solid var(--line-dim);
  box-shadow: 6px 6px 0px var(--line-dim);
}

.volume-slider label {
  font-family: "Oswald Local", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-pure);
}

.volume-slider input {
  flex: 1;
  accent-color: var(--red-sharp);
  cursor: pointer;
}

/* SIDEBAR PANELS */
.meta-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 0;
}

.panel-heading {
  font-family: "Oswald Local", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: #000;
  margin: 0;
  padding: 1rem;
  border-bottom: 4px solid var(--line-dim);
  background: var(--text-pure);
  font-weight: 700;
}

.lyrics-panel {
  flex: 1 1 50%;
  min-height: 0;
}

.lyrics-scrollbox {
  padding: 2rem;
  overflow-y: auto;
  font-family: "Oswald Local", sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--line-bright);
  white-space: pre-wrap;
  height: 100%;
  scroll-behavior: smooth;
  position: relative;
  background: #000;
}

.lyric-message {
  color: var(--text-pure);
  text-align: center;
  font-size: 1.8rem;
  padding-top: 2rem;
  font-weight: 700;
  background: var(--red-sharp);
  display: inline-block;
  padding: 0.5rem 1rem;
  transform: rotate(-2deg);
}

/* Sync Lyrics Styles */
.lyric-line {
  margin: 0 0 1.2rem 0;
  opacity: 0.4;
  transition: all 0.05s linear; 
}
.lyric-line.active {
  opacity: 1;
  color: #000;
  font-weight: 700;
  background: var(--text-pure); 
  padding: 0.2rem 0.8rem;
  margin-left: -0.8rem;
  border-left: 8px solid var(--red-sharp);
  transform: rotate(-1deg);
  display: inline-block;
}

.queue-panel, .history-panel, .info-panel {
  flex: 1 1 25%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.info-scrollbox {
  padding: 1.5rem;
  overflow-y: auto;
  font-family: "Space Grotesk Local", monospace;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text-dim);
  white-space: pre-wrap;
  height: 100%;
  background: #000;
  text-transform: none; /* Keep description legible */
}

.info-message {
  color: var(--red-sharp);
  font-weight: 700;
  text-transform: uppercase;
}

.intel-artist-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 4px solid var(--line-dim);
  margin-bottom: 1rem;
  background: var(--bg-core);
  display: block;
}

.compact-list {
  padding: 1rem 1.5rem;
  margin: 0;
  list-style: none;
  overflow-y: auto;
  height: 100%;
  background: #000;
}

.compact-list li {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  color: var(--text-dim);
  border-left: 8px solid var(--line-dim);
  padding-left: 1.2rem;
  transition: all 0.1s;
}
.compact-list li:hover {
  border-left-color: var(--red-sharp);
  color: #000;
  background: var(--text-pure);
}
.compact-list li:last-child { margin-bottom: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 6px solid var(--red-sharp);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  body { overflow-x: hidden; }
  .player-grid { display: flex; flex-direction: column; gap: 2rem; }
  .radio-page { height: auto; min-height: 100dvh; display: block; overflow-x: hidden; padding: 4vw; }
  .meta-sidebar { display: flex; flex-direction: column; gap: 2rem; width: 100%; max-width: calc(100vw - 8vw - 15px); padding: 0; height: auto; }
  .lyrics-panel, .info-panel, .queue-panel, .history-panel { flex: 1; min-height: 50vh; transform: none; box-shadow: 10px 10px 0px var(--line-dim); box-sizing: border-box; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .masthead-main { flex-wrap: wrap; }
  .masthead-side { align-items: flex-start; }
  .hero-title { font-size: clamp(2rem, 8vw, 4rem); max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
  .core-player { transform: none; padding: 1.5rem; border-width: 4px; box-shadow: 10px 10px 0px var(--red-sharp); width: 100%; max-width: calc(100vw - 8vw - 15px); box-sizing: border-box; }
  .artist-album-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .radio-page { padding: 1.5rem; }
  .action-bar { flex-direction: column; gap: 1rem; }
  .volume-slider { height: 60px; max-width: none; width: 100%; }
  .btn-primary { width: 100%; }
  .hidden-mobile { display: none !important; }
  .brand-mark { width: 50px; height: 50px; transform: none; }
  .brand-text h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .brand-text p { word-wrap: break-word; white-space: normal; max-width: 100%; }
  .ticker-content { font-size: 1.2rem; }
  .core-player { padding: 1rem; max-width: calc(100vw - 3rem - 10px); }
  .meta-sidebar { max-width: calc(100vw - 3rem - 10px); }
  .lyrics-panel, .info-panel, .queue-panel, .history-panel { min-height: 40vh; height: 400px; }
  .lyrics-scrollbox { font-size: 1.5rem; padding: 15vh 1rem; }
  .art-wrapper { margin-bottom: 1rem; }
}
