:root {
  --rail-width: 254px;
  --edge: 32px;
  --stage-left: max(330px, calc((100vw - 960px) / 2));
  --stage-right: 64px;
  --dock-bottom: 42px;
  --stage-width: min(960px, calc(100vw - 394px));
}
body {
  height: 100dvh;
  overflow: hidden;
}
.listening-page {
  position: fixed;
  inset: 0;
  padding: 0;
  display: block;
  height: 100dvh;
  overflow: hidden;
}
.station-name {
  top: 25px;
  left: var(--edge);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.station-sidebar {
  left: var(--edge);
  top: 65px;
  bottom: 180px;
  width: var(--rail-width);
  gap: 2px;
}
.listener-identity {
  font-size: 11px;
  gap: 7px;
  align-items: center;
}
.listener-name {
  font-size: 13px;
  gap: 9px;
  min-height: 36px;
}
@media (pointer: coarse) {
  .listener-name {
    min-height: 44px;
  }
}
.listener-edit {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.station-navigation {
  gap: 12px;
  justify-content: space-between;
  margin-top: 7px;
}
.station-navigation .panel-tab,
.station-navigation #open-favourites {
  font-size: 12px;
  min-height: 44px;
  gap: 5px;
}
.station-panel {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  margin-top: 15px;
}
.gpu-character {
  height: 60px;
  margin: 20px 0 0;
  gap: 10px;
  opacity: 0.9;
}
.gpu-portrait {
  width: 64px;
  height: 48px;
}
.gpu-name {
  font-size: 11px;
}
.gpu-status {
  font-size: 10px;
}
.lyric-space.karaoke {
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  inset: 0;
  width: 100%;
  height: 100dvh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms;
}
.immersed .lyric-space {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 560ms ease,
    visibility 560ms;
  transition-delay: 100ms;
}
.lyric-space .karaoke-words {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: visible;
  display: block;
}
.karaoke-lines {
  position: absolute;
  left: var(--stage-left);
  right: var(--stage-right);
  top: clamp(155px, 26vh, 310px);
  width: auto;
  max-width: 960px;
  margin: 0;
  padding: 0;
  isolation: initial;
}
@media (min-width: 700px) and (min-height: 501px) {
  .lyric-space .karaoke-lines {
    margin-top: -24px;
  }
}
.karaoke-scene {
  z-index: -1;
}
.karaoke-meta {
  margin-bottom: 20px;
}
.karaoke-previous {
  font-size: 18px;
  margin-bottom: 28px;
  opacity: calc(
    (0.35 + var(--line-presence, 0) * 0.2) * var(--ending-opacity, 1)
  );
}
.karaoke-current {
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 450;
}
.karaoke-next {
  font-size: clamp(23px, 2.4vw, 36px);
  line-height: 1.3;
}
.karaoke-further {
  font-size: 17px;
  margin-top: 20px;
}
.dock {
  position: absolute;
  width: 420px;
  max-width: calc(100vw - 40px);
  left: 50%;
  top: calc(50% - 157px);
  translate: -50% 0;
  z-index: 5;
}
.dock-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.dock .song-title {
  width: 100%;
  align-items: center;
  margin-bottom: 12px;
}
.dock h1 {
  font-size: 28px;
  font-weight: 450;
}
.dock .controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  width: 100%;
  gap: 10px;
}
.dock .transport {
  gap: 4px;
  order: 1;
}
.dock .feedback {
  gap: 2px;
  order: 3;
}
.dock .volume-control {
  order: 4;
}
.dock .control {
  width: 44px;
  height: 44px;
}
.dock .controls .control:not(.play) svg {
  width: 20px;
  height: 20px;
}
.dock .play {
  width: 48px;
  height: 48px;
}
.dock .timeline {
  width: 100%;
  max-width: none;
  flex: 1 0 100%;
  margin: 4px 0 0;
  order: 5;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 12px;
  font-size: 10px;
}
.dock .vote-count {
  font-size: 10px;
  top: 37px;
}
.dock .tooltip {
  display: none;
}
.dock .karaoke-trigger {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  min-width: 108px;
  padding: 0 19px;
  margin-left: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: 0;
  border-radius: 25px;
  background: transparent;
  overflow: visible;
  transition:
    color 300ms,
    background 300ms;
  cursor: pointer;
}
.dock .karaoke-trigger::before,
.dock .karaoke-trigger::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border-radius: 25px;
  pointer-events: none;
}
.dock .karaoke-trigger:hover::before,
[data-theme="light"] body:not(.immersed) .dock .karaoke-trigger:hover::before {
  filter: brightness(1.3);
  box-shadow: 0 0 20px #b090df55;
}
.dock .karaoke-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@keyframes karaoke-shimmer {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: 100% 50%;
  }
}
:is(.immersed, .compact-rest) .dock {
  left: var(--stage-left);
  right: var(--stage-right);
  width: var(--stage-width);
  max-width: none;
  top: auto;
  bottom: var(--dock-bottom);
  translate: none;
}
:is(.immersed, .compact-rest) .dock-heading {
  gap: 3px;
  margin: 0 auto 12px;
  justify-content: center;
  flex-wrap: nowrap;
}
:is(.immersed, .compact-rest) .dock .song-title {
  width: auto;
  margin: 0 8px 0 0;
  max-width: 40%;
}
:is(.immersed, .compact-rest) .dock h1 {
  font-size: 15px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(.immersed, .compact-rest) .dock .controls {
  flex-wrap: nowrap;
  max-width: 790px;
  margin: 0 auto;
  gap: 14px;
}
:is(.immersed, .compact-rest) .dock .timeline {
  order: 2;
  flex: 1 1 100%;
  width: auto;
  min-width: 90px;
  margin: 0;
}
.immersed .dock .karaoke-trigger {
  padding: 0 13px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.immersed .dock .karaoke-trigger:hover {
  color: var(--ink);
}
.composer {
  --composer-duration: 180ms;
  position: fixed;
  z-index: 7;
  width: 360px;
  max-width: calc(100vw - 40px);
  left: 50%;
  top: calc(50% + 122px);
  translate: -50% 0;
  margin: 0;
  bottom: auto;
}
.composer #request-form {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  min-height: 50px;
  background: var(--panel);
}
.composer #request-text {
  font-size: 13px;
  min-height: 44px;
  margin: 0;
  padding: 13px 6px 11px 14px;
  max-height: 150px;
  transition:
    height var(--composer-duration) var(--ease),
    margin-bottom var(--composer-duration) var(--ease);
}
.composer .send-request {
  margin: 0;
  height: 48px;
  min-width: 44px;
  transition:
    margin-bottom var(--composer-duration) var(--ease),
    color 180ms,
    transform 180ms;
}
.composer #request-limit {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 100ms ease,
    visibility 0s linear 100ms;
  pointer-events: none;
}
:is(.immersed, .compact-rest) .composer {
  width: var(--rail-width);
  left: var(--edge);
  top: auto;
  bottom: calc(var(--dock-bottom) + 2px);
  translate: none;
}
.composer-examples {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows var(--composer-duration) var(--ease),
    opacity var(--composer-duration) ease,
    visibility 0s;
}
.composer #recent-prompts {
  min-height: 0;
  padding-top: 0;
  overflow: clip;
}
.composer .recent-prompt:first-child {
  margin-top: 8px;
}
:is(.immersed, .compact-rest) .composer-examples {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s, 0s, var(--composer-duration);
}
.composing .composer {
  border-radius: 10px;
}
.composing .composer #request-text {
  height: 108px;
  margin-bottom: 24px;
}
.composing .composer .send-request {
  margin-bottom: 16px;
}
.composing .composer #recent-prompts {
  display: block;
}
.composing .composer-examples {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.composing .composer #request-limit {
  visibility: visible;
  opacity: 1;
  transition-delay: 60ms, 0s;
}
.composing .station-sidebar {
  bottom: 375px;
}
@media (min-width: 700px) and (max-width: 1100px) {
  :root {
    --rail-width: 236px;
    --stage-left: 308px;
    --stage-right: 28px;
    --stage-width: calc(100vw - 336px);
    --edge: 28px;
  }
  .station-navigation {
    gap: 14px;
  }
  .karaoke-current {
    font-size: 40px;
  }
  .karaoke-next {
    font-size: 26px;
  }
  :is(.immersed, .compact-rest) .dock .controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  :is(.immersed, .compact-rest) .dock .timeline {
    order: 5;
    flex: 1 0 100%;
    margin: 0;
  }
  :is(.immersed, .compact-rest) .dock-heading {
    margin-bottom: 4px;
  }
  :is(.immersed, .compact-rest) .dock .song-title {
    max-width: 38%;
  }
  .karaoke-estimate {
    font-size: 10px;
  }
}
@media (max-width: 699px) {
  :root {
    --edge: 20px;
    --stage-left: 24px;
    --stage-right: 24px;
    --stage-width: calc(100vw - 48px);
    --dock-bottom: calc(var(--tab-bar-bottom) + 172px);
  }
  .station-name {
    top: calc(15px + env(safe-area-inset-top));
    left: max(var(--edge), env(safe-area-inset-left));
    padding-top: 7px;
  }
  .corner-actions {
    top: calc(12px + env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }
  .station-sidebar {
    top: calc(47px + env(safe-area-inset-top));
    bottom: 320px;
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    width: auto;
    gap: 0;
    pointer-events: none;
  }
  .listener-name {
    font-size: 13px;
    min-height: 44px;
  }
  .listener-identity {
    font-size: 11px;
  }
  .station-panel {
    position: fixed;
    top: calc(110px + env(safe-area-inset-top));
    bottom: calc(var(--dock-bottom) + 124px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: none;
    background: var(--paper);
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 6;
    margin: 0;
  }
  .karaoke-lines {
    top: 165px;
    max-width: none;
    margin: 0;
  }
  .karaoke-meta {
    margin-bottom: 14px;
  }
  .karaoke-previous {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .karaoke-current {
    font-size: 34px;
    line-height: 1.18;
  }
  .karaoke-coming {
    padding-top: 20px;
  }
  .karaoke-next {
    font-size: 23px;
    line-height: 1.3;
  }
  .karaoke-further {
    font-size: 14px;
    margin-top: 16px;
  }
  .dock {
    width: calc(100% - 48px);
  }
  .dock h1 {
    font-size: 25px;
  }
  .dock-heading {
    margin-bottom: 18px;
  }
  .dock .song-title {
    margin-bottom: 6px;
  }
  :is(.immersed, .compact-rest) .dock-heading {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    gap: 0;
  }
  :is(.immersed, .compact-rest) .dock .song-title {
    max-width: 100%;
    width: 100%;
    margin: 0 0 1px;
    align-items: center;
  }
  :is(.immersed, .compact-rest) .dock h1 {
    font-size: 14px;
  }
  :is(.immersed, .compact-rest) .dock .controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  :is(.immersed, .compact-rest) .dock .timeline {
    order: 5;
    flex: 1 0 100%;
    margin: 0;
    height: 30px;
  }
  :is(.immersed, .compact-rest) .dock .controls .control {
    width: 44px;
    height: 44px;
  }
  :is(.immersed, .compact-rest) .dock .play {
    width: 44px;
    height: 44px;
  }
  .dock .vote-count {
    top: 34px;
    font-size: 10px;
  }
  .composer,
  :is(.immersed, .compact-rest) .composer {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: calc(var(--tab-bar-bottom) + 70px);
    max-width: none;
    width: auto;
    translate: none;
  }
  .composer .model-choice {
    min-height: 36px;
  }
  .composer #recent-prompts {
    display: none;
  }
  .composer #request-text,
  :is(.immersed, .compact-rest) .composer #request-text {
    font-size: 16px;
  }
  .composing .composer #recent-prompts {
    display: none;
  }
  .composing .dock {
    bottom: calc(var(--tab-bar-bottom) + 302px);
  }
  .composing .dock-heading {
    display: none;
  }
  .composing .karaoke-lines {
    opacity: 0.15;
  }
}
@media (max-height: 500px) and (min-width: 500px) {
  :root {
    --rail-width: 220px;
    --edge: max(24px, env(safe-area-inset-left));
    --stage-left: calc(var(--edge) + 266px);
    --stage-right: max(26px, env(safe-area-inset-right));
    --stage-width: calc(100vw - var(--stage-left) - var(--stage-right));
    --dock-bottom: 24px;
  }
  .station-sidebar {
    top: 58px;
    bottom: 132px;
  }
  .station-navigation {
    margin-top: 0;
  }
  .station-name {
    top: 17px;
  }
  .station-panel {
    margin-top: 2px;
  }
  .karaoke-lines {
    top: 58px;
  }
  .karaoke-meta {
    margin-bottom: 10px;
  }
  .karaoke-previous,
  .karaoke-further {
    display: none;
  }
  .karaoke-current {
    font-size: 32px;
  }
  .karaoke-next {
    font-size: 23px;
  }
  .karaoke-coming {
    padding-top: 18px;
  }
  :is(.immersed, .compact-rest) .dock-heading {
    margin-bottom: 0;
  }
  :is(.immersed, .compact-rest) .dock .controls {
    flex-wrap: nowrap;
    gap: 4px;
  }
  :is(.immersed, .compact-rest) .dock .timeline {
    order: 2;
    flex: 1 1 100%;
    min-width: 70px;
    display: block;
  }
  :is(.immersed, .compact-rest) .dock .timeline span {
    display: none;
  }
  .dock .transport,
  .dock .feedback {
    gap: 0;
  }
  .dock .control {
    width: 44px;
  }
  .dock .play {
    width: 44px;
    height: 44px;
  }
  .composing .station-sidebar {
    bottom: 275px;
  }
  .composing .composer #recent-prompts {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .composer {
    --composer-duration: 0ms;
  }
  .composer #request-limit {
    transition: none;
  }
}
@media (max-width: 699px) {
  :is(.immersed, .compact-rest) .dock-heading {
    flex-wrap: nowrap;
    margin-bottom: 8px;
    gap: 0;
  }
  :is(.immersed, .compact-rest) .dock .song-title {
    width: auto;
    max-width: calc(100% - 144px);
    margin: 0;
    align-items: flex-start;
  }
  :is(.immersed, .compact-rest) .dock .controls {
    gap: 0;
  }
  :is(.immersed, .compact-rest) .dock .transport,
  :is(.immersed, .compact-rest) .dock .feedback {
    gap: 0;
  }
  :is(.immersed, .compact-rest) .dock .volume-control {
    margin: 0;
  }
  :is(.immersed, .compact-rest) .dock .timeline {
    margin-top: 4px;
  }
  .composing .station-sidebar {
    bottom: 350px;
  }
}
@media (pointer: coarse) {
  .composer .model-choice {
    min-height: 44px;
  }
}
@media (max-height: 500px) and (min-width: 500px) and (max-width: 1100px) {
  :root {
    --dock-bottom: calc(var(--tab-bar-bottom) + 80px);
  }
  .station-name {
    display: block;
  }
  .station-sidebar {
    bottom: 194px;
  }
  .station-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .karaoke-lines {
    top: 40px;
  }
  .karaoke-current {
    font-size: 30px;
  }
  .karaoke-next {
    font-size: 22px;
  }
  .karaoke-coming {
    padding-top: 12px;
  }
}
/* Phone bottom tab bar: one definition for portrait and short landscape.
   The safe-area inset is applied once, through --tab-bar-bottom, and the
   composer, panel and dock offsets derive from it. */
