@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #b9c9be;
  --color-app: #0c100e;
  --color-rail: #101512;
  --color-panel: #171d19;
  --color-panel-2: #202722;
  --color-text: #edf3ef;
  --color-muted: #a7b3ac;
  --color-mint: #65e69a;
  --color-mint-soft: #c9f4d9;
  --color-blue: #70b7c4;
  --color-amber: #d7ad63;
  --color-pink: #df776e;
  --border: rgba(237, 243, 239, 0.11);
  --shadow: 0 24px 72px rgba(3, 10, 6, 0.34);
}

body,
button,
input,
select,
textarea {
  font-family: "Onest", Arial, sans-serif;
  font-kerning: normal;
}

body {
  background: #b9c9be;
}

.site-shell {
  border-color: rgba(12, 16, 14, 0.16);
  box-shadow: 0 28px 76px rgba(13, 30, 20, 0.3);
}

.site-header,
.site-footer {
  background: #101512;
}

.brand {
  gap: 9px;
  font-size: 16px;
  font-weight: 820;
}

.brand img,
.fullscreen-player__brand img {
  width: 30px;
  height: 30px;
  filter: none;
}

.nav a,
.nav-more > summary {
  background: rgba(237, 243, 239, 0.025);
}

.nav a:hover,
.nav a:focus-visible,
.nav-more > summary:hover,
.nav-more > summary:focus-visible {
  background: color-mix(in srgb, var(--nav-accent, var(--color-mint)) 12%, #171d19);
}

.nav a.is-active,
.nav-more > summary.is-active,
.nav a.is-active:hover,
.nav a.is-active:focus-visible,
.nav-more > summary.is-active:hover,
.nav-more > summary.is-active:focus-visible {
  background: var(--nav-accent, var(--color-mint));
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-mint);
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 17px;
  height: 10px;
  background: linear-gradient(90deg, var(--color-mint) 0 3px, transparent 3px 6px, var(--color-mint) 6px 9px, transparent 9px 12px, var(--color-mint) 12px 15px);
  clip-path: polygon(0 35%, 20% 35%, 20% 0, 40% 0, 40% 55%, 60% 55%, 60% 18%, 80% 18%, 80% 70%, 100% 70%, 100% 100%, 0 100%);
}

.station-card,
.on-air-card,
.digest-track-card,
.emotion-map-station-card,
.emotion-map-track-card {
  border-color: rgba(237, 243, 239, 0.1);
  background: #171d19;
}

.station-card:hover,
.station-card:focus-within,
.on-air-card:hover,
.on-air-card:focus-within {
  border-color: rgba(101, 230, 154, 0.42);
  box-shadow: 0 14px 34px rgba(1, 8, 4, 0.24);
}

.station-card__art,
.on-air-card__cover,
.digest-track-card__cover,
.emotion-map-track-card__cover,
.artwork-strip img {
  box-shadow: 0 10px 26px rgba(1, 8, 4, 0.32);
}

.mini-player {
  grid-template-columns: 52px minmax(150px, 1fr) auto minmax(116px, 168px);
  gap: 12px;
  padding: 10px 12px;
  border-color: rgba(237, 243, 239, 0.14);
  background: rgba(12, 16, 14, 0.97);
  box-shadow: 0 18px 52px rgba(2, 8, 5, 0.4);
  backdrop-filter: blur(18px);
}

.mini-player::before {
  display: none;
}

.mini-player__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(237, 243, 239, 0.12);
  border-radius: 6px;
  color: #0c100e;
  background: var(--color-mint);
  font-size: 18px;
  font-weight: 850;
}

.mini-player__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-player__meta {
  display: grid;
  gap: 3px;
  padding-left: 0;
}

.mini-player__station-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mini-player__station-row a {
  min-width: 0;
  color: var(--color-text);
  text-decoration: none;
}

.mini-player__station-row strong {
  font-size: 13px;
  font-weight: 780;
}

.mini-player__meta > small {
  color: var(--color-muted);
  font-size: 12px;
}

.mint-signal {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  width: 18px;
  height: 14px;
}

.mint-signal span {
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: var(--color-mint);
  transform-origin: center;
}

.mint-signal span:nth-child(2) { height: 10px; }
.mint-signal span:nth-child(3) { height: 7px; }
.mint-signal span:nth-child(4) { height: 13px; }
.mint-signal span:nth-child(5) { height: 8px; }

.persistent-player-host.is-playing .mint-signal span {
  animation: mint-signal 820ms ease-in-out infinite alternate;
}

.persistent-player-host.is-playing .mint-signal span:nth-child(2) { animation-delay: -560ms; }
.persistent-player-host.is-playing .mint-signal span:nth-child(3) { animation-delay: -210ms; }
.persistent-player-host.is-playing .mint-signal span:nth-child(4) { animation-delay: -690ms; }
.persistent-player-host.is-playing .mint-signal span:nth-child(5) { animation-delay: -380ms; }

@keyframes mint-signal {
  from { transform: scaleY(0.45); opacity: 0.62; }
  to { transform: scaleY(1); opacity: 1; }
}

.fullscreen-player {
  background: #0c100e;
}

.fullscreen-player__content {
  position: relative;
}

.fullscreen-player__content::before {
  content: "";
  position: absolute;
  top: 14%;
  right: 4%;
  width: 31%;
  height: 1px;
  background: rgba(101, 230, 154, 0.3);
}

.fullscreen-player__art {
  border-color: rgba(237, 243, 239, 0.13);
  background: #171d19;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fullscreen-player__details h2 {
  font-weight: 760;
  letter-spacing: 0;
}

.fullscreen-player__station {
  background: rgba(237, 243, 239, 0.055);
  text-decoration: none;
}

.fullscreen-player__station .mint-signal {
  width: 16px;
}

.fullscreen-player__play {
  background: var(--color-mint);
}

@media (max-width: 860px) {
  .mini-player {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .mini-player__volume {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .mini-player {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .mini-player__art {
    width: 48px;
  }

  .mini-player__controls,
  .mini-player__volume {
    grid-column: 1 / -1;
  }

  .mini-player__controls {
    justify-content: center;
  }

  body.has-mini-player .site-footer {
    margin-bottom: 178px;
  }

  .fullscreen-player__content::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .persistent-player-host.is-playing .mint-signal span {
    animation: none;
  }
}
