*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-color: rgb(98%, 98%, 98%);
  --text-color: rgb(2%, 2%, 2%);
  --accent1-color: #FC222D;
  --accent2-color: #FC8422;
  --accent3-color: #FC229A;
  --player-color: #ece5d8CC;
}

body {
  font-family: monospace, system-ui, -apple-system;
  font-size: 16px;
  background: var(--text-color);
  color: var(--text-color);
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
  padding: 1rem;

  background-image: url('images/newsprint.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
}

a {
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
  line-height: 1.3rem;
}

h2 {
  font-size: larger;
  padding-bottom: 1rem;
}

/* -- LAYOUT -- */

#main-wrapper {
  border: 1px solid var(--text-color);
  padding: 0;
  max-width: 680px;
  /*background: var(--bg-color);*/
}

header {
  display: flex;
  align-items: center;
  padding: .5rem;
  border-bottom: 1px solid black;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.broadcast-info {
  padding: 10rem 1rem 0 1rem;
}

span.date {
  display: block;
  border: 1px solid var(--accent1-color);
  padding: .5rem;
  margin-bottom: 1rem;
  width: max-content;
  font-size: small;
}

/* -- LAYOUT ARCHIVE-- */
div.archive-track {
  margin-bottom: 1rem;
}

/* -- LAYOUT FOOTER -- */
#socials {
  padding: 1rem;
  /*background-color: var(--bg-color);*/
}
#socials a {
  display: block;
  margin-bottom: 1rem;
}

/* -- PLAYER -- */
.player {
  position: sticky;
  top: 0;
  background-color: var(--player-color);
  z-index: 1000;

  border-radius: 0px;
  text-align: center;
  color: var(--text-color);
  display: flex;
  flex-direction: row;

  padding: 1rem;

  border-bottom: 1px solid var(--text-color);
}

.track-info {
  text-align: left;
  margin-top: 1.2rem;
  margin-left: 20px;
}

.track-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  min-height: 1.4em;
}

.track-sub {
  font-size: 13px;
  color: #888780;
  min-height: 1.2em;
}

.track-counter {
  font-size: 11px;
  color: #b4b2a9;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
}

.marquee-track.scroll {
  animation: marquee 10s linear infinite;
}

.marquee-container:hover .marquee-track.scroll {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* -- CONTROLS -- */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ctrl-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0.5px solid #b4b2a9;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a18;
  font-size: 18px;
  transition: background 0.12s, transform 0.08s;
}

.ctrl-btn:hover { background: #f5f4f0; }
.ctrl-btn:active { transform: scale(0.93); }

.ctrl-btn.play-btn {
  /*
  width: 54px;
  height: 54px;
  font-size: 22px;
  */
  background: #1a1a18;
  color: #ffffff;
  border-color: #1a1a18;
}

.ctrl-btn.play-btn:hover {
  background: #3a3a38;
  border-color: #3a3a38;
}

.ctrl-btn.pause-btn {
  display: none;
}


/* -- ACCORDION -- */
details {
  border-top: 1px solid black;
  padding: 1rem 1rem 0 1rem;
}

summary {
  list-style: none;
}