@media (max-width: 699px), (max-width: 1100px) and (max-height: 500px) {
  :root {
    --tab-bar-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .station-navigation {
    position: fixed;
    z-index: 8;
    left: 12px;
    right: 12px;
    bottom: var(--tab-bar-bottom);
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 0;
    margin: 0;
    padding: 0 max(12px, env(safe-area-inset-right)) 8px
      max(12px, env(safe-area-inset-left));
    border: 0;
    background: transparent;
  }
  .station-navigation :is(.panel-tab, #open-favourites) {
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 44px;
    height: 54px;
    min-height: 54px;
    gap: 4px;
    padding: 6px 0;
    border: 0;
    border-radius: 12px;
    background: none;
    font-size: 10px;
    line-height: 14px;
  }
  .station-navigation :is(.panel-tab, #open-favourites)[aria-expanded="true"] {
    background: var(--selected);
    color: var(--active);
  }
  .station-navigation .navigation-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .station-navigation [aria-expanded="true"] .navigation-icon {
    stroke-width: 2.2;
  }
  .station-navigation .queue-badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 12px);
    font-size: 9px;
    line-height: 12px;
  }
  .station-navigation .queue-toggle[data-ready="true"]::after {
    position: absolute;
    top: 8px;
    left: calc(50% - 20px);
    flex: none;
  }
}
@media (pointer: coarse) and (max-width: 699px) {
  :is(.immersed, .compact-rest) .dock .timeline {
    height: 44px;
  }
  #seek {
    height: 44px;
  }
}
@media (max-width: 699px) and (max-height: 700px) {
  .karaoke-lines {
    top: 100px;
  }
  .karaoke-previous,
  .karaoke-further {
    display: none;
  }
  .karaoke-meta {
    min-height: 14px;
    margin-bottom: 4px;
    font-size: 9px;
  }
  .karaoke-estimate {
    font-size: 9px;
  }
  .karaoke-current {
    font-size: 24px;
  }
  .karaoke-coming {
    padding-top: 8px;
  }
  .karaoke-next {
    font-size: 16px;
  }
  .composing .karaoke-lines {
    visibility: hidden;
  }
  .dock h1 {
    font-size: 22px;
  }
  .dock-heading {
    margin-bottom: 8px;
  }
  .station-panel {
    top: calc(100px + env(safe-area-inset-top));
    padding: 6px 12px;
  }
}
@media (max-width: 699px) {
  .dock .controls,
  .dock .transport,
  .dock .feedback {
    gap: 0;
  }
  .dock .volume-control {
    margin: 0;
  }
}
.rest-scene {
  z-index: 0;
  opacity: 1;
  transition: opacity 700ms ease;
}
.rest-scene i {
  opacity: 0.3;
  transform: translate(5%, 8%) !important;
}
.rest-scene i + i {
  opacity: 0.28;
  transform: translate(-7%, -3%) !important;
}
.immersed .rest-scene {
  opacity: 0;
}
.listening-page {
  z-index: 1;
}
.dock .details-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  width: auto;
  min-width: 44px;
  height: 44px;
  font-size: 11px;
  padding: 0 9px;
  margin: 0;
  flex: none;
}
.details-credits {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 16px;
  font-size: 11px;
  color: var(--muted);
}
.details-credits strong {
  font-weight: 500;
  color: var(--ink);
}
.details-body {
  scrollbar-width: none;
}
.details-body::-webkit-scrollbar {
  display: none;
}
.composer .model-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.recommended-mark {
  width: 12px;
  height: 12px;
  flex: none;
  fill: #bfa969;
  stroke: #ddcc95;
  stroke-width: 0.5;
}
[data-theme="light"] .recommended-mark {
  fill: #8e732c;
  stroke: #8e732c;
}
.dock .karaoke-trigger::before {
  background: linear-gradient(
    112deg,
    #b9e6ff,
    #9973ff,
    #fbc4ed,
    #e7b85e,
    #a4f4dc,
    #9a94ff,
    #eac9ff
  );
  background-size: 260% 100%;
  animation: karaoke-shimmer 3.4s linear infinite alternate;
  box-shadow:
    0 0 14px #aa87fa38,
    inset 0 1px 0 #ffffff80;
}
.dock .karaoke-trigger::after {
  inset: 6px 2px;
  background: linear-gradient(
    112deg,
    #583b77 3%,
    #46436f 38%,
    #635338 72%,
    #38524d
  );
  box-shadow:
    inset 0 1px 0 #fff5,
    inset 0 -1px 3px #20152399;
}
.karaoke-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 1px 3px #211631;
}
[data-theme="light"] body:not(.immersed) .dock .karaoke-trigger {
  color: #443555;
}
[data-theme="light"] .dock .karaoke-trigger::before {
  box-shadow: none;
  filter: none;
}
[data-theme="light"] body:not(.immersed) .dock .karaoke-trigger::after {
  background: linear-gradient(
    112deg,
    #f3ebff 3%,
    #eef2ff 38%,
    #fff5df 72%,
    #edfcf5
  );
  box-shadow: none;
}
[data-theme="light"] .karaoke-label {
  text-shadow: none;
}
[data-theme="light"] .jewel {
  fill: #705098;
  filter: none;
}
.jewel {
  width: 13px;
  height: 13px;
  fill: #faf2ff;
  filter: drop-shadow(0 0 3px #d4c3ff);
}
.karaoke-glint {
  position: absolute;
  inset: 5px 1px;
  overflow: hidden;
  border-radius: 24px;
  pointer-events: none;
  z-index: 1;
}
.karaoke-glint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    #fff1 38%,
    #fff7 46%,
    #fff2 49%,
    transparent 59%
  );
  transform: translateX(-125%);
  animation: jewel-glint 3.2s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}
