:root {
  --font-size-general: 1.2rem;
  --color-text: #000;
  --color-primary: #ff7466;
  --color-bg-duotone: #fde3a4;
  --text-gray: rgba(0, 0, 0, 0.45);
  --text-lightwhite: rgba(255, 255, 255, 0.7);
  --color-text-accent: #f44b42;
  /* #ea0f4d; */
  --label-padding-md: 50px;
  --control-gray: rgba(0, 0, 0, 0.13);
  --ui-padding-sm: 5px;
  --ui-padding-md: 10px;
  --ui-transition-duration: 0.25s ease-in-out;
  --ui-transition-duration-fast: 0.15s ease-in-out;
  --font-general: "Space Mono", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-serif: serif;
  --playbar-padding: 20px;
  --columns-padding-top: 130px;
  --columns-padding-left-right: 100px;
  --columns-minor-gutter: 20px;
  --cubic-bezier: cubic-bezier(.26,.56,.88,.68);
}
::selection {
  background: #ff7466;
  color: #fff;
  text-shadow: none;
}

html {
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
@font-face {
  font-family: "Space Mono";
  src: url("../font/SpaceMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Space Mono";
  src: url("../font/SpaceMono-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
body {
  font-family: var(--font-general);
  letter-spacing: -0.2px;
  font-weight: 300;
  color: var(--color-text);
  min-height: 100vh;
}
h3, h4 {
  font-weight: 300;
}
p {
  line-height: 1.3em;
}
.container {
  padding-right: 20px;
  padding-left: 20px;
}
header {
  position: fixed;
  top: 0px;
  width: 100%;
  user-select: none;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}
header .container {
  padding-bottom: 13px;
  padding-top: 13px;
}
header svg {
  width: 170px;
  fill: #000;
}
p a, li a, ul a, table a, caption a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-primary);
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}
p a:hover, li a:hover, ul a:hover, caption a:hover {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}
ul, ol {
  list-style-type: none;
  padding: 0px;
  margin: 0px;
}
li {
  margin-bottom: var(--ui-padding-sm);
}

/* ====== HELPERS ============= */
.text--gray {
  color: var(--text-gray) !important;
}

.text--gray a {
  color: var(--text-gray);
  border-bottom: 1px dotted var(--text-gray);
}

.text--small {
  font-size: 0.8em;
}

.text--to-lowercase {
  text-transform: lowercase;
}

.text--weight-normal {
  font-weight: normal;
}

.text--weight-bold {
  font-weight: bold;
}

.mix-blend-mode--multiply {
  mix-blend-mode: multiply;
}
.only-show-sm {
  display: none;
}
input.button--nostyle, button.button--nostyle {
  background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

/* ====== GENERIC ELEMENTS ============= */
.tags-list {
  user-select: none;
}
.tag {
  background-color: var(--text-gray);
  color: #fff;
  padding: 7px var(--ui-padding-md) 7px var(--ui-padding-md);
  border-radius: 20px;
}

/* ====== INDEX ============= */
body.page-index {
  background: linear-gradient(to bottom, var(--color-bg-duotone) 442px, #fff 0%);
}

/* ====== STATIONS VIEW ============= */
.page-index .section-stations h1, .page-index .section-stations h2, .page-index .section-stations p {
  margin-left: var(--label-padding-md);
}

.page-index h1 {
  line-height: 1.05em;
}

.index-columns {
  display: flex;
  /* grid-template-columns: [col-1] 3fr [col-2] 1fr; */
}

.index-col-1 {
  width: 70%;
  padding-top: var(--columns-padding-top);
  padding-left: var(--columns-padding-left-right);
  padding-right: var(--columns-minor-gutter);
}

.index-col-2 {
  width: 30%;
  padding-top: var(--columns-padding-top);
  padding-left: var(--columns-minor-gutter);
  padding-right: calc(var(--columns-padding-left-right) - 20px);
}
.index-col-2 p {
  padding: 0px 20px 0px 20px;
  color: #000;
  font-family: var(--font-serif);
}

.page-index .info-feature {
  display: flex;
  gap: 10px;
  margin: 5px 0px 25px 0px;
}

.page-index .info-feature img {
  opacity: 0.9;
}

.page-index .info-feature .col-2 {
  padding-top: 15px;
}

.grid-stations {
  display: grid;
  transition: 200ms;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.grid-stations a {
  text-decoration: none;
  color: inherit;
}

.flex-stations {
  display: flex;
  overflow-x: scroll;
}

.grid-stations .station,
.flex-stations .station {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  cursor: pointer;
  padding: 40px 30px 50px 30px;
  position: relative;
}

.flex-stations .station {
  max-width: 27%;
  min-width: 27%;
}

.station-tags {
  position: absolute;
  top: var(--ui-padding-md);
  left: var(--ui-padding-md);
}

.station .station-tags {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ui-transition-duration-fast);
  display: flex;
  gap: 5px;
}

.station:hover .station-tags {
  opacity: 1;
  visibility: visible;
}

.live-recs .station-platter {
  max-width: 90%;
}

#live-now {
  overflow: hidden;
  max-height: 800px;
  transition: height 0.5s ease;
}

.live-empty {
  max-height: 0px;
}

#button-refresh {
  margin-left: 8px;
  height: 18px;
  width: 18px;
  margin-top: 2px;
  position: absolute;
}

#button-refresh svg {
  fill: var(--text-gray);
}

#button-refresh.animate svg {
  transition: 1s transform;
  transform: rotate(360deg);
}

