/* Casa Sonora approval pass: the current track is the first state in responsive layouts. */
.rhythm-player-card-compact {
  gap: .72rem;
  padding: clamp(.82rem, 1.8vw, 1rem);
  overflow: hidden;
}

.rhythm-player-main {
  display: grid;
  grid-template-columns: clamp(4.25rem, 9vw, 5.35rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.rhythm-player-artwork {
  display: grid;
  inline-size: clamp(4.25rem, 9vw, 5.35rem);
  block-size: clamp(4.25rem, 9vw, 5.35rem);
  place-items: center;
  object-fit: cover;
  border: 1px solid rgba(4, 54, 47, .14);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--air-surface) 86%, var(--air-mint) 14%);
  box-shadow: 0 10px 24px rgba(4, 54, 47, .13);
  color: var(--air-deep);
  font-size: 1.8rem;
  font-weight: 800;
}

.rhythm-player-artwork-fallback {
  color: var(--air-teal);
}

.rhythm-player-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.rhythm-player-copy .eyebrow,
.rhythm-player-copy h3,
.rhythm-player-copy .panel-summary {
  margin: 0;
}

.rhythm-player-copy h3 {
  overflow: hidden;
  color: var(--air-deep);
  font-size: clamp(1.22rem, 2.25vw, 1.55rem);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhythm-player-card-compact .panel-summary {
  overflow: hidden;
  color: rgba(4, 54, 47, .72);
  font-size: clamp(.92rem, 1.55vw, 1.02rem);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhythm-player-main .rhythm-status-pill {
  justify-self: end;
  white-space: nowrap;
}

.rhythm-player-actions {
  display: flex;
  gap: .42rem;
  margin-top: .05rem;
  overflow-x: auto;
  padding-bottom: .08rem;
  scrollbar-width: none;
}

.rhythm-player-actions::-webkit-scrollbar {
  display: none;
}

.rhythm-player-actions .rhythm-player-icon-button {
  display: grid;
  flex: 0 0 auto;
  inline-size: 2.55rem;
  block-size: 2.55rem;
  min-inline-size: 2.55rem;
  min-block-size: 2.55rem;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

.rhythm-player-actions .rhythm-player-icon-button span {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-.01rem);
}

.rhythm-player-actions .rhythm-player-like-button {
  border-color: rgba(71, 116, 109, .28);
  background: rgba(251, 251, 135, .22);
  color: #153530;
}

.rhythm-player-actions .rhythm-player-dislike-button {
  border-color: rgba(136, 72, 52, .24);
  background: rgba(251, 205, 130, .22);
  color: #62331f;
}

.rhythm-player-feedback-panel {
  margin-top: .18rem;
  padding: .78rem;
  border-radius: 1rem;
}

.rhythm-player-save-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .12rem;
  padding: .72rem .78rem;
  border: 1px solid rgba(58, 96, 85, .22);
  border-radius: .95rem;
  background: linear-gradient(145deg, rgba(214, 230, 223, .72), rgba(255, 252, 247, .9));
}

.rhythm-player-save-confirmation p,
.rhythm-player-save-confirmation strong,
.rhythm-player-save-confirmation small {
  margin: 0;
}

.rhythm-player-save-confirmation strong {
  display: block;
  color: var(--air-deep);
  font-size: 1.02rem;
}

.rhythm-player-save-confirmation small {
  display: block;
  color: rgba(4, 54, 47, .68);
}

.rhythm-player-save-dismiss {
  flex: 0 0 auto;
  padding: .52rem .72rem;
  font-size: .82rem;
}

.rhythm-player-feedback-panel .feature-header h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.05;
}

@media (max-width: 1180px) {
  .rhythm-stage-shell {
    align-items: stretch;
  }

  .rhythm-control-dock {
    display: contents;
  }

  .rhythm-player-card {
    order: -3;
  }

  .rhythm-compose-card {
    order: -2;
  }

  .rhythm-player-card .rhythm-dock-head h3 {
    font-size: clamp(1.65rem, 4.8vw, 2.55rem);
    line-height: .96;
  }

  .rhythm-player-card .panel-summary {
    font-size: clamp(1rem, 2.4vw, 1.18rem);
  }

  .rhythm-player-card-compact .panel-summary {
    font-size: clamp(.94rem, 2vw, 1.04rem);
  }
}