@keyframes jewel-glint {
  0%,
  12% {
    transform: translateX(-125%);
  }
  75%,
  100% {
    transform: translateX(125%);
  }
}
.immersed .dock .karaoke-trigger::before {
  background: var(--border);
  inset: 8px 0;
  animation: none;
  box-shadow: none;
  opacity: 0.6;
}
.immersed .dock .karaoke-trigger::after {
  background: var(--paper);
  box-shadow: none;
  inset: 9px 1px;
}
.immersed .karaoke-glint,
.immersed .jewel {
  display: none;
}
.immersed .karaoke-label {
  text-shadow: none;
}
@media (max-width: 699px) {
  .dock .details-trigger {
    font-size: 10px;
    padding: 0 5px;
    min-width: 64px;
  }
  :is(.immersed, .compact-rest) .dock .song-title {
    max-width: none;
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  :is(.immersed, .compact-rest) .dock .karaoke-trigger {
    min-width: 76px;
    padding: 0 9px;
    margin-left: 3px;
    font-size: 10px;
  }
}
.dock .song-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.dock h1 {
  min-width: 0;
}
.song-play-count {
  flex: none;
  font-size: 10px;
  line-height: 14px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 699px) {
  :is(.immersed, .compact-rest) .dock .song-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
  }
  :is(.immersed, .compact-rest) .dock h1 {
    max-width: 100%;
  }
  :is(.immersed, .compact-rest) .song-play-count {
    font-size: 9px;
    line-height: 12px;
  }
}
.dock .heart[aria-pressed="true"] {
  color: var(--like);
}
.dock .heart[aria-pressed="true"] svg {
  fill: currentColor;
  stroke: currentColor;
}
.dock .bookmark[aria-pressed="true"] {
  color: var(--result);
}

