body.space-lounge .natural-lounge {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  background-color: transparent !important;
  background-image: none !important;
}

.daily-scene-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: #08120d;
}

body.space-lounge .stage-atmosphere {
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background: #08120d !important;
}

body.space-lounge .stage-atmosphere .daily-scene-backdrop {
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

body.space-lounge {
  background: #08120d !important;
}

body.space-lounge > .daily-scene-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

body.space-lounge > .app {
  position: relative;
  z-index: 1;
}

body.space-lounge #openMusicProfile {
  display: inline-flex !important;
}

.daily-scene-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.88) contrast(1.04) brightness(.72);
  transform: translate3d(-.55%, 0, 0) scale(1.035);
  transition: opacity 1.05s ease;
  animation: dailySceneDrift 46s cubic-bezier(.42, 0, .28, 1) infinite alternate;
  will-change: transform, opacity;
}

.daily-scene-image.is-active { opacity: 1; }

.daily-scene-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 23% 45%, transparent 0 26%, rgba(3, 10, 6, .12) 68%),
    linear-gradient(90deg, rgba(3, 10, 6, .12), rgba(3, 10, 6, .2) 48%, rgba(3, 10, 6, .42)),
    linear-gradient(0deg, rgba(2, 8, 5, .44), transparent 42%, rgba(2, 8, 5, .12));
}

.daily-scene-grain {
  position: absolute;
  inset: 0;
  opacity: .11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.daily-scene-butterfly {
  position: absolute;
  top: 35%;
  left: 66%;
  width: 13px;
  height: 8px;
  opacity: .2;
  filter: drop-shadow(0 0 5px rgba(246, 220, 139, .42));
  animation: dailyButterflyDrift 23s ease-in-out infinite;
  transition: opacity .7s ease;
}

.daily-scene-butterfly::before,
.daily-scene-butterfly::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 90% 10% 75% 25%;
  background: rgba(250, 222, 135, .7);
  transform-origin: right center;
  animation: dailyButterflyWing 1.7s ease-in-out infinite alternate;
}

.daily-scene-butterfly::before { right: 50%; }
.daily-scene-butterfly::after {
  left: 50%;
  transform: scaleX(-1);
  transform-origin: left center;
}

.daily-scene-butterfly--two {
  top: 42%;
  left: 73%;
  opacity: .13;
  scale: .72;
  animation-delay: -9s;
}

.daily-scene-backdrop[data-effect="quiet"] .daily-scene-butterfly { opacity: 0; }