@media (max-width: 680px) {
  .rhythm-player-main {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: .62rem;
  }

  .rhythm-player-main .rhythm-status-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: .08rem;
  }

  .rhythm-player-artwork {
    inline-size: 4.2rem;
    block-size: 4.2rem;
    border-radius: .86rem;
  }

  .rhythm-player-actions .rhythm-player-icon-button {
    inline-size: 2.38rem;
    block-size: 2.38rem;
    min-inline-size: 2.38rem;
    min-block-size: 2.38rem;
  }
}

.rhythm-route-readiness {
  display: grid;
  gap: .75rem;
  padding: .92rem 1rem;
  border: 1px solid rgba(53, 83, 74, .12);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 252, 247, .78), rgba(235, 244, 239, .66));
}

.rhythm-route-readiness.is-ready {
  border-color: rgba(58, 96, 85, .28);
  background: linear-gradient(145deg, rgba(214, 230, 223, .62), rgba(255, 252, 247, .82));
}

.rhythm-route-readiness.is-repair {
  border-color: rgba(198, 86, 61, .2);
  background: linear-gradient(145deg, rgba(255, 244, 227, .72), rgba(255, 252, 247, .82));
}

.rhythm-route-readiness.is-checking {
  border-color: rgba(127, 170, 150, .26);
}

.rhythm-route-readiness-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .85rem;
}

.rhythm-route-readiness .eyebrow,
.rhythm-route-readiness h4,
.rhythm-route-readiness p {
  margin: 0;
}

.rhythm-route-readiness h4 {
  color: var(--air-deep);
  font-size: clamp(1.32rem, 2.1vw, 1.7rem);
  line-height: .98;
}

.rhythm-route-readiness p {
  max-width: 76rem;
  color: rgba(4, 54, 47, .74);
}

.rhythm-route-readiness-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(53, 83, 74, .12);
  border-radius: 999px;
  padding: .46rem .68rem;
  background: rgba(255, 252, 247, .72);
  color: rgba(4, 54, 47, .74);
  font-family: Apercu Mono, monospace;
  font-size: .7rem;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.rhythm-route-readiness.is-ready .rhythm-route-readiness-pill {
  background: rgba(214, 230, 223, .76);
  color: var(--air-deep);
}

.rhythm-route-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.rhythm-route-preset,
.rhythm-route-repair-button {
  min-block-size: 2.55rem;
}

.rhythm-route-preset.active {
  border-color: rgba(58, 96, 85, .34);
  background: rgba(214, 230, 223, .82);
}


@media (max-width: 680px) {
  .rhythm-route-readiness-main {
    display: grid;
  }

  .rhythm-route-readiness-pill {
    justify-self: start;
    white-space: normal;
  }

  .rhythm-route-preset-row > * {
    flex: 1 1 9.5rem;
  }
}


.rhythm-inline-mood-map {
  display: grid;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid rgba(53, 83, 74, .1);
  border-radius: 1.45rem;
  background: linear-gradient(150deg, rgba(255, 252, 247, .78), rgba(226, 239, 232, .58));
}

.rhythm-mood-axis-panel {
  display: grid;
  gap: .82rem;
  border-radius: 1.45rem;
  padding: .78rem;
  border: 1px solid rgba(53, 83, 74, .1);
}

.rhythm-mood-axis-panel.tone-high {
  background: linear-gradient(180deg, rgba(255, 230, 104, .3), rgba(255, 252, 247, .7));
}

.rhythm-mood-axis-panel.tone-low {
  background: linear-gradient(180deg, rgba(126, 239, 164, .28), rgba(255, 252, 247, .7));
}

.rhythm-mood-axis-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, .28fr);
  gap: .7rem;
  align-items: stretch;
}

.rhythm-mood-axis,
.rhythm-mood-axis-switch,
.rhythm-mood-bubble {
  appearance: none;
  border: 1px solid rgba(53, 83, 74, .1);
  color: var(--air-deep, #153530);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.rhythm-mood-axis:hover,
.rhythm-mood-axis-switch:hover,
.rhythm-mood-bubble:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 83, 74, .25);
}