.exit-mark {
  display: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.immersed .exit-mark {
  display: block;
}
.immersed .dock .karaoke-trigger {
  min-width: 116px;
}
.dock .karaoke-trigger {
  white-space: nowrap;
}
.dock .song-actions {
  display: flex;
  align-items: center;
  flex: none;
  order: 3;
  gap: 6px;
}
.dock .song-actions .feedback {
  gap: 6px;
}
.dock .song-actions .volume-control {
  margin: 0;
}
.dock .song-title {
  margin-bottom: 0;
}
.prompt-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
}
.prompt-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  min-width: 0;
}
.prompt-preview:hover {
  color: var(--ink);
}
.immersed .prompt-preview,
.compact-rest .prompt-preview {
  display: none;
}
.details-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 -8px;
}
.details-actions .copy-lyrics {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.details-actions .copy-lyrics:hover {
  color: var(--ink);
}
@media (max-width: 699px) {
  .dock .song-actions,
  .dock .song-actions .feedback {
    gap: 0;
  }
  :is(.immersed, .compact-rest) .dock .karaoke-trigger {
    min-width: 100px;
    padding: 0 8px;
  }
  .prompt-preview {
    font-size: 11px;
    padding-inline: 0;
  }
}

.dock .song-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
}
.dock .song-meta .song-play-count {
  font-size: 11px;
}
.prompt-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  gap: 0;
}
.prompt-row .prompt-preview {
  grid-column: 2;
  min-width: 0;
  padding-inline: 0;
}
.prompt-copy {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
}
.prompt-copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prompt-copy:hover,
.prompt-copy:focus-visible {
  color: var(--ink);
}
.prompt-copy .copy-done,
.prompt-copy[data-copied="true"] .copy-mark {
  display: none;
}
.prompt-copy[data-copied="true"] .copy-done {
  display: block;
  color: var(--result);
}
.immersed .prompt-row,
.compact-rest .prompt-row {
  display: none;
}
@media (max-width: 699px) {
  :is(.immersed, .compact-rest) .song-meta {
    position: relative;
    flex-direction: column;
    gap: 0;
    height: 44px;
  }
  :is(.immersed, .compact-rest) .song-meta .song-play-count {
    position: absolute;
    top: 3px;
    font-size: 9px;
    line-height: 12px;
    pointer-events: none;
  }
  :is(.immersed, .compact-rest) .song-meta .details-trigger {
    padding-top: 12px;
  }
}

