/* ==========================================================================
   Radio Unique Top 200 – stemformulier
   Huisstijl radiounique.nl: zwarte achtergrond, witte brede koppen in
   hoofdletters, rode blokknoppen en felrode accenten.
   Lettertypen worden overgenomen van het thema (font-family: inherit).

   Indeling:
   - Laptop/desktop: links de keuzelijst in een eigen scrollvak, rechts een
     meelopend paneel met teller, jouw keuze, gegevens en de knop Inzenden.
   - Smartphone: lijst in een compact scrollvak, paneel eronder en een vaste
     balk onderin met de teller en een knop naar Inzenden.
   ========================================================================== */

.ru-top100 {
	--ru-bg: #000;
	--ru-panel: #111;
	--ru-panel-2: #1b1b1b;
	--ru-line: #2c2c2c;
	--ru-text: #fff;
	--ru-muted: #b9b9b9;
	--ru-red: #df4343;       /* knoppen */
	--ru-red-dark: #c23434;
	--ru-accent: #ff1f1f;    /* koppen en accenten ("NU", "ON AIR") */
	--ru-ok: #25d366;

	background: var(--ru-bg);
	color: var(--ru-text);
	padding: clamp(16px, 3vw, 40px);
	border-radius: 6px;
	font-family: inherit;
	line-height: 1.45;
	max-width: 1240px;
	margin: 0 auto;
	box-sizing: border-box;
}
.ru-top100 *,
.ru-top100 *::before,
.ru-top100 *::after { box-sizing: border-box; }

.ru-top100__title {
	color: var(--ru-text);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 800;
	font-size: clamp(24px, 3.8vw, 44px);
	line-height: 1.1;
	text-align: center;
	margin: 0 0 12px;
}
.ru-top100__intro { text-align: center; font-size: clamp(15px, 1.4vw, 18px); margin: 0 auto 6px; max-width: 760px; }
.ru-top100__intro p { margin: 0 0 4px; color: var(--ru-text); }
.ru-top100__deadline { text-align: center; color: var(--ru-muted); margin: 0 0 8px; }
.ru-top100__deadline strong { color: var(--ru-accent); }

