/* Radioguide - station playlists and "What song was that?" (app/components/playlist/PlaylistView.php).
   Shared parts first (tokens below follow the design: body.t2 = design 2, body.t3 = design 3, else design 1). */
.rg-pl-page, .rg-pl-station, .rg-pl-form, .rg-pl-nplinks, .rg-pl-head {
    --pl-ink: #151a2d; --pl-text: #3b4256; --pl-muted: #5b6378; --pl-line: #e1e4eb; --pl-soft: #f4f5f8;
    --pl-accent: #b43e0a; --pl-accent-d: #8a2f07; --pl-hl: #fff1e6; --pl-r: 14px; --pl-card: #fff;
}
.t3 .rg-pl-page, .t3 .rg-pl-station, .t3 .rg-pl-form, .t3 .rg-pl-nplinks, .t3 .rg-pl-head {
    --pl-ink: #1f2433; --pl-text: #4b5165; --pl-muted: #6b7185; --pl-line: #e4e6ec; --pl-soft: #f2f3f7;
    --pl-accent: #b85500; --pl-accent-d: #8f4200; --pl-hl: #fff1e4; --pl-r: 6px;
}
.rg-pl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
[data-pl-zonebtn][hidden], .rg-pl-sug[hidden] { display: none !important; }

/* buttons */
.rg-pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--pl-accent);
    background: var(--pl-accent); color: #fff !important; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.rg-pl-btn:hover { background: var(--pl-accent-d); border-color: var(--pl-accent-d); }