@media (min-width: 1101px) {
  .karaoke-lines {
    --reading-width: min(760px, var(--stage-width));
    left: calc(
      var(--stage-left) + (var(--stage-width) - var(--reading-width)) * 0.75
    );
    right: auto;
    width: var(--reading-width);
    max-width: none;
  }
}
.player.dock {
  display: block;
  padding-bottom: 0;
}
#signal {
  display: block;
  position: absolute;
  width: 92px;
  height: 20px;
  margin: 0;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--signal);
  opacity: 0.72;
  pointer-events: none;
  overflow: visible;
}
body[data-playing="false"] #signal {
  opacity: 0.32;
}
.lyric-space .lyrics-retry {
  position: absolute;
  left: var(--stage-left);
  top: calc(clamp(155px, 26vh, 310px) + 130px);
  pointer-events: auto;
}
.dock .song-title {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dock .song-heading {
  width: 100%;
}
.dock h1 {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-row[hidden],
.song-meta[hidden] {
  display: none;
}
.composer #request-text {
  height: 48px !important;
  overflow-y: hidden !important;
  resize: none;
}
.composing .composer #request-text {
  height: 108px !important;
  overflow-y: auto !important;
  /* Scrolled lines fade within the padding instead of meeting the border. */
  mask-image: linear-gradient(
    transparent,
    #000 12px,
    #000 calc(100% - 10px),
    transparent
  );
}
.composer #request-form:focus-within {
  outline: 0;
}
.composer .recent-prompt {
  min-height: 32px;
}
.composing .composer {
  border-radius: 10px;
  padding-top: 0;
}
@media (min-width: 700px) and (min-height: 501px) and (max-height: 760px) {
  body:not(.immersed):not(.compact-rest) {
    --rest-center: min(50dvh, calc(100dvh - 324px));
  }
  body:not(.immersed):not(.compact-rest) .dock {
    top: calc(var(--rest-center) - 157px);
  }
  body:not(.immersed):not(.compact-rest) .composer {
    top: calc(var(--rest-center) + 122px);
  }
  .composing:not(.immersed):not(.compact-rest) .composer #request-text {
    height: 84px !important;
  }
}
.generation-heading,
.generation-results > h3 {
  display: none;
}
.generation-content {
  flex: 1;
  min-height: 0;
  padding: 0 2px 0 0;
  margin: 0;
  scrollbar-width: thin;
}
.station-panel .gpu-character {
  flex: none;
  height: 56px;
  margin: 0 0 10px;
  gap: 10px;
  opacity: 1;
}
.gpu-character .gpu-name {
  font-size: 12px;
}
.gpu-character .gpu-status {
  font-size: 11px;
}
.generation-row {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0 9px;
  padding: 12px 0;
}
.queue-position {
  display: block;
  font-size: 10px;
  line-height: 18px;
  padding-top: 0;
  color: var(--muted);
}
.generation-row.has-gpu {
  padding-top: 4px;
  padding-bottom: 22px;
}
.generation-row.has-gpu .gpu-character {
  grid-column: 1 / -1;
}
.generation-row.has-gpu .queue-phase {
  display: none;
}
.queue-stages {
  display: none;
}
.queue-description,
.generation-row[data-own="true"] .queue-description,
.generation-row[data-state="generating"] .queue-description {
  -webkit-line-clamp: 1;
  font-size: 13px;
}
.queue-byline {
  flex-wrap: wrap;
  font-size: 11px;
  gap: 2px 8px;
  margin-top: 5px;
}
.queue-phase {
  font-size: 10px;
}
.queue-estimate {
  font-size: 10px;
  margin-top: 3px;
}
.queue-ready {
  min-height: 44px;
  padding: 8px 0;
  gap: 12px;
  margin-bottom: 0;
  border-radius: 4px;
}
.queue-ready:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.generation-results:not([hidden]) {
  margin-bottom: 18px;
}
.queue-ready-title {
  min-width: 0;
  flex: 1;
  font-size: 13px;
}
.queue-ready-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ready-credit {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ready-credit::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 3px;
  height: 3px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--active);
}
.queue-ready-label {
  font-size: 12px;
  flex: none;
  padding-right: 2px;
}
.queue-cancel {
  font-size: 11px;
}
.generation-row.has-gpu .queue-cancel {
  top: auto;
  bottom: 25px;
  transform: none;
}
.generation-row.has-gpu.can-cancel {
  padding-right: 0;
}
.generation-row.has-gpu.can-cancel .queue-content {
  padding-right: 52px;
}
.playlist-toolbar,
.playlist-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.playlist-toolbar {
  margin-bottom: 0;
  flex: none;
}
.station-panel:has(#favourites-view:not([hidden])) {
  margin-top: 0;
}
.playlist-toolbar .text-action,
.playlist-pages .text-action {
  min-height: 44px;
  padding: 0;
  font-size: 12px;
}
.playlist-pages {
  margin-top: 8px;
  flex: none;
  color: var(--muted);
  font-size: 10px;
}
.playlist-toolbar .text-action {
  color: var(--ink);
}
.playlist-play {
  display: flex;
  align-items: center;
  gap: 7px;
}
.playlist-play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.playlist-toolbar .playlist-shuffle {
  width: 44px;
  justify-content: center;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .playlist-toolbar .text-action {
    min-height: 32px;
  }
}
.playlist-shuffle {
  display: flex;
  align-items: center;
  gap: 7px;
}
.playlist-shuffle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.playlist-toolbar .playlist-shuffle[aria-pressed="true"],
.saved-play[aria-current="true"] {
  color: var(--active);
}
.playlist-shuffle[aria-pressed="true"]::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.playlist-shuffle::after {
  content: "";
  width: 3px;
  height: 3px;
}
.favourites-list button:disabled {
  opacity: 0.45;
  cursor: default;
}
.station-panel .favourites-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.station-panel .saved-songs {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.station-panel .empty-favourites {
  margin: 0;
}
.dock .playlist-source {
  font-size: 10px;
  color: var(--result);
  padding-inline: 4px;
  min-height: 44px;
}
@media (max-width: 699px) {
  :is(.immersed, .compact-rest) .song-meta:has(.playlist-source:not([hidden])) {
    flex-direction: row;
  }
  :is(.immersed, .compact-rest)
    .song-meta:has(.playlist-source:not([hidden]))
    .song-play-count {
    right: 8px;
  }
}
.saved-play,
.my-song-play {
  font-size: 14px;
}
.saved-row > .control {
  width: 44px;
  height: 44px;
  flex: none;
}
.saved-row > .control svg {
  position: relative;
  width: 20px;
  height: 20px;
  fill: none;
}
.empty-favourites {
  font-size: 12px;
  line-height: 1.7;
}
.lyrics-copy-fallback {
  width: 100%;
  min-height: 100px;
  max-height: 180px;
  resize: none;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
}
.lyrics-copy-status:not(.sr-only) {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
  line-height: 1.5;
}
#song-details .details-credits {
  gap: 8px;
  margin-bottom: 16px;
}
#song-details .details-credits .creator-label {
  font-size: 11px;
}
#song-details .details-credits #requester {
  font-weight: 500;
}
.details-actions .copy-lyrics:disabled {
  opacity: 0.45;
  cursor: default;
}
body:has(#login:not([hidden])) .composer {
  display: none;
}
@media (max-width: 699px) {
  main.listening-page {
    --bottom-navigation: 1;
  }
  .station-panel .gpu-character {
    height: 44px;
    margin-bottom: 8px;
    gap: 8px;
  }
  .station-panel .gpu-portrait {
    width: 52px;
    height: 40px;
  }
  .station-panel .gpu-name {
    font-size: 11px;
  }
  .station-panel .gpu-status {
    font-size: 10px;
  }
  .generation-row {
    padding: 8px 0;
  }
  .composing:not(.immersed):not(.compact-rest) .composer {
    max-height: none;
    overflow: visible;
  }
  .composing .dock {
    top: auto;
    translate: none;
  }
  .composing:not(.immersed):not(.compact-rest) .dock {
    translate: -50% 0;
  }
  .composing .lyric-space {
    visibility: hidden;
  }
  .lyric-space .lyrics-retry {
    top: 200px;
  }
}
@media (max-height: 500px) and (min-width: 500px) and (max-width: 1100px) {
  main.listening-page {
    --bottom-navigation: 1;
  }
  .station-panel {
    position: static;
    width: 100%;
    max-height: none;
  }
  :is(.immersed, .compact-rest) .composer {
    left: var(--edge);
    right: auto;
    width: var(--rail-width);
    bottom: calc(var(--dock-bottom) + 2px);
  }
  .station-sidebar {
    left: var(--edge);
    right: auto;
    width: var(--rail-width);
    bottom: 174px;
  }
  body[data-panel]:not([data-panel=""]) .station-sidebar {
    bottom: calc(var(--tab-bar-bottom) + 70px);
  }
  body[data-panel]:not([data-panel=""]) .composer {
    visibility: hidden;
  }
}
@media (max-height: 500px) and (min-width: 500px) and (max-width: 699px) {
  :root {
    --rail-width: 220px;
    --edge: max(16px, env(safe-area-inset-left));
    --stage-left: calc(var(--edge) + 244px);
    --stage-right: max(16px, env(safe-area-inset-right));
    --stage-width: calc(100vw - var(--stage-left) - var(--stage-right));
    --dock-bottom: calc(var(--tab-bar-bottom) + 70px);
  }
  .station-sidebar {
    top: 48px;
  }
  .station-panel {
    position: fixed;
    left: var(--edge);
    top: 94px;
    bottom: calc(var(--tab-bar-bottom) + 68px);
    width: var(--rail-width);
    padding: 4px;
    background: var(--paper);
    border-radius: 8px;
  }
  :is(.immersed, .compact-rest) .dock .controls {
    flex-wrap: wrap;
  }
  :is(.immersed, .compact-rest) .dock .timeline {
    order: 5;
    flex: 1 0 100%;
    height: 24px;
    margin: 0;
  }
  :is(.immersed, .compact-rest) .dock .song-title {
    display: none;
  }
  .compact-rest:not(.immersed) .dock-heading {
    flex-wrap: wrap;
  }
  .compact-rest:not(.immersed) .dock .song-title {
    display: flex;
    flex-basis: 100%;
    align-items: center;
  }
  .karaoke-lines {
    top: 28px;
  }
  .karaoke-coming {
    display: none;
  }
  .composing .dock {
    bottom: var(--dock-bottom);
  }
  .composing .composer #request-text {
    height: 72px !important;
  }
}
@media (pointer: coarse) {
  .composer .recent-prompt {
    min-height: 44px;
  }
  :root[data-keyboard="request"] .composer {
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    top: calc(var(--visual-top) + var(--visual-height) - 12px);
    bottom: auto;
    translate: none;
    transform: translateY(-100%);
    z-index: 12;
    max-height: calc(var(--visual-height) - 24px) !important;
    overflow: auto !important;
  }
  :root[data-keyboard] .lyric-space,
  :root[data-keyboard] .station-panel {
    visibility: hidden;
  }
  :root[data-keyboard="name"] .composer {
    visibility: hidden;
  }
  :root[data-keyboard="request"][data-keyboard-compact] .dock {
    visibility: hidden;
  }
}

