/* ==========================================================================
   PICCADILLY RADIO 261 — HOMEPAGE SECTIONS
   Depends on brand.css + site.css.
   ========================================================================== */

/* ── ON AIR / NOW PLAYING STRIP ────────────────────────────────────────── */

.pr-onair { background: var(--pr-white); }

.pr-onair .pr-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--pr-s6);
  align-items: center;
  padding-block: var(--pr-s4);
}

.pr-onair__block { display: flex; align-items: center; gap: var(--pr-s4); min-width: 0; }

.pr-onair__art {
  width: 58px; height: 58px;
  flex: none;
  object-fit: cover;
  background: var(--pr-mist);
  border-radius: var(--pr-radius-sm);
  box-shadow: var(--pr-shadow-xs);
}
.pr-onair__art--round { border-radius: 50%; }

.pr-onair__label {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 2px;
}

.pr-onair__title {
  font-size: 1.0625rem; font-weight: 700;
  letter-spacing: var(--pr-track-tight);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pr-onair__meta {
  font-size: .8125rem; color: var(--pr-grey-700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── CONTACT STRIP ─────────────────────────────────────────────────────── */

.pr-contact { background: var(--pr-mist); }

/* Same width as the rest of the page, so the strip lines up on wide screens */
.pr-contact__grid { display: grid; grid-template-columns: repeat(6, 1fr); max-width: var(--pr-max); margin-inline: auto; }

.pr-contact__item {
  display: flex; align-items: center; gap: var(--pr-s3);
  padding: var(--pr-s5) var(--pr-s4);
  border-left: 1px solid var(--pr-line);
  min-width: 0;
  transition: background .2s var(--pr-ease);
}
.pr-contact__item:first-child { border-left: 0; }
.pr-contact__item:hover { background: rgba(255, 255, 255, .6); }

.pr-contact__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--pr-orange-tint);
  color: var(--pr-orange);
}
.pr-contact__icon svg { width: 16px; height: 16px; fill: currentColor; }

.pr-contact__text { min-width: 0; }

.pr-contact__label {
  display: block;
  font-size: .625rem; font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  color: var(--pr-grey-700);
}
/* Wraps rather than ellipsises — support@piccadilly261.com is longer than a
   tile at the 3-column breakpoint, and a half-shown address is useless. */
.pr-contact__value {
  display: block;
  font-size: .875rem; font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* ── MAIN GRID: NEWS + SIDEBAR ─────────────────────────────────────────── */

.pr-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--pr-s7); align-items: start; }

.pr-news-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--pr-s5); }
.pr-news-stack { display: grid; gap: var(--pr-s4); align-content: start; }

/* Category pill, shared */
.pr-tag {
  align-self: flex-start;
  display: inline-block;
  font-size: .625rem; font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  padding: .35rem .75rem;
  background: var(--pr-orange);
  color: var(--pr-white);
  border-radius: var(--pr-pill);
}

.pr-date { font-size: .75rem; color: var(--pr-grey-700); font-weight: 600; }