.rg-pl-btn:focus-visible, .rg-pl-form input:focus-visible, .rg-pl-nav__btn:focus-visible { outline: 3px solid #3b5bdb; outline-offset: 2px; }
.rg-pl-btn--ghost { background: var(--pl-card); color: var(--pl-ink) !important; border-color: var(--pl-line); }
.rg-pl-btn--ghost:hover { background: var(--pl-soft); border-color: #c9cedb; }
.rg-pl-linkbtn, .rg-pl-zone__btn { background: none; border: 0; padding: 0; color: var(--pl-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* page head */
.rg-pl-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rg-pl-hero__logo { flex: none; width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: #fff; box-shadow: 0 6px 18px rgba(21, 26, 45, .08); overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.rg-pl-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.rg-pl-hero__txt { flex: 1 1 320px; min-width: 0; }
.rg-pl-hero__txt h1 { margin: 0 0 4px; }
.rg-pl-hero__txt p { margin: 0 0 6px; }
.rg-pl-date { font-weight: 700; color: var(--pl-accent); font-size: 16px; text-transform: capitalize; }
.rg-pl-hero__live { flex: none; }
.rg-pl-livewall { list-style: none; margin: 0; padding: 0; display: block; }
.rg-pl-livewall .rg-pl-livetile { display: block; width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.rg-pl-livewall .qp-t__a.rg-pl-live { display: inline-flex; flex-direction: row; width: auto; height: auto; min-height: 48px; padding: 12px 22px; border-radius: 999px; aspect-ratio: auto; }
.rg-pl-livewall .qp-t__name { position: static; color: #fff; font-size: 16px; font-weight: 700; margin: 0; padding: 0; background: none; -webkit-line-clamp: unset; display: inline; }
.rg-pl-livewall .qp-t__eq { display: none; }
.rg-pl-livewall .qp-t.is-playing .qp-t__eq { display: inline-flex; position: static; }
.rg-pl-live svg { flex: none; }

/* columns (design 3 and the boxes) */
.rg-pl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-bottom: 32px; }
.rg-pl-cols .box + .box, .rg-pl-side > section + section { margin-top: 18px; }
.t2 .rg-pl-side > section + section { margin-top: 20px; }
.rg-pl-box h2 { font-size: 20px; margin: 0 0 8px; }
.rg-pl-box__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.rg-pl-box__head h2 { margin: 0; }
.rg-pl-zone { margin: 0; font-size: 13.5px; color: var(--pl-muted); }
.rg-pl-zone__btn { margin-left: 6px; font-size: 13.5px; }
.rg-pl-note { font-size: 13px; color: var(--pl-muted); margin: 10px 0 0; }
.rg-pl-msg { margin: 12px 0; padding: 12px 14px; border-radius: var(--pl-r); background: var(--pl-soft); color: var(--pl-text); }

/* day navigation */
.rg-pl-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 12px 0 14px; padding: 10px 0; border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); }
.rg-pl-nav__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pl-line); color: var(--pl-ink) !important; font-weight: 600; font-size: 14px; background: var(--pl-card); text-decoration: none !important; white-space: nowrap; }
.rg-pl-nav__btn:hover { border-color: var(--pl-accent); }
.rg-pl-nav__btn.is-off { opacity: .35; }
.rg-pl-nav__pick { display: flex; align-items: center; gap: 8px; margin: 0; }
.rg-pl-nav__pick input { min-height: 40px; border: 1px solid var(--pl-line); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--pl-ink); background: #fff; }
.rg-pl-nav__pick .rg-pl-btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }

/* the list */
.rg-pl-list { list-style: none; margin: 0; padding: 0; }
.rg-pl-row { display: flex; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--pl-line); }
.rg-pl-row:last-child { border-bottom: 0; }
.rg-pl-row.is-now { background: var(--pl-hl); border-radius: 10px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; }
.rg-pl-time { flex: none; width: 3.4em; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--pl-muted); font-size: 14px; }
.rg-pl-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rg-pl-song { font-weight: 700; color: var(--pl-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
a.rg-pl-song:hover { color: var(--pl-accent) !important; text-decoration: underline; }
.rg-pl-artist { color: var(--pl-muted) !important; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.rg-pl-artist:hover { color: var(--pl-accent) !important; text-decoration: underline; }
.rg-pl-badge { flex: none; font-size: 12px; font-weight: 700; color: var(--pl-accent); background: #fff; border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; }
.rg-pl-list--small .rg-pl-row { padding: 7px 4px; }
.rg-pl-list--small .rg-pl-song { font-size: 14.5px; }

/* summaries */
.rg-pl-sum { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rg-pl-sum h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--pl-muted); margin: 6px 0 6px; }
.rg-pl-top { list-style: none; margin: 0; padding: 0; counter-reset: pl; }
.rg-pl-top li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--pl-line); counter-increment: pl; }
.rg-pl-top li:last-child { border-bottom: 0; }
.rg-pl-top li::before { content: counter(pl); flex: none; width: 1.6em; font-weight: 700; color: var(--pl-muted); font-size: 13px; text-align: right; }
.rg-pl-top__txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rg-pl-top__txt a, .rg-pl-top__txt > span { font-weight: 600; color: var(--pl-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-pl-top__txt small { color: var(--pl-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-pl-top b { flex: none; font-size: 13px; color: var(--pl-text); font-variant-numeric: tabular-nums; }
.rg-pl-links { display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 600; }

/* the lookup form */
.rg-pl-form { margin: 0; }
.rg-pl-form__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.rg-pl-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--pl-text); margin: 0; flex: 1 1 130px; min-width: 0; position: relative; }
.rg-pl-form input[type=date], .rg-pl-form input[type=time], .rg-pl-form input[type=search] { min-height: 44px; border: 1px solid var(--pl-line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; font-weight: 500; color: var(--pl-ink); background: #fff; width: 100%; box-sizing: border-box; }
.rg-pl-form .rg-pl-btn { flex: 1 1 100%; }
.rg-pl-form--big .rg-pl-form__station { flex: 3 1 260px; }
.rg-pl-form--big .rg-pl-btn { flex: 0 1 auto; }
.rg-pl-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--pl-muted); }
.rg-pl-chosen { margin: 10px 0 0; font-size: 14px; }
.rg-pl-result:empty { display: none; }
.rg-pl-result { margin-top: 14px; }
.rg-pl-hit { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--pl-r); background: var(--pl-hl); border: 1px solid #f6d9bc; margin: 0 0 12px; }
.rg-pl-hit__lbl { font-size: 13px; color: var(--pl-text); }
.rg-pl-hit__song { font-size: 20px; line-height: 1.25; color: var(--pl-ink); }
.rg-pl-hit__song a { color: var(--pl-ink) !important; }
.rg-pl-hit__artist { font-size: 15px; font-weight: 600; }
.rg-pl-hit__since { font-size: 12.5px; color: var(--pl-muted); }
.rg-pl-sub { margin: 4px 0 4px; font-size: 13px; font-weight: 700; color: var(--pl-muted); }
.rg-pl-more { margin: 10px 0 0; font-weight: 700; }
.rg-pl-sug { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--pl-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(21, 26, 45, .14); max-height: 320px; overflow-y: auto; font-weight: 500; }
.rg-pl-sug li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--pl-ink); }
.rg-pl-sug li small { color: var(--pl-muted); font-size: 12px; white-space: nowrap; }
.rg-pl-sug li[aria-selected=true], .rg-pl-sug li:hover { background: var(--pl-soft); }
.rg-pl-stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; }
.rg-pl-stations li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px solid var(--pl-line); min-width: 0; }
.rg-pl-stations a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-pl-stations small { color: var(--pl-muted); font-size: 12.5px; }
.rg-pl-lookup > section + section, .rg-pl-lookup > .rg-pl-card + section { margin-top: 20px; }
.rg-pl-faq h2 { font-size: 20px; }
.rg-pl-faq__item { border-bottom: 1px solid var(--pl-line); padding: 10px 0; }
.rg-pl-faq__item summary { font-weight: 700; cursor: pointer; color: var(--pl-ink); }
.rg-pl-faq__item p { margin: 8px 0 0; color: var(--pl-text); }

