/* Header deck and the music-page player. Showcase navy and gold faceplate.
   Ivory type stays flat. Meters glow only while audio is playing. */

.kr-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kr-mini {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 248px;
  min-width: 0;
  margin-left: 8px;
  color: #F4EFE6;
}

.kr-mini__open { display: none; }

.kr-mini__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kr-deck { position: relative; outline: none; width: 100%; min-width: 0; max-width: 100%; }

.kr-deck__bar,
.kr-deck__panel {
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.045) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #123056 0%, #0B1D36 42%, #071526 100%);
  border: 1px solid #C9A227;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.kr-deck__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 248px;
  height: 46px;
  padding: 5px 7px;
  border-radius: 3px;
  box-sizing: border-box;
}

.kr-screw {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d2a8, #B87333 48%, #6d3d18 80%);
  box-shadow: inset 0 0 0 1px #4a2a12, 0 0 0 1px #C9A227;
}

.kr-screw::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  margin: 3.5px auto 0;
  background: rgba(11, 29, 54, 0.7);
  transform: rotate(-42deg);
}

button.kr-screw {
  position: relative;
  padding: 0;
  border: 0;
  min-width: 0;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

button.kr-screw::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* The header rivet beside Music grows inward, not over the word Music. */
.kr-deck__bar > button.kr-screw[data-act="maximize"]::before {
  left: auto;
  right: 0;
  width: 28px;
  transform: translateY(-50%);
}

button.kr-screw:focus-visible {
  outline: 2px solid #F4EFE6;
  outline-offset: 3px;
}

div.kr-deck__screen-btn { cursor: default; }

.kr-deck.is-min .kr-deck__screen-btn,
.kr-deck.is-min .kr-deck__play { display: none; }

.kr-deck.is-min .kr-deck__bar {
  width: auto;
  max-width: none;
  gap: 18px;
  padding-left: 12px;
  padding-right: 12px;
}

.kr-home.is-min .kr-meters,
.kr-home.is-min .kr-scrub,
.kr-home.is-min .kr-stage,
.kr-home.is-min .kr-home__vol,
.kr-home.is-min .kr-plate__fine,
.kr-home.is-min .kr-home__more,
.kr-home.is-min .kr-rail { display: none; }

.kr-home.is-min .kr-home__plate {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 22px;
  padding-bottom: 14px;
}

.kr-home.is-min .kr-home__readout,
.kr-home.is-min .kr-home__tx { grid-column: 1 / -1; }

.kr-deck__screen-btn,
.kr-deck__play,
.kr-tx__btn,
.kr-sw,
.kr-lcd__time {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body, "Source Sans 3", sans-serif);
}

.kr-deck__screen-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow: hidden;
  text-align: left;
  color: #F4EFE6;
  background: #04101c;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55);
  border-radius: 2px;
}

.kr-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.kr-home__title .kr-marquee,
.kr-lcd__title .kr-marquee {
  display: block;
  max-width: 100%;
}

.kr-marquee span { display: inline-block; white-space: nowrap; }

.kr-marquee.is-on span {
  animation: kr-marquee 14s linear infinite;
}

@keyframes kr-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.kr-deck__bar-time {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.kr-deck__play,
.kr-tx__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: #F4EFE6;
  background: linear-gradient(180deg, #16365f, #0B1D36);
  border: 1px solid #C9A227;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.18);
}

.kr-deck__play,
.kr-tx__btn--play {
  width: 38px;
  color: #0B1D36;
  background: #C9A227;
  border-color: #e4c56a;
}

.kr-deck__play svg,
.kr-tx__btn svg,
.kr-mini__open svg { display: block; }

.kr-ico__pause,
.kr-deck__play .kr-ico__pause,
.kr-tx__btn .kr-ico__pause,
.kr-mini__open .kr-ico__pause,
.kr-home__btn .kr-ico__pause { display: none; }

[aria-pressed="true"] .kr-ico__play { display: none; }
[aria-pressed="true"] .kr-ico__pause { display: block; }

.kr-deck__play:active,
.kr-tx__btn:active,
.kr-mini__open:active,
.kr-sw:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
}