/* Featured story */
.pr-feature {
  display: flex; flex-direction: column;
  background: var(--pr-white);
  border-radius: var(--pr-radius-lg);
  overflow: hidden;
  box-shadow: var(--pr-shadow-xs);
  transition: box-shadow .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-feature:hover { box-shadow: var(--pr-shadow-lg); transform: translateY(-2px); }

.pr-feature__media { aspect-ratio: 16 / 10; background: var(--pr-mist); }
.pr-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.pr-feature__body { padding: var(--pr-s5); display: flex; flex-direction: column; gap: var(--pr-s3); }
.pr-feature__title { font-size: 1.375rem; }
.pr-feature__dek { font-size: .9375rem; color: var(--pr-grey-700); margin: 0; }

/* Small story rows */
.pr-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  overflow: hidden;
  box-shadow: var(--pr-shadow-xs);
  transition: box-shadow .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-mini:hover { box-shadow: var(--pr-shadow); transform: translateY(-2px); }

.pr-mini__media { background: var(--pr-mist); min-height: 108px; }
.pr-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.pr-mini__body { padding: var(--pr-s4); display: flex; flex-direction: column; gap: var(--pr-s2); justify-content: center; }
.pr-mini__title { font-size: .9375rem; line-height: 1.25; }

/* ── SIDEBAR ───────────────────────────────────────────────────────────── */

.pr-side { display: grid; gap: var(--pr-s6); }

/* Weather — the reference uses a solid secondary-colour card; ours is the
   brand orange, which is the nearest equivalent in a two-colour identity. */
.pr-weather {
  background: linear-gradient(160deg, var(--pr-orange) 0%, var(--pr-orange-deep) 100%);
  color: var(--pr-white);
  border-radius: var(--pr-radius-lg);
  padding: var(--pr-s6) var(--pr-s5) var(--pr-s5);
  text-align: center;
  box-shadow: var(--pr-shadow);
}

.pr-weather__icon { font-size: 2.75rem; line-height: 1; margin-bottom: var(--pr-s2); }

.pr-weather__temp {
  font-size: 3.5rem; font-weight: 800;
  line-height: 1;
  letter-spacing: var(--pr-track-tight);
  font-variant-numeric: tabular-nums;
}
.pr-weather__temp sup { font-size: .32em; vertical-align: super; font-weight: 700; opacity: .85; }

.pr-weather__desc  { font-size: .9375rem; font-weight: 600; margin: var(--pr-s2) 0 0; text-transform: capitalize; }
.pr-weather__place { font-size: .8125rem; margin: var(--pr-s1) 0 0; opacity: .82; }

.pr-weather__days {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--pr-s2);
  margin-top: var(--pr-s5);
  padding-top: var(--pr-s5);
  border-top: 1px solid rgba(255, 255, 255, .26);
}
.pr-weather__day { font-size: .6875rem; }
.pr-weather__day b { display: block; font-weight: 700; letter-spacing: .06em; opacity: .82; margin-bottom: var(--pr-s1); }
.pr-weather__day i { display: block; font-style: normal; font-size: 1.125rem; margin-bottom: var(--pr-s1); }
.pr-weather__day span { font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-weather__credit { margin: var(--pr-s4) 0 0; font-size: .625rem; opacity: .75; }
.pr-weather__credit a { color: inherit; }

/* Recently played */
.pr-recent { display: grid; gap: var(--pr-s2); list-style: none; margin: 0; padding: 0; }

.pr-track {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: var(--pr-s3);
  align-items: center;
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  padding: var(--pr-s2);
  box-shadow: var(--pr-shadow-xs);
}

.pr-track__art { width: 46px; height: 46px; object-fit: cover; background: var(--pr-mist); border-radius: var(--pr-radius-sm); }
.pr-track__name { font-size: .875rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-track__artist { font-size: .75rem; color: var(--pr-grey-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-track__ago { font-size: .6875rem; color: var(--pr-grey-700); white-space: nowrap; padding-right: var(--pr-s2); }

/* ── CHANNELS PROMO BANNER ─────────────────────────────────────────────── */

.pr-promo {
  display: flex; align-items: center; gap: var(--pr-s5);
  background: linear-gradient(100deg, var(--pr-black) 0%, var(--pr-orange-deep) 62%, var(--pr-orange) 100%);
  color: var(--pr-white);
  border-radius: var(--pr-radius-lg);
  padding: var(--pr-s6);
  margin-top: var(--pr-s5);
  box-shadow: var(--pr-shadow);
}

.pr-promo__num {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: 1.5rem; font-weight: 800;
}

.pr-promo__title { font-size: 1.375rem; margin-bottom: var(--pr-s2); }
.pr-promo__text  { font-size: .9375rem; margin: 0; max-width: 52ch; opacity: .9; }
.pr-promo .pr-btn { margin-left: auto; flex: none; }

/* ── THE TUNER ─────────────────────────────────────────────────────────────
   Ours, not the reference's — built from tuner_stations.json. A dial strip
   where each channel sits on its own frequency.                           */

.pr-tuner {
  background: var(--pr-black);
  color: var(--pr-white);
  border-radius: var(--pr-radius-lg);
  padding: var(--pr-s6);
  box-shadow: var(--pr-shadow);
}

.pr-tuner__head {
  display: flex; align-items: baseline; gap: var(--pr-s3);
  margin-bottom: var(--pr-s5);
}
.pr-tuner__head h2 { font-size: 1.5rem; }
.pr-tuner__head span { font-size: .8125rem; color: var(--pr-grey-400); }

/* The dial: a hairline with the frequency marks sitting on it. */
.pr-dial {
  display: flex; gap: var(--pr-s2);
  overflow-x: auto;
  padding-bottom: var(--pr-s3);
  scrollbar-width: thin;
}

.pr-dial__btn {
  flex: 1 0 auto;
  min-width: 128px;
  display: grid; gap: 2px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid transparent;
  border-radius: var(--pr-radius);
  padding: var(--pr-s3) var(--pr-s4);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--pr-ease), border-color .2s var(--pr-ease);
}
.pr-dial__btn:hover { background: rgba(255, 255, 255, .13); border-color: var(--pr-orange); }
.pr-dial__btn.is-tuned { background: var(--pr-orange); border-color: var(--pr-orange); }

.pr-dial__freq {
  font-size: 1.375rem; font-weight: 800;
  letter-spacing: var(--pr-track-tight);
  font-variant-numeric: tabular-nums;
}
.pr-dial__freq small { font-size: .5em; font-weight: 700; opacity: .7; margin-left: 2px; }
.pr-dial__name { font-size: .8125rem; font-weight: 700; }
.pr-dial__sub  { font-size: .6875rem; color: var(--pr-grey-400); }
.pr-dial__btn.is-tuned .pr-dial__sub { color: rgba(255, 255, 255, .85); }

/* ── CHANNEL CARDS ─────────────────────────────────────────────────────────
   Rendered from stations.json — the playlist cards, in the reference's card
   language rather than the old vinyl-disc treatment.                       */

.pr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pr-s4); }

.pr-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--pr-white);
  border-radius: var(--pr-radius);
  overflow: hidden;
  box-shadow: var(--pr-shadow-xs);
  transition: box-shadow .2s var(--pr-ease), transform .2s var(--pr-ease);
}
.pr-card:hover { box-shadow: var(--pr-shadow-lg); transform: translateY(-3px); }

