/* Listening controls v9.8: lighter play control, vertical volume and glass queue. */

body.space-lounge #audioPlay {
  position: relative;
  overflow: visible;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  font-size: 0 !important;
  border: 1px solid rgba(236, 231, 200, 0.34) !important;
  background: rgba(239, 244, 225, 0.08) !important;
  color: rgba(252, 248, 224, 0.94) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 7px 18px rgba(8, 21, 14, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.space-lounge #audioPlay[aria-pressed="true"] {
  border-color: rgba(246, 237, 190, 0.46) !important;
  background: rgba(233, 242, 219, 0.14) !important;
  color: #fff8d8 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 0 22px rgba(231, 218, 155, 0.1) !important;
}

body.space-lounge #audioPlay > *:not(.nature-play-glyph) {
  display: none !important;
}

.nature-play-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.nature-play-glyph::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  filter: drop-shadow(0 2px 3px rgba(5, 18, 10, 0.18));
}

#audioPlay[aria-pressed="true"] .nature-play-glyph::before {
  width: 5px;
  height: 21px;
  margin-left: -9px;
  border: 0;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 12px 0 currentColor;
}

.player-mode-button {
  min-width: 64px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(232, 225, 190, 0.2);
  border-radius: 12px;
  background: rgba(235, 241, 220, 0.06);
  color: rgba(247, 242, 217, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 600 12px/1 "Noto Sans SC", sans-serif;
}

.player-mode-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nature-volume-popover {
  position: fixed;
  z-index: 1400;
  width: 78px;
  height: 190px;
  box-sizing: border-box;
  padding: 12px 11px 10px;
  border: 1px solid rgba(235, 226, 185, 0.25);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(34, 56, 42, 0.92), rgba(18, 38, 28, 0.88));
  color: #f8f2d8;
  box-shadow: 0 20px 42px rgba(8, 23, 14, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.nature-volume-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(235, 226, 185, 0.22);
  border-bottom: 1px solid rgba(235, 226, 185, 0.22);
  background: rgba(18, 38, 28, 0.9);
  transform: translateX(-50%) rotate(45deg);
}

.nature-volume-popover strong {
  font: 600 12px/1 "Noto Sans SC", sans-serif;
}

.nature-volume-popover input[type="range"] {
  width: 28px;
  height: 118px;
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: #e5cf85;
  -webkit-appearance: slider-vertical;
}

.nature-volume-popover > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass {
  background: linear-gradient(155deg, rgba(36, 57, 43, 0.82), rgba(20, 39, 29, 0.76)) !important;
  border-color: rgba(235, 226, 185, 0.24) !important;
  color: #f7f1d8 !important;
  box-shadow: 0 26px 62px rgba(6, 20, 12, 0.38), inset 0 1px rgba(255, 255, 255, 0.11) !important;
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass::after {
  background: rgba(20, 39, 29, 0.82);
  border-color: rgba(235, 226, 185, 0.22);
}

body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass,
body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass h2,
body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass button,
body.space-lounge #songDrawer.nature-queue-popover.nature-queue-glass a {
  color: #f7f1d8;
}

body.space-lounge #songDrawer.nature-queue-popover #closeDrawer {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(249, 243, 217, 0.82) !important;
  font-size: 24px !important;
}

.nature-queue-toolbar {
  display: contents;
}

.nature-queue-toolbar > span {
  display: none;
}

body.space-lounge #songDrawer.nature-queue-popover .nature-queue-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

body.space-lounge #songDrawer.nature-queue-popover #drawerTitle {
  margin: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 19px !important;
}

.nature-queue-refresh {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(240, 229, 185, 0.24);
  border-radius: 999px;
  background: rgba(244, 237, 205, 0.09);
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 15px;
  font-weight: 650;
}

.nature-queue-refresh svg,
.nature-queue-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nature-queue-search {
  min-height: 58px;
  margin: 10px 18px 17px;
  padding: 0 15px;
  border: 1px solid rgba(240, 229, 185, 0.2);
  border-radius: 13px;
  background: rgba(255, 252, 232, 0.09);
  color: rgba(249, 244, 221, 0.86);
  display: flex;
  align-items: center;
  gap: 9px;
}

.nature-queue-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff9df;
  font: 550 17px/1 "Noto Sans SC", sans-serif;
}

.nature-queue-search input::placeholder {
  color: rgba(249, 244, 221, 0.58);
}

.nature-queue-search small {
  color: rgba(249, 244, 221, 0.62);
  white-space: nowrap;
  font-size: 11px;
}

.nature-queue-voice {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(242, 232, 190, 0.2);
  border-radius: 50%;
  background: rgba(246, 239, 207, 0.09);
  color: #f5e8b8 !important;
  display: grid;
  place-items: center;
}