/* station page block and the links under the timeline */
.rg-pl-station { margin: 0 0 20px; }
.rg-pl-station__head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.rg-pl-station__head h2 { margin: 0; font-size: 20px; }
.rg-pl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-pl-tabs .rg-pl-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.rg-pl-station__lead { margin: 6px 0 12px; color: var(--pl-text); }
.rg-pl-nplinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-weight: 700; font-size: 14.5px; }
.rg-pl-nplinks a { display: inline-flex; align-items: center; gap: 6px; color: var(--pl-accent); }
.rg-pl-nplinks svg { flex: none; }

/* design 2 */
.t2 .rg-pl-head { padding-bottom: 28px; }
.t2 .rg-pl-hero__logo { width: 96px; height: 96px; border-radius: 22px; }
.t2 .rg-pl-station { margin: 0; }
.t2 .t2-cols__main > .rg-pl-station, .t2 .rg-pl-station + section, .t2 section + .rg-pl-station { margin-top: 20px; }
.t2 .rg-pl-page.t2-cols { padding-top: 4px; }

/* design 3 */
.t3 .rg-pl-head .rg-pl-hero { margin-top: 10px; }
.t3 .rg-pl-head .rg-pl-hero__txt h1 { color: #fff; }
.t3 .hero3 .rg-pl-date { color: #ffd5ad; }
.t3 .hero3 .rg-pl-hero__txt p { color: #e6e8ee; }
.t3 .rg-pl-cols { margin-top: 20px; }
.t3 .rg-pl-station { margin: 16px 0; }
.t3 .rg-pl-lookup { margin-top: 20px; }
.t3 .rg-pl-lookup .box + .box, .t3 .rg-pl-lookup .box + section { margin-top: 18px; }

/* design 1 */
.rg-pl-d1 { padding-bottom: 30px; }
.rg-pl-d1 .rg-pl-hero { margin: 0 0 20px; }
.rg-pl-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.rg-pl-station.rg-pl-d1 { background: #fff; border: 1px solid var(--pl-line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.rg-pl-d1 h1 { font-size: 30px; }
.rg-pl-lead { font-size: 16px; color: var(--pl-text); }

@media (max-width: 900px) {
    .rg-pl-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .rg-pl-hero { gap: 14px; }
    .rg-pl-hero__logo, .t2 .rg-pl-hero__logo { width: 64px; height: 64px; border-radius: 14px; }
    .rg-pl-hero__live { flex: 1 1 100%; }
    .rg-pl-hero__live .rg-pl-live, .rg-pl-livewall .qp-t__a.rg-pl-live { width: 100%; }
    .rg-pl-nav__pick { order: 3; flex: 1 1 100%; }
    .rg-pl-nav__pick label { flex: 1 1 auto; }
    .rg-pl-nav__pick input { width: 100%; box-sizing: border-box; }
    .rg-pl-row { gap: 10px; }
    .rg-pl-box h2, .rg-pl-station__head h2 { font-size: 18px; }
    .rg-pl-form--big .rg-pl-btn { flex: 1 1 100%; }
}

/* "Listen live" as a quick-listen tile (design 2): look like the other buttons, not like a station tile */
.rg-pl-livewall .qp-t .qp-t__a.rg-pl-live { background: var(--pl-accent) !important; color: #fff !important; border: 1px solid var(--pl-accent); box-shadow: none; gap: 10px; align-items: center; justify-content: center; }
.rg-pl-livewall .qp-t .qp-t__a.rg-pl-live:hover { background: var(--pl-accent-d) !important; }
.rg-pl-livewall .qp-t .qp-t__a.rg-pl-live * { color: #fff !important; }
.rg-pl-livewall .qp-t::before, .rg-pl-livewall .qp-t::after { display: none !important; }

/* long days: the first rows, the rest behind "show all" (all rows stay in the HTML) */
.rg-pl-list.is-folded .rg-pl-row:nth-child(n+61) { display: none; }
.rg-pl-unfold { margin: 12px 0 0; width: 100%; }

/* Popular stations of the same country and genre below the playlist (views/station-playlist/_related.php) */
.rg-rel h2 { margin: 0 0 12px; font-size: 20px; }
.rg-rel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* 8 stations: always full rows */
.rg-rel__item { display: flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid rgba(20, 26, 45, .1); border-radius: 14px; background: #fff; padding: 6px 8px 6px 6px; }
.rg-rel__st { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none !important; }
.rg-rel__img { width: 44px !important; height: 44px !important; flex: none; border-radius: 10px; object-fit: contain; background: #fff; overflow: hidden; }
.rg-rel__img img { width: 100%; height: 100%; object-fit: contain; }
.rg-rel__img--txt { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #334155; }
.rg-rel__name { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rg-rel__name small { display: block; font-weight: 400; font-size: 12.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-rel__play { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EE6F00; color: #fff; }
.rg-rel__st:hover .rg-rel__play { background: #B43E0A; }
.rg-rel__pl { flex: none; font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: 999px; white-space: nowrap; }
.rg-rel__pl:hover { background: rgba(238, 111, 0, .1); }
.rg-rel + .rg-rel { margin-top: 16px; }
@media (max-width: 560px) { .rg-rel__list { grid-template-columns: minmax(0, 1fr); } }