.kr-deck__play:disabled,
.kr-tx__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kr-deck__panel {
  display: none;
  position: absolute;
  z-index: 160;
  top: calc(100% + 8px);
  left: 0;
  width: 400px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 16px 14px 12px;
  border-radius: 4px;
}

.kr-deck.is-open .kr-deck__panel { display: block; }

.kr-deck__panel .kr-screw {
  position: absolute;
  width: 7px;
  height: 7px;
}

.kr-screw--a { top: 6px; left: 6px; }
.kr-screw--b { top: 6px; right: 6px; }
.kr-screw--c { bottom: 6px; left: 6px; }
.kr-screw--d { bottom: 6px; right: 6px; }

.kr-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.kr-rail__titles { min-width: 0; flex: 1 1 auto; }

.kr-rail__brand,
.kr-rail__name,
.kr-rail__mark,
.kr-credit,
.kr-plate__fine,
.kr-vu__tag {
  text-shadow: none;
}

.kr-rail__brand {
  margin: 0;
  color: #C9A227;
  font: 700 10px/1.2 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kr-rail__name {
  margin: 3px 0 0;
  color: #F4EFE6;
  font: 600 16px/1.15 var(--font-body, "Source Sans 3", sans-serif);
}

.kr-rail__mark {
  margin: 0;
  color: #B87333;
  font: 700 10px/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kr-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #C9A227;
  background: #0B1D36;
}

.kr-credit {
  margin: 3px 0 0;
  color: #C9A227;
  font: 600 12px/1.3 var(--font-body, "Source Sans 3", sans-serif);
}

.kr-plate__fine {
  margin: 8px 0 0;
  text-align: center;
  color: #B87333;
  font: 700 10px/1.2 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kr-lcd {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 6px;
  color: #F4EFE6;
  background: #04101c;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55);
  border-radius: 8px;
}

.kr-lcd img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #C9A227;
  background: #04101c;
}

.kr-lcd img:not([src]) { visibility: hidden; }

.kr-lcd__meta,
.kr-lcd__title,
.kr-lcd__time {
  margin: 0;
}

.kr-lcd__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #C9A227;
  font: 700 9px/1.2 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kr-lcd__title { overflow: hidden; }

.kr-lcd__time {
  margin-top: 4px;
  padding: 0;
  background: transparent;
  color: #F4EFE6;
  font: 700 13px/1 var(--font-body, "Source Sans 3", sans-serif);
  font-variant-numeric: tabular-nums;
}

.kr-meters {
  display: grid;
  grid-template-columns: 88px 88px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.kr-vu__face {
  position: relative;
  display: block;
  height: 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(42, 157, 143, 0.18), transparent 58%),
    linear-gradient(#0B1D36, #04101c);
  border: 1px solid #B87333;
  border-radius: 44px 44px 3px 3px;
  box-shadow: inset 0 10px 14px rgba(0, 0, 0, 0.45);
}

.kr-vu__face::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 6px;
  bottom: 0;
  background: repeating-conic-gradient(from -54deg at 50% 100%, rgba(201, 162, 39, 0.9) 0 1.1deg, transparent 1.1deg 12deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 62%, #000 80%, transparent 84%);
  mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 62%, #000 80%, transparent 84%);
}

.kr-vu__needle {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 2px;
  height: 40px;
  margin-left: -1px;
  background: #C9A227;
  box-shadow: none;
  transform-origin: bottom center;
  transform: rotate(-42deg);
}

.kr-vu:nth-child(2) .kr-vu__needle { background: #2A9D8F; }

.kr-deck.is-live .kr-vu__needle,
.kr-home.is-live .kr-vu__needle {
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.85);
}

.kr-deck.is-live .kr-vu:nth-child(2) .kr-vu__needle,
.kr-home.is-live .kr-vu:nth-child(2) .kr-vu__needle {
  box-shadow: 0 0 6px rgba(42, 157, 143, 0.9);
}

.kr-vu__needle::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e7d7a6;
  box-shadow: 0 0 0 1px #1a1408;
}

.kr-vu__tag {
  display: block;
  margin-top: 2px;
  text-align: center;
  color: #B87333;
  font: 700 9px/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.14em;
}

.kr-spec {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 54px;
  padding: 5px 4px 4px;
  background: #04101c;
  border: 1px solid #B87333;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(11, 29, 54, 0.8);
}

.kr-spec i {
  flex: 1 1 auto;
  height: 100%;
  transform: scaleY(0.08);
  transform-origin: bottom center;
  background: #C9A227;
  border-radius: 1px 1px 0 0;
}

.kr-spec i:nth-child(3n+2) { background: #2A9D8F; }
.kr-spec i:nth-child(3n) { background: #B87333; }

.kr-deck.is-live .kr-spec i,
.kr-home.is-live .kr-spec i {
  box-shadow: 0 0 6px rgba(42, 157, 143, 0.55);
}

.kr-deck.is-live:not(.kr-deck--analysed) .kr-spec i,
.kr-home.is-live:not(.kr-home--analysed) .kr-spec i {
  animation: kr-spec 0.7s ease-in-out infinite alternate;
}

.kr-deck.is-live:not(.kr-deck--analysed) .kr-spec i:nth-child(odd),
.kr-home.is-live:not(.kr-home--analysed) .kr-spec i:nth-child(odd) { animation-duration: 0.55s; }
.kr-deck.is-live:not(.kr-deck--analysed) .kr-spec i:nth-child(3n),
.kr-home.is-live:not(.kr-home--analysed) .kr-spec i:nth-child(3n) { animation-duration: 0.9s; }

@keyframes kr-spec {
  from { transform: scaleY(0.12); }
  to { transform: scaleY(0.9); }
}

.kr-scrub {
  position: relative;
  height: 16px;
  margin-top: 10px;
}

.kr-scrub__buf,
.kr-scrub__fill {
  position: absolute;
  left: 0;
  top: 6px;
  height: 4px;
  width: 0;
  pointer-events: none;
  background: rgba(201, 169, 98, 0.28);
  border-radius: 1px;
}

.kr-scrub__fill { background: #C9A227; }

.kr-scrub input[type="range"],
.kr-knob input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.kr-scrub input[type="range"]::-webkit-slider-runnable-track,
.kr-knob input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(243, 238, 228, 0.16);
  border-radius: 1px;
}

.kr-scrub input[type="range"]::-webkit-slider-thumb,
.kr-knob input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 1px;
  background: #F4EFE6;
  border: 1px solid #0B1D36;
  box-shadow: 0 0 0 1px #C9A227;
}

.kr-scrub input[type="range"]::-moz-range-thumb,
.kr-knob input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: #F4EFE6;
  border: 1px solid #0B1D36;
}

.kr-tx {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.kr-tx__btn { width: 46px; height: 36px; }
.kr-tx__btn--play { width: 54px; height: 40px; }

.kr-tools {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.kr-knob { width: 92px; }

.kr-knob__cap {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #2c2c30 0 7deg, #45454a 7deg 9deg);
  box-shadow:
    inset 0 0 0 7px #1a1a1c,
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 0 #000;
  position: relative;
}

.kr-knob__cap::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: #C9A227;
}

.kr-sw {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 7px;
  border-radius: 2px;
  color: #8d877c;
  background: #101012;
  border: 1px solid #3a342c;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65);
  font: 700 9px/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kr-sw::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a261f;
  box-shadow: inset 0 1px 2px #000;
}

.kr-sw[aria-pressed="true"] {
  color: #0B1D36;
  background: #C9A227;
  border-color: #e4c56a;
  box-shadow: none;
}

.kr-sw[aria-pressed="true"]::before {
  background: #F4EFE6;
  box-shadow: none;
}

.kr-mini :focus-visible {
  outline: 2px solid #F5F2EB;
  outline-offset: 2px;
}

.kr-deck__play:focus-visible,
.kr-tx__btn--play:focus-visible,
.kr-sw[aria-pressed="true"]:focus-visible {
  outline-color: #0B1D36;
}

.kr-deck__panel .kr-mini__list {
  position: static;
  width: auto;
  max-height: 168px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  background: #04101c;
  border: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.kr-deck__panel .song-row {
  min-height: 36px;
  padding: 5px 8px;
  font-size: 0.92rem;
}

.kr-deck__panel .song-row__num {
  flex: 0 0 auto;
  width: 1.5rem;
  color: #C9A227;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-songs {
  display: grid;
  gap: 16px;
  align-items: start;
}

.home-songs__cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: #0c0e14;
}

.home-songs__list,
.kr-mini__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-row {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(245, 242, 235, 0.08);
  background: transparent;
  color: #F5F2EB;
  text-align: left;
  font: 600 1rem/1.3 var(--font-body, "Source Sans 3", sans-serif);
  cursor: pointer;
}

.song-row img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(201, 169, 98, 0.4);
}

.song-row__glyph {
  flex: 0 0 auto;
  width: 1.2rem;
  color: #C9A227;
}

.song-row__name { flex: 1 1 auto; min-width: 0; }

.song-row__dur {
  flex: 0 0 auto;
  color: #D2CDC5;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.song-row--soon { cursor: default; }

.song-row--soon .song-row__dur {
  color: #C9A227;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.song-row.is-current {
  background: rgba(201, 169, 98, 0.12);
  box-shadow: inset 3px 0 0 #C9A227;
}

.song-row:focus-visible {
  outline: 2px solid #F5F2EB;
  outline-offset: -3px;
}

button.song-row:hover { background: rgba(201, 169, 98, 0.08); }

@media (min-width: 860px) {
  .home-songs { grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .kr-nav .site-nav { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .kr-mini { flex: 0 0 auto; width: 160px; max-width: 160px; overflow: hidden; }
  .kr-deck__bar { max-width: 100%; }
  .kr-deck__bar-time { display: none; }
}

@media (max-width: 960px) {
  .kr-mini { width: 108px; max-width: 108px; }
  .kr-deck__play { width: 32px; height: 32px; }
}

.kr-nav .kr-mini:has(.kr-deck.is-min) {
  width: auto;
  max-width: none;
  overflow: visible;
  flex: 0 0 auto;
}

@media (max-width: 899px) {
  .kr-mini { position: static; margin-left: auto; flex: 0 0 auto; max-width: none; }

  .kr-mini__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    color: #C9A227;
    background: #0B1D36;
    border: 1px solid #C9A227;
    box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.16);
  }

  .kr-deck {
    display: none;
    position: absolute;
    z-index: 160;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
  }

  .kr-deck.is-open { display: block; }

  .kr-deck__bar { display: none; }

  .kr-deck__panel {
    position: static;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow: auto;
    display: none;
  }

  .kr-deck.is-open .kr-deck__panel { display: block; }

  .kr-deck__panel .kr-mini__list { max-height: 28vh; }

  .kr-tx__btn,
  .kr-deck__play { width: 48px; height: 44px; }
  .kr-tx__btn--play { width: 58px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .kr-marquee.is-on span,
  .kr-deck.is-live .kr-spec i,
  .kr-home.is-live .kr-spec i { animation: none; }
  .kr-vu__needle,
  .kr-spec i { transition: none; }
}

/* Homepage and Music page deck. One engine with the header player. */

.kr-home {
  position: relative;
  margin: 0 0 18px;
  color: #F4EFE6;
}

.kr-home__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kr-home__plate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #123056 0%, #0B1D36 42%, #071526 100%);
  border: 1px solid #C9A227;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.kr-home__plate .kr-screw {
  position: absolute;
  width: 8px;
  height: 8px;
}

.kr-home__plate > .kr-rail,
.kr-home__plate > .kr-stage,
.kr-home__plate > .kr-meters,
.kr-home__plate > .kr-scrub,
.kr-home__plate > .kr-plate__fine {
  grid-column: 1 / -1;
}

.kr-home__legend {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: #B87333;
  font: 700 9px/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.kr-home__readout {
  min-width: 0;
  padding: 8px 10px;
  color: #F4EFE6;
  background: #04101c;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55);
  border-radius: 8px;
}

.kr-home__meta,
.kr-home__title {
  margin: 0;
}

.kr-home__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #C9A227;
  font: 700 11px/1.2 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.kr-home__title {
  overflow: hidden;
  margin-top: 4px;
  color: #F4EFE6;
  font: 600 1.15rem/1.3 var(--font-body, "Source Sans 3", sans-serif);
}

.kr-home__tx {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kr-home__btn,
.kr-home__mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #C9A227;
  border-radius: 3px;
  color: #F4EFE6;
  background: #071526;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.16);
  cursor: pointer;
}

.kr-home__btn {
  width: 48px;
  height: 44px;
}

.kr-home__btn--play {
  width: 56px;
  height: 48px;
  color: #0B1D36;
  background: #C9A227;
  border-color: #e4c56a;
}

.kr-home__btn:active,
.kr-home__mute:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
}

.kr-home__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kr-home__btn svg,
.kr-home__mute svg { display: block; }

.kr-home__vol {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kr-home__vol-label {
  flex: 0 0 auto;
  color: #B87333;
  font: 700 10px/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kr-home__vol input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.kr-home__vol input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(243, 238, 228, 0.18);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.35);
}

.kr-home__vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 2px;
  background: #F4EFE6;
  border: 1px solid #0B1D36;
  box-shadow: 0 0 0 1px #C9A227;
}

.kr-home__vol input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(243, 238, 228, 0.18);
  border-radius: 1px;
}