.nature-queue-voice[aria-pressed="true"] {
  background: rgba(218, 190, 112, 0.28);
  box-shadow: 0 0 0 5px rgba(218, 190, 112, 0.1);
}

.nature-queue-voice svg {
  width: 21px;
  height: 21px;
}

body.space-lounge #songDrawer.nature-queue-popover .drawer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
}

body.space-lounge #songDrawer.nature-queue-popover .nature-queue-action {
  min-width: 54px;
  min-height: 42px;
  padding: 0 7px;
  border: 1px solid rgba(241, 230, 187, 0.18);
  border-radius: 11px;
  background: rgba(248, 241, 211, 0.07);
  color: rgba(250, 244, 219, 0.88) !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
}

body.space-lounge #songDrawer.nature-queue-popover .nature-queue-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.space-lounge #songDrawer.nature-queue-popover .nature-queue-favorite[aria-pressed="true"] {
  color: #f2cf7c !important;
  background: rgba(224, 188, 93, 0.14);
}

.space-lounge .natural-lounge .nature-comment-viewport {
  height: 184px;
}

.space-lounge .natural-lounge .nature-comment-track {
  animation: natureCommentTwenty 86s linear infinite !important;
}

.space-lounge .natural-lounge .nature-comment-track .nature-comment-song {
  margin: 0 8px;
  padding: 2px 7px;
  border: 1px solid rgba(239, 225, 178, 0.2);
  border-radius: 999px;
  color: rgba(249, 238, 197, 0.78);
  font-size: 12px;
  font-style: normal;
}

.space-lounge .natural-lounge .nature-comment-viewport {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.space-lounge .natural-lounge .nature-comment-viewport.is-manual .nature-comment-track {
  animation: none !important;
  transform: none !important;
}

.space-lounge .natural-lounge .nature-comment-track p {
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes natureCommentTwenty {
  from { transform: translateY(0); }
  to { transform: translateY(-920px); }
}

@media (max-width: 600px) {
  .player-mode-button {
    min-width: 42px;
    padding: 0 6px;
  }

  .player-mode-button span {
    display: none;
  }

  .nature-queue-toolbar {
    margin-inline: 14px;
  }

  .nature-queue-search {
    margin-inline: 12px;
  }

  .space-lounge .natural-lounge .nature-comment-viewport {
    height: 156px;
  }

  .space-lounge .natural-lounge .nature-comment-track {
    animation-name: natureCommentTwentyMobile !important;
  }

  .space-lounge .natural-lounge .nature-comment-track p {
    height: 39px;
    min-height: 39px;
  }

  .space-lounge .natural-lounge .nature-comment-track .nature-comment-song {
    margin-inline: 5px;
    padding: 1px 5px;
    font-size: 10px;
  }
}

@keyframes natureCommentTwentyMobile {
  from { transform: translateY(0); }
  to { transform: translateY(-780px); }
}

/* v9.12: clean queue close control and a mixed-length 200-item comment stream. */
body.space-lounge #songDrawer.nature-queue-popover #closeDrawer,
body.space-lounge #songDrawer.nature-queue-popover #closeDrawer:hover,
body.space-lounge #songDrawer.nature-queue-popover #closeDrawer:active,
body.space-lounge #songDrawer.nature-queue-popover #closeDrawer:focus {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: rgba(247, 241, 216, 0.82) !important;
}

.space-lounge .natural-lounge .nature-comment-track {
  animation: natureCommentStream 720s linear infinite !important;
  animation-delay: var(--comment-resume-delay, 0s) !important;
  will-change: transform;
}

.space-lounge .natural-lounge .nature-comment-set {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
}

.space-lounge .natural-lounge .nature-comment-set p {
  box-sizing: border-box;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.45 !important;
}

@keyframes natureCommentStream {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (max-width: 600px) {
  .space-lounge .natural-lounge .nature-comment-set p {
    min-height: 44px !important;
    padding: 5px 0 !important;
  }
}

/* v9.47: balanced author and message sizes, with a quieter text hierarchy. */
body.space-lounge .natural-lounge .nature-comment-track p {
  font-size: clamp(17px, 1.4vw, 18px) !important;
  font-weight: 400;
  line-height: 1.7 !important;
  letter-spacing: .01em;
}
body.space-lounge .natural-lounge .nature-comment-track b {
  font-size: 1em !important;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: .02em;
}
body.space-lounge .natural-lounge .nature-comment-track p > span {
  font-size: inherit;
  line-height: inherit;
}
body.space-lounge .natural-lounge .nature-comment-track .nature-comment-song {
  font-size: clamp(14px, 1.15vw, 15px);
  font-weight: 400;
  line-height: 1.5;
}
