body.sonos-skin {
  background: #050505;
  color: #f5f5f7;
}

body.sonos-skin .site-header {
  color: #f4eee6;
  background: #0b0907;
}

body.sonos-skin .site-header.is-solid {
  background: #0b0907;
  color: #f4eee6;
}

body.sonos-skin .nav-app { border-color: currentColor; }
body.sonos-skin .lead,
body.sonos-skin .eyebrow { color: rgba(245,245,247,0.5); }
body.sonos-skin .site-footer,
body.sonos-skin .legal { border-color: rgba(255,255,255,0.08); }
body.sonos-skin .site-footer a { color: rgba(245,245,247,0.55); }
body.sonos-skin .site-footer a:hover { color: #fff; }

.sonos-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 390px;
  gap: 0;
  min-height: 100vh;
  padding: 0 0 0;
  align-items: stretch;
}

.sonos-room {
  position: relative;
  height: min(86vh, 860px);
  border-radius: 0;
  overflow: hidden;
  background: #050505;
}

.sonos-room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.45s ease;
}

.sonos-room-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.sonos-room-meta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.sonos-room-meta h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-style: italic;
  margin: 6px 0 8px;
}

.sonos-skin.is-off .sonos-room-meta { opacity: 0.55; }

.iphone-sonos {
  --phone-w: 390px;
  width: var(--phone-w);
  margin: 0 auto;
}

.iphone-sonos .iphone-bezel {
  background: #0b0b0d;
  border-radius: 54px;
  padding: 12px;
  box-shadow:
    0 0 0 1px #2a2a2c,
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 40px 80px rgba(0,0,0,0.55);
}

.iphone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 118px;
  height: 34px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  z-index: 5;
}

.sx {
  position: relative;
  height: 844px;
  background: #000;
  border-radius: 42px;
  overflow: hidden;
  color: #f5f5f7;
  font-family: -apple-system, "SF Pro Text", "Outfit", sans-serif;
  display: flex;
  flex-direction: column;
}

.sx svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.sx button { color: inherit; }
.sx [data-act] { cursor: pointer; }

.sx-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sx-body {
  flex: 1;
  overflow: auto;
  padding: 18px 18px 8px;
  position: relative;
}

.sx-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.sx-top h1 {
  font-family: -apple-system, "Outfit", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-style: normal;
}

.sx-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8e8e93;
  margin-bottom: 4px;
}

.sx-iconbtn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #f5f5f7;
  opacity: 0.85;
}

.sx-rooms { display: grid; gap: 12px; }

.sx-card {
  width: 100%;
  text-align: left;
  background: #1c1c1e;
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.sx-card.is-live { box-shadow: inset 0 0 0 1px rgba(244,178,103,0.28); }

.sx-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 10px;
}

.sx-card-head strong { color: #f5f5f7; letter-spacing: 0.04em; text-transform: uppercase; }

.sx-card-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.sx-card-ctrl {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.sx-card-ctrl .sx-vol { margin-top: 0; }

.sx-card-row img,
.sx-line img,
.sx-now img,
.sx-scene img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.sx-card-row b,
.sx-line b,
.sx-now b,
.sx-scene b { display: block; font-size: 16px; font-weight: 600; }

.sx-card-row small,
.sx-line small,
.sx-now small,
.sx-scene small { color: #8e8e93; font-size: 12px; }

.sx-power {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2c2c2e;
  display: grid;
  place-items: center;
}

.sx-power svg { width: 16px; height: 16px; }
.sx-power.is-on { background: #f5f5f7; color: #111; }

.sx-vol {
  display: grid;
  grid-template-columns: 14px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.sx-vol em { font-style: normal; font-size: 11px; color: #8e8e93; text-align: right; }
.sx-vol-ico {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4b267;
}

.sx input[type="range"] {
  width: 100%;
  accent-color: #f5f5f7;
  margin: 0;
}

.sx input.sx-warm { accent-color: #f4b267; }

.sx-player { text-align: center; padding-bottom: 12px; }
.sx-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 18px;
  box-shadow: 0 24px 40px rgba(0,0,0,0.45);
}

.sx-player h2 {
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
  font-family: inherit;
}

.sx-player > p { color: #8e8e93; margin: 6px 0 18px; }

.sx-player .sx-power {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.sx-player .sx-power svg { width: 26px; height: 26px; }

.sx-slats { text-align: left; }
.sx-slat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8e8e93;
  margin: 14px 0 6px;
}

.sx-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.sx-tools button,
.sx-sheet button {
  height: 44px;
  border-radius: 12px;
  background: #1c1c1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.sx-tools svg { width: 16px; height: 16px; }

.sx-scenes,
.sx-list { display: grid; gap: 10px; }

.sx-scene,
.sx-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #1c1c1e;
  border-radius: 16px;
  padding: 10px;
}

.sx-scene img { width: 64px; height: 64px; }
.sx-scene.is-off { opacity: 0.7; }
.sx-line.is-lock { opacity: 0.55; }

.sx-now {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin: 0 12px;
  padding: 8px 10px;
  background: #1c1c1e;
  border-radius: 12px;
}

.sx-now img { width: 40px; height: 40px; }
.sx-now .sx-power { width: 36px; height: 36px; }

.sx-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 8px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.88);
}

.sx-tabs button {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #636366;
}

.sx-tabs button.is-on { color: #f5f5f7; }
.sx-tabs svg { width: 22px; height: 22px; }

.sx-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #1c1c1e;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.sx-sheet p {
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 4px;
}

.sx-sheet button.is-on { background: #f5f5f7; color: #111; }
.sx-sheet-close { opacity: 0.7; }

.sx-mini {
  background: #000;
  border-radius: 34px;
  padding: 36px 16px 20px;
  color: #f5f5f7;
  min-height: 470px;
  font-family: -apple-system, "Outfit", sans-serif;
}

.sx-mini .sx-art {
  aspect-ratio: 1.15;
  margin-bottom: 14px;
}

.sx-mini h2 { font-size: 24px; margin-bottom: 4px; }
.sx-mini p { color: #8e8e93; font-size: 13px; margin-bottom: 16px; }
.sx-mini .sx-power { margin: 0 auto 16px; }
.sx-mini svg { fill: currentColor; width: 16px; height: 16px; }
.sx-mini input[type="range"] { width: 100%; accent-color: #f5f5f7; }
.sx-mini a {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4b267;
}

@media (max-width: 980px) {
  .sonos-stage {
    grid-template-columns: 1fr;
    padding: calc(var(--header) + 0px) 0 24px;
  }
  .sonos-room { height: 46vh; border-radius: 0; }
  .iphone-sonos { --phone-w: min(390px, 100%); }
}