.kr-home__vol input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #F4EFE6;
  border: 1px solid #0B1D36;
}

.kr-home__mute {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.kr-home__mute .kr-bell__off { display: none; }
.kr-home__mute[aria-pressed="true"] .kr-bell__on { display: none; }
.kr-home__mute[aria-pressed="true"] .kr-bell__off { display: block; }
.kr-home__mute[aria-pressed="true"] {
  color: #0B1D36;
  background: #C9A227;
  border-color: #e4c56a;
  box-shadow: none;
}

.kr-home__more {
  grid-column: 1 / -1;
  justify-self: end;
  color: #C9A227;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.kr-home__more:hover { color: #F5F2EB; }

.kr-home :focus-visible {
  outline: 2px solid #F5F2EB;
  outline-offset: 3px;
}

.kr-home__btn--play:focus-visible,
.kr-home__mute[aria-pressed="true"]:focus-visible {
  outline-color: #0B1D36;
}

@media (max-width: 640px) {
  .kr-home__plate {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 12px 12px;
  }

  .kr-home__tx { justify-content: center; }
}

@media (max-width: 360px) {
  .kr-home__plate { gap: 8px; padding: 12px 8px 10px; }
  .kr-home__vol { gap: 6px; }
  .kr-home__vol-label { letter-spacing: 0.08em; }
  .kr-home__btn { width: 44px; height: 44px; }
  .kr-home__btn--play { width: 52px; }
}

.kr-stage {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.kr-stage__art {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #C9A227;
  background: #04101c;
}

.kr-stage__copy { min-width: 0; }

.kr-home--showcase .kr-home__plate {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 18px 14px;
}

.kr-home--showcase .kr-rail__name { font-size: 22px; }

.kr-home--showcase .kr-meters {
  grid-template-columns: 92px 92px minmax(0, 1fr);
}

.kr-home--showcase .kr-home__tx { justify-content: flex-start; }

@media (max-width: 640px) {
  .kr-stage { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .kr-stage__art { width: 112px; height: 112px; }
  .kr-home--showcase .kr-rail__name { font-size: 18px; }
  .kr-home--showcase .kr-meters { grid-template-columns: 64px 64px minmax(0, 1fr); }
  .kr-home--showcase .kr-home__tx { justify-content: center; }
  .kr-plate__fine { letter-spacing: 0.08em; }
}

/* Pinned mini player. It stays on screen across pages, above the safe area,
   and sits clear of the help button (right) and the companion launcher (left).
   The speaker control stays visible even when the pill is hidden. */
.kr-dock,
.kr-float {
  position: fixed;
  z-index: 9300;
  left: 12px;
  color: #F4EFE6;
}

.kr-dock {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  max-width: calc(100vw - 24px);
}

.kr-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, calc(100vw - 80px));
  min-height: 52px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.045) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #123056 0%, #0B1D36 42%, #071526 100%);
  border: 1px solid #C9A227;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.45);
}

.kr-dock:not(:has(.kr-pill[hidden])) .kr-pill {
  padding-right: 52px;
}

.kr-sound {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #C9A227;
  background: #0B1D36;
  color: #C9A227;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.2);
  cursor: pointer;
}

.kr-dock:not(:has(.kr-pill[hidden])) .kr-sound {
  margin-left: -48px;
}

.kr-sound[aria-pressed="true"] {
  background: #C9A227;
  color: #0B1D36;
  border-color: #e4c56a;
}

.kr-sound .kr-sound__off { display: none; }
.kr-sound[aria-pressed="true"] .kr-sound__on { display: none; }
.kr-sound[aria-pressed="true"] .kr-sound__off { display: block; }

.kr-sound:focus-visible {
  outline: 2px solid #F4EFE6;
  outline-offset: 3px;
}

.kr-float {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: min(300px, calc(100vw - 24px));
}

.kr-pill[hidden],
.kr-float[hidden] { display: none; }

.kr-pill__play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e4c56a;
  color: #0B1D36;
  background: #C9A227;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.35);
  cursor: pointer;
}

