/* Radio's compact Space player. Product playback remains in lettuce-radio.html. */
html[data-space-embed="listen"] {
  color-scheme: dark;
}

html[data-space-embed="listen"][data-theme="light"] {
  color-scheme: light;
}

html[data-space-embed="listen"] .app-shell {
  display: none;
}

html[data-space-embed="listen"] .player {
  inset: 0;
  height: 100%;
  padding: 16px 20px;
  border: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 44px minmax(68px, 1fr) 68px;
  gap: 10px;
  background: var(--paper-2);
}

html[data-space-embed="listen"] .space-radio-station {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

html[data-space-embed="listen"] .space-radio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

html[data-space-embed="listen"] .space-radio-brand .dot {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
}

html[data-space-embed="listen"] .space-radio-brand-copy {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  white-space: nowrap;
}

html[data-space-embed="listen"] .space-radio-brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--mute);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0;
}

html[data-space-embed="listen"] .space-radio-station select {
  flex: 1 1 160px;
  width: 100%;
  min-width: 0;
  max-width: 50%;
  height: 40px;
  padding: 0 26px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  cursor: pointer;
}

html[data-space-embed="listen"] .player-left {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
}

html[data-space-embed="listen"] .cover {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

html[data-space-embed="listen"] .space-radio-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--mute);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-space-embed="listen"] .player-meta .np-title {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

html[data-space-embed="listen"] .player-meta .np-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

html[data-space-embed="listen"] .player-center {
  display: flex;
  gap: 10px;
}

html[data-space-embed="listen"] .transport {
  gap: 24px;
}

html[data-space-embed="listen"] .transport .t-btn,
html[data-space-embed="listen"] .play {
  width: 44px;
  height: 44px;
}

html[data-space-embed="listen"] .transport .t-btn {
  color: var(--mute);
}

html[data-space-embed="listen"] .transport .t-btn:hover {
  color: var(--ink);
}

html[data-space-embed="listen"] .play {
  background: var(--ink);
  color: var(--paper-2);
}

html[data-space-embed="listen"] .play svg {
  width: 18px;
  height: 18px;
}

html[data-space-embed="listen"] .timeline {
  grid-template-columns: 30px minmax(0, 1fr) 32px;
  gap: 10px;
  max-width: none;
  font-size: 10px;
}

html[data-space-embed="listen"] .timeline > :last-child {
  text-align: right;
}

html[data-space-embed="listen"] .progress {
  height: 3px;
}

html[data-space-embed="listen"] .progress-fill {
  background: var(--accent);
}

html[data-space-embed="listen"][data-space-radio-intent] .player {
  grid-template-rows: 44px 68px 68px minmax(76px, 1fr);
  overflow: auto;
}

html[data-space-embed="listen"] .space-radio-request {
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: auto;
  font-size: 12px;
}

html[data-space-embed="listen"] .space-radio-request form {
  flex-wrap: nowrap;
}

html[data-space-embed="listen"] .space-radio-request input {
  flex-basis: 0;
  width: 100%;
  background: var(--surface);
}

html[data-space-embed="listen"] .space-radio-request form button {
  flex: 0 0 auto;
}

html[data-space-embed="listen"] .space-radio-results button {
  min-height: 44px;
  padding: 9px 12px;
  border-color: var(--line);
}

@media (max-width: 360px) {
  html[data-space-embed="listen"] .player {
    padding-right: 16px;
    padding-left: 16px;
  }

  html[data-space-embed="listen"] .space-radio-station {
    gap: 10px;
  }

  html[data-space-embed="listen"] .space-radio-brand-copy small {
    display: none;
  }

  html[data-space-embed="listen"] .player-meta .np-title {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-space-embed="listen"] .space-radio-brand .dot {
    animation: none;
  }

  html[data-space-embed="listen"] .transport button {
    transition: none;
  }
}