.rhythm-mood-axis {
  border-radius: 999px;
  display: grid;
  gap: .2rem;
  text-align: center;
  font-family: Tomato Grotesk, Jost, sans-serif;
}

.rhythm-mood-axis-expanded {
  min-height: 6.25rem;
  padding: .95rem 1.1rem;
  place-content: center;
}

.rhythm-mood-axis strong {
  font-size: 2.15rem;
  line-height: .94;
  letter-spacing: 0;
  font-weight: 400;
}

.rhythm-mood-axis small,
.rhythm-mood-axis-switch span,
.rhythm-mood-bubble small,
.rhythm-mood-bubble em {
  color: rgba(4, 54, 47, .66);
  font-family: Apercu Mono, monospace;
  font-size: .65rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rhythm-mood-axis.tone-high {
  background: linear-gradient(180deg, rgba(255, 230, 104, .92), rgba(255, 178, 51, .8));
}

.rhythm-mood-axis.tone-low {
  background: linear-gradient(180deg, rgba(148, 245, 174, .88), rgba(45, 218, 170, .74));
}

.rhythm-mood-axis-switch {
  border-radius: 1.4rem;
  padding: .85rem .9rem;
  display: grid;
  align-content: center;
  gap: .18rem;
  text-align: left;
  background: rgba(255, 252, 247, .68);
}

.rhythm-mood-axis-switch.tone-high {
  background: linear-gradient(180deg, rgba(255, 230, 104, .34), rgba(255, 252, 247, .7));
}

.rhythm-mood-axis-switch.tone-low {
  background: linear-gradient(180deg, rgba(45, 218, 170, .28), rgba(255, 252, 247, .7));
}

.rhythm-mood-axis-switch strong {
  font-size: .95rem;
  line-height: 1.05;
}

.rhythm-mood-axis.active,
.rhythm-mood-bubble.active {
  border-color: rgba(21, 53, 48, .24);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .52), 0 14px 34px rgba(21, 53, 48, .1);
}

.rhythm-mood-bubble-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
  gap: .55rem;
}

.rhythm-mood-bubble {
  position: relative;
  min-height: 4.45rem;
  border-radius: 1.5rem;
  padding: .72rem .82rem;
  background: rgba(255, 252, 247, .74);
  display: grid;
  gap: .12rem;
  text-align: left;
}

.rhythm-mood-bubble strong {
  font-size: 1rem;
}

.rhythm-mood-bubble em {
  color: rgba(32, 110, 86, .82);
  font-style: normal;
  margin-top: .1rem;
}

.rhythm-mood-suggestion-panel {
  display: grid;
  gap: .65rem;
  border: 1px solid rgba(53, 83, 74, .1);
  border-radius: 1.25rem;
  padding: .9rem;
  background: rgba(255, 252, 247, .72);
}

.rhythm-mood-suggestion-head {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: start;
}

.rhythm-mood-suggestion-head div {
  display: grid;
  gap: .12rem;
}

.rhythm-mood-suggestion-head span,
.rhythm-mood-suggestion-head em,
.rhythm-mood-playlist-row span {
  font-family: Apercu Mono, monospace;
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rhythm-mood-suggestion-head span,
.rhythm-mood-suggestion-head em {
  color: rgba(4, 54, 47, .66);
  font-style: normal;
}

.rhythm-mood-suggestion-head strong {
  font-size: 1.16rem;
}

.rhythm-mood-playlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}

.rhythm-mood-playlist-row span {
  border: 1px solid rgba(53, 83, 74, .1);
  border-radius: 999px;
  padding: .42rem .58rem;
  background: rgba(214, 230, 223, .58);
  color: rgba(4, 54, 47, .72);
}

.rhythm-idea-row-inline {
  padding-top: .1rem;
}

@media (max-width: 720px) {
  .rhythm-mood-axis-header {
    grid-template-columns: 1fr;
  }

  .rhythm-mood-axis-switch {
    border-radius: 999px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .45rem;
    align-items: center;
  }

  .rhythm-mood-axis strong {
    font-size: 1.72rem;
  }
}