.kr-pill__play--side {
  width: 40px;
  height: 40px;
  color: #F4EFE6;
  background: #071526;
  border-color: #C9A227;
  border-radius: 3px;
}

.kr-pill__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 0.95rem/1.2 var(--font-body, "Source Sans 3", sans-serif);
}

.kr-pill__open {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #C9A227;
  color: #0B1D36;
  background: #C9A227;
  font: 700 0.82rem/1 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.kr-float__plate {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #123056 0%, #0B1D36 42%, #071526 100%);
  border: 1px solid #C9A227;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.kr-float__plate .kr-screw {
  position: absolute;
  top: 8px;
  right: 8px;
}

.kr-float__kicker,
.kr-float__title,
.kr-float__time {
  margin: 0;
}

.kr-float__kicker {
  color: #C9A227;
  font: 700 10px/1.2 var(--font-body, "Source Sans 3", sans-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kr-float__title {
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 1.05rem/1.3 var(--font-body, "Source Sans 3", sans-serif);
}

.kr-float__time {
  margin-top: 4px;
  color: #C9A227;
  font: 700 12px/1 var(--font-body, "Source Sans 3", sans-serif);
  font-variant-numeric: tabular-nums;
}

.kr-float__tx {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.kr-pill :focus-visible,
.kr-float :focus-visible {
  outline: 2px solid #F4EFE6;
  outline-offset: 3px;
}

body.kr-has-pill { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

body:has(.kr-companion-launch) .kr-dock {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Hummingbird Market's map sits on the bottom edge. Keep the player above it. */
body.mk .kr-dock {
  bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

body:has(.kr-companion-launch) .kr-float {
  bottom: calc(124px + env(safe-area-inset-bottom, 0px));
}

body.kr-has-pill:has(.kr-companion-launch) {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

/* On a phone the help button and the companion launcher share the bottom edge.
   Lift the pill so it stays clear of both. */
@media (max-width: 720px) {
  .kr-dock {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .kr-pill {
    max-width: min(250px, calc(100vw - 80px));
  }

  body.mk .kr-dock {
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  }

  .kr-float {
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  }

  body.kr-has-pill {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.kr-companion-launch) .kr-dock {
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.kr-companion-launch) .kr-float {
    bottom: calc(184px + env(safe-area-inset-bottom, 0px));
  }

  body.kr-has-pill:has(.kr-companion-launch) {
    padding-bottom: calc(188px + env(safe-area-inset-bottom, 0px));
  }
}
