:root{--bg:#090c11;--panel:#11161e;--panel2:#151c26;--line:#263140;--text:#edf3fa;--muted:#91a0b3;--accent:#5ee1a2;--accent2:#38bdf8;--danger:#ffcb6b}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% -20%,#163047 0,#090c11 38%);color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;min-height:100vh}.topbar{height:86px;padding:16px 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#0b0f15dd;backdrop-filter:blur(14px);position:sticky;top:0;z-index:4}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--accent);font-weight:700}.topbar h1,.playerHeader h2{margin:2px 0 0}.topbar h1{font-size:22px}.status{color:var(--muted);display:flex;align-items:center;gap:8px}.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px var(--accent)}.layout{display:grid;grid-template-columns:350px 1fr;gap:16px;padding:16px;max-width:1600px;margin:auto}.panel{background:linear-gradient(180deg,#121821,#0e131a);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 50px #0005}.controls{padding:20px}.controls h2{margin-top:0}.controls label{display:block;color:var(--muted);font-size:12px;margin:17px 0 7px}.bands{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.bands button,.freqrow button,button,select,input{border:1px solid var(--line);background:#0c1118;color:var(--text);border-radius:10px;min-height:40px}.bands button{font-size:12px}.bands button.active{border-color:var(--accent);color:var(--accent);background:#103225}button{cursor:pointer;padding:0 12px}button:hover{border-color:#47627f}.freqrow{display:grid;grid-template-columns:42px 1fr 42px;gap:6px}input,select{width:100%;padding:0 11px;outline:none}input:focus,select:focus{border-color:var(--accent2)}.receiverMeta{margin-top:10px;padding:12px;background:#0c1118;border:1px solid #202a36;border-radius:12px;color:var(--muted);font-size:12px;min-height:72px}.receiverMeta b{color:var(--text)}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.primary{background:var(--accent);border-color:var(--accent);color:#06130d;font-weight:800}.note{font-size:11px;color:#66778b;margin-bottom:0}.player{min-height:720px;overflow:hidden;position:relative}.playerHeader{height:86px;padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.playerHeader h2{font-size:17px}.frequencyDisplay{font-size:27px;font-weight:700;font-variant-numeric:tabular-nums}.frequencyDisplay small{font-size:12px;color:var(--accent);margin-left:5px}.emptyState{height:630px;display:grid;place-content:center;text-align:center;color:var(--muted)}.radioIcon{font-size:80px;color:var(--accent2);filter:drop-shadow(0 0 25px #38bdf855)}.emptyState h3{color:var(--text);margin:5px 0}.player iframe{width:100%;height:630px;border:0;background:#000}.warning{margin:25px;padding:20px;border-radius:14px;border:1px solid #795f25;background:#302713;color:#f8d98b}footer{text-align:center;color:#647386;padding:10px 20px 24px;font-size:11px}@media(max-width:900px){.layout{grid-template-columns:1fr}.player{min-height:620px}.player iframe,.emptyState{height:520px}.topbar{padding:14px 16px}.status{font-size:11px}.actions{grid-template-columns:1fr}}@media(max-width:520px){.topbar h1{font-size:16px}.topbar{height:72px}.layout{padding:8px}.bands{grid-template-columns:repeat(5,1fr)}.controls{padding:15px}.playerHeader{height:auto;gap:10px;align-items:flex-start;flex-direction:column}.frequencyDisplay{font-size:22px}}

/* === Audit fixes === */
/* Hide global AINNA chrome (SME promo, cyber globe with CLICK ME, crawl nav, etc.) that leaks into standalone tool */
#ainnaSmePromo,
#cyber-network-root,
.cyber-network-crawl-index,
nav[aria-label*="AINNA network"],
#ainna-cookie-banner,
#ainna-investor-bar {
  display: none !important;
}

/* Better contrast for muted / note / footer text (previously too low on dark) */
.note,
footer {
  color: #8fa3b8;
}
.receiverMeta,
.status,
label {
  color: #a8b9cc;
}
.bands button {
  color: #c5d4e8;
}
.bands button.active {
  color: #5ee1a2;
}

.next-btn {
  margin-top: 8px;
  width: 100%;
  font-size: 12px;
  opacity: 0.85;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}
.next-btn:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--text);
}

