/* Spotlight (1.0.547, Alex sent a picture he liked): one dark bar with the logo, the menu and a
   Listen Live pill; a big picture across the top of the home page with the station name, its words
   in the brand colour and a slim player strip over the picture's bottom edge; shows as photo tiles;
   inner pages open on a band of the same picture with the page title over it.
   Colours: the bar and bands use the Header colour (Theme > Colours), highlights the brand colour. */
body.theme-spotlight{--spot-bar:color-mix(in srgb,var(--header-bg) 86%,#000);--spot-ink:var(--header-solid-text);--spot-logo:140px;--spot-barh:118px;--spot-sweep:271px;} /* 1.0.585 (Alex): logo 140px (was 110), bar and swoop scale with it */

/* ---- The bar: logo left, menu and Listen Live right ---- */
.th-spot-ad{background:var(--spot-bar);}
.th-spot-ad .ad--header{margin:0 auto;padding-top:1rem;}
.th-spot-top{background:var(--spot-bar);color:var(--spot-ink);position:relative;z-index:30;border-bottom:1px solid color-mix(in srgb,var(--spot-ink) 12%,transparent);}
.theme-spotlight .header-band{background:transparent;background-image:none;padding:0;color:var(--spot-ink);}
.theme-spotlight .header-band__details,.theme-spotlight .header-band__toggle{display:none !important;}
.theme-spotlight .header-band__inner{max-width:none;margin:0;padding:0.7rem 0;}
.theme-spotlight .header-band__logo img{height:var(--spot-logo);max-width:415px;}
/* 1.0.551 (Alex, after the Riverside picture): a bigger logo that hangs below the bar on a soft
   swoop, so it has some weight. The bar keeps its height; the swoop sits over the picture. */
.theme-spotlight .header-band{position:relative;z-index:1;}
.theme-spotlight .header-band__inner{position:relative;z-index:1;}
.theme-spotlight .header-band::before{content:"";position:absolute;z-index:0;top:0;left:-100vw;right:calc(-1 * var(--spot-sweep) + 1rem);
  height:calc(var(--spot-barh) / 0.62);background:var(--spot-bar);
  /* The shape: the bar drops down from the left edge under the logo, then sweeps softly back
     up to the bar's bottom edge just after it. */
  --spot-swoop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H160V62C96 62 80 100 0 100Z'/%3E%3C/svg%3E");
  -webkit-mask:var(--spot-swoop) right top/var(--spot-sweep) 100% no-repeat,linear-gradient(#000,#000) left top/calc(100% - var(--spot-sweep) + 1px) 100% no-repeat;
  mask:var(--spot-swoop) right top/var(--spot-sweep) 100% no-repeat,linear-gradient(#000,#000) left top/calc(100% - var(--spot-sweep) + 1px) 100% no-repeat;}
.theme-spotlight .brand__wordmark{color:var(--spot-ink);}
.theme-spotlight .nav-band{background:transparent;--nav-text:var(--spot-ink);}
.theme-spotlight .nav-band__links a{color:var(--spot-ink);}
.theme-spotlight .nav-band .btn-listen-outline{background:var(--color-primary);border-color:var(--color-primary);color:var(--accent-text);}
.theme-spotlight .nav-band .btn-listen-outline .btn-listen-outline__icon circle{fill:var(--accent-text);}
.theme-spotlight .nav-band .btn-listen-outline .btn-listen-outline__icon path{fill:var(--color-primary);}
/* The home page has Listen Live in the picture, so the bar doesn't keep an empty space for it. */
body.theme-spotlight:has(.th-btn[data-listen-play]) .nav-band .btn-listen-outline{display:none;}
@media (min-width:881px){
  .th-spot-top__row{max-width:var(--content-max);margin:0 auto;padding:0 1.5rem;display:flex;align-items:stretch;gap:2rem;}
  .theme-spotlight .header-band{flex:none;display:flex;align-items:flex-start;height:var(--spot-barh);}
  /* 1.0.591 (Alex: logo not vertically central): same space above the logo as below it, down to
     where the picture starts under the swoop. */
  .theme-spotlight .header-band__inner{padding:calc((var(--spot-barh) / 0.62 - var(--spot-logo)) / 2) 0 0;}
  /* 1.0.555: the menu sits above the logo's swoop, so a long menu is never hidden behind it. */
  .theme-spotlight .nav-band{flex:1 1 auto;min-width:0;display:flex;position:relative;z-index:2;}
  .theme-spotlight .nav-band__inner{max-width:none;margin:0;padding:0;flex:1;justify-content:flex-end;gap:1.25rem;}
  .theme-spotlight .nav-band__links{margin-left:0;}
  .theme-spotlight .nav-band__links > a,.theme-spotlight .nav-band__links > .mp-item > a{padding:0 0.8rem;font-size:0.95rem;}
  /* 1.0.586 (Alex: the full-height block "looks weird" in the taller bar): the current page and
     hover show as a rounded pill around the word, like Listen Live. */
  .theme-spotlight .nav-band__links{align-items:stretch;gap:0.25rem;} /* 1.0.598 (Alex): a little more than 1.0.592's 0.1rem */
  /* 1.0.598 (Alex): the chevron's drawing has empty space on its right, so pull it in to make the
     space after it match the space before the word. */
  .theme-spotlight .nav-band__links > .mp-item > a .mp-caret{margin-right:-0.22em;}
  .theme-spotlight .nav-band__links > .mp-item{display:flex;align-items:center;}
  .theme-spotlight .nav-band__links > a,.theme-spotlight .nav-band__links > .mp-item > a{align-self:center;height:auto;min-height:0;line-height:1.2;padding:0.6rem 0.9rem;border-radius:999px;}
  /* 1.0.587 (Alex: "looks weird now"): drop-downs open just under their pill with a small even
     gap (the clear padding keeps hover working across it), rounded all round. */
  .theme-spotlight .nav-band__links > .mp-item > .mp-dd{top:calc(50% + 1.2rem);left:0;padding-top:0.45rem;min-width:200px;}
  .theme-spotlight .nav-band__links > .nav-more > .mp-dd{left:auto;right:0;}
  .theme-spotlight .nav-band__links > .mp-item > .mp-dd > .mp-dd__in{border-radius:14px;padding:0.3rem;}
  .theme-spotlight .nav-band__links > .mp-item > .mp-dd a{border-radius:9px;padding:0.45rem 0.85rem;}
  .theme-spotlight .mp-dd__in{background:var(--spot-bar);box-shadow:0 14px 34px rgba(0,0,0,.28);}
  .theme-spotlight .nav-band__links .mp-dd a{color:var(--spot-ink);}
}
@media (max-width:880px){
  /* Phones (1.0.558, Alex picked mock-up B): a bigger logo on the swoop like desktop, with Listen
     Live and Menu stacked on the right; the menu opens full width underneath. */
  .th-spot-top__row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:0.9rem;padding:0 1rem;}
  .theme-spotlight .nav-band,.theme-spotlight .nav-band__inner{display:contents;}
  body.theme-spotlight{--spot-logo:62px;--spot-sweep:90px;}
  .theme-spotlight .header-band{grid-column:1;grid-row:1 / span 2;align-self:start;height:auto;display:flex;}
  .theme-spotlight .header-band__inner{padding:1.75rem 0 0;} /* 1.0.591: logo centred on the swoop */
  .theme-spotlight .header-band__logo img{max-width:min(200px,100%);}
  .theme-spotlight .header-band::before{display:block;top:0;height:calc(100% + 1.5rem);right:calc(-1 * var(--spot-sweep) + 2.5rem);
    --spot-swoop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H160V75C96 75 80 100 0 100Z'/%3E%3C/svg%3E");}
  .theme-spotlight .nav-band .btn-listen-outline{grid-column:2;grid-row:1;align-self:end;justify-self:end;margin-top:0.85rem;position:relative;z-index:3;
    font-size:0.9rem;padding:0.4rem 0.95rem 0.4rem 0.45rem;}
  .theme-spotlight .nav-band__hamburger{grid-column:2;grid-row:2;align-self:start;justify-self:end;padding:0.65rem 0 0.75rem;color:var(--spot-ink);position:relative;z-index:3;}
  /* The menu, when open: full width under the bar, the swoop tucked away so it never covers it. */
  .th-spot-top:has(.nav-band__links.open) .header-band::before{display:none;}
  .theme-spotlight .nav-band__links{grid-column:1 / -1;grid-row:3;margin:0 -1rem;padding:0.5rem 1rem 0.9rem;width:auto;position:relative;z-index:3;
    background:var(--spot-bar);border-top:1px solid color-mix(in srgb,var(--spot-ink) 14%,transparent);}
  .theme-spotlight .mp-pagehead{padding-top:3.25rem;}
  .th-hero--spot{padding-top:4.25rem;}
}

/* ---- Home page picture ---- */
.th-hero--spot{position:relative;padding:8.8rem 0 0;margin-bottom:3rem;
  /* Alex: the colour, gradient or picture set in Theme > Header background, like every theme. */
  background-color:var(--header-bg);background-image:var(--header-image,none);color:var(--header-text);
  background-size:cover;background-position:center var(--header-pos,50%);}
.th-spot__text{max-width:760px;}
.th-spot h2{font-family:var(--font-head);font-size:clamp(2.5rem,5.4vw,4.4rem);line-height:1.02;letter-spacing:-0.02em;font-weight:800;margin:0;color:var(--header-text);text-wrap:balance;}
.th-spot__name,.th-spot__line2{display:block;}
.th-spot__line2{color:var(--color-primary);margin-top:0.15rem;}
.th-spot__intro{font-size:1.15rem;line-height:1.5;max-width:32em;margin:1.2rem 0 0 !important;opacity:.92;}
.th-spot .th-btn{margin-top:1.8rem;font-size:1.05rem;}
/* The player strip sits over the bottom edge of the picture. */
.th-spot__stripwrap{position:relative;z-index:2;margin-top:3.5rem;margin-bottom:-2.6rem;}
.th-hero--spot{margin-bottom:4.25rem;display:flow-root;}
.th-spot__strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;background:color-mix(in srgb,var(--spot-bar) 94%,#000);color:var(--spot-ink);border-radius:var(--radius-card,14px);box-shadow:0 18px 40px rgba(0,0,0,.28);padding:0.85rem 1.25rem;}
.th-spot__np,.th-spot__onair{display:flex;align-items:center;gap:0.9rem;min-width:0;}
.th-spot__onair{justify-content:flex-end;text-align:right;border-left:1px solid color-mix(in srgb,var(--spot-ink) 18%,transparent);padding-left:1.25rem;}
.th-spot__txt{display:flex;flex-direction:column;min-width:0;}
/* 1.0.555 (Alex): long song and show names wrap onto a second line before being cut short. */
.th-spot__txt b{font-family:var(--font-head);font-size:1rem;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;}
.th-spot__txt span[data-mirror]{font-size:0.88rem;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.th-spot__strip .th-label{font-size:0.7rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--color-primary);}
/* 1.0.555 (Alex): the song picture and the presenter photo follow Theme > corners, both alike. */
.th-spot__art,.th-spot__pic{width:72px;height:72px;flex:none;border-radius:10px;overflow:hidden;position:relative;background:#0003 center/cover;}
.th-spot__pic > *{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
html.corners-square :is(.th-spot__art,.th-spot__pic){border-radius:3px;}
@media (max-width:880px){
  .th-hero--spot{padding-top:3.5rem;}
  .th-spot__intro{font-size:1.02rem;}
  .th-spot__stripwrap{margin-top:2.5rem;}
}
@media (max-width:600px){
  .th-spot__strip{grid-template-columns:1fr;padding:0.75rem 1rem;}
  /* Phones: on air under now playing, picture on the left like the song's (1.0.558, Alex). */
  .th-spot__strip:not(.th-spot__strip--ph) .th-spot__onair{flex-direction:row-reverse;justify-content:flex-end;text-align:left;border-left:0;padding-left:0;
    border-top:1px solid color-mix(in srgb,var(--spot-ink) 16%,transparent);margin-top:0.75rem;padding-top:0.75rem;}
  .th-spot__strip:not(.th-spot__strip--ph) :is(.th-spot__art,.th-spot__pic){width:60px;height:60px;}
}

/* ---- Headings (1.0.551, Alex: "a bit sexier"): bigger and bolder, with a short brand-colour
   bar sitting on a thin line that runs the full width, on the home page and in the side boxes. ---- */
.theme-spotlight .mp-h2row{align-items:flex-end;padding-bottom:0.75rem;margin-bottom:1.5rem;
  background:linear-gradient(var(--color-primary),var(--color-primary)) left bottom/56px 3px no-repeat,
             linear-gradient(color-mix(in srgb,var(--page-text) 14%,transparent),color-mix(in srgb,var(--page-text) 14%,transparent)) left bottom/100% 1px no-repeat;}
.theme-spotlight .mp-h2row h2{font-size:clamp(1.6rem,2.6vw,2.1rem);font-weight:800;letter-spacing:-0.015em;line-height:1.1;}
.theme-spotlight .mp-h2row .mp-seeall{background:none;padding:0;border-radius:0;color:var(--color-primary);font-weight:700;font-size:0.95rem;text-decoration:none;}
.theme-spotlight .mp-h2row .mp-seeall::after{content:"\2192";display:inline-block;margin-left:0.4rem;transition:transform .15s;}
.theme-spotlight .mp-h2row .mp-seeall:hover{color:var(--color-primary);filter:none;}
.theme-spotlight .mp-h2row .mp-seeall:hover::after{transform:translateX(3px);}
.theme-spotlight .mp-widget .about-station__card-title{font-size:1.3rem;font-weight:800;letter-spacing:-0.01em;line-height:1.15;
  padding-bottom:0.65rem;margin-bottom:1rem;
  background:linear-gradient(var(--color-primary),var(--color-primary)) left bottom/40px 3px no-repeat,
             linear-gradient(color-mix(in srgb,var(--page-text) 12%,transparent),color-mix(in srgb,var(--page-text) 12%,transparent)) left bottom/100% 1px no-repeat;}

/* ---- Inner pages: the station's picture behind the page title ---- */
.theme-spotlight .mp-pagehead{position:relative;padding:7.75rem 0 3.25rem;
  background-color:var(--header-bg);background-image:var(--header-image,none);color:var(--header-text);
  background-size:cover;background-position:center var(--header-pos,50%);}
.theme-spotlight .mp-pagehead h1{font-size:3rem;font-weight:800;letter-spacing:-0.015em;line-height:1.08;color:var(--header-text);}
.theme-spotlight .mp-pagehead :is(a,.mp-pagehead__date,.mp-pagehead__from,p){color:var(--header-text);opacity:.88;}
.theme-spotlight .mp-pagehead + :is(.mp-cols,section){margin-top:1.75rem;}
/* Now playing and on air on every inner page: the home page's strip, smaller, on the right. */
.th-spot__strip--ph{flex:0 1 760px;min-width:0;padding:0.7rem 1.1rem;gap:0;box-shadow:0 12px 28px rgba(0,0,0,.22);}
/* 1.0.563 (Alex): divider exactly in the middle: equal space either side, no margin pushing it right. */
.th-spot__strip--ph .th-spot__np{padding-right:1.1rem;}
.th-spot__strip--ph .th-spot__onair{justify-content:flex-start;text-align:left;padding-left:1.1rem;}
.th-spot__strip--ph :is(.th-spot__art,.th-spot__pic){width:64px;height:64px;}
.th-spot__strip--ph .th-spot__txt b{font-size:0.95rem;}
/* Listen Live in the strip: phones only (1.0.559). */
.th-spot__listen{display:none !important;}
@media (max-width:880px){
  .th-spot__strip--ph .th-spot__listen{display:inline-flex !important;grid-column:1 / -1;justify-content:center;width:100%;margin:1.1rem 0 0.4rem;
    background:var(--color-primary);border-color:var(--color-primary);color:var(--accent-text);}
  .th-spot__strip--ph .th-spot__listen .btn-listen-outline__icon circle{fill:var(--accent-text);}
  .th-spot__strip--ph .th-spot__listen .btn-listen-outline__icon path{fill:var(--color-primary);}
  /* The bar's Listen Live steps aside on phones; the page's own one is in the strip (or the home picture). */
  body.theme-spotlight:has(.th-spot__strip--ph) .nav-band .btn-listen-outline{display:none;}
  body.theme-spotlight:has(.th-spot__strip--ph) .nav-band__hamburger{grid-row:1 / span 2;align-self:center;padding:0;}
  /* 1.0.561 (Alex): the home page has no Listen Live in the bar either (it's in the hero), so
     Menu sits level with the logo there too, like inner pages. */
  body.theme-spotlight:has(.th-btn[data-listen-play]) .nav-band__hamburger{grid-row:1 / span 2;align-self:center;padding:0;}
}
@media (max-width:880px){.theme-spotlight .mp-pagehead{padding-top:3.5rem;}}
@media (max-width:600px){.theme-spotlight .mp-pagehead{padding:2.9rem 0 1.6rem;}.theme-spotlight .mp-pagehead h1{font-size:2.1rem;}
  /* Phones: the two stacked, one slim row each. */
  .th-spot__strip--ph{flex-basis:100%;grid-template-columns:1fr;padding:0.35rem 0.85rem;}
  .th-spot__strip--ph :is(.th-spot__np,.th-spot__onair){padding:0.45rem 0;gap:0.75rem;}
  .th-spot__strip--ph .th-spot__onair{display:flex;margin:0;padding-left:0;border-left:0;border-top:1px solid color-mix(in srgb,var(--spot-ink) 16%,transparent);}
  .th-spot__strip--ph :is(.th-spot__art,.th-spot__pic){width:56px;height:56px;}
}

/* ---- Footer joins the bar ---- */
.theme-spotlight .site-footer{border-top:3px solid var(--color-primary);}

/* The app view (?app=1) has its own title bar. */
.app-view :is(.th-spot-top,.th-spot-ad){display:none !important;}
/* 1.0.562 (Alex, like Vinyl and Cards): a long page title wraps onto more lines, and now playing +
   on air always stay in the same place on the right. */
@media (min-width:881px){
  body.theme-spotlight .mp-pagehead .section-inner{flex-wrap:nowrap !important;align-items:center;}
  .theme-spotlight .mp-pagehead__main{flex:1 1 auto;min-width:0;}
  .theme-spotlight .mp-pagehead h1{text-wrap:balance;overflow-wrap:break-word;}
  .th-spot__strip--ph{flex:0 0 min(640px,58%);}
}
/* 1.0.604 (Alex: "that's not going white text on dark background"): the bar uses the header's text
   colour, but the current page's pill is a shade of the Menu bar colour, so its words take the
   colour that reads on that pill (white on a dark pill, dark on a light one). */
.theme-spotlight .nav-band__links > a.mp-cur,.theme-spotlight .nav-band__links > .mp-item > a.mp-cur{color:var(--nav-active-text, var(--spot-ink));}
