.guest-player {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f2e9;
  text-align: center;
}

.guest-player h2 {
  margin: 0;
  font: 700 23px Georgia, serif;
}

.guest-player > p:not(.eyebrow) {
  margin: 6px 0 12px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
}

.guest-player audio,
.guest-player video {
  display: block;
  width: 100%;
  background: #17191e;
  border-radius: 8px;
}

.guest-player video {
  aspect-ratio: 16 / 9;
}

.guest-finish {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guest-finish:disabled {
  cursor: wait;
  opacity: .55;
}

.guest-song {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.guest-song.playing {
  background: #fff3e8;
  border-left: 4px solid var(--coral);
  padding-left: 10px;
}

.guest-play {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--cream);
  padding: 8px 11px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.guest-library-card {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf7f0;
}

.queue-date-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.queue-date-picker select {
  padding: 7px 10px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.queue-date {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #f1ede4;
  color: var(--ink);
  font-size: 12px;
}

.move-to-today {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
}

.guest-library-search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.guest-library-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  outline: none;
}

.guest-library-search input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px #ea684f1c;
}

.guest-library-add {
  border: 1px solid #a9c8bf;
  border-radius: 99px;
  background: #edf5f1;
  padding: 8px 11px;
  color: #356f65;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.guest-library-add:disabled {
  cursor: wait;
  opacity: .6;
}

.guest-singer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #171a20b8;
  backdrop-filter: blur(6px);
}

.guest-singer-card {
  position: relative;
  width: min(430px,100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--cream);
  box-shadow: 0 24px 70px #0006;
}

.guest-singer-card h2 {
  margin: 0 35px 8px 0;
  font: 700 25px/1.15 Georgia,serif;
}

.guest-singer-song {
  margin: 0 0 22px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 800;
}

.guest-singer-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.guest-singer-card label span {
  font-size: 14px;
  font-weight: 800;
}

.guest-singer-card input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 16px;
  outline: none;
}

.guest-singer-card input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px #ea684f1c;
}

.guest-singer-card .primary { width: 100%; }
.guest-singer-card .status { min-height: 16px; margin-top: 12px; }
.guest-singer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
}

@media (max-width: 420px) {
  .guest-play {
    padding: 8px;
    font-size: 0;
  }

  .guest-play::first-letter {
    font-size: 12px;
  }
}

.install-app {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 12px;
  border: 1px solid #a9c8bf;
  border-radius: 8px;
  background: #edf5f1;
  color: #356f65;
  font-weight: 800;
  box-shadow: 0 7px 20px #2023292b;
}

.shared-notice {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid #a9c8bf;
  border-radius: 8px;
  background: #edf5f1;
  color: #356f65;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.youtube-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.youtube-field span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.youtube-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 12px;
  border-radius: 7px;
  outline: none;
}

.youtube-field input:focus {
  border-color: #e62117;
  box-shadow: 0 0 0 3px #e6211718;
}

.or-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.player-card iframe,
.guest-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 17px 0;
  border: 0;
  border-radius: 8px;
  background: #17191e;
}

.transport button:disabled {
  cursor: not-allowed;
  opacity: .3;
}

.remote-enable {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid #a9c8bf;
  border-radius: 7px;
  background: #edf5f1;
  color: #356f65;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.remote-enable.active {
  border-color: #56a46b;
  background: #dff1e4;
}

.remote-player-notice {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.remote-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #a9c8bf;
  border-radius: 8px;
  background: #edf5f1;
}

.remote-status i { color: #56a46b; }
.remote-status.offline { border-color: var(--line); background: #f2eee6; }
.remote-status.offline i { color: #aaa49a; }
.remote-status span { display: flex; flex-direction: column; gap: 3px; }
.remote-status strong { font-size: 11px; }
.remote-status small { color: var(--muted); font-size: 9px; line-height: 1.4; }

.remote-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 10px 12px;
  text-align: center;
}

.remote-now small,.remote-queue-head { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.remote-now strong { font: 700 22px Georgia,serif; }
.remote-now span { color: var(--coral); font-size: 11px; font-weight: 700; }

.remote-transport { display: flex; justify-content: center; gap: 8px; margin: 8px 0 15px; }
.remote-transport button { min-width: 48px; height: 42px; border: 1px solid var(--line); border-radius: 99px; background: var(--cream); color: var(--ink); font-weight: 800; }
.remote-transport .remote-play { background: var(--coral); color: white; }
.remote-transport button:disabled { opacity: .35; }

.remote-volume { display: grid; grid-template-columns: auto 1fr 38px; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 9px; font-weight: 800; }
.remote-volume input { width: 100%; accent-color: var(--coral); }
.remote-queue-head { margin: 20px 0 8px; }
.remote-queue { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.remote-song { display: grid; grid-template-columns: 25px 1fr auto; grid-template-areas: "number title action" "number singer action"; align-items: center; gap: 2px 8px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #faf7f0; text-align: left; }
.remote-song span { grid-area: number; color: var(--muted); font: italic 14px Georgia,serif; }
.remote-song b { grid-area: title; font: 700 14px Georgia,serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-song small { grid-area: singer; color: var(--muted); font-size: 9px; }
.remote-song i { grid-area: action; color: var(--coral); font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }

.remote-display {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #a9c8bf;
  border-radius: 7px;
  background: #edf5f1;
  color: #356f65;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.remote-display:disabled { opacity: .4; }
.player-display-button { background: #292d34; border-color: #292d34; color: white; }

body.player-display { overflow: hidden; background: #000; }
body.player-display #host.shell { min-height: 100vh; padding: 0; background: #000; }
body.player-display #host > header,
body.player-display #host > .hero,
body.player-display .queue-card { display: none; }
body.player-display .layout { display: block; }
body.player-display .player-card {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  color: white;
  box-shadow: none;
  padding: 0;
}
body.player-display .player-card > :not(#mediaStage):not(#togglePlayerDisplay) { display: none; }
body.player-display #mediaStage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.player-display #mediaStage video,
body.player-display #mediaStage iframe {
  display: block;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}
body.player-display #mediaStage video { object-fit: contain; aspect-ratio: auto; }
body.player-display #mediaStage audio { width: min(88vw,800px); margin: 0; }
body.player-display #mediaStage.record span { width: min(32vw,180px); height: min(32vw,180px); }
body.player-display #togglePlayerDisplay {
  display: block;
  position: fixed;
  top: max(10px,env(safe-area-inset-top));
  right: max(10px,env(safe-area-inset-right));
  z-index: 42;
  width: auto;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #ffffff55;
  background: #0009;
  color: white;
  opacity: .45;
  font-size: 9px;
}
body.player-display #togglePlayerDisplay:hover,
body.player-display #togglePlayerDisplay:focus-visible { opacity: 1; }

/* Compact echo of the installed icon inside the app header. */
.mark {
  border: 2px solid #ffbd56;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%,#3a404d,#171b24 70%);
  color: #fff8ea;
  box-shadow: 0 3px 0 #b84434,0 0 0 3px var(--coral);
}