.dock .rate[aria-pressed="true"]:not(:hover) .surface {
  background: transparent;
  transform: none;
}

@media (max-width: 699px) and (min-height: 501px) {
  .station-panel {
    left: 24px;
    right: 24px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    bottom: calc(100dvh - var(--phone-controls-top, 50dvh) + 16px);
  }
  .immersed .station-panel {
    bottom: calc(100dvh - var(--phone-player-top, 50dvh) + 16px);
  }
  body:not(.immersed) .dock-heading {
    transition:
      opacity 160ms ease,
      visibility 160ms;
  }
  body[data-panel]:not([data-panel=""]):not(.immersed) .dock-heading {
    opacity: 0;
    visibility: hidden;
  }
  .immersed.phone-hide-next .karaoke-lines .karaoke-coming,
  .immersed.phone-hide-further .karaoke-lines .karaoke-further {
    visibility: hidden;
    transition: none;
  }
  .immersed .karaoke-lines > :not(.karaoke-scene) {
    transition:
      filter 160ms ease,
      visibility 160ms;
  }
  .immersed[data-panel]:not([data-panel=""])
    .karaoke-lines
    > :not(.karaoke-scene) {
    filter: opacity(0);
    visibility: hidden;
  }
  .immersed {
    --dock-bottom: calc(var(--tab-bar-bottom) + 136px);
  }
  .immersed .dock-heading {
    flex-wrap: wrap;
    gap: 0 10px;
    margin-bottom: 10px;
  }
  .immersed .dock .song-title {
    flex: 0 0 100%;
    max-width: 100%;
    align-items: center;
  }
  .immersed .dock .song-heading {
    align-items: center;
  }
  .immersed .dock h1 {
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
  }
  .immersed .dock .song-meta {
    display: contents;
  }
  .immersed .dock .song-meta > *,
  .immersed .dock .karaoke-trigger {
    order: 1;
  }
  .immersed .dock-heading:has(.playlist-source:not([hidden])) .song-title {
    flex: 0 1 calc(100% - 70px);
    max-width: calc(100% - 70px);
  }
  .immersed .dock .song-meta .playlist-source {
    order: 0;
  }
  .immersed .dock .song-meta .song-play-count {
    position: static;
    font-size: 12px;
    line-height: 1.4;
  }
  .immersed .dock .details-trigger {
    padding: 0;
    font-size: 13px;
  }
  .immersed .dock .karaoke-trigger {
    margin-left: 0;
    padding-inline: 12px;
    font-size: 13px;
  }
  .immersed .dock .playlist-source {
    font-size: 12px;
  }
  .immersed .karaoke-current {
    font-size: clamp(36px, 9.75vw, 40px);
  }
  .immersed .karaoke-next {
    font-size: 25px;
  }
}
@media (max-width: 699px) and (min-height: 501px) and (max-height: 700px) {
  .immersed .karaoke-current {
    font-size: 28px;
  }
  .immersed .karaoke-next {
    font-size: 17px;
  }
}

