/* Radio Makro – shared player panel and studio */
.rmc {
  color: var(--ink, #111);
  background: var(--paper, #fff);
  font: 16px/1.4 var(--body, Arial, sans-serif);
  overflow-wrap: anywhere;
}
.rmc [hidden] {
  display: none !important;
}
.rmc h1,
.rmc h2,
.rmc h3 {
  font-family: var(--display, Arial, sans-serif);
  line-height: 1.08;
  margin: 0 0 0.35em;
}
.rmc h1 {
  font-size: clamp(38px, 6vw, 78px);
}
.rmc h2 {
  font-size: clamp(25px, 3vw, 40px);
}
.rmc h3 {
  font-size: 24px;
}
.rmc-studio {
  padding: clamp(15px, 3vw, 42px);
  max-width: 1250px;
  margin: auto;
}
.rmc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  border-top: 1px solid;
  padding-top: 14px;
}
.rmc-panel .rmc-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.8fr);
}
.rmc-studio .rmc-grid > div + div,
.rmc-panel .rmc-grid > div + div {
  border-left: 1px solid;
  padding-left: clamp(12px, 2vw, 24px);
}
.rmc-kicker,
.rmc time,
.rmc-badge {
  font:
    12px/1.35 'Courier New',
    monospace;
}
.rmc-badge {
  display: inline-block;
  background: var(--ink, #111);
  color: var(--paper, #fff);
  padding: 2px 5px;
  margin: 0 5px 3px 0;
}
.rmc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rmc li {
  padding: 8px 0;
  border-top: 1px solid #aaa;
}
.rmc-panel li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
}
.rmc button,
.rmc input,
.rmc select,
.rmc textarea {
  font: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  background: var(--paper, #fff);
  color: var(--ink, #111);
  padding: 7px 10px;
  max-width: 100%;
}
.rmc button {
  cursor: pointer;
}
.rmc button:disabled {
  opacity: 0.65;
}
.rmc button.rmc-primary,
.rmc input[type='submit'] {
  background: var(--ink, #111);
  color: var(--paper, #fff);
}
.rmc .rmc-minor,
.rmc .rmc-actions button {
  font-size: 13px;
  padding: 3px 6px;
  min-height: 30px;
}
.rmc .rmc-minor {
  border: 0;
  text-decoration: underline;
}
.rmc label.rmc-field,
.rmc #loginform label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0;
}
.rmc .rmc-field :is(input, select, textarea) {
  font-weight: 400;
  width: 100%;
  min-width: 0;
}
.rmc form,
.rmc details {
  margin: 12px 0;
}
.rmc summary,
.rmc a {
  text-decoration: underline;
  cursor: pointer;
}
.rmc-between,
.rmc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.rmc-between {
  justify-content: space-between;
}
.rmc-panel [data-part='list'],
#rmc-mod-list {
  max-height: 30vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.rmc-panel form {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(110px, 1.6fr) auto;
  align-items: end;
  gap: 8px;
}
.rmc-panel form label.rmc-field {
  margin: 0;
}
.rmc-panel [data-part='feedback'],
#rmc-studio-status {
  margin: 6px 0;
}
.rmc-program-link {
  display: block;
  text-decoration: underline;
  font: inherit;
}
.player-tools.rmc-single {
  grid-template-columns: 1fr;
}
@media (max-width: 680px) {
  .rmc .rmc-grid,
  .rmc-panel .rmc-grid {
    grid-template-columns: 1fr;
  }
  .rmc .rmc-grid > div + div {
    border: 0;
    padding: 0;
  }
  .rmc-panel form {
    grid-template-columns: 1fr auto;
  }
  .rmc-panel form label:first-child {
    grid-column: 1/-1;
  }
  .rmc :is(input, textarea, select) {
    font-size: 16px;
  }
  .rmc button {
    min-height: 42px;
  }
  .rmc-panel [data-part='list'] {
    max-height: 25dvh;
  }
}

/* Only the surface moves. The button and its label keep their positions. */
.player-tools .player-chat.rmc-invite {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: 8.4rem;
  max-width: 100%;
  min-height: 46px;
  padding: 5px 20px;
  border: 0;
  background: transparent;
  color: #101010;
  font: 700 15px/1.05 var(--body, sans-serif);
  white-space: normal;
  text-align: center;
}
.player-chat.rmc-invite::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2px 3px;
  pointer-events: none;
  border-radius: 39% 61% 35% 65% / 55% 47% 53% 45%;
  background-color: #fff15f;
  animation: rmc-morph 2.2s ease-in-out 2, rmc-palette 32s ease-in-out infinite;
}
@keyframes rmc-morph {
  50% { border-radius: 63% 37% 58% 42% / 39% 65% 35% 61%; transform: rotate(-3deg) scale(.97, 1.03); }
}
/* The four selectable backgrounds from the theme's playful-dots.js. */
@keyframes rmc-palette {
  0%, 100% { background-color: #fff15f; }
  25% { background-color: #ec6446; }
  50% { background-color: #af60a2; }
  75% { background-color: #3faf6c; }
}
body:has(#player-drawer:not([hidden]) #rmc-panel:not([hidden])) .player-chat.rmc-invite {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .player-chat.rmc-invite::before { animation: none; }
}
