/* Smart search: header suggestions and the results page (designs 1, 2 and 3). Colours follow design 2's
   variables when present. */
.rg-ss-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rg-ss-host { position: relative; }

.rg-ss-pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1000; max-height: min(70vh, 560px); overflow-y: auto;
    background: var(--card, #fff); color: var(--ink, #151a2d); border: 1px solid var(--line2, #e1e4eb); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(21, 26, 45, .14); padding: 6px; text-align: left; font-size: 14px; line-height: 1.3; min-width: 280px;
}
.rg-ss-pop[hidden] { display: none; }
.rg-ss-grp + .rg-ss-grp { border-top: 1px solid var(--line, #e7e9ef); margin-top: 4px; padding-top: 4px; }
.rg-ss-grp__h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5b6378); padding: 8px 10px 4px; }
.rg-ss-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.rg-ss-opt.is-active { background: var(--soft, #f1f3f6); }
.rg-ss-opt__img {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--peach, #fff1e6); color: var(--accent, #b43e0a); font-weight: 700; font-size: 15px;
}
.rg-ss-opt__img img { width: 100%; height: 100%; object-fit: cover; }
/* station logos: the whole logo, padded on white (never cropped) */
.rg-ss-opt--station .rg-ss-opt__img { background: #fff; border: 1px solid var(--line, #e7e9ef); box-sizing: border-box; }
.rg-ss-opt--station .rg-ss-opt__img img { object-fit: contain; padding: 3px; box-sizing: border-box; }
.rg-ss-opt--genre .rg-ss-opt__img, .rg-ss-opt--country .rg-ss-opt__img, .rg-ss-opt--state .rg-ss-opt__img, .rg-ss-opt--city .rg-ss-opt__img { border-radius: 50%; }
.rg-ss-opt__img--icon { background: transparent; color: var(--muted, #5b6378); font-weight: 400; }
.rg-ss-opt__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rg-ss-opt__txt strong { font-weight: 600; color: var(--ink, #151a2d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ss-opt__txt span { color: var(--muted, #5b6378); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ss-play {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: var(--accent, #b43e0a); color: #fff !important; text-decoration: none !important; line-height: 1;
}
.rg-ss-play:hover { background: var(--accent-d, #8a2f07); }
/* design 2 positions every svg in the header search form (its magnifier icon): not ours */
.rg-ss-host .rg-ss-pop svg { position: static; color: inherit; left: auto; }
.rg-ss-opt--all { justify-content: center; color: var(--accent, #b43e0a); font-weight: 600; border-top: 1px solid var(--line, #e7e9ef); border-radius: 0 0 10px 10px; margin-top: 4px; }
.rg-ss-opt--dym { display: block; color: var(--text, #3b4256); min-height: 0; }
.rg-ss-opt--clear { justify-content: flex-end; color: var(--muted, #5b6378); font-size: 12px; min-height: 32px; }
.rg-ss-none { padding: 12px 10px; color: var(--muted, #5b6378); }

/* results page */
.rg-ss-page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; box-sizing: border-box; color: var(--text, #3b4256); }
.rg-ss-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.rg-ss-form input[type=search] {
    flex: 1 1 320px; min-width: 0; height: 48px; padding: 0 16px; font-size: 16px; border: 1px solid var(--line2, #e1e4eb); border-radius: 12px;
    background: var(--card, #fff); color: var(--ink, #151a2d); box-sizing: border-box;
}
.rg-ss-form .rg-ss-host { flex: 1 1 320px; display: flex; min-width: 0; }
.rg-ss-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rg-ss-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted, #5b6378); margin: 0; }
.rg-ss-filters select { height: 40px; border: 1px solid var(--line2, #e1e4eb); border-radius: 10px; padding: 0 10px; background: var(--card, #fff); color: var(--ink, #151a2d); max-width: 220px; }
.rg-ss-btn { height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--ink, #151a2d); color: #fff; font-weight: 700; cursor: pointer; }
.rg-ss-h1 { font-size: 26px; line-height: 1.2; margin: 6px 0 10px; color: var(--ink, #151a2d); overflow-wrap: anywhere; }
.rg-ss-dym { margin: 0 0 14px; font-size: 16px; }
.rg-ss-dym a { font-weight: 700; color: var(--accent, #b43e0a); }
.rg-ss-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line, #e7e9ef); margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
.rg-ss-tab { flex: 0 0 auto; padding: 10px 14px; color: var(--text, #3b4256) !important; text-decoration: none !important; border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.rg-ss-tab.is-active { color: var(--ink, #151a2d) !important; border-bottom-color: var(--accent, #b43e0a); }
.rg-ss-tab__n { font-size: 12px; color: var(--muted, #5b6378); font-weight: 500; }
.rg-ss-sec { margin-bottom: 26px; }
.rg-ss-sec h2 { font-size: 18px; margin: 0 0 10px; color: var(--ink, #151a2d); display: flex; align-items: baseline; gap: 12px; }
.rg-ss-more { font-size: 13px; font-weight: 600; color: var(--accent, #b43e0a); }
.rg-ss-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.rg-ss-res { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card, #fff); border: 1px solid var(--line, #e7e9ef); border-radius: 12px; min-width: 0; }
.rg-ss-res__main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; color: inherit !important; text-decoration: none !important; }
.rg-ss-res__img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--peach, #fff1e6); display: flex; align-items: center; justify-content: center; }
.rg-ss-res__img img { width: 100%; height: 100%; object-fit: cover; }
.rg-ss-res--station .rg-ss-res__img { background: #fff; border: 1px solid var(--line, #e7e9ef); box-sizing: border-box; }
.rg-ss-res--station .rg-ss-res__img img { object-fit: contain; padding: 4px; box-sizing: border-box; }
.rg-ss-ini { color: var(--accent, #b43e0a); font-weight: 800; font-size: 18px; }
.rg-ss-res--podcast .rg-ss-pcart, .rg-ss-res--audiobook .rg-ss-pcart { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; object-fit: cover; }
.rg-ss-res__txt { display: flex; flex-direction: column; min-width: 0; }
.rg-ss-res__txt strong { color: var(--ink, #151a2d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ss-res__txt span { font-size: 13px; color: var(--muted, #5b6378); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ss-empty { padding: 18px 20px; border-radius: 14px; background: var(--soft, #f1f3f6); margin-bottom: 22px; }
.rg-ss-empty p { margin: 0 0 6px; }
@media (max-width: 600px) {
    .rg-ss-h1 { font-size: 21px; }
    .rg-ss-list { grid-template-columns: minmax(0, 1fr); }
    .rg-ss-filters { width: 100%; }
    .rg-ss-filters label { flex: 1 1 40%; }
    .rg-ss-filters select { max-width: none; width: 100%; }
    .rg-ss-pop { max-height: 65vh; min-width: 0; }
}
/* "On the radio now (n)" under an artist or song (app\components\onair) */
.rg-ss-opt--onair { padding-left: 28px; }
.rg-ss-opt--onair strong { color: #15803d; }
.rg-ss-live { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.rg-ss-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.rg-ss-onair { background: #15803d; }
.rg-ss-onair:hover { background: #166534; }
.rg-ss-onair .oa-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
