/* SteemRadio page (/radio): station finder in the WorldBites card style. Uses the page theme variables
   (--bg, --card, --text, --muted, --gold, --teal, --border), so every colour theme applies. */
.rd-app {
  --rd-radius: 16px;
  --rd-teal-soft: rgba(26,155,142,0.09);
  --rd-teal-line: rgba(26,155,142,0.22);
  --rd-shadow: 0 10px 30px rgba(28,45,43,0.06);
  max-width: 1280px; margin: 0 auto; padding: 28px 24px 120px; box-sizing: border-box;
}
.rd-app svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header banner (title + search) ---------- */
.rd-hero { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--rd-radius); box-shadow: var(--rd-shadow); position: relative; overflow: hidden; }
.rd-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--rd-teal-soft), transparent 70%); pointer-events: none; }
.rd-hero-mark { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), #0f6f66); color: #fff; box-shadow: 0 6px 18px rgba(26,155,142,0.32); }
.rd-hero-mark svg { width: 24px; height: 24px; }
.rd-hero-text { flex: 0 1 auto; min-width: 0; }
.rd-eyebrow { margin: 0 0 2px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rd-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.6rem; line-height: 1.1; color: var(--text); }
.rd-lead { margin: 2px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }

.rd-search { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex: 0 1 380px; min-width: 0; height: 42px; margin-left: auto; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.rd-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--rd-teal-soft); outline: none; }
.rd-search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.rd-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--text); outline: none; }

.rd-meta { margin: 14px 2px 10px; font-size: .85rem; color: var(--muted); }

/* ---------- station cards ---------- */
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rd-card { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 100%; overflow: hidden; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--rd-shadow); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.rd-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28,45,43,0.1); }
.rd-card.is-current { border-color: var(--teal); box-shadow: 0 0 0 2px var(--rd-teal-line), var(--rd-shadow); }
.rd-logo { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; background: var(--rd-teal-soft); border: 1px solid var(--rd-teal-line); display: grid; place-items: center; overflow: hidden; color: var(--teal); }
.rd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.rd-logo svg { width: 24px; height: 24px; }
.rd-card-body { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.rd-card-name { display: block; min-width: 0; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-card-place { display: block; min-width: 0; margin-top: 2px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-card-tags { display: flex; flex-wrap: wrap; gap: 4px; max-height: 20px; margin-top: 6px; overflow: hidden; min-width: 0; }
.rd-tag { flex: 0 1 auto; min-width: 0; max-width: 100%; height: 20px; line-height: 16px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; padding: 2px 8px; border-radius: 999px; background: var(--rd-teal-soft); color: var(--teal); font-size: .68rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.rd-card-play { flex: 0 0 auto; flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rd-teal-soft); color: var(--teal); transition: background .2s, color .2s; }
.rd-card-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rd-card:hover .rd-card-play, .rd-card.is-current .rd-card-play { background: var(--teal); color: #fff; }

/* Equaliser shown on the station that is playing */
.rd-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.rd-eq i { width: 3px; background: currentColor; border-radius: 2px; animation: rd-eq 0.9s ease-in-out infinite; }
.rd-eq i:nth-child(2) { animation-delay: .2s; } .rd-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes rd-eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.rd-card.is-playing .rd-eq { display: flex; }
.rd-card.is-playing .rd-card-play svg { display: none; }

.rd-skel { height: 82px; border-radius: 14px; background: linear-gradient(90deg, var(--card) 25%, var(--bg) 50%, var(--card) 75%); background-size: 200% 100%; border: 1px solid var(--border); animation: rd-shimmer 1.2s linear infinite; }
@keyframes rd-shimmer { to { background-position: -200% 0; } }
.rd-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--border); border-radius: var(--rd-radius); }

.rd-more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.rd-more { padding: 11px 22px; border-radius: 12px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.rd-more:hover { background: #158275; border-color: #158275; }
.rd-more:disabled { opacity: .6; cursor: default; }
.rd-credit { margin: 28px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.rd-credit a { color: var(--teal); }

@media (max-width: 720px) {
  .rd-hero { flex-wrap: wrap; }
  .rd-search { flex: 1 1 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .rd-app { padding: 16px 14px 110px; }
  .rd-hero { padding: 14px; gap: 12px; }
  .rd-hero-mark { width: 42px; height: 42px; }
  .rd-hero h1 { font-size: 1.4rem; }
}
