#earth-player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #e7f9ff;
  color-scheme: dark;
  background: #030b15;
  overflow: hidden;
}
#earth-player[open] {
  display: flex;
  flex-direction: column;
}
#earth-player::backdrop { background: #030b15; }
.earth-toolbar {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: max(5px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    7px max(10px, env(safe-area-inset-left));
  background: #091a24;
}
.earth-track { flex: 1; min-width: 0; }
#earth-song-title { font-size: 14px; line-height: 1.2; display: block; }
.earth-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  color: #b5d2de;
  font: 11px/1.3 Plex, monospace;
}
#earth-audio-status { color: #91effa; }
.earth-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.earth-transport, #earth-recovery {
  display: flex;
  align-items: center;
  gap: 5px;
}
#earth-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  appearance: none;
  border: 0;
  background: #27424b;
  color: #65e8fa;
}
#earth-progress::-webkit-progress-bar { background: #27424b; }
#earth-progress::-webkit-progress-value { background: #65e8fa; }
#earth-progress::-moz-progress-bar { background: #65e8fa; }
#earth-player button, #earth-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #375563;
  border-radius: 5px;
  color: #e5f9ff;
  background: #102834;
  line-height: 1.2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
#earth-player :is(button, a):hover { border-color: #6dd5e7; }
#earth-player button:disabled { opacity: .5; }
#earth-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  background: #030b15;
}
#earth-globe, #earth-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#earth-globe { background: #030b15; }
#earth-globe[inert] { opacity: 0; }
#earth-cover {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
  background: radial-gradient(ellipse at center, #0a2433, #030b15 65%);
}
#earth-cover[hidden], #earth-recovery[hidden] { display: none; }
#earth-load-status { margin: 0; color: #cce7ee; }
.earth-loading-orb {
  width: 38px;
  height: 38px;
  border: 1px solid #468b9a;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 27%, #237d8d, #123342 26%, #040e16 72%);
  box-shadow: inset -2px 1px 4px #42d0ed99, 0 0 22px #30c5f21c;
}
@media (max-width: 560px) {
  .earth-toolbar { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
  .earth-track { grid-column: 2; grid-row: 1 / 3; }
  .earth-transport { grid-column: 1; }
  #earth-player button { padding-inline: 9px; }
  #earth-return { justify-self: stretch; }
}
@media (max-width: 560px) and (min-height: 520px) {
  .earth-toolbar { grid-template-columns: 1fr auto; gap: 0 6px; }
  .earth-track { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 1px 6px; }
  #earth-return { grid-column: 1; grid-row: 2; justify-self: start; }
  .earth-transport { grid-column: 2; grid-row: 2; }
}