/* station-grid, station-flex
    | Platter */

.platter-sprite {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.station-platter {
  max-width: 260px;
  border-radius: 50%;
  background-size: 101%;
  background-position: center;
  transition: 0.3s box-shadow cubic-bezier(.41,.54,.9,.56);
  box-shadow: 0px 5px 12px -7px rgba(0, 0, 0, 0.3), 0px 2px 8px 1px rgba(255, 125, 120, 0.2);
  overflow: hidden;
}

.station:hover .station-platter {
  box-shadow: 0px 1px 23px 2px rgba(0,0,0,0.18);
}

.station-name, .station-section-leader {
  align-self: center;
  font-size: var(--font-size-general);
  margin: 20px 0px 20px inherit;
  font-weight: bold;
}

.station-name {
  text-align: center;
  line-height: 1.19em;
  font-size: 1.2em;
  margin: 30px 0px 0px 0px;
}

.station-name span {
  color: var(--text-gray);
  font-weight: normal;
  display: block;
  font-size: 0.9em;
}

.station.station-inverted .station-name {
  color: #fff;
}

.station-name span.station-name-show {
  color: var(--color-text-accent);
  line-height: 1.4em;
  font-weight: bold;

}

.station.station-inverted .station-name span {
  color: var(--text-lightwhite);
}

.station-section-leader {
  text-transform: lowercase;
  color: var(--color-text-accent);
  margin: 30px 0px 30px var(--label-padding-md);
}

/* ====== STREAMER GENERIC ============= */
.streamer-active .platter-inner img {
  animation: 17s spinner infinite linear;
  display: block;
  pointer-events: none;
}
@keyframes spinner {
  from { transform: rotate(0deg) }
  to { transform: rotate(360deg) }
}
.streamer-active .has-pulser::before,
h2.has-pulser::before {
  display: inline-block;
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulser 2s linear infinite, pulser_loading 4s ease-out;
}
.pulser-red.has-pulser::before {
  color: #db6767;
}
@keyframes pulser {
	0% { opacity: 0; }
	50% { opacity: 1; }
	100% { opacity: 0; }
}
@keyframes pulser_loading {
  0% { transform: scale(0.1); }
  100% { transform: scale(1); }
}

/* ====== PLAYBAR ============= */
.playbar {
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  transition: width var(--ui-transition-duration), background-color var(--ui-transition-duration);
}
.playbar:hover {
  background-color: rgba(255, 255, 255, 0.4);
}
.playbar > * {
  padding: var(--playbar-padding);
  margin: 0px;
  font-size: var(--font-size-general);
  display: flex;
  align-items: center;
  transition: background-color var(--ui-transition-duration) ease-in;
  user-select: none;
}
.playbar > *:hover {
  background-color: rgba(0, 0, 0, 0.1);;
}
.playbar > *:active {
  outline: 2px solid var(--control-gray);
  outline-offset: -2px;
}
.playbar-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  opacity: 100;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--ui-transition-duration), width var(--ui-transition-duration), padding var(--ui-transition-duration);
}
.playbar a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
/* Loading State */
#stream-station_name.animate {
  animation: 1s pulser_loading;
}
#stream-station_name.animate::before {
  /* animation: 0.5s spinner infinite;
  border-top: 4px solid #000;
  background-color: transparent; */
}
/* Playbar
    | Platter */
