/* Twiddle Radio embeddable player (iframe on other websites). Self-contained: no fonts, no other stylesheets. */
:root {
  --bg: #140c26; --ink: #f6f3ff; --ink-3: #9a8fbb; --line: rgba(200, 170, 255, .16); --ava: #2a1d4c;
  --grad: linear-gradient(120deg, #ff8a3d, #ff4fa3 45%, #8b5cf6); --accent: #ff4fa3;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #ffffff; --ink: #1a1033; --ink-3: #6f6690; --line: rgba(60, 30, 120, .14); --ava: #ede7ff; --accent: #e0337f; color-scheme: light; }
}
:root[data-theme="light"] { --bg: #ffffff; --ink: #1a1033; --ink-3: #6f6690; --line: rgba(60, 30, 120, .14); --ava: #ede7ff; --accent: #e0337f; color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: transparent; }
body { font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); }
.em {
  height: 100%; min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.em-play {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 79, 163, .6);
}
.em-play svg { width: 22px; height: 22px; fill: currentColor; }
.em-play .i-pause, .is-active .em-play .i-play { display: none; }
.is-active .em-play .i-pause { display: inline; }
.em-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.em-ava {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; background: var(--ava);
  display: grid; place-items: center; font-weight: 800; color: var(--ink-3);
}
.em-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.em-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.em-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-name:hover { text-decoration: underline; }
.em-meta { font-size: .82rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-playing .em-meta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff4d4d; vertical-align: 1px; }
.em-brand {
  flex: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-3);
  font-size: .75rem; font-weight: 700; letter-spacing: -.01em;
}
.em-brand svg { width: 22px; height: 22px; color: var(--ink); }
.em-brand:hover { color: var(--ink); }
@media (max-width: 360px) { .em-brand span { display: none; } .em-ava { display: none; } }
