/* Radioguide Channels (design 2 look; self-contained so designs 1 and 3 render it too) */
.rg-ch {
    --ch-ink: #151A2D;
    --ch-text: #3B4256;
    --ch-muted: #5B6378;
    --ch-line: #E7E9EF;
    --ch-soft: #F1F3F6;
    --ch-card: #FFFFFF;
    --ch-accent: #B43E0A;
    --ch-accent-d: #8A2F07;
    --ch-orange: #EE6F00;
    --ch-peach: #FFF1E6;
    --ch-r: 16px;
    --ch-r-lg: 24px;
    color: var(--ch-ink);
    font-size: 16px;
    line-height: 1.55;
    padding-bottom: 48px;
}
.rg-ch *, .rg-ch *::before, .rg-ch *::after { box-sizing: border-box; }
.rg-ch a { color: var(--ch-accent); text-decoration: none; }
.rg-ch a:hover { color: var(--ch-accent-d); }
.rg-ch h1, .rg-ch h2, .rg-ch h3 { color: var(--ch-ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
.rg-ch h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.rg-ch h2 { font-size: 24px; }
.rg-ch h3 { font-size: 18px; }
.rg-ch p { margin: 0 0 1em; }
.rg-ch-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rg-ch-muted { color: var(--ch-muted); }
.rg-ch-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rg-ch-section { padding-top: 40px; }
.rg-ch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rg-ch-head h2 { margin: 0 0 4px; font-size: 26px; }
.rg-ch-head p { margin: 0; color: var(--ch-muted); }
.rg-ch-head a { font-weight: 700; font-size: 15px; }
.rg-ch-top { background: linear-gradient(180deg, #FFF4EA 0%, rgba(255, 244, 234, 0) 100%); padding: 36px 0 8px; }
.rg-ch-top h1 { margin: 4px 0 10px; }
.rg-ch-top .lead { font-size: 18px; color: var(--ch-text); max-width: 680px; }
.rg-ch-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ch-accent); }
.rg-ch-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: #D92D20; padding: 3px 9px; border-radius: 999px; }
.rg-ch-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: rgchpulse 1.6s ease-in-out infinite; }
@keyframes rgchpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rg-ch-live::before { animation: none; } }