#playbarPlatter {
  cursor: pointer;
}
.playbar-platter-inner {
    width: 40px;
    height: 40px;
    border-radius: 40px;
    position: relative;
    background: #000;
}
.playbar-platter-inner::after {
  display: block;
  width: 17px;
  height: 17px;
  position: absolute;
  content: "";
  top: calc(50% - 8.5px);
  left: calc(50% - 8.5px);
  opacity: 0;
  transition: all 0.1s var(--cubic-bezier);
  will-change: border-width, opacity;
  box-sizing: border-box;
  border-style: solid;
  border-width: 8.5px 0px 8.5px 17px;
  border-color: transparent transparent transparent #fff;
}
#playbarPlatter:hover .playbar-platter-inner::after {
  opacity: 100;
}
.playbar-platter-inner img {
  transition: opacity var(--ui-transition-duration-fast);
}
#playbarPlatter:hover .playbar-platter-inner img {
  opacity: 0.5;
}
.streamer-active .playbar-platter-inner::after {
  border-left: 17px solid #fff;
  border-right: 0px solid transparent;
  border-top: 0px solid transparent;
  border-bottom: 0px solid transparent;
}
/* Playbar
    |  Rewind */
.playbar-control svg {
  width: 30px;
  transition: transform var(--ui-transition-duration);
}
.playbar-control-hidden {
  width: 0px;
  opacity: 0;
  padding: 0px;
}
.playbar-control.playbar-control-disabled {
  cursor: not-allowed;
  fill: var(--control-gray);
}
#controlRewind:hover .svg-rewind-arrow {
  animation: rewindArrow 1s var(--cubic-bezier) forwards 1;
}
#playbar-timebehind-target {
  color: #599559;
}
@keyframes rewindArrow {
  0% {
    transform: translateY(0px) translateX(0px);
    rotate: 0deg;
  }
  100% {
    transform: translateY(2px) translateX(-4px);
    rotate: -10deg;
  }
}

/* ====== FOOTER ============= */
footer {
  padding-left: var(--columns-padding-left-right);
  padding-right: var(--columns-padding-left-right);
  padding-bottom: 50px;
  padding-top: 20px;
  background-color: var(--color-bg-duotone);
}
#horoscope img {
  display: block;
  margin: 0 auto;
  width: 800px;
  pointer-events: none;
  user-select: none;
}

/* ====== PAGE - GENERIC & STATION ============= */
body.page-generic {
  background: var(--color-bg-duotone);
}
.page-generic .container,
.page-station .container {
  width: 100%;
}
.page-generic main,
.page-station main {
  padding-top: var(--columns-padding-top);
  padding-bottom: var(--columns-padding-top);
}
.page-generic main h1, .page-generic main h2, .page-generic main h3, .page-generic main p,
.page-station p {
  max-width: 800px;
}
.page-generic h2 {
  padding-top: 30px;
}
.page-generic main p,
.page-station main p {
  font-family: var(--font-serif);
  font-size: 1.4em;
}
.breadcrumb svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 10px;
  border-bottom: none;
}

/* ====== PAGE - STATION ============= */
.page-station h1 {
  font-size: 4.2em;
  margin-bottom: 0em;
  line-height: 1.05em;
}
.page-station main {
  display: flex;
  padding: 0px;
}
.page-station .page-station-description a {
  color:var(--text-gray);
  border-bottom: 1px dotted var(--text-gray);
}
.page-station .page-station-description {
  padding-top: var(--columns-padding-top);
}
.page-station .page-station-description {
  width: 60vw;
  padding-bottom: 50px;
}
.page-station .page-station-controls {
  width: 40vw;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--ui-transition-duration-fast) background;
}
.page-station .page-station-controls:hover {
  background: #ffffffb0;
}
.page-station .page-station-controls > div {
  width: 100%;
  padding-left: var(--columns-padding-left-right);
  padding-right: var(--columns-padding-left-right);
}
.page-station .page-station-controls .station-platter {
  margin: 0 auto;
}
.page-station .page-station-description ul {
  margin-top: 60px;
}
.page-station .page-station-description li {
  padding-bottom: 4px;
  font-size: 1.1em;
}
.page-station .page-station-description li.breaker {
  padding-top: 14px;
}
.page-station .page-station-description li a {
  color: #000;
}
.station-inverted h1, .station-inverted p, .station-inverted ul {
  color: #fff;
}
.page-station.station-inverted .page-station-description a {
  color: var(--text-lightwhite);
  border-bottom: 1px dotted var(--text-lightwhite);
}
.control-button-wrapper {
  margin-top: 50px;
}
.control-button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}
.control-button::before {
  display: block;
  width: 30px;
  height: 30px;
  content: "";
  transition: all 0.3s var(--cubic-bezier);
  will-change: border-width, opacity;
  box-sizing: border-box;
  border-style: solid;
  border-width: 15px 0px 15px 30px;
  border-color: transparent transparent transparent #000;
}

