/* Listener Picks public views, matching SPR's gold, red and black palette. */
.lp-public { padding-block:clamp(2rem,5vw,5rem); }
.lp-public .lp-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-bottom:1.5rem; }
.lp-public .lp-heading h1 { overflow-wrap:anywhere; }
.lp-intro { font-size:1.2rem; max-width:75ch; }
.lp-notice { border-left:3px solid #dcb45d; background:#171615; padding:1rem; margin-bottom:1.5rem; }
.lp-pool-grid,.lp-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; margin-top:1.5rem; }
.lp-panel { padding:clamp(1rem,2.5vw,2rem); background:#171615; border-top:2px solid #dcb45d; min-width:0; }
.lp-panel h2 { margin-bottom:1rem; }
.lp-cover-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; margin:1rem 0; }
.lp-cover-grid img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; border:1px solid #665438; }
.lp-cover-grid small { display:block; margin-top:.3rem; font-size:.8rem; overflow-wrap:anywhere; }
.lp-actions { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.lp-pool-nav { margin:1rem 0; }
.lp-actions [aria-current] { color:#111; background:#dcb45d; border-color:#dcb45d; }
.lp-status { color:#dcb45d; margin:1rem 0; }
.lp-album-info { min-width:0; }
.lp-album-info strong,.lp-album-info span,.lp-album-info small { display:block; }
.lp-album-info small { color:#dcb45d; }
.lp-winner { color:#dcb45d; }
.lp-versus { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:.75rem; align-items:start; }
.lp-vs { align-self:center; color:#dcb45d; }
.lp-detailed-match .lp-participant { display:flex; flex-direction:column; align-items:stretch; border:0; padding:0; }
.lp-detailed-match .lp-participant img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border:1px solid #665438; }
.lp-detailed-match .lp-album-info strong { font-size:1.15rem; margin:.25rem 0; }
.lp-detailed-match .lp-actions .button { padding:.55rem .65rem; min-height:0; font-size:.7rem; }
.lp-metadata { color:#ccc; margin:.5rem 0; font-size:.85rem; }
.lp-round-status { margin:1.25rem 0; }
/* Share four equal-height match rows so each feeder pair has an exact midpoint.
   Headings occupy their own common row, independently of the matchup positions. */
.lp-bracket {
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	grid-template-rows:auto repeat(4,1fr);
	column-gap:1rem;
	row-gap:.75rem;
}
.lp-round { display:contents; }
.lp-round h3 { color:#dcb45d; grid-row:1; align-self:start; margin:0; }
.lp-round:nth-child(1) > * { grid-column:1; }
.lp-round:nth-child(2) > * { grid-column:2; }
.lp-round:nth-child(3) > * { grid-column:3; }
.lp-round:nth-child(1) > .lp-match:nth-child(2) { grid-row:2; }
.lp-round:nth-child(1) > .lp-match:nth-child(3) { grid-row:3; }
.lp-round:nth-child(1) > .lp-match:nth-child(4) { grid-row:4; }
.lp-round:nth-child(1) > .lp-match:nth-child(5) { grid-row:5; }
.lp-round:nth-child(2) > .lp-match:nth-child(2) { grid-row:2 / span 2; }
.lp-round:nth-child(2) > .lp-match:nth-child(3) { grid-row:4 / span 2; }
.lp-round:nth-child(3) > .lp-match:nth-child(2) { grid-row:2 / span 4; }
.lp-round > .lp-match { align-self:center; min-width:0; }
.lp-match { border:1px solid #665438; padding:.65rem; background:#101010; }
.lp-participant { display:flex; align-items:center; gap:.6rem; padding:.5rem 0; overflow-wrap:anywhere; border-bottom:1px solid #333; min-height:3rem; }
.lp-participant:last-child { border-bottom:0; }
.lp-participant img { width:54px; height:54px; object-fit:cover; flex:none; }
.lp-placeholder { color:#aaa; }

@media(max-width:950px) { .lp-detail-grid { grid-template-columns:1fr; } }
@media(max-width:760px) {
	.lp-pool-grid,.lp-bracket { grid-template-columns:1fr; grid-template-rows:none; }
	.lp-round { display:flex; flex-direction:column; gap:.75rem; min-width:0; }
	.lp-round > .lp-match { align-self:stretch; }
	.lp-cover-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:360px) { .lp-cover-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Match navigation remains two compact rows on narrow screens. */
.lp-mobile-nav-label,.lp-nav-short { display:none; }
.lp-deadlines { margin:1.5rem 0; }
.lp-deadline-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.lp-deadline-grid strong,.lp-deadline-grid span { display:block; }
.lp-deadline-grid span,.lp-bracket-deadline { color:#dcb45d; }
.lp-bracket-deadline { display:block; font:400 .85rem/1.4 Arial,sans-serif; margin-top:.4rem; }
@media(max-width:760px) {
	.lp-pool-selector,.lp-round-selector { display:flex; flex-wrap:nowrap; gap:.35rem; margin:.6rem 0; }
	.lp-pool-selector .button,.lp-round-selector .button { flex:1 1 0; min-width:0; padding:.4rem .25rem; min-height:40px; font-size:.75rem; letter-spacing:.04em; white-space:nowrap; }
	.lp-mobile-nav-label { display:block; flex:none; font-size:.8rem; font-weight:800; color:#dcb45d; margin-right:.25rem; }
	.lp-nav-long { display:none; }
	.lp-nav-short { display:inline; }
	.lp-deadline-grid { grid-template-columns:1fr; }
}

/* Ballot selections stay accessible with native radio inputs and visible labels. */
.lp-option { min-width:0; }
.lp-choice,.lp-abstain { display:flex; align-items:center; gap:.5rem; cursor:pointer; margin-top:1rem; }
.lp-choice { padding:.6rem; border:1px solid #dcb45d; font-size:.75rem; font-weight:bold; }
.lp-choice:has(input:checked) { background:#dcb45d; color:#101010; }
.lp-choice input,.lp-abstain input { accent-color:#c90024; width:18px; height:18px; flex:none; }
.lp-selected { color:#dcb45d; font-weight:bold; margin-top:1rem; }
.lp-ballot-save { margin-top:1.5rem; }
.lp-ballot-save label { display:block; font-weight:bold; margin-bottom:1rem; }
.lp-ballot-save input[type=email] { display:block; width:100%; max-width:32rem; padding:.75rem; margin-top:.5rem; border:1px solid #dcb45d; background:#101010; color:#fff; }
.lp-ballot-error { border-color:#c90024; }


/* Center the abstention control beneath the two album choices. */
.lp-abstain {
	justify-content:center;
	width:fit-content;
	max-width:100%;
	margin:1rem auto 0;
	padding:.6rem 1rem;
	border:1px solid #dcb45d;
}
.lp-abstain:has(input:checked) { background:#dcb45d; color:#101010; }

/* Make the primary ballot save action prominent without changing other buttons. */
.lp-ballot-save button[name="action"][value="save"] {
	display:flex;
	width:360px;
	max-width:100%;
	min-height:48px;
	margin-inline:auto;
}


/* Native radios remain keyboard accessible; album artwork is the visible control. */
.lp-vote-instruction strong { display:block; font-size:clamp(1.15rem,3vw,1.65rem); color:#dcb45d; font-weight:800; }
.lp-vote-instruction p { margin:.35rem 0 0; }
.lp-cover-choice { display:block; position:relative; cursor:pointer; outline:3px solid transparent; outline-offset:2px; transition:outline-color 200ms ease; }
.lp-cover-radio { position:absolute; width:1px; height:1px; opacity:0; margin:0; inset:0; }
.lp-cover-choice img,.lp-cover-fallback { transition:filter 350ms ease,opacity 350ms ease; }
.lp-cover-fallback { display:grid; align-items:center; text-align:center; aspect-ratio:1; padding:.5rem; background:#101010; border:1px solid #665438; overflow-wrap:anywhere; }
.lp-cover-choice:has(input:checked) { outline-color:#dcb45d; }
.lp-cover-choice:has(input:focus-visible) { outline-color:#fff; outline-style:dashed; }
.lp-detailed-match:has(input:checked) .lp-cover-choice:not(:has(input:checked)) img,
.lp-detailed-match:has(input:checked) .lp-cover-choice:not(:has(input:checked)) .lp-cover-fallback { filter:grayscale(1); opacity:.65; }
.lp-detailed-match[data-lp-match] { scroll-margin-top:120px; }
.lp-detailed-match.lp-missing { outline:2px solid #e60026; }
.lp-match-error { margin-top:1rem; color:#ff7777; font-weight:bold; }
.lp-match-error[hidden] { display:none; }
@media(prefers-reduced-motion:reduce) { .lp-cover-choice,.lp-cover-choice img,.lp-cover-fallback { transition:none; } }

/* Guided pool voting: all radios remain in one form, only the current pool is visible. */
.lp-guided-pool[hidden],.lp-step-button[hidden] { display:none !important; }
.lp-guided-heading { margin-bottom:1.5rem; }
.lp-guided-pool { scroll-margin-top:120px; margin:1.5rem 0; }
.lp-pool-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:.5rem; }
.lp-pool-heading span { color:#dcb45d; font-size:.9rem; }
.lp-pool-heading h2:focus { outline:none; }
.lp-guided-actions,.lp-confirmation { display:flex; flex-direction:column; align-items:center; gap:1rem; text-align:center; margin-top:1.5rem; }
.lp-primary-wide { display:flex; width:360px; max-width:100%; margin-inline:auto; min-height:48px; }
.lp-confirmation form { width:100%; max-width:32rem; }
.lp-confirmation label { display:block; margin-bottom:1rem; text-align:left; }
.lp-confirmation input[type=email] { display:block; width:100%; margin-top:.5rem; padding:.75rem; background:#101010; border:1px solid #dcb45d; color:#fff; }
.lp-bracket-link { margin-top:1.5rem; }
.lp-bracket-pool { margin-bottom:1.5rem; }
.lp-bracket { position:relative; }
.lp-bracket-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.lp-bracket-lines path { fill:none; stroke:#806b40; stroke-width:1.5; }
.lp-match-current { border-color:#dcb45d; }
.lp-match-future { color:#aaa; }
.lp-match-completed { border-color:#42794e; }
.lp-published-score { color:#dcb45d; font-size:.85rem; }
@media(max-width:760px) { .lp-bracket-lines { display:none; } }

.lp-match-awaiting { border-color:#806b40; }
.lp-pool-round { color:#dcb45d; font-size:.85rem; margin:.35rem 0 0; }

/* A registered personal pick is distinct from the published match winner. */
.lp-bracket .lp-registered-tick {
	color:#61bc79;
	width:1.5rem;
	height:1.5rem;
	flex:none;
	margin-inline-start:auto;
	align-self:center;
}
.lp-bracket .lp-album-info { flex:1; }

/* Keep previous and forward actions in one centered row, even on phones. */
.lp-guided-actions {
	flex-direction:row;
	justify-content:center;
	gap:clamp(.4rem,2vw,1rem);
}
.lp-guided-actions .lp-primary-wide {
	margin-inline:0;
	flex:0 1 360px;
	min-width:0;
}
.lp-guided-actions [data-lp-prev] { flex:0 1 auto; min-width:0; }
@media(max-width:760px) {
	.lp-guided-actions .button {
		padding-inline:clamp(.35rem,2vw,.75rem);
		font-size:.75rem;
		letter-spacing:.03em;
		white-space:normal;
		min-height:48px;
	}
	.lp-guided-actions [data-lp-prev] { flex:0 0 44%; }
	.lp-guided-actions:has([data-lp-prev]) .lp-primary-wide { flex:1 1 0; width:auto; }
}