.receiver-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.recent-chips .chip {
  font-size: 11px;
  padding: 3px 8px;
  background: #0c1118;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8b9cc;
  cursor: pointer;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-chips .chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* === Bokeh + Premium Transmission Visual (added for default experience) === */
.player {
  position: relative;
  overflow: hidden;
}
.bokeh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bokeh-bg .bokeh-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5ee1a2 0%, #38bdf8 35%, transparent 70%);
  filter: blur(42px);
  opacity: 0.13;
  mix-blend-mode: screen;
  animation: bokeh-drift 22s ease-in-out infinite;
  will-change: transform;
}
.bokeh-bg .bokeh-dot:nth-child(2) {
  background: radial-gradient(circle, #38bdf8 0%, #5ee1a2 40%, transparent 75%);
  animation-duration: 31s;
  animation-delay: -8s;
  opacity: 0.11;
}
.bokeh-bg .bokeh-dot:nth-child(3) {
  background: radial-gradient(circle, #5ee1a2 10%, transparent 65%);
  animation-duration: 17s;
  animation-delay: -14s;
  opacity: 0.16;
}
.bokeh-bg .bokeh-dot:nth-child(4) {
  background: radial-gradient(circle at 70% 60%, #38bdf8 0%, #5ee1a2 50%, transparent 80%);
  animation-duration: 27s;
  animation-delay: -3s;
  opacity: 0.09;
}
.bokeh-bg .bokeh-dot:nth-child(5) {
  background: radial-gradient(circle, #5ee1a2 20%, #38bdf8 60%, transparent 80%);
  animation-duration: 38s;
  animation-delay: -19s;
  opacity: 0.08;
  width: 380px; height: 380px;
}
@keyframes bokeh-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(8%, -6%) scale(1.08); }
  50% { transform: translate(-5%, 9%) scale(0.96); }
  75% { transform: translate(11%, 4%) scale(1.05); }
}

/* When transmission is active, soften bokeh a bit so iframe is clear */
.player.has-transmission .bokeh-bg {
  opacity: 0.55;
  transition: opacity .4s ease;
}

/* Make sure bokeh stays behind all content */
.player > *:not(.bokeh-bg) {
  position: relative;
  z-index: 1;
}

/* LIVE badge style */
#liveBadge {
  animation: live-badge-pulse 1.8s infinite ease-in-out;
}
@keyframes live-badge-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Stronger signal visual - animated bars like radio signal */
.signal-visual {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.player.has-transmission .signal-visual {
  opacity: 0.85;
}

#activePanel {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  margin: 10px;
  border: 1px solid var(--line);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #d0dce8;
}

/* when iframe is visible, push signal a bit lower if needed */
.player.has-transmission iframe ~ .signal-visual {
  bottom: 8px;
}
.signal-visual .bar {
  width: 3px;
  background: linear-gradient(to top, #5ee1a2, #38bdf8);
  border-radius: 2px;
  animation: signal-wave 1.1s infinite ease-in-out;
}
.signal-visual .bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.signal-visual .bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.signal-visual .bar:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.signal-visual .bar:nth-child(4) { height: 24px; animation-delay: 0.45s; }

@keyframes signal-wave {
  0%,100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.1); }
}

/* Subtle live transmission pulse on the status dot when connected */
.status.listening .dot {
  animation: live-pulse 2s infinite ease-in-out;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 14px var(--accent); }
  50% { box-shadow: 0 0 26px var(--accent), 0 0 40px var(--accent2); }
}

/* === Form / Dropdown / UI Controls Visibility Fixes (re-audit) === */
/* Strong overrides so forms, dropdowns, band pilihan are clearly visible */

.controls label,
label {
  color: #e0e8f5 !important;
  font-weight: 600;
  opacity: 1 !important;
}

input, 
select, 
button, 
.next-btn, 
#connectCustom,
#copyUrl {
  background-color: #070a0f !important;
  color: #f5f9ff !important;
  border: 1px solid #4a5568 !important;
  font-size: 14px;
}

input:focus, 
select:focus {
  border-color: #5ee1a2 !important;
  box-shadow: 0 0 0 3px rgba(94, 225, 162, 0.35);
  outline: none;
}

/* Make <select> dropdown options list visible (the popup) */
select,
select option {
  background-color: #0a0d12 !important;
  color: #f5f9ff !important;
}

/* Band buttons (pilihan) */
.bands button {
  color: #e8eff8 !important;
  background: #070a0f;
  border-color: #3a4555;
}

.bands button.active {
  color: #5ee1a2 !important;
  border-color: #5ee1a2 !important;
  background: #0f2a20;
}

/* Receiver meta box */
.receiverMeta {
  color: #d0dce8 !important;
  background: #070a0f;
  border-color: #3a4555;
}

.receiverMeta b {
  color: #f5f9ff !important;
}

/* Small buttons */
.next-btn {
  color: #e0e8f5 !important;
  background: transparent;
  border-color: #3a4555;
}

.next-btn:hover {
  color: #ffffff !important;
  border-color: #5ee1a2;
  background: rgba(94,225,162,0.08);
}

#connectCustom {
  color: #f5f9ff !important;
}

/* Placeholders */
input::placeholder {
  color: #8a9ab0;
  opacity: 1;
}

/* Prominent selects */
#receiver, #mode, #customUrl {
  font-weight: 500;
  min-height: 44px;
  padding: 0 12px;
}

/* Visible dropdown arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23a8b9cc' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 32px;
}

/* Recent chips */
.recent-chips .chip {
  color: #d0dce8 !important;
  background: #070a0f;
  border-color: #3a4555;
  font-size: 12px;
}

.recent-chips .chip:hover {
  color: #ffffff !important;
  border-color: #5ee1a2;
}