/* ====== MEDIA QUERIES ============= */
/* Small devices */
@media (max-width: 649.98px) {
  :root {
    --columns-padding-top: 0px;
    --columns-padding-left-right: 0px;
    --columns-minor-gutter: 30px;
    --font-size-general: 1rem;
    --playbar-padding: 10px;
  }
  body, body.page-index {
    background: var(--color-bg-duotone);
  }
  body {
    font-size: 0.85rem;
  }
  header {
    position: relative;
  }
  header svg {
    width: 132px;
  }
  .only-show-sm {
    display: block;
  }
  .index-columns {
    display: block;
  }
  .index-columns h1 {
    font-size: 1.8em;
  }
  .index-col-1, .index-col-2 {
    width: 100%;
  }
  .index-col-1 {
    padding-right: 0px;
  }
  .flex-stations {
    width: calc(100% + var(--columns-minor-gutter));
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .flex-stations .station {
    padding: 20px 30px 50px 30px;
    min-width: 180px;
    max-width: 180px;
  }
  .grid-stations {
    width: 100%;
  }
  #live-now-header span {
    display: inline-block;
    margin-top: 4px;
  }
  #button-refresh {
    margin-top: 3px;
  }
  .live-recs .station-name {
    margin-top: 14px;
  }
  .station-name {
    font-size: 1.05em;
    line-height: 1.2em;
  }
  .station .station-tags {
    opacity: 1;
    visibility: visible;
  }
  .playbar {
    font-size: 0.8em;
  }
  .page-station main {
    flex-direction: column-reverse;
    margin-top: -65px;
  }
  .page-station .page-station-controls,
  .page-station .page-station-description {
    width: 100%;
  }
  .page-station .page-station-controls {
    padding-top: 85px;
    min-height: 300px;
    padding-bottom: 35px;
  }
  .page-station .page-station-controls .station-platter {
    max-width: 50vw;
  }
  footer {
    background: #fff;
    padding-right: var(--label-padding-md);
    padding-left: var(--label-padding-md);
  }
}
/* Medium-small */
@media (min-width: 650px) and (max-width: 991.98px) {
  :root {
    --columns-padding-top: 80px;
    --columns-padding-left-right: 30px;
    --columns-minor-gutter: 30px;
    --font-size-general: 1.1rem;
  }
  body.page-index {
    background: linear-gradient(to bottom, var(--color-bg-duotone) 300px, #fff 0%);
  }
  body {
    font-size: 0.9rem;
  }
  .grid-stations {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .grid-stations.live-recs {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .live-recs .station-platter {
    max-width: 100%;
  }
}
/* Medium-small and down */
@media (max-width: 991.98px) {
  :root {
    --label-padding-md: 25px;
  }
  .live-now .station {
    padding-bottom: 20px;
  }
  #live-now .station-section-leader {
    margin-bottom: 10px;
  }
  .station-platter {
    max-width: 100%;
  }
}
/* Medium devices */
@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    --columns-padding-top: 80px;
    --columns-padding-left-right: 30px;
    --columns-minor-gutter: 30px;
  }
  body.page-index {
    background: linear-gradient(to bottom, var(--color-bg-duotone) 340px, #fff 0%);
  }
}
/* Mid-size devices and all down */
@media (max-width: 1199.98px) {
  .index-col-2 {
    padding-right: var(--columns-padding-left-right);
  }
  .grid-stations {
    grid-template-columns: 1fr 1fr;
  }
  .live-now .station-platter {
    max-width: 100%;
  }
}
/* Extra extra large */
@media (min-width: 2500px) {
  main {
    max-width: 2500px;
    margin-right: auto;
    margin-left: auto;
  }
  .page-generic .container {
    width: 2500px;
  }
  .page-station .container {
    max-width: 2500px;
  }
  /* .station-frame {
    width: calc(50vw - 500px);
  } */
}

/* ====== LOGO ANIMATION ============= */
#rcLogo.animate > path:nth-child(2n+1) {
  animation: logobounce 1s infinite;
  animation-iteration-count: 7;
}
#rcLogo.animate > path:nth-child(2n+2) {
  animation: logobounce 1s infinite reverse;
  animation-iteration-count: 7;
}
@keyframes logobounce {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(5px);
  }
  75% {
    transform: translateY(-4px);
  }
  75% {
    transform: translateY(0px);
  }
}

/* ====== SWUP ANIMATION ============= */
html.is-animating .transition-fade {
  transition-property: opacity, transform;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateX(0);
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
  transform: translateX(-1em);
}

html.is-leaving .transition-fade {
  transform: translateX(1em);
}


html.is-animating.to-left .transition-fade {
  opacity: 0;
  transform: translateX(1em);
}

html.is-leaving.to-left .transition-fade {
  transform: translateX(-1em);
}

/* ====== STATION-SPECIFIC ============= */
.station-lgr-bg { background-color: #e70095; }
.station-lgr .station-platter { background-image: url('../img/platters/bay/platter-lgr.png'); }

.station-kalx-bg { background-color: #ffd073; }
.station-kalx .station-platter { background-image: url('../img/platters/bay/platter-kalx.png'); }

.station-kpoo-bg { background-color: #e172a1; }
.station-kpoo .station-platter { background-image: url('../img/platters/bay/platter-kpoo.png'); }

.station-kpfa-bg { background-color: #e70000; }
.station-kpfa .station-platter { background-image: url('../img/platters/bay/platter-kpfa.png'); }

.station-kfjc-bg { background-color: #fff49a; }
.station-kfjc .station-platter { background-image: url('../img/platters/bay/platter-kfjc.png'); }

.station-kzsc-bg { background-color: #ff7466; }
.station-kzsc .station-platter { background-image: url('../img/platters/bay/platter-kzsc.png'); }

.station-kcsm-bg { background-color: #c3ddff; }
.station-kcsm .station-platter { background-image: url('../img/platters/bay/platter-kcsm.png'); }

.station-bff-bg { background-color: #29abe2; }
.station-bff .station-platter { background-image: url('../img/platters/bay/platter-bff.png'); }

.station-kpcr-bg { background-color: #ff7ba0; }
.station-kpcr .station-platter { background-image: url('../img/platters/bay/platter-kpcr.png'); }

.station-kpcr-bg { background-color: #f0c4d0; }
.station-kpcr .station-platter { background-image: url('../img/platters/bay/platter-kpcr.png'); }

.station-kxsf-bg { background-color: #4a3b33; }
.station-kxsf .station-platter { background-image: url('../img/platters/bay/platter-placeholder.png'); }

.station-kalw-bg { background-color: #49d995; }
.station-kalw .station-platter { background-image: url('../img/platters/bay/platter-kalw.png'); }

.station-kexp-bg { background-color: #ffb85b; }
.station-kexp .station-platter { background-image: url('../img/platters/bay/platter-kexp.png'); }

.station-rabl-bg { background-color: #ea7389; }
.station-rabl .station-platter { background-image: url('../img/platters/bay/platter-rabl.png'); }

.station-kdfc-bg { background-color: #82e18c; }
.station-kdfc .station-platter { background-image: url('../img/platters/bay/platter-kdfc.png'); }

.station-kkup-bg { background-color: #93C12F; }
.station-kkup .station-platter { background-image: url('../img/platters/bay/platter-placeholder.png'); }

.station-kzsu-bg { background-color: #C61851; }
.station-kzsu .station-platter { background-image: url('../img/platters/bay/platter-placeholder.png'); }


/* All Platter Animations */
body[live-station='lgr'] .station-lgr .station-platter,
body[live-station='kalx'] .station-kalx .station-platter,
body[live-station='kpoo'] .station-kpoo .station-platter,
body[live-station='kpfa'] .station-kpfa .station-platter,
body[live-station='kzsc'] .station-kzsc .station-platter,
body[live-station='kfjc'] .station-kfjc .station-platter,
body[live-station='kcsm'] .station-kcsm .station-platter,
body[live-station='bff'] .station-bff .station-platter,
body[live-station='kpcr'] .station-kpcr .station-platter,
body[live-station='kxsf'] .station-kxsf .station-platter
 {
  animation: 50s spinner infinite linear;
}

/* Control buttons */
body[live-station='kalx'] .station-kalx .control-button::before {
  border-left: 30px solid #000;
  border-right: 0px solid transparent;
  border-top: 0px solid transparent;
  border-bottom: 0px solid transparent;
}