@media (max-width: 699px) {
  #signal {
    width: 76px;
    height: 16px;
    top: -25px;
  }
}
@media (max-height: 500px) {
  #signal {
    width: 65px;
    height: 14px;
    top: -18px;
  }
}
@media (max-width: 699px) and (min-height: 501px) {
  body[data-panel]:not([data-panel=""]) #signal {
    visibility: hidden;
  }
}
@media (max-width: 699px) and (min-height: 501px) and (max-height: 620px) {
  #signal {
    width: 64px;
    height: 10px;
    top: -17px;
  }
}
@media (forced-colors: active) {
  #signal {
    color: CanvasText;
    opacity: 1;
  }
  /* Saved and liked states stay distinct when author colours are replaced. */
  .dock .rate[aria-pressed="true"] {
    color: Highlight;
  }
  .dock .bookmark[aria-pressed="true"] svg {
    stroke-width: 2.2;
  }
}
.immersed #signal {
  visibility: hidden;
}
.dock .fullscreen-toggle {
  display: none;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms;
}
@media (min-width: 700px) {
  .immersed .dock .fullscreen-toggle:not([hidden]) {
    display: grid;
  }
}
.dock .fullscreen-toggle:hover {
  color: var(--ink);
}
.fullscreen-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fullscreen .fullscreen-toggle .enter-mark,
.fullscreen-toggle .leave-mark {
  display: none;
}
.fullscreen .fullscreen-toggle .leave-mark {
  display: inline;
}
.fullscreen
  :is(.station-name, .station-sidebar, .corner-actions, .composer, .dock) {
  transition:
    opacity 240ms ease,
    visibility 0s;
}
.fullscreen.idle.immersed[data-playing="true"]:is(
    :not([data-panel]),
    [data-panel=""]
  ):not(.composing):not(:has(#song-details:not([hidden]), :focus-visible))
  :is(.station-name, .station-sidebar, .corner-actions, .composer, .dock) {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms ease,
    visibility 0s 900ms;
}
.fullscreen.idle.immersed[data-playing="true"] {
  cursor: none;
}
/* Desktop karaoke shows only the last section used; opening its panel
   reveals the other sections to its right. */
@media (min-width: 1101px), (min-width: 700px) and (min-height: 501px) {
  .immersed .station-navigation {
    justify-content: flex-start;
    gap: 24px;
  }
  .immersed .station-navigation [data-current="true"] {
    order: -1;
  }
  .immersed
    .station-navigation
    :is(.panel-tab, #open-favourites):not([data-current="true"]) {
    animation: section-reveal 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .immersed .station-navigation #open-favourites:not([data-current="true"]) {
    animation-delay: 30ms;
  }
  .immersed .station-navigation #open-my-songs:not([data-current="true"]) {
    animation-delay: 60ms;
  }
  .immersed:is(:not([data-panel]), [data-panel=""])
    .station-navigation
    :is(.panel-tab, #open-favourites):not([data-current="true"]) {
    display: none;
  }
}
@keyframes section-reveal {
  from {
    opacity: 0;
    translate: -10px 0;
  }
}
.song-credit {
  --archive-color: #b3443d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0 8px 0 0;
  font-size: 11px;
  line-height: 14px;
  color: var(--muted);
  white-space: nowrap;
}
[data-theme="dark"] .song-credit {
  --archive-color: #e18c82;
}
.song-credit[data-empty="true"] {
  display: none;
}
.song-credit-name {
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--ink);
}
/* The house 6 px flag margin beside the 5 px gap reads as a detached flag. */
.song-credit .flag {
  margin-right: 2px;
}
.song-credit-delete {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 44px;
  margin-left: -2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--archive-color);
  cursor: pointer;
}
.song-credit-delete svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The My songs bin's 32 px hover square inside a 44 px tall hit area. */
.song-credit-delete::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6px;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--archive-color) 12%, transparent);
  opacity: 0;
  transition: opacity 180ms;
}
@media (hover: hover) {
  .song-credit-delete:hover::before {
    opacity: 1;
  }
}
.song-credit-delete:focus-visible {
  outline: none;
}
.song-credit-delete:focus-visible::before {
  opacity: 1;
  outline: 2px solid var(--focus);
}
/* Single-row headings: the title truncates before Karaoke, Exit karaoke or
   full screen can be pushed past the edge. */
:is(.immersed, .compact-rest) .dock .song-title {
  min-width: 0;
}
@media (pointer: coarse) {
  .song-credit-delete {
    width: 44px;
    margin-left: -8px;
  }
  .song-credit-delete::before {
    left: 6px;
  }
}
@media (min-width: 700px) {
  .immersed .dock-heading {
    max-width: 790px;
    justify-content: flex-start;
  }
  .immersed .dock .karaoke-trigger {
    margin-left: auto;
  }
}
@media (max-width: 699px) {
  .song-credit {
    margin: 0;
  }
  .song-credit-name {
    max-width: none;
  }
  .song-credit[data-empty="true"] {
    display: flex;
    visibility: hidden;
  }
  .song-credit-delete {
    width: 44px;
    margin-left: -8px;
  }
  .song-credit-delete::before {
    left: 6px;
  }
  /* Rises by the credit line so transport, timeline and composer stay put;
     on short phones it stops with the bars just under the header. */
  body:not(.immersed):not(.compact-rest):not(.composing) .dock {
    top: max(calc(50% - 201px), calc(110px + env(safe-area-inset-top)));
  }
}
@media (min-width: 500px) and (max-width: 699px) and (max-height: 500px) {
  .immersed .dock-heading {
    gap: 0 10px;
  }
  .immersed .dock .song-meta {
    display: contents;
  }
  .immersed .dock .details-trigger {
    padding: 0;
    font-size: 13px;
  }
  .immersed .dock .playlist-source {
    font-size: 12px;
  }
}
@media (max-width: 699px) and (min-height: 501px),
  (min-width: 500px) and (max-width: 699px) and (max-height: 500px) {
  /* The basis keeps "By", the flag and part of the name, and stops the credit
     squeezing in beside the title when Playlist shares that line. */
  .immersed .dock .song-credit {
    flex: 1 0 88px;
    max-width: max-content;
  }
  .immersed .dock .song-credit:has(.song-credit-delete) {
    flex: none;
  }
  .immersed .dock .song-credit[data-empty="true"],
  .immersed .dock .song-meta .song-play-count {
    display: none;
  }
  .immersed .dock .karaoke-trigger {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }
  .immersed .dock .karaoke-copy {
    display: none;
  }
  .immersed .dock .karaoke-trigger::before {
    inset: 8px;
  }
  .immersed .dock .karaoke-trigger::after {
    inset: 9px;
  }
}
