/* SFR Radio. Colours and measurements follow work/radio/pdf/style.py (mockup at 1440px). */
:root {
  --bg: #111111;
  --line: #262626;
  --coral: #e25850;
  --press: #c44842;
  --orange: #ff5a14;
  --grey: #969696;
  --light: #c8c8c8;
  --dim: #787878;
  --pill: #202020;
  --font: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --mono: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------------- header */
.top {
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 32px; border-bottom: 1px solid var(--line); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 3.2px; }
.radio-pill { border: 1px solid var(--grey); border-radius: 5px; font-size: 13px; letter-spacing: 2.2px; padding: 6px 9px 6px 11px; line-height: 1; }
.controls { display: flex; align-items: center; }
.onair { display: flex; align-items: center; gap: 9px; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; white-space: nowrap; margin-right: 22px; }
.onair .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
body.playing .onair .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.press-play {
  width: 212px; height: 46px; border: 0; border-radius: 23px; background: var(--press); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 17px; font-weight: 700; letter-spacing: 2.6px;
  box-shadow: 0 0 22px 4px rgba(226, 88, 80, .55); margin-right: 20px; transition: filter .15s;
}
.press-play:hover { filter: brightness(1.08); }
.press-play svg { width: 12px; height: 14px; flex: none; }
.press-play .ico-pause, .bar-play .ico-pause { display: none; }
body.playing .press-play .ico-play, body.playing .bar-play .ico-play { display: none; }
body.playing .press-play .ico-pause, body.playing .bar-play .ico-pause { display: block; }
.tabs { display: flex; background: var(--pill); border-radius: 21px; padding: 4px 6px; height: 42px; align-items: center; }
.tab { height: 34px; border: 0; border-radius: 17px; background: transparent; color: #dcdcdc; font-size: 15px; padding: 0 18px; white-space: nowrap; }
.tab.active { background: #fff; color: #000; }

/* ---------------- views */
main { padding: 24px 28px 0; }
.view { display: none; }
.view.active { display: grid; }
.view-now { grid-template-columns: minmax(0, 962fr) minmax(280px, 382fr); column-gap: 40px; align-items: start; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.4px; color: var(--light); }
.muted { color: var(--grey); font-size: 13px; }

/* ---------------- hero card */
.hero { position: relative; aspect-ratio: 962 / 560; border-radius: 16px; overflow: hidden; background: #000; min-height: 340px; }
.hero.video { aspect-ratio: 16 / 9; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.yt-thumb, .yt-stage { position: absolute; inset: 0; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%); width: 92px; height: 64px; border: 0; padding: 0; background: none; }
.yt-big-play svg { width: 100%; height: 100%; }
.yt-stage #ytMount, .yt-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,.24), rgba(10,10,10,.9));
}
.tagline { position: absolute; right: 30px; bottom: 102px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.tag-big { background: #000; font-size: 22px; font-weight: 700; padding: 4px 10px 5px; line-height: 25px; }
.tag-small { background: #000; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; padding: 6px 8px 6px 10px; line-height: 16px; }
.hero.video .tagline, .hero.yt .tagline { display: none; }
.np-label {
  position: absolute; left: 12px; bottom: 90px; width: 188px; height: 28px; background: #000; border: 1px solid #505050;
  font-size: 15px; font-weight: 700; letter-spacing: 2.6px; padding: 5px 10px; line-height: 17px; pointer-events: none;
}
.bar { position: absolute; left: 12px; right: 24px; bottom: 14px; height: 66px; display: flex; align-items: flex-start; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar-art { width: 78px; height: 66px; background: #fff; flex: none; padding: 2px 8px; }
.bar-art img { width: 62px; height: 62px; object-fit: cover; display: block; }
.hero.yt .bar-art { padding: 2px; }
.hero.yt .bar-art img { width: 74px; }
.bar-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); margin: 10px 18px 0 16px; flex: none; display: grid; place-items: center; padding: 0 0 0 3px; }
body.playing .bar-play { padding-left: 0; }
.bar-play svg { width: 14px; height: 18px; }
.bar-meta { width: 430px; min-width: 0; flex: 0 1 430px; }
.bar-owner { font-size: 13px; color: var(--light); line-height: 16px; height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title { font-size: 21px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-block; background: var(--coral); color: #fff; border-radius: 4px; font-size: 13px; line-height: 15px; padding: 3px 6px 3px; white-space: nowrap; }
.badge-sm { font-size: 12px; line-height: 14px; margin-top: 5px; }
.bar-wave { position: absolute; left: calc((100% + 36px) * 0.6653 - 12px); right: 0; top: 6px; height: 60px; pointer-events: none; }
.bar-wave canvas { width: 100%; height: 34px; display: block; }
.times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--light); margin-top: 8px; }
.yt-note { position: absolute; left: 0; top: 24px; font-size: 13px; color: var(--light); }
.hero.yt canvas, .hero.yt .times { visibility: hidden; }
/* the audio embed lives here, invisible, so the design stays as mocked */
.embed-slot { position: absolute; inset: -6px 0 0 0; opacity: 0.01; pointer-events: none; overflow: hidden; }
.embed-slot iframe { width: 100%; height: 60px; border: 0; display: block; }
.embed-slot.reveal { opacity: 1; pointer-events: auto; background: #111; border-radius: 6px; z-index: 3; }
.bar-wave.revealed { pointer-events: auto; }

/* ---------------- about this play */
.about-play { padding: 30px 0 0; }
.ap-title { font-size: 22px; font-weight: 700; margin: 13px 0 10px; line-height: 28px; }
.ap-title a { text-decoration: none; }
.ap-title a:hover { text-decoration: underline; }
.ap-tag { font-size: 16px; margin-bottom: 9px; }
.ap-tag a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ext { color: var(--grey); font-size: 13px; margin-left: 6px; }
.ap-desc { font-size: 16px; line-height: 23px; color: var(--light); margin: 0; max-width: 922px; }
.wiki { font-size: 12px; color: var(--dim); margin-top: 3px; }
.ap-yt { font-size: 14px; color: var(--grey); margin: 4px 0 0; }
.about-play .signoff { font-size: 16px; line-height: 22px; color: var(--grey); margin-top: 8px; }

/* ---------------- up next */
.upnext-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.auto { font-size: 13px; color: var(--grey); white-space: nowrap; }
.auto .arrow { color: var(--coral); margin-right: 3px; }
.upnext { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 12px; padding: 16px 0 14px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover { background: rgba(255,255,255,.02); }
.row-art { width: 60px; height: 60px; object-fit: cover; flex: none; margin-top: 2px; background: #222; }
.row-body { min-width: 0; flex: 1; }
.row-top { display: flex; align-items: center; gap: 8px; }
.row-num { font-size: 13px; color: var(--grey); min-width: 16px; }
.row-title { font-size: 15px; line-height: 20px; margin-top: 5px; overflow-wrap: anywhere; }
.row-title b { font-weight: 700; }
.row-desc { font-size: 13px; line-height: 17px; color: var(--light); margin-top: 4px; }
.row .wiki { font-size: 11px; margin-top: 0; line-height: 15px; }
.row-sign { font-size: 13px; line-height: 17px; color: var(--grey); }

/* ---------------- queue tab */
.view-queue { display: none; }
.view-queue.active { display: block; }
.queue-head { display: flex; gap: 40px; align-items: baseline; padding: 6px 4px 16px; border-bottom: 1px solid var(--line); }
.queue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.qcell { padding: 18px 0 22px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qcell-top { display: flex; gap: 12px; min-height: 70px; }
.qcell .row-art { margin-top: 0; }
.qcell .now { color: var(--orange); font-weight: 700; font-size: 13px; }
.qcell .row-title { font-size: 14px; line-height: 18px; }
.qcell .row-desc { margin-top: 8px; }

/* ---------------- about tab */
.view-about.active { display: block; }
.about-copy { max-width: 720px; padding: 8px 4px 20px; }
.about-copy h2 { font-size: 22px; line-height: 30px; margin: 14px 0 12px; }
.about-copy p { font-size: 16px; line-height: 24px; color: var(--light); margin: 0 0 14px; }
.about-copy a { text-decoration: underline; text-underline-offset: 4px; }
.about-copy .signoff { font-size: 16px; line-height: 22px; color: var(--grey); margin-top: 18px; }

/* ---------------- footer */
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 32px 28px; font-size: 13px; color: var(--grey); }

/* ---------------- responsive */
@media (max-width: 1240px) {
  .onair { margin-right: 14px; }
  .press-play { width: 190px; margin-right: 14px; }
  .bar-meta { flex-basis: 330px; }
}
@media (max-width: 1100px) {
  .top { height: auto; flex-wrap: wrap; padding: 18px 20px; row-gap: 14px; }
  .view-now { grid-template-columns: 1fr; }
  .col-right { margin-top: 36px; }
  .queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main { padding: 20px 20px 0; }
}
@media (max-width: 760px) {
  .controls { width: 100%; flex-wrap: wrap; row-gap: 12px; justify-content: space-between; }
  .press-play { width: auto; padding: 0 22px; height: 44px; font-size: 15px; letter-spacing: 2px; margin-right: 0; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 0 8px; font-size: 14px; }
  .brand-name { font-size: 14px; letter-spacing: 2.4px; }
  .hero { aspect-ratio: 4 / 3.4; min-height: 0; border-radius: 12px; }
  .hero.video { aspect-ratio: 16 / 9; }
  .hero.video .np-label, .hero.video .hero-shade { display: none; }
  .tagline { right: 12px; bottom: 112px; }
  .tag-big { font-size: 16px; line-height: 19px; }
  .tag-small { font-size: 11px; letter-spacing: 1.8px; padding: 4px 6px; }
  .np-label { bottom: 84px; width: 150px; height: 24px; font-size: 12px; letter-spacing: 2px; padding: 4px 8px; }
  .bar { left: 10px; right: 10px; bottom: 10px; height: 64px; }
  .bar-art { width: 66px; height: 62px; padding: 2px 4px; }
  .bar-art img { width: 58px; height: 58px; }
  .hero.yt .bar-art img { width: 62px; }
  .bar-play { width: 42px; height: 42px; margin: 10px 12px 0 10px; }
  .bar-meta { flex: 1 1 auto; width: auto; }
  .bar-title { font-size: 17px; line-height: 22px; }
  .bar-wave { left: 0; right: 0; top: auto; bottom: 0; height: 0; }
  .bar-wave canvas, .times, .yt-note { display: none; }
  .embed-slot { inset: auto 0 0 0; height: 60px; }
  .embed-slot.reveal { bottom: 70px; }
  /* video on mobile: bar sits under the video, not over it */
  .hero.video { overflow: visible; margin-bottom: 92px; }
  .hero.video .bar { bottom: -84px; left: 0; right: 0; }
  .ap-desc { font-size: 15px; line-height: 22px; }
  .queue-grid { grid-template-columns: 1fr; }
  .foot { padding: 20px; flex-direction: column; gap: 8px; }
  .upnext-head { flex-wrap: wrap; }
}
