:root {
  --bg: rgb(35, 35, 35);
  --text: #ffffff;
  --link: red;
  --btn-bg: #000000;
  --btn-border: #828282;
  --font: "Lucida Console", Lucida, monospace;
  --player-h: 100px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

p {
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
  margin: 15px;
}

h1,
h2 {
  color: var(--text);
  font-weight: normal;
}

h1 {
  font-size: 24px;
  margin: 0 0 8px;
  padding-bottom: 1px;
}

h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

li {
  color: var(--text);
  font-size: 20px;
  line-height: 1.5;
  margin: 15px;
}

a:link,
a:visited {
  color: var(--link);
}

a:hover {
  color: #ff6b6b;
}

/* Iframe content pages */
.header {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px calc(var(--player-h) + 24px);
  width: 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: 24px;
}

/* Shell */
body.shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  overflow: hidden;
}

.site-header {
  flex: 0 0 auto;
  padding: 12px 16px 8px;
  text-align: center;
}

.site-header h1 {
  font-size: 28px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn,
.btn:link,
.btn:visited {
  font-family: var(--font);
  color: #ffffff;
  font-size: 16px;
  background: var(--btn-bg);
  border: solid var(--btn-border) 2px;
  text-decoration: none;
  padding: 8px 16px;
  cursor: pointer;
}

.btn:hover {
  background: #2e2e2e;
  background-image: linear-gradient(to bottom, #2e2e2e, #000000);
  text-decoration: none;
}

.btn.active {
  background: #2e2e2e;
  border-color: #c8c8c8;
}

.page-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}

.radio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  min-height: var(--player-h);
  background: #000000;
  border-top: 2px solid #828282;
}

.radio-art {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  overflow: hidden;
  border: 1px solid #868686;
  background: #111;
}

.radio-art iframe {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 250px;
  height: 250px;
  border: 0;
  transform: scale(0.32);
  transform-origin: top left;
  pointer-events: none;
}

.radio-art-hit {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.radio-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.radio-meta {
  width: 100%;
  height: 48px;
  overflow: hidden;
}

.radio-meta iframe {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.radio-player {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

#player {
  display: none;
}

.ctl-btn {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ctl-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.ctl-btn .ctl-hover {
  display: none;
}

.ctl-btn:hover .ctl-hover {
  display: block;
}

.ctl-btn:hover .ctl-base {
  display: none;
}

.ctl-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 4px;
  margin: 0;
  background: #444444;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.ctl-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #cb0800;
  cursor: pointer;
}

.ctl-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #cb0800;
  cursor: pointer;
}

.ctl-vol::-moz-range-track {
  height: 4px;
  background: #444444;
  border-radius: 2px;
}

.song-probe {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-art {
  display: block;
  line-height: 0;
  border: 2px solid #828282;
  background: transparent;
  pointer-events: none;
}

.lightbox-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
}

@media (max-width: 640px) {
  .btn {
    font-size: 14px;
    padding: 8px 12px;
  }
}
