/* ========== Modernized design system (tweakable) ========== */
/* @tweakable DESIGN_PRIMARY_COLOR [string] Primary accent color used across the UI */
:root { --design-primary: #0f62fe; }
/* @tweakable DESIGN_ACCENT_COLOR [string] Secondary / accent color */
:root { --design-accent: #06b6d4; }
/* @tweakable DESIGN_SURFACE [string] Card / surface background */
:root { --design-surface: #0b1220; }
/* @tweakable DESIGN_BG [string] App background color */
:root { --design-bg: #081226; }
/* @tweakable DESIGN_TEXT [string] Main text color */
:root { --design-text: #e6f3ff; }

/* @tweakable DESIGN_RADIUS [number] Global border radius (px) */
:root { --design-radius: 12px; }

/* @tweakable DESIGN_SPACE [number] Global spacing unit (px) */
:root { --design-space: 14px; }

/* @tweakable GLOBAL_FONT_SCALE [number] Global font scale multiplier (1 = 100%) */
:root { --global-font-scale: 1.02; }

/* typography */
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, var(--design-bg) 0%, #061127 120%);
  color: var(--design-text);
  font-size: calc(16px * var(--global-font-scale));
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

/* container reset for host and embedded iframe area */
html, body, #app, iframe#embedded-site { height: 100%; width: 100%; }

/* Accessibility: visible focus */
:focus { outline: 3px solid rgba(15,98,254,0.18); outline-offset: 3px; }

/* Iframe full-bleed safe area */
iframe#embedded-site {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  box-sizing: border-box;
  background: transparent;
  padding-top: env(safe-area-inset-top, 12px);
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* Card system */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--design-radius);
  padding: calc(var(--design-space) * 1.25);
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Radio container refined */
.radio-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: calc(var(--design-space) * 1.2);
  margin: 16px;
  border-radius: calc(var(--design-radius) + 4px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Header styles */
.radio-title h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  color: var(--design-primary);
  font-weight: 700;
}
.radio-title span { color: rgba(255,255,255,0.85); font-weight: 500; }

/* Play control */
.play-pause-btn {
  background: linear-gradient(180deg, var(--design-primary), color-mix(in srgb, var(--design-primary) 75%, black 25%));
  color: white;
  border-radius: 999px;
  width: 72px;
  height: 72px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 30px rgba(10,20,40,0.6);
  border: none;
}
.play-pause-btn i { font-size: 22px; }

/* Buttons / actions */
.btn {
  background: rgba(255,255,255,0.02);
  color: var(--design-text);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: calc(var(--design-radius) - 4px);
  min-height: 54px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.6); }

/* Compact utilities */
.buttons-container { padding-left: 12px; padding-right: 12px; }
.button-row { display:flex; gap:12px; align-items:center; }

/* Scrollbar styling for internal panels */
.radio-container::-webkit-scrollbar { height: 8px; width: 8px; }
.radio-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }

/* Small-screen optimizations */
@media (max-width: 600px) {
  .radio-container { margin: 8px; padding: 10px; gap:8px; }
  .play-pause-btn { width: 58px; height:58px; }
  .btn { padding: 10px; min-height: 48px; font-size: 0.92rem; }
  body { font-size: calc(15px * var(--global-font-scale)); }
}

/* Utility classes used by embedded content (keeps look consistent) */
.embedded-card { padding: 12px; border-radius: calc(var(--design-radius) - 2px); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.03); }
.embedded-compact { font-size: 0.95rem; color: rgba(255,255,255,0.92); }

/* small decorative helpers */
.kicker { color: var(--design-accent); font-weight:700; font-size:0.9rem; }