/* RP2B Player – volgt de kleuren van het Radio Place 2 Be-thema (met eigen reservekleuren) */
.rp2bp {
	--rp2bp-kleur1: var(--rp-red, #e9194a);
	--rp2bp-kleur2: var(--rp-pink, #ff82a0);
	--rp2bp-donker: var(--rp-red-dark, #be173d);
	--rp2bp-tekst: #fff;
	--rp2bp-zacht: #cfc6d6;
	--rp2bp-kop: var(--rp-head, 'Playfair Display', Georgia, serif);
	--rp2bp-body: var(--rp-body, 'Open Sans', system-ui, sans-serif);
	position: relative;
	color: var(--rp2bp-tekst);
	font-family: var(--rp2bp-body);
	box-sizing: border-box;
}
.rp2bp *, .rp2bp *::before, .rp2bp *::after { box-sizing: border-box; }
.rp2bp [hidden] { display: none !important; }

/* ---------- Vaste balk ---------- */
.rp2bp-balk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; background: linear-gradient(90deg, rgba(36, 13, 25, .97), rgba(12, 12, 16, .97) 60%, rgba(36, 13, 25, .97)); backdrop-filter: blur(12px); border-top: 2px solid var(--rp2bp-kleur1); box-shadow: 0 -8px 30px rgba(233, 25, 74, .28); }
.rp2b-player-boven .rp2bp-balk { top: 0; bottom: auto; border-top: 0; border-bottom: 2px solid var(--rp2bp-kleur1); }
body.rp2b-player-onder { padding-bottom: 92px !important; }
body.rp2b-player-boven { padding-top: 92px !important; }
.rp2b-player-actief #rp-bar { display: none !important; }      /* de oude balk van het thema */

.rp2bp-in { position: relative; z-index: 1; display: grid; grid-template-columns: 64px minmax(180px, 300px) 1fr 62px auto auto; align-items: center; gap: 18px; max-width: 1400px; margin: 0 auto; padding: 12px 22px; min-height: 88px; }
.rp2bp-golf { grid-column: 3; grid-row: 1; position: relative; width: 100%; height: 52px; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* Hoes */
.rp2bp-hoes { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 35% 30%, #ff5a7d, var(--rp2bp-donker) 60%, #2a0a16); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.rp2bp-hoes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rp2bp-hoes-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 18px var(--rp2bp-kop); letter-spacing: .5px; }
.rp2bp-hoes-logo b { color: #ffd36b; }
.rp2bp.met-hoes .rp2bp-hoes-logo { display: none; }
.rp2bp.is-live .rp2bp-hoes { box-shadow: 0 0 0 2px var(--rp2bp-kleur1), 0 6px 22px rgba(233, 25, 74, .55); }

/* Tekst */
.rp2bp-info { min-width: 0; line-height: 1.25; }
.rp2bp-boven { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 3px; }
.rp2bp-live { flex: none; display: inline-flex; align-items: center; gap: 5px; background: var(--rp2bp-kleur1); color: #fff; font: 700 10px var(--rp2bp-body); letter-spacing: 1.5px; padding: 3px 8px; border-radius: 20px; }
.rp2bp-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.rp2bp.is-live .rp2bp-live i { animation: rp2bp-knipper 1.2s infinite; }
.rp2bp.is-nonstop .rp2bp-live { background: #4a4452; }
@keyframes rp2bp-knipper { 50% { opacity: .25; } }
.rp2bp-programma { font-size: 12px; color: var(--rp2bp-kleur2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp2bp-titel { font: 700 17px var(--rp2bp-kop); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp2bp-artiest { font-size: 13px; color: var(--rp2bp-zacht); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp2bp-artiest.is-melding { color: #ffd36b; font-weight: 600; }
.rp2bp.is-nieuw .rp2bp-titel, .rp2bp.is-nieuw .rp2bp-artiest { animation: rp2bp-in .6s ease-out; }
@keyframes rp2bp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Play (geen pauze) */
.rp2bp-play { grid-column: 4; position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: radial-gradient(circle at 35% 30%, #ff5a7d, var(--rp2bp-donker)); box-shadow: 0 0 0 6px rgba(233, 25, 74, .16), 0 8px 24px rgba(233, 25, 74, .5); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.rp2bp-play:hover { transform: scale(1.06); }
.rp2bp-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rp2bp-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.rp2bp-icoon-live, .rp2bp-icoon-laden { display: none; }
.rp2bp.is-live .rp2bp-play { cursor: default; transform: none; animation: rp2bp-gloed 2.4s ease-in-out infinite; }
.rp2bp.is-live .rp2bp-icoon-play, .rp2bp.is-laden .rp2bp-icoon-play { display: none; }
.rp2bp.is-live .rp2bp-icoon-live { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.rp2bp-icoon-live i { width: 4px; height: 6px; border-radius: 2px; background: #fff; animation: rp2bp-eq .9s ease-in-out infinite; }
.rp2bp-icoon-live i:nth-child(2) { animation-delay: -.3s; } .rp2bp-icoon-live i:nth-child(3) { animation-delay: -.6s; } .rp2bp-icoon-live i:nth-child(4) { animation-delay: -.15s; }
@keyframes rp2bp-eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@keyframes rp2bp-gloed { 50% { box-shadow: 0 0 0 10px rgba(233, 25, 74, .1), 0 8px 30px rgba(233, 25, 74, .7); } }
.rp2bp.is-laden .rp2bp-icoon-laden { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rp2bp-draai .8s linear infinite; }
@keyframes rp2bp-draai { to { transform: rotate(360deg); } }

/* Volume */
.rp2bp-volume { grid-column: 5; display: flex; align-items: center; gap: 8px; }
.rp2bp-stil { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rp2bp-stil svg { width: 20px; height: 20px; fill: #fff; }
.rp2bp-stil .rp2bp-zacht, .rp2bp.is-stil .rp2bp-stil .rp2bp-luid { display: none; }
.rp2bp.is-stil .rp2bp-stil .rp2bp-zacht { display: inline; }
.rp2bp-volume input { -webkit-appearance: none; appearance: none; width: 110px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--rp2bp-kleur1) var(--vol, 80%), rgba(255, 255, 255, .18) var(--vol, 80%)); cursor: pointer; }
.rp2bp-volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--rp2bp-kleur1); }
.rp2bp-volume input::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--rp2bp-kleur1); }

/* Extra: luisteraars + streamlink */
.rp2bp-extra { grid-column: 6; display: flex; align-items: center; gap: 10px; }
.rp2bp-luisteraars { font-size: 12px; color: var(--rp2bp-zacht); white-space: nowrap; }
.rp2bp-link { border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .25); color: #fff; font: 600 13px var(--rp2bp-body); padding: 8px 13px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.rp2bp-link:hover { border-color: var(--rp2bp-kleur2); }
.rp2bp-linkvak { position: absolute; right: 16px; bottom: calc(100% + 10px); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: min(560px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 14px; background: #141016; border: 1px solid rgba(233, 25, 74, .4); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font-size: 13px; }
.rp2b-player-boven .rp2bp-linkvak { top: calc(100% + 10px); bottom: auto; }
.rp2bp-linkvak span { width: 100%; color: var(--rp2bp-zacht); }
.rp2bp-linkvak input { flex: 1; min-width: 180px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); color: #fff; border-radius: 8px; padding: 8px 10px; font: 13px ui-monospace, monospace; }
.rp2bp-linkvak button, .rp2bp-linkvak a { border: 0; border-radius: 8px; padding: 8px 12px; font: 700 13px var(--rp2bp-body); cursor: pointer; background: var(--rp2bp-kleur1); color: #fff; text-decoration: none; }
.rp2bp-linkvak a { background: rgba(255, 255, 255, .1); }
.rp2bp-linkvak .rp2bp-sluit { background: none; padding: 4px 8px; margin-left: auto; }

/* ---------- Grote versie (shortcode [rp2b_player]) ---------- */
.rp2bp-groot { border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 0% 0%, rgba(96, 20, 42, .9), transparent 55%), linear-gradient(145deg, #21101a, #0d0e15 70%); border: 1px solid rgba(233, 25, 74, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); margin: 24px 0; }
.rp2bp-groot .rp2bp-in { grid-template-columns: 140px 1fr 76px; grid-template-rows: auto auto auto; gap: 16px 24px; padding: 26px; min-height: 0; }
.rp2bp-groot .rp2bp-hoes { grid-row: 1 / 3; width: 140px; height: 140px; border-radius: 18px; }
.rp2bp-groot .rp2bp-hoes-logo { font-size: 34px; }
.rp2bp-groot .rp2bp-info { grid-column: 2; grid-row: 1; }
.rp2bp-groot .rp2bp-titel { font-size: 28px; }
.rp2bp-groot .rp2bp-artiest { font-size: 16px; }
.rp2bp-groot .rp2bp-golf { grid-column: 2 / 4; grid-row: 2; height: 70px; }
.rp2bp-groot .rp2bp-play { grid-column: 3; grid-row: 1; width: 72px; height: 72px; justify-self: end; }
.rp2bp-groot .rp2bp-volume { grid-column: 1 / 3; grid-row: 3; }
.rp2bp-groot .rp2bp-extra { grid-column: 3; grid-row: 3; justify-self: end; }
.rp2bp-groot .rp2bp-linkvak { position: static; margin: 0 26px 22px; max-width: none; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1100px) {
	.rp2bp-in { grid-template-columns: 56px minmax(0, 1fr) 58px auto; gap: 14px; }
	.rp2bp-hoes { width: 56px; height: 56px; }
	.rp2bp-balk .rp2bp-golf { grid-column: 1 / -1; grid-row: 1; position: absolute; left: 0; right: 0; top: -26px; width: 100%; height: 24px; opacity: .9; z-index: 0; pointer-events: none; }
	.rp2bp-balk .rp2bp-play { grid-column: 3; }
	.rp2bp-balk .rp2bp-volume { grid-column: 4; }
	.rp2bp-balk .rp2bp-extra { display: none; }
}
@media (max-width: 640px) {
	.rp2bp-in { grid-template-columns: 48px minmax(0, 1fr) 52px; padding: 10px 12px; gap: 12px; min-height: 76px; }
	.rp2bp-hoes { width: 48px; height: 48px; border-radius: 10px; }
	.rp2bp-hoes-logo { font-size: 14px; }
	.rp2bp-play { width: 52px; height: 52px; }
	.rp2bp-balk .rp2bp-volume { display: none; }
	.rp2bp-titel { font-size: 15px; }
	body.rp2b-player-onder { padding-bottom: 80px !important; }
	.rp2bp-groot .rp2bp-in { grid-template-columns: 90px 1fr; }
	.rp2bp-groot .rp2bp-hoes { width: 90px; height: 90px; grid-row: 1; }
	.rp2bp-groot .rp2bp-play { grid-column: 2; grid-row: 2; justify-self: start; }
	.rp2bp-groot .rp2bp-golf { grid-column: 1 / 3; grid-row: 3; }
	.rp2bp-groot .rp2bp-volume { grid-column: 1 / 3; grid-row: 4; }
	.rp2bp-groot .rp2bp-extra { grid-column: 1 / 3; grid-row: 5; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
	.rp2bp *, .rp2bp { animation: none !important; }
}

/* ---------- Automatisch starten (geen play/stop) ---------- */
.rp2b-player-auto .rp2bp-play { cursor: default; pointer-events: none; }
.rp2b-player-auto .rp2bp:not(.is-wacht):not(.is-live):not(.is-laden) .rp2bp-icoon-play { display: none; }
.rp2b-player-auto .rp2bp:not(.is-wacht):not(.is-live):not(.is-laden) .rp2bp-icoon-laden { display: block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rp2bp-draai .8s linear infinite; }
.rp2bp-tik { display: none; }
.rp2bp.is-wacht .rp2bp-play { pointer-events: auto; cursor: pointer; width: auto; min-width: 58px; padding: 0 18px; border-radius: 30px; animation: rp2bp-gloed 1.6s ease-in-out infinite; }
.rp2bp.is-wacht .rp2bp-icoon-play { display: none; }
.rp2bp.is-wacht .rp2bp-tik { display: inline; font: 700 13px var(--rp2bp-body); white-space: nowrap; }
.rp2bp.is-wacht .rp2bp-in { cursor: pointer; }
.rp2bp-balk .rp2bp-in { grid-template-columns: 64px minmax(180px, 300px) 1fr auto auto auto; }
@media (max-width: 1100px) { .rp2bp-balk .rp2bp-in { grid-template-columns: 56px minmax(0, 1fr) auto auto; } }
@media (max-width: 640px) {
	.rp2bp-balk .rp2bp-in { grid-template-columns: 48px minmax(0, 1fr) auto; }
	.rp2bp.is-wacht .rp2bp-tik { font-size: 12px; }
	.rp2bp.is-wacht .rp2bp-play { padding: 0 12px; }
}
/* Met automatisch starten zijn de play-knoppen van het thema niet meer nodig. */
.rp2b-player-auto [data-rp-toggle], .rp2b-player-auto .rp-header-play-tekst { display: none !important; }
.rp2bp-tik-kort { display: none; }
@media (max-width: 640px) { .rp2bp-tik-lang { display: none; } .rp2bp-tik-kort { display: inline; } }