.daily-scene-review-button {
  position: fixed;
  z-index: 72;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 82px));
  display: none;
  align-items: center;
  gap: 13px;
  min-width: 164px;
  min-height: 58px;
  padding: 0 20px 0 24px;
  border: 1px solid rgba(246, 226, 166, .34);
  border-radius: 999px;
  color: #fff2c7;
  background: linear-gradient(180deg, rgba(39, 83, 54, .88), rgba(17, 49, 31, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 15px 38px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  font: 600 18px/1 sans-serif;
  letter-spacing: .06em;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

body.space-lounge .daily-scene-review-button { display: flex; }

.daily-scene-review-button small {
  min-width: 51px;
  padding-left: 12px;
  border-left: 1px solid rgba(246, 226, 166, .25);
  color: rgba(255, 242, 199, .7);
  font: 600 12px/1 sans-serif;
  letter-spacing: .04em;
}

.daily-scene-review-button::after {
  content: "›";
  margin-left: -5px;
  font-size: 24px;
  font-weight: 400;
}

.daily-scene-review-button:active { transform: translateY(1px); }
.daily-scene-review-button.is-loading { opacity: .68; pointer-events: none; }

@keyframes dailySceneDrift {
  0% { transform: translate3d(-.55%, 0, 0) scale(1.035); }
  52% { transform: translate3d(.1%, -.22%, 0) scale(1.054); }
  100% { transform: translate3d(.62%, .12%, 0) scale(1.073); }
}

@keyframes dailyButterflyDrift {
  0%, 100% { translate: -4px 4px; rotate: -4deg; }
  30% { translate: 10px -7px; rotate: 4deg; }
  62% { translate: 18px 1px; rotate: -2deg; }
  82% { translate: 5px -11px; rotate: 3deg; }
}

@keyframes dailyButterflyWing {
  from { scale: 1 .38; opacity: .42; }
  to { scale: 1 1; opacity: .86; }
}

@media (max-width: 760px) {
  .daily-scene-review-button {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
    min-width: 148px;
    min-height: 54px;
    padding-inline: 19px 16px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-scene-image,
  .daily-scene-butterfly,
  .daily-scene-butterfly::before,
  .daily-scene-butterfly::after { animation: none !important; }
}

/* v9.15: living scenery, subtle motion and readable atmosphere */
.daily-scene-image {
  filter: saturate(.94) contrast(1.03) brightness(.80);
  animation-duration: 38s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  will-change: transform, opacity, filter;
}
.daily-scene-backdrop[data-effect~="sun"] .daily-scene-image.is-active { filter: saturate(1.03) contrast(1.02) brightness(.88); }
.daily-scene-backdrop[data-effect~="night"] .daily-scene-image.is-active { filter: saturate(.94) contrast(1.06) brightness(.73); }
.daily-scene-backdrop[data-effect~="rain"] .daily-scene-image.is-active { filter: saturate(.88) contrast(1.04) brightness(.78); }
.daily-scene-backdrop[data-effect~="zoom-in"] .daily-scene-image.is-active { animation-name: dailyZoomIn; }
.daily-scene-backdrop[data-effect~="zoom-out"] .daily-scene-image.is-active { animation-name: dailyZoomOut; }
.daily-scene-backdrop[data-effect~="pan-left"] .daily-scene-image.is-active { animation-name: dailyPanLeft; }
.daily-scene-backdrop[data-effect~="pan-right"] .daily-scene-image.is-active { animation-name: dailyPanRight; }
.daily-scene-backdrop[data-effect~="rise"] .daily-scene-image.is-active { animation-name: dailyRise; }
@keyframes dailyZoomIn { from { transform: scale(1.035); } to { transform: scale(1.105); } }
@keyframes dailyZoomOut { from { transform: scale(1.105); } to { transform: scale(1.035); } }
@keyframes dailyPanLeft { from { transform: translate3d(1.45%, 0, 0) scale(1.09); } to { transform: translate3d(-1.45%, 0, 0) scale(1.09); } }
@keyframes dailyPanRight { from { transform: translate3d(-1.45%, 0, 0) scale(1.09); } to { transform: translate3d(1.45%, 0, 0) scale(1.09); } }
@keyframes dailyRise { from { transform: translate3d(0, .8%, 0) scale(1.065); } to { transform: translate3d(0, -.8%, 0) scale(1.095); } }
.daily-scene-backdrop::before, .daily-scene-backdrop::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -12%;
  pointer-events: none;
  opacity: 0;
}
.daily-scene-backdrop[data-effect~="sun"]::before {
  opacity: .48;
  background: radial-gradient(ellipse at 24% 8%, rgba(255,246,194,.58) 0 7%, rgba(255,222,148,.22) 18%, transparent 44%), linear-gradient(118deg, rgba(255,244,190,.22), transparent 38%);
  mix-blend-mode: screen;
  transform-origin: 18% 8%;
  animation: dailySunBreath 12s ease-in-out infinite alternate;
}
.daily-scene-backdrop[data-effect~="cloud"]::before {
  opacity: .23;
  background: radial-gradient(ellipse at 20% 18%, rgba(255,255,255,.38), transparent 36%);
  mix-blend-mode: screen;
  animation: dailyCloudDrift 24s ease-in-out infinite alternate;
}
.daily-scene-backdrop[data-effect~="rain"]::before {
  opacity: .18;
  background: repeating-linear-gradient(103deg, transparent 0 18px, rgba(225,240,238,.18) 19px, transparent 20px 38px);
  animation: dailyRainSheen 16s linear infinite;
}
.daily-scene-backdrop[data-effect~="bokeh"]::after, .daily-scene-backdrop[data-effect~="night"]::after {
  opacity: .36;
  background: radial-gradient(circle at 14% 28%, rgba(255,198,105,.32) 0 1.1%, transparent 2.6%), radial-gradient(circle at 82% 34%, rgba(255,225,159,.28) 0 .9%, transparent 2.3%), radial-gradient(circle at 70% 78%, rgba(255,174,89,.22) 0 .8%, transparent 2.1%);
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: dailyNightGlow 8s ease-in-out infinite alternate;
}
@keyframes dailySunBreath { from { opacity: .33; transform: translate3d(-1%, -1%, 0) rotate(-1deg) scale(1); } to { opacity: .58; transform: translate3d(1%, 1%, 0) rotate(1deg) scale(1.05); } }
@keyframes dailyCloudDrift { from { transform: translate3d(-3%, 0, 0); opacity: .14; } to { transform: translate3d(3%, 1%, 0); opacity: .30; } }
@keyframes dailyRainSheen { from { transform: translate3d(-2%, -3%, 0); } to { transform: translate3d(2%, 3%, 0); } }
@keyframes dailyNightGlow { from { opacity: .20; transform: scale(.98); } to { opacity: .44; transform: scale(1.035); } }
.daily-scene-butterfly, .daily-scene-butterfly--two { opacity: 0; }
.daily-scene-backdrop[data-effect~="butterflies"] .daily-scene-butterfly { opacity: .18; }
.daily-scene-backdrop[data-effect~="butterflies"] .daily-scene-butterfly--two { opacity: .11; }
@media (prefers-reduced-motion: reduce) {
  .daily-scene-image, .daily-scene-backdrop::before, .daily-scene-backdrop::after { animation: none !important; }
}

/* v9.17: listening-home optical alignment
   2026-09-15: 取消 Logo 下移/右移，与练习厅/演奏厅顶栏对齐 */
body.space-lounge #appHeader > a:first-child,
body.space-lounge .app-header > a:first-child,
body.space-lounge .appHeader > a:first-child,
body.space-lounge .app > header > a:first-child {
  position: relative;
  left: 0;
  top: 0;
}

body.space-lounge #loungeHeading {
  position: relative;
  top: clamp(-20px, -1.8vh, -14px);
}

/* v9.27: restored listening-home composition with lighter player emphasis. */
body.space-lounge .listening-welcome {
  translate: 0 -28px;
}

@media (min-width: 820px) {
  body.space-lounge .listening-welcome {
    translate: 0 -36px;
  }

  body.space-lounge .turntable-area {
    scale: .88;
    transform-origin: center;
  }
}

/* v9.19: clearer brand tagline for senior users */
body.space-lounge #appHeader > a:first-child small,
body.space-lounge .app-header > a:first-child small,
body.space-lounge .appHeader > a:first-child small,
body.space-lounge .app > header > a:first-child small,
body.space-lounge #appHeader > a:first-child .brand-subtitle,
body.space-lounge .app-header > a:first-child .brand-subtitle,
body.space-lounge .appHeader > a:first-child .brand-subtitle,
body.space-lounge #appHeader > a:first-child .brand-tagline,
body.space-lounge .app-header > a:first-child .brand-tagline,
body.space-lounge .appHeader > a:first-child .brand-tagline {
  font-size: clamp(11px, 1.05vw, 13px) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: .12em !important;
  opacity: .92 !important;
}

/* v9.31: comment action follows the left edge of the listening choices, without a full-width frame. */
body.space-lounge .nature-secondary-actions {
  align-items: flex-start;
  justify-content: flex-start;
}

body.space-lounge .nature-comment-entry {
  width: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding-inline: 14px;
}

@media (max-width: 600px) {
  body.space-lounge .nature-secondary-actions {
    justify-content: flex-start;
  }
}