.pr-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--pr-mist); }
.pr-card__media img { width: 100%; height: 100%; object-fit: cover; }

.pr-card__tag {
  position: absolute; top: var(--pr-s3); left: var(--pr-s3);
  font-size: .5625rem; font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  padding: .3rem .6rem;
  background: rgba(20, 22, 26, .82);
  color: var(--pr-white);
  border-radius: var(--pr-pill);
}

.pr-card__play {
  position: absolute; right: var(--pr-s3); bottom: var(--pr-s3);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--pr-orange);
  color: var(--pr-white);
  cursor: pointer;
  box-shadow: var(--pr-shadow-btn);
  transition: transform .15s var(--pr-ease), background .2s var(--pr-ease);
}
.pr-card__play:hover { background: var(--pr-orange-bright); transform: scale(1.08); }

.pr-card__body  { padding: var(--pr-s4); display: grid; gap: 2px; }
.pr-card__name  { font-size: .9375rem; }
.pr-card__sub   { font-size: .75rem; color: var(--pr-grey-700); }
.pr-card__stats { font-size: .6875rem; color: var(--pr-grey-700); margin-top: var(--pr-s2); display: flex; gap: var(--pr-s3); }

/* ── YOUTUBE PLAYLIST MODAL ────────────────────────────────────────────── */

.pr-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(11, 12, 14, .88);
  padding: var(--pr-gutter);
}

.pr-modal__inner { width: min(960px, 100%); }

