/* Retro Web Radio: warm amber on charcoal, sized for a 1024 x 512 media face.
   System fonts only (no web fonts: nothing loads from anywhere else). */
:root {
  --bg: #17130f;
  --panel: #211b15;
  --line: #6b5330;
  --amber: #f0b45a;
  --amber-hi: #ffd08a;
  --cream: #f3e6c8;
  --dim: #b49a72;
  --serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--cream); font-family: var(--serif); }
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }

.radio {
  position: relative; width: 1024px; height: 512px; margin: 0 auto; padding: 14px 18px 16px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 54px 150px 1fr; gap: 14px 16px;
  background: radial-gradient(ellipse at 50% 30%, #2a2119 0%, var(--bg) 70%);
}
.masthead { grid-column: 1 / 3; display: flex; align-items: center; justify-content: center; gap: 22px; }
.masthead h1 {
  margin: 0; font-size: 46px; font-style: italic; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber-hi); text-shadow: 0 0 12px rgba(240, 180, 90, .45);
}
.star { color: var(--amber); font-size: 28px; }

.dial {
  grid-column: 1 / 3; position: relative; border: 2px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, #3a2a16, #1d160f 70%); box-shadow: inset 0 0 30px rgba(240, 160, 60, .35);
  overflow: hidden;
}
.marks { position: absolute; left: 0; right: 0; top: 14px; height: 60px; }
.mark {
  position: absolute; transform: translateX(-50%); font-size: 46px; font-weight: bold; color: var(--cream);
  text-shadow: 0 0 8px rgba(255, 200, 120, .5); transition: color .3s;
}
.mark.on { color: var(--amber-hi); }
.scale {
  position: absolute; left: 50px; right: 50px; top: 96px; height: 26px;
  border-top: 2px solid var(--amber);
  background: repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 23px);
  -webkit-mask: linear-gradient(180deg, #000 45%, transparent 46%); mask: linear-gradient(180deg, #000 45%, transparent 46%);
}
.needle {
  position: absolute; top: 74px; width: 8px; height: 76px; margin-left: -4px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fff3d6, var(--amber) 40%, #c46a12);
  box-shadow: 0 0 14px rgba(255, 170, 60, .9); transition: left .8s cubic-bezier(.4, 1.4, .5, 1);
}

.panel {
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel); padding: 10px 18px;
  min-height: 0; overflow: hidden;
}
.panel h2 {
  margin: 0 0 6px; text-align: center; font-size: 17px; letter-spacing: 5px; text-transform: uppercase; color: var(--cream);
}
.stations ol { list-style: none; margin: 0; padding: 0; }
.stations li {
  display: flex; gap: 16px; align-items: baseline; padding: 3px 12px; margin: 3px 0; border-radius: 8px;
  font-size: 29px; color: var(--cream);
}
.stations li .num { font-weight: bold; width: 42px; }
.stations li.on { background: linear-gradient(90deg, var(--amber), #d98c2a); color: #24170a; font-weight: bold; }
.stations li.on::after { content: "\25B6"; margin-left: auto; font-size: 20px; }

.playing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-block; padding: 2px 16px; border-radius: 14px; background: var(--amber); color: #24170a !important;
  letter-spacing: 4px !important;
}
.title {
  margin: 4px 0 0; font-size: 30px; font-style: italic; font-weight: bold; color: var(--amber-hi);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.artist { margin: 2px 0 6px; font-size: 20px; color: var(--cream); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.controls { display: flex; align-items: center; gap: 18px; }
.play {
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--amber); background: transparent;
  color: var(--amber-hi); font-size: 22px; box-shadow: 0 0 10px rgba(240, 160, 60, .5);
}
.play.big { width: 70px; height: 70px; font-size: 28px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 22px rgba(255, 190, 90, 1); } }
.volume { width: 150px; accent-color: var(--amber); }
.hint { margin: 4px 0 0; min-height: 18px; font-size: 15px; color: var(--dim); }
.link { margin-top: auto; border: 0; background: none; color: var(--amber); text-decoration: underline; font-size: 18px; }

.overlay { position: absolute; inset: 0; background: rgba(10, 8, 6, .92); display: flex; align-items: center; justify-content: center; }
.overlay[hidden] { display: none; }
.sheet {
  position: relative; width: 940px; height: 470px; padding: 16px 26px; border: 2px solid var(--line); border-radius: 16px;
  background: var(--panel); overflow-y: auto;
}
.sheet h2 { margin: 0 0 4px; color: var(--amber-hi); font-size: 26px; }
.small { font-size: 15px; color: var(--dim); margin: 0 0 8px; }
.close { position: absolute; top: 8px; right: 14px; border: 0; background: none; font-size: 34px; color: var(--amber); }
.credit-list h3 { margin: 10px 0 2px; font-size: 18px; color: var(--amber); }
.credit-list p { margin: 2px 0; font-size: 15px; line-height: 1.3; }
.credit-list .lic { color: var(--amber-hi); }

/* credits.html (the licence page, for people browsing the site) */
.credits-page { overflow: auto; height: auto; }
.credits-page main { max-width: 860px; margin: 0 auto; padding: 24px; line-height: 1.5; }
.credits-page h1 { color: var(--amber-hi); }
.credits-page h2 { color: var(--amber); border-bottom: 1px solid var(--line); }
.credits-page a { color: var(--amber-hi); }
.credits-page small { color: var(--dim); }
