/* Radioguide extras */
.rg-lead { font-size: 17px; max-width: 640px; margin: 0 auto 18px; }
.rg-muted { color: #6b7684; }
.rg-small { font-size: 13px; margin-top: 8px; }
.rg-online { color: #2e8b57; font-weight: bold; }

/* surprise me */
.rg-discover h1 { margin-bottom: 8px; }
.rg-discover-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 22px; }
.rg-discover-filters .form-control { width: auto; min-width: 180px; }
.rg-knob { width: 170px; height: 170px; border-radius: 50%; border: 0; color: #fff; font-size: 22px; font-weight: bold; cursor: pointer;
    background: radial-gradient(circle at 35% 30%, #ff9b45, #ee6f00 55%, #b95400);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .2), 0 8px 20px rgba(238, 111, 0, .35); transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.rg-knob:disabled { opacity: .85; cursor: progress; }
.rg-knob:focus-visible { outline: 3px solid #ffb347; outline-offset: 4px; }
.rg-dc-result { margin: 26px auto 40px; min-height: 90px; }
.rg-dc-card { display: flex; gap: 16px; align-items: center; text-align: left; max-width: 520px; margin: 0 auto; padding: 14px; border: 1px solid #e1e5ea; border-radius: 12px; background: #fff; }
.rg-dc-logo { width: 96px; height: 96px; object-fit: contain; padding: 8px; box-sizing: border-box; background: #fff; border: 1px solid #e1e5ea; border-radius: 10px; flex: none; }
.rg-dc-info h2 { font-size: 22px; margin: 0 0 4px; }
.rg-dc-info p { margin: 0 0 8px; }

/* map */
.rg-map { height: 520px; border: 1px solid #e1e5ea; border-radius: 10px; }
@media (max-width: 767px) { .rg-map { height: 380px; } }

/* station page extras */
.rg-badge { display: inline-block; font-size: 13px; color: #2e8b57; margin: 6px 0 0; }
.rg-badge:before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2e8b57; margin-right: 6px; vertical-align: 0; }
.rg-savebtn { background: none; border: 0; color: #ee6f00; padding: 0; margin-left: 14px; }
.rg-extras { margin: 10px 0 24px; }
.rg-extras h2 { font-size: 20px; margin: 22px 0 10px; }
.rg-extras .rg-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-extras pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; background: #f6f7f9; border: 1px solid #e1e5ea; }
.rg-faq details { border-bottom: 1px solid #e1e5ea; padding: 10px 0; }
.rg-faq summary { font-weight: bold; cursor: pointer; }
.rg-faq p { margin: 6px 0 0; }
.rg-sleep { margin: 8px 0 12px; font-size: 14px; }
.rg-sleep-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.rg-sleep-row label { margin: 0; font-weight: normal; min-width: 110px; }
.rg-sleep-row select, .rg-sleep-row input { height: 28px; padding: 2px 6px; border: 1px solid #ccd3db; border-radius: 4px; }
.rg-sleep-left { color: #ee6f00; }

/* homepage */
.rg-home { padding: 26px 0 6px; }
.rg-home-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: 12px; background: #1b2431; color: #fff; margin-bottom: 18px; }
.rg-home-cta h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.rg-home-cta p { margin: 0; color: #cfd6e0; }
.rg-home h2 { font-size: 20px; margin: 14px 0 10px; }
.rg-tiles { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.rg-tile { position: relative; text-align: center; font-size: 13px; }
.rg-tile a { color: inherit; display: block; }
.rg-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10%; box-sizing: border-box; border-radius: 10px; border: 1px solid #e1e5ea; display: block; margin-bottom: 6px; background: #fff; }
.rg-tile span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-heart { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #ee6f00; font-size: 16px; line-height: 28px; padding: 0; }
.rg-new small { display: block; color: #6b7684; }

/* fit the existing site styles */
.rg-map-page .rg-lead { margin: 0 0 18px; max-width: none; }
body .rg-extras h2 { font-size: 18px !important; line-height: 1.3; margin: 26px 0 8px; }
.rg-extras .btn, .rg-dc-info .btn { padding: 6px 12px; font-size: 14px; }
.rg-dc-info .rg-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-sleep .rg-btn { background: #ee6f00; color: #fff; border: 0; border-radius: 4px; padding: 3px 10px; font-size: 13px; line-height: 20px; }
.rg-sleep .rg-btn:hover { background: #d86400; }
.rg-home h2 { font-size: 18px; }

/* ===== round 2 ===== */
.rg-live { display: inline-block; font-size: 13px; color: #c0392b; margin: 6px 0 0 14px; }
.rg-live[hidden] { display: none; }
.rg-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c0392b; margin-right: 6px; animation: rg-pulse 1.6s infinite; }
@keyframes rg-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rg-live-dot { animation: none; } .rg-knob { transition: none; } }

.rg-cast { background: none; border: 1px solid #ccd3db; border-radius: 4px; padding: 4px 10px; font-size: 13px; color: #1b2431; margin: 0 0 8px; }
.rg-cast:hover { border-color: #ee6f00; color: #ee6f00; }
.rg-keys { font-size: 12px; margin: 0 0 10px; }
.rg-keys kbd { background: #f1f3f6; color: #1b2431; border: 1px solid #d5dbe3; box-shadow: none; padding: 0 5px; font-size: 11px; }

.rg-moods { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }
.rg-mood { border: 1px solid #ee6f00; background: #fff; color: #ee6f00; border-radius: 999px; padding: 6px 16px; font-weight: bold; }
.rg-mood[aria-pressed="true"] { background: #ee6f00; color: #fff; }

.rg-share { display: grid; gap: 14px; }
.rg-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rg-qr #rg-qr { padding: 8px; background: #fff; border: 1px solid #e1e5ea; border-radius: 8px; line-height: 0; }
.rg-qr #rg-qr svg { display: block; width: 160px; height: 160px; }
.rg-qr p { margin: 0 0 8px; max-width: 360px; }
.rg-badge-preview { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }

.rg-widget-form label { display: block; margin: 12px 0 4px; font-weight: normal; }
.rg-widgets h2 { font-size: 18px; margin: 22px 0 8px; }
.rg-widgets pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; }

.rg-empty { color: #6b7684; padding: 22px; border: 1px dashed #ccd3db; border-radius: 10px; text-align: center; margin: 10px 0 30px; }
.rg-stats { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rg-stats li { background: #1b2431; color: #fff; border-radius: 10px; padding: 14px 16px; }
.rg-stats b { display: block; font-size: 24px; color: #ffb347; }
.rg-stats span { color: #cfd6e0; font-size: 13px; }
.rg-myradio h2 { font-size: 18px; margin: 24px 0 10px; }
.rg-week { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; align-items: flex-end; height: 140px; border-bottom: 1px solid #e1e5ea; }
.rg-week li { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.rg-week .rg-bar { width: 100%; max-width: 46px; background: #ee6f00; border-radius: 4px 4px 0 0; }
.rg-week small { color: #6b7684; margin-top: 4px; }
.rg-top { list-style: none; padding: 0; margin: 0 0 20px; }
.rg-top a { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0f3; color: inherit; }
.rg-top img { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; padding: 4px; box-sizing: border-box; background: #fff; border: 1px solid #e1e5ea; flex: none; }
.rg-top-t { width: 220px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-top-t small { display: block; color: #6b7684; }
.rg-top-m { flex: 1; height: 8px; background: #eef0f3; border-radius: 4px; overflow: hidden; }
.rg-top-m span { display: block; height: 100%; background: #ee6f00; }
.rg-top-v { width: 90px; text-align: right; font-size: 13px; color: #6b7684; }
@media (max-width: 600px) { .rg-top-t { width: 120px; } .rg-top-v { width: 70px; } }

/* accessibility */
.rg-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #1b2431; color: #fff; padding: 10px 16px; border-radius: 4px; }
.rg-skip:focus { left: 8px; color: #fff; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #ffb347; outline-offset: 2px; }

/* Radio starts by itself: shown when the browser blocked autoplay */
.rg-tapbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 12px;
    max-width: calc(100% - 32px); padding: 10px 22px 10px 10px; border: 0; border-radius: 999px; background: #ee6f00; color: #fff; font-size: 15px;
    text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
.rg-tapbar img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; padding: 7px; box-sizing: border-box; background: #fff; flex: none; }
.rg-tapbar span { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; }
.rg-tapbar b { font-size: 17px; }
@media (prefers-reduced-motion: no-preference) {
    .rg-tapbar { animation: rg-tap 1.6s ease-in-out infinite; }
    @keyframes rg-tap { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 10px rgba(238,111,0,.25); } }
}
.rg-tapbar b { white-space: nowrap; }

/* Similar stations: fixed 6 / 4 / 3 columns so the 12 (or 6, 3) tiles always fill whole rows */
.rg-tiles.rg-tiles--fill { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rg-tiles.rg-tiles--fill { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rg-tiles.rg-tiles--fill { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