/* Twee kolommen ----------------------------------------------------------- */
.ru-top100__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; align-items: start; }
.ru-top100__picker, .ru-top100__panel { min-width: 0; }
@media (min-width: 900px) {
	.ru-top100__layout { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
	.ru-top100__panel { position: sticky; top: 24px; }
	.admin-bar .ru-top100__panel { top: 56px; }
	/* Keuzelijst in het paneel krimpt mee zodat de knop Inzenden altijd in beeld blijft. */
	.ru-top100__chips { max-height: clamp(96px, calc(100vh - 590px), 260px); }
}

.ru-top100__step-title {
	display: flex; align-items: center; gap: 10px;
	color: var(--ru-accent);
	text-transform: uppercase;
	font-weight: 800;
	font-size: clamp(17px, 1.8vw, 22px);
	margin: 0 0 12px;
	letter-spacing: .03em;
}
.ru-top100__step-title span {
	display: inline-grid; place-items: center;
	width: 1.6em; height: 1.6em; flex: 0 0 1.6em;
	background: var(--ru-red); color: #fff; border-radius: 50%;
	font-size: .8em;
}

/* Zoekveld en weergaveknoppen --------------------------------------------- */
.ru-top100__toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ru-top100__search {
	flex: 1 1 200px; min-width: 0;
	background: var(--ru-panel-2); color: var(--ru-text);
	border: 2px solid var(--ru-line); border-radius: 0;
	padding: 10px 12px; font: inherit; font-size: 16px;
}
.ru-top100__search:focus { outline: none; border-color: var(--ru-red); }
.ru-top100__views { display: flex; }
.ru-top100__view {
	background: var(--ru-panel-2); color: var(--ru-muted);
	border: 2px solid var(--ru-line); border-radius: 0;
	padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 700;
	text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.ru-top100__view + .ru-top100__view { border-left: 0; }
.ru-top100__view span { font-weight: 400; }
.ru-top100__view.is-active { background: var(--ru-red); border-color: var(--ru-red); color: #fff; }

/* Letterfilter ------------------------------------------------------------- */
.ru-top100__letters {
	display: flex; flex-wrap: wrap; gap: 4px;
	margin-bottom: 10px;
}
.ru-top100__letter {
	min-width: 30px; height: 30px; padding: 0 6px;
	background: transparent; color: #fff;
	border: 1px solid var(--ru-line); border-radius: 0;
	font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ru-top100__letter:hover:not(:disabled) { border-color: var(--ru-red); }
.ru-top100__letter.is-active { background: var(--ru-red); border-color: var(--ru-red); }
.ru-top100__letter:disabled { color: #444; border-color: #1a1a1a; cursor: default; }

/* Scrollvak met de lijst ---------------------------------------------------- */
.ru-top100__scroll {
	max-height: clamp(320px, 62vh, 640px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 2px solid var(--ru-line);
	background: var(--ru-panel);
	padding: 6px;
	scrollbar-color: var(--ru-red) var(--ru-panel);
}
.ru-top100__scroll:focus { outline: none; }
.ru-top100__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 4px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.ru-top100__song { margin: 0; position: relative; }
.ru-top100__song[hidden] { display: none; }
.ru-top100__song input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ru-top100__song label {
	display: flex; align-items: center; gap: 10px;
	height: 100%;
	background: var(--ru-panel-2);
	border: 1px solid transparent;
	padding: 7px 10px;
	cursor: pointer;
	transition: border-color .12s, background .12s;
}
.ru-top100__song label:hover { border-color: var(--ru-red); }
.ru-top100__song input:focus-visible + label { outline: 2px solid #fff; outline-offset: -2px; }
.ru-top100__check {
	flex: 0 0 20px; height: 20px;
	border: 2px solid var(--ru-muted);
	display: grid; place-items: center;
	font-size: 13px; font-weight: 900;
}
.ru-top100__song input:checked + label { background: var(--ru-red); }
.ru-top100__song input:checked + label .ru-top100__check { border-color: #fff; background: #fff; }
.ru-top100__song input:checked + label .ru-top100__check::before { content: "✓"; color: var(--ru-red); }
.ru-top100__song input:checked + label .ru-top100__artist { color: #fff; }
.ru-top100__song input:disabled + label { opacity: .35; cursor: not-allowed; }
.ru-top100__song input:disabled + label:hover { border-color: transparent; }

.ru-top100__meta { display: flex; flex-direction: column; min-width: 0; }
.ru-top100__song-title { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.25; overflow-wrap: anywhere; }
.ru-top100__artist { color: var(--ru-muted); font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.ru-top100__nores { color: var(--ru-muted); text-align: center; margin: 24px 0; }

/* Paneel rechts -------------------------------------------------------------- */
.ru-top100__panel {
	background: var(--ru-panel);
	border: 2px solid var(--ru-line);
	border-top: 6px solid var(--ru-red);
	padding: 16px 18px 18px;
}
.ru-top100__progress { margin-bottom: 10px; }
.ru-top100__counter { font-size: 40px; font-weight: 800; line-height: 1; }
.ru-top100__counter small { font-size: 18px; color: var(--ru-muted); font-weight: 700; }
.ru-top100__bar-track { position: relative; height: 10px; background: var(--ru-panel-2); margin: 10px 0 8px; }
.ru-top100__bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--ru-red); transition: width .2s; }
.ru-top100__bar-min { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.ru-top100.is-valid .ru-top100__bar-fill { background: var(--ru-ok); }
.ru-top100__status { margin: 0; font-size: 14px; color: var(--ru-muted); }
.ru-top100.is-valid .ru-top100__status { color: var(--ru-ok); }

.ru-top100__chips {
	list-style: none; margin: 0 0 16px; padding: 0;
	max-height: 210px; overflow-y: auto;
	counter-reset: ru-chip;
}
.ru-top100__chips:empty { display: none; }
.ru-top100__chips li {
	display: flex; align-items: center; gap: 8px;
	border-bottom: 1px solid var(--ru-line);
	padding: 5px 0; margin: 0; font-size: 14px;
	counter-increment: ru-chip;
}
.ru-top100__chips li::before { content: counter(ru-chip) "."; color: var(--ru-accent); font-weight: 700; min-width: 22px; }
.ru-top100__chips li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ru-top100__chip-del {
	background: transparent; border: 0; color: var(--ru-muted);
	font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.ru-top100__chip-del:hover, .ru-top100__chip-del:focus-visible { color: var(--ru-accent); outline: none; }

.ru-top100__fields p { margin: 0 0 10px; }
.ru-top100__fields label { display: block; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.ru-top100__fields abbr { color: var(--ru-accent); text-decoration: none; border: 0; }
.ru-top100__fields input {
	width: 100%;
	background: #fff; color: #000;
	border: 2px solid #fff; border-radius: 0;
	padding: 10px 12px; font: inherit; font-size: 16px;
}
.ru-top100__fields input:focus { outline: none; border-color: var(--ru-red); box-shadow: 0 0 0 3px rgba(223,67,67,.45); }
.ru-top100__privacy { margin: 4px 0 14px; color: var(--ru-muted); font-size: 13px; }
.ru-top100__privacy label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ru-top100__privacy input { margin-top: 2px; accent-color: var(--ru-red); width: 18px; height: 18px; flex: 0 0 18px; }

/* Inzendknop – zelfde blokstijl als de knoppen op radiounique.nl ----------- */
.ru-top100__submit {
	display: block; width: 100%;
	background: var(--ru-red); color: #fff;
	border: 0; border-radius: 0;
	padding: 16px 20px;
	font: inherit; font-size: 17px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
	cursor: pointer;
	transition: background .15s;
}
.ru-top100__submit:hover:not(:disabled), .ru-top100__submit:focus-visible { background: var(--ru-red-dark); outline: none; }
.ru-top100__submit:disabled { background: #444; color: #999; cursor: not-allowed; }
.ru-top100__hint { color: var(--ru-muted); margin: 8px 0 0; font-size: 13px; text-align: center; }

/* Vaste balk onderin (alleen smartphone, alleen met JavaScript) ------------ */
.ru-top100__mbar { display: none; }
@media (max-width: 899px) {
	.ru-js .ru-top100__mbar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		background: #000; border-top: 3px solid var(--ru-red);
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		color: #fff; font-size: 15px;
		transition: transform .2s;
	}
	.ru-js .ru-top100__mbar.is-hidden { transform: translateY(110%); }
	.ru-top100__mbar b { font-size: 20px; }
	.ru-top100__mbar-btn {
		background: var(--ru-red); color: #fff !important; text-decoration: none !important;
		padding: 10px 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	}
	.ru-js .ru-top100__form { padding-bottom: 64px; }
	.ru-top100__scroll { max-height: 56vh; }
	.ru-top100__letters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
	.ru-top100__letter { flex: 0 0 auto; height: 34px; min-width: 34px; }
	.ru-top100__list { grid-template-columns: 1fr; }
}

/* Meldingen ------------------------------------------------------------------ */
.ru-top100__notice {
	background: var(--ru-panel); border-left: 6px solid var(--ru-red);
	padding: 16px 20px; margin: 12px auto 16px; max-width: 760px; font-size: 17px;
}
.ru-top100__notice p { margin: 6px 0 0; }
.ru-top100__notice ul { margin: 0; padding-left: 20px; }
.ru-top100__notice--ok { border-left-color: var(--ru-ok); text-align: center; }
.ru-top100__notice--ok strong { color: var(--ru-ok); text-transform: uppercase; font-size: 1.4em; letter-spacing: .05em; }
.ru-top100__notice--error { border-left-color: var(--ru-accent); }
.ru-top100__notice--error li { color: #fff; }

/* Toegankelijkheid / anti-spam ------------------------------------------------ */
.ru-top100__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ru-top100 .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 600px) { .ru-top100 { border-radius: 0; } }