/* Buttons */
.rg-ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; background: var(--ch-accent); color: #fff !important; text-decoration: none; white-space: nowrap; }
.rg-ch-btn:hover { background: var(--ch-accent-d); color: #fff !important; }
.rg-ch-btn--dark { background: var(--ch-ink); }
.rg-ch-btn--dark:hover { background: #2A3150; }
.rg-ch-btn--ghost { background: #fff; color: var(--ch-ink) !important; border-color: #E1E4EB; }
.rg-ch-btn--ghost:hover { background: var(--ch-soft); color: var(--ch-ink) !important; }
.rg-ch-icon { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.rg-ch-icon:hover { background: rgba(255, 255, 255, .18); }
.rg-ch-icon[aria-pressed="true"] { color: #FF6B6B; border-color: #FF6B6B; }
.rg-ch-icon svg { width: 20px; height: 20px; }

/* Cover art */
.rg-ch-art { position: relative; border-radius: 18px; overflow: hidden; background: var(--ch-c, #B43E0A); background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .25)); flex: none; display: flex; align-items: flex-end; color: #fff; }
.rg-ch-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-ch-art__name { position: relative; padding: 12px 14px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.rg-ch-art--sq { aspect-ratio: 1 / 1; }
.rg-ch-art picture { position: absolute; inset: 0; }
.rg-ch-art.has-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 20, 0) 38%, rgba(8, 10, 20, .42) 66%, rgba(8, 10, 20, .8) 100%); pointer-events: none; }
.rg-ch-art.has-art .rg-ch-art__name { z-index: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .35); }

/* Player */
.rg-ch-player { background: var(--ch-ink); color: #fff; border-radius: 28px; padding: 24px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; box-shadow: 0 20px 48px rgba(21, 26, 45, .14); }
.rg-ch-player .rg-ch-art { width: 200px; height: 200px; }
.rg-ch-player__cover { position: relative; width: 200px; height: 200px; border-radius: 18px; overflow: hidden; background: #2A3150; }
.rg-ch-player__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-ch-player__cover .rg-ch-art { position: absolute; inset: 0; width: auto; height: auto; }
.rg-ch-player__body { min-width: 0; }
.rg-ch-player__ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; color: #C3C8D4; font-size: 14px; font-weight: 600; }
.rg-ch-player__ch a { color: #C3C8D4; }
.rg-ch-player__title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 4px; color: #fff; overflow-wrap: anywhere; }
.rg-ch-player__title a { color: #fff !important; }
.rg-ch-player__artist { font-size: 17px; margin: 0 0 16px; }
.rg-ch-player__artist a { color: #FFB27A !important; font-weight: 600; }
.rg-ch-player__ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rg-ch-play { width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--ch-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rg-ch-play:hover { background: #D45F00; }
.rg-ch-play svg { width: 22px; height: 22px; }
.rg-ch-play .is-pause, .is-playing .rg-ch-play .is-play, .is-loading .rg-ch-play .is-play { display: none; }
.is-playing .rg-ch-play .is-pause { display: block; }
.is-loading .rg-ch-play { opacity: .7; }
.rg-ch-progress { height: 4px; background: rgba(255, 255, 255, .15); border-radius: 4px; margin: 18px 0 6px; overflow: hidden; }
.rg-ch-progress i { display: block; height: 100%; width: 0; background: var(--ch-orange); transition: width .5s linear; }
.rg-ch-player__time { display: flex; justify-content: space-between; font-size: 12px; color: #9AA1B2; font-variant-numeric: tabular-nums; }
.rg-ch-player__msg { font-size: 14px; color: #C3C8D4; margin: 10px 0 0 !important; min-height: 1em; }
.rg-ch-player__msg:empty { display: none; }
.rg-ch-empty { background: #fff; border: 1px dashed #C9CEDB; border-radius: var(--ch-r-lg); padding: 28px; text-align: center; color: var(--ch-muted); }
.rg-ch-empty b { display: block; color: var(--ch-ink); font-size: 18px; margin-bottom: 6px; }

/* Lists */
.rg-ch-grid { display: grid; gap: 16px; }
.rg-ch-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-ch-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rg-ch-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rg-ch-box { background: var(--ch-card); border: 1px solid var(--ch-line); border-radius: var(--ch-r-lg); padding: 22px; min-width: 0; }
.rg-ch-box h2 { font-size: 20px; margin-bottom: 12px; }
.rg-ch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rg-ch-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; min-width: 0; }
.rg-ch-list li:hover { background: var(--ch-soft); }
.rg-ch-list .n { width: 22px; text-align: right; font-weight: 800; color: var(--ch-muted); flex: none; font-variant-numeric: tabular-nums; }
.rg-ch-list .t { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.rg-ch-list .t b, .rg-ch-list .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ch-list .t b a { color: var(--ch-ink); }
.rg-ch-list .t span { font-size: 14px; color: var(--ch-muted); }
.rg-ch-list .t span a { color: var(--ch-muted); }
.rg-ch-list .v { font-size: 13px; color: var(--ch-muted); flex: none; font-variant-numeric: tabular-nums; }
.rg-ch-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--ch-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--ch-muted); }
.rg-ch-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Channel tiles */
.rg-ch-tile { display: flex; flex-direction: column; gap: 10px; background: var(--ch-card); border: 1px solid var(--ch-line); border-radius: var(--ch-r-lg); padding: 12px; color: var(--ch-ink) !important; min-width: 0; transition: transform .15s, box-shadow .15s; }
.rg-ch-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 26, 45, .08); }
.rg-ch-tile .rg-ch-art { width: 100%; aspect-ratio: 16 / 10; }
.rg-ch-tile__now { font-size: 14px; color: var(--ch-muted); line-height: 1.35; min-height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rg-ch-tile__now b { color: var(--ch-ink); }
.rg-ch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rg-ch-tags li { background: var(--ch-soft); color: var(--ch-text); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.rg-ch-player .rg-ch-tags li { background: rgba(255, 255, 255, .1); color: #D5D8E0; }

/* Main channel (Radioguide Hits) feature card */
.rg-ch-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; background: var(--ch-ink); color: #fff; border-radius: 28px; padding: 24px; }
.rg-ch-hero .rg-ch-art { min-height: 220px; height: 100%; }
.rg-ch-hero .rg-ch-art__name { font-size: 34px; padding: 20px 22px; }
.rg-ch-hero__body { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.rg-ch-hero .rg-ch-hero__body h1, .rg-ch-hero .rg-ch-hero__body h2, .rg-ch-hero .rg-ch-hero__body h3 { color: #fff; margin: 0; } /* above the theme's dark heading colour */
.rg-ch-hero__body p { color: #C9CEDB; margin: 0; }
.rg-ch-hero__now { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 12px 14px; font-size: 15px; color: #E4E7EE; }
.rg-ch-hero__now b { color: #fff; }
.rg-ch-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Artist CTA */
.rg-ch-cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; background: var(--ch-peach); border-radius: var(--ch-r-lg); padding: 26px; align-items: center; }
.rg-ch-cta h2, .rg-ch-cta h3 { margin: 0 0 8px; }
.rg-ch-cta p { color: #4A5168; margin: 0 0 12px; }
.rg-ch-offers { display: grid; gap: 10px; }
.rg-ch-offer { background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.rg-ch-offer b { display: block; }
.rg-ch-offer small { color: var(--ch-muted); font-size: 13px; display: block; line-height: 1.35; }
.rg-ch-offer strong { white-space: nowrap; color: var(--ch-accent); font-size: 17px; }
.rg-ch-offer--main { border: 2px solid var(--ch-orange); }
.rg-ch-cta--compact { grid-template-columns: 1fr; padding: 20px; }

/* Artists in rotation */
.rg-ch-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.rg-ch-artist { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ch-ink) !important; font-weight: 600; font-size: 14px; min-width: 0; }
.rg-ch-artist span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rg-ch-face { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--ch-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: var(--ch-muted); }
.rg-ch-face img { width: 100%; height: 100%; object-fit: cover; }

/* Bottom bar (design 2) */
.rg-ch-bar .t2-player__inner { color: #fff !important; }
.rg-ch-bar .rg-ch-bar__btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--orange, #EE6F00); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rg-ch-bar .rg-ch-bar__btn .is-pause, .rg-ch-bar.is-playing .rg-ch-bar__btn .is-play { display: none; }
.rg-ch-bar.is-playing .rg-ch-bar__btn .is-pause { display: block; }
.rg-ch-bar.is-playing .t2-eq i { animation: t2eq .9s ease-in-out infinite; }
.rg-ch-bar.is-playing .t2-eq i:nth-child(2) { animation-delay: .2s; }
.rg-ch-bar.is-playing .t2-eq i:nth-child(3) { animation-delay: .4s; }
.rg-ch-bar__art { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--ch-c, #B43E0A) center / cover no-repeat; }
.rg-ch-bar__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
    .rg-ch-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-ch-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-ch-hero, .rg-ch-cta { grid-template-columns: 1fr; }
    .rg-ch-hero .rg-ch-art { min-height: 160px; }
}
@media (max-width: 640px) {
    .rg-ch-wrap { padding: 0 16px; }
    .rg-ch h1 { font-size: 30px; }
    .rg-ch-top .lead { font-size: 16px; }
    .rg-ch-grid--2, .rg-ch-grid--3 { grid-template-columns: 1fr; }
    .rg-ch-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rg-ch-player { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; }
    .rg-ch-player__cover { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto; }
    .rg-ch-player__title { font-size: 22px; }
    .rg-ch-hero { padding: 16px; border-radius: 22px; }
    .rg-ch-hero .rg-ch-art__name { font-size: 26px; }
    .rg-ch-cta { padding: 18px; }
    .rg-ch-offer { flex-direction: column; align-items: flex-start; }
    .rg-ch-tile { padding: 10px; }
    .rg-ch-tile__now { font-size: 13px; }
}

/* Channels without music yet: "Coming soon" card instead of the player; "Beta" for the whole product */
.rg-ch-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rg-ch-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; line-height: 1.3; }
.rg-ch-badge--soon { background: #FFE7CC; color: #7A3300; }
.rg-ch-badge--beta { background: #E8EAF6; color: #2A3150; }
.rg-ch-eyebrow .rg-ch-badge { font-size: 11px; padding: 2px 8px; }
.rg-ch-soon { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--ch-card); border: 1px dashed #C9CEDB; border-radius: 28px; padding: 24px; color: var(--ch-ink); }
.rg-ch-soon .rg-ch-art { width: 100%; aspect-ratio: 1 / 1; opacity: .75; }
.rg-ch-soon__title { margin: 0 0 6px; font-size: 24px; }
.rg-ch-soon__title a { color: inherit; }
.rg-ch-soon p { color: var(--ch-text); margin: 0 0 12px; max-width: 620px; }
.rg-ch-soon__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.rg-ch-tile { position: relative; }
.rg-ch-tile .rg-ch-badge--soon { position: absolute; top: 20px; left: 20px; z-index: 1; }
.rg-ch-tile.is-soon .rg-ch-art { opacity: .7; }
.rg-ch-tile.is-soon .rg-ch-art.has-art, .rg-ch-soon .rg-ch-art.has-art { opacity: .92; }
@media (max-width: 640px) {
    .rg-ch-soon { grid-template-columns: 1fr; padding: 18px; border-radius: 22px; }
    .rg-ch-soon .rg-ch-art { max-width: 160px; }
}
/* rows always full: a last tile alone in its row takes the whole row */
.rg-ch-grid--4 > :last-child:nth-child(4n+1), .rg-ch-grid--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.rg-ch-grid--3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 960px) {
    .rg-ch-grid--4 > :last-child:nth-child(4n+1), .rg-ch-grid--3 > :last-child:nth-child(3n+1) { grid-column: auto; }
    .rg-ch-grid--4 > :last-child:nth-child(odd), .rg-ch-grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
