/* ==========================================================================
   Standby / Ambient Photo Carousel Mode
   Apple StandBy x Digital Photo Frame Aesthetic
   ========================================================================== */
.ambient {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 65;
  background: radial-gradient(ellipse at 65% 35%, #182030 0%, #0d121c 55%, #05070a 100%);
  display: none;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.stage[data-mode="ambient"] .ambient {
  display: block;
}

.amb-stage {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

.amb-scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 25% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.amb-info {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10;
  pointer-events: none;
}

/* Standby Frosted Widget Block (Apple StandBy Style) */
.standby-widget-block {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  padding: 32px 36px;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #FFFFFF;
  pointer-events: auto;
}

.stage[data-theme="light"] .standby-widget-block {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #121316;
}

.standby-time-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.standby-time {
  font-size: 88px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.standby-ampm {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}

.standby-date {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

.standby-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  width: 100%;
}
.stage[data-theme="light"] .standby-divider {
  background: rgba(0, 0, 0, 0.1);
}

.standby-weather-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.standby-wx-icon {
  display: flex;
  align-items: center;
}

.standby-wx-text {
  display: flex;
  flex-direction: column;
}

.standby-wx-temp {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.standby-wx-temp small {
  font-size: 15px;
  font-weight: 600;
  margin-left: 8px;
  opacity: 0.85;
}

.standby-wx-range {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.75;
}

.standby-commutes-row {
  display: flex;
  gap: 12px;
}

.standby-commute-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stage[data-theme="light"] .standby-commute-item {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

/* Now Playing in Standby */
.amb-np-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stage[data-theme="light"] .amb-np-card {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
}

.amb-np-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.amb-np-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.amb-np-source {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-music);
  display: flex;
  align-items: center;
  gap: 4px;
}

.amb-np-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amb-np-artist {
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Right Wake Hint */
.standby-hint-badge {
  position: absolute;
  right: 48px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

/* Night Clock Mode */
.night {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 66;
  background: #000;
  display: none;
  place-items: center;
  cursor: pointer;
}

.stage[data-mode="night"] .night {
  display: grid;
}

.nt-inner {
  text-align: center;
  color: #B8281A;
}

.nt-time {
  font-size: 180px;
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #C22C1C;
}

.nt-line {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #A02618;
}

.nt-lock {
  margin-top: 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7A1D12;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