.pr-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--pr-radius);
  overflow: hidden;
}
.pr-modal__frame iframe { width: 100%; height: 100%; border: 0; }

.pr-modal__close {
  display: flex; align-items: center; gap: var(--pr-s2);
  margin: 0 0 var(--pr-s3) auto;
  background: none; border: 0;
  color: var(--pr-white);
  font-family: inherit; font-size: .875rem; font-weight: 700;
  cursor: pointer;
}
.pr-modal__close:hover { color: var(--pr-orange); }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 1060px) {
  .pr-main { grid-template-columns: 1fr; }
  .pr-side { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 1060px) {
  .pr-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .pr-onair .pr-wrap { grid-template-columns: 1fr 1fr; }
  .pr-onair .pr-btn { grid-column: 1 / -1; }
  .pr-contact__grid { grid-template-columns: repeat(3, 1fr); }
  .pr-contact__item:nth-child(3n+1) { border-left: 0; }
  .pr-contact__item:nth-child(n+4) { border-top: 1px solid var(--pr-line); }
}

@media (max-width: 760px) {
  .pr-news-grid { grid-template-columns: 1fr; }
  .pr-side { grid-template-columns: 1fr; }
  .pr-onair .pr-wrap { grid-template-columns: 1fr; gap: var(--pr-s4); }
  .pr-promo { flex-wrap: wrap; }
  .pr-promo .pr-btn { margin-left: 0; }
}

@media (max-width: 760px) {
  .pr-cards { grid-template-columns: repeat(2, 1fr); }
  .pr-tuner { padding: var(--pr-s5) var(--pr-s4); }
}

@media (max-width: 560px) {
  .pr-contact__grid { grid-template-columns: repeat(2, 1fr); }
  .pr-contact__item { border-left: 0; }
  .pr-contact__item:nth-child(even) { border-left: 1px solid var(--pr-line); }
  .pr-contact__item:nth-child(n+3) { border-top: 1px solid var(--pr-line); }
  .pr-mini { grid-template-columns: 96px minmax(0, 1fr); }
}


/* ── MORE STATIONS STRIP ───────────────────────────────────────────────────
   Under the on-air bar: the flagship leads the page, the other five channels
   sit here one tap away. Scrolls sideways on narrow screens.               */

.pr-more { background: var(--pr-white); border-top: 1px solid var(--pr-line); }
.pr-more .pr-wrap { padding-block: var(--pr-s5); }

.pr-more__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pr-s4); margin-bottom: var(--pr-s4); }
.pr-more__title { font-size: 1.125rem; }

.pr-more__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--pr-s3); }

.pr-more__card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--pr-s3);
  background: var(--pr-paper);
  border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius);
  padding: var(--pr-s3) var(--pr-s3) var(--pr-s3) var(--pr-s4);
  transition: border-color .2s var(--pr-ease), box-shadow .2s var(--pr-ease);
}
.pr-more__card:hover { border-color: var(--pr-orange); box-shadow: var(--pr-shadow); }

.pr-more__link { display: grid; gap: 2px; min-width: 0; }
.pr-more__ident { line-height: .95; }
.pr-more__ident small { display: block; font-size: .5625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pr-grey-700); }
.pr-more__ident b { display: block; font-family: var(--pr-font-mark); font-weight: 400; font-size: 1.375rem; color: var(--pr-orange); letter-spacing: -.02em; }
.pr-more__freq { font-size: .6875rem; font-weight: 700; color: var(--pr-grey-700); font-variant-numeric: tabular-nums; }

.pr-more__play {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--pr-orange); color: var(--pr-white);
  cursor: pointer;
  box-shadow: var(--pr-shadow-btn);
  transition: background .2s var(--pr-ease), transform .12s var(--pr-ease);
}
.pr-more__play:hover { background: var(--pr-orange-bright); }
.pr-more__play:active { transform: scale(.94); }

@media (max-width: 960px) {
  .pr-more__row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--pr-s2);
  }
  .pr-more__card { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .pr-more__head { flex-direction: column; gap: var(--pr-s1); }
}
