/* Contest Voting – Design im Stil von kulturgarten-openair.de (KOA)
   Schwarze Seite, weiße Karten, Titel in Schreibmaschinenschrift, Pflanzen-Grün als Akzent.
   Alles über die Variablen unten anpassbar, z. B. im Customizer → Zusätzliches CSS:
   .cv-contest { --cv-accent: #b3202a; --cv-title-font: "Courier Prime", monospace; } */
.cv-contest {
	--cv-accent: #5f8a2e;          /* Grün der KOA-Pflanze */
	--cv-accent-hover: #74a838;
	--cv-ink: #111;                /* Text auf den weißen Karten */
	--cv-card: #fff;
	--cv-muted: #5c5c5c;
	--cv-title-font: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
	--cv-radius: 0px;
	--cv-img-radius: 6px;
	margin: 1.5em 0;
}
/* Raster richtet sich nach dem Inhaltsbereich, nicht nach dem Bildschirm.
   (Eigener Wrapper, damit der fixierte Player nicht eingesperrt wird.) */
.cv-stage { container-type: inline-size; container-name: cv; }
.cv-contest *, .cv-contest *::before, .cv-contest *::after { box-sizing: border-box; }
.cv-contest [hidden] { display: none !important; }
.cv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cv-contest .cv-ico { width: 1.25em; height: 1.25em; display: block; flex: none; position: static !important; inset: auto !important; transform: none; margin: 0; max-width: none; }

/* Kopfzeile – steht auf dem schwarzen Seitenhintergrund und übernimmt dessen Textfarbe */
.cv-head { display: flex; flex-wrap: wrap; justify-content: center; gap: .25em 1.5em; margin: 0 0 1.25em; text-align: center; }
.cv-head p { margin: 0; }
.cv-status:empty { display: none; }
.cv-status a { color: inherit; text-decoration: underline; }
.cv-total { opacity: .7; font-family: var(--cv-title-font); font-variant-numeric: tabular-nums; }

.cv-notice {
	padding: .9em 1.1em; margin: 0 auto 1.5em; max-width: 46em; text-align: center;
	border: 2px solid currentColor; border-radius: var(--cv-radius);
}
.cv-notice-success { border-color: var(--cv-accent-hover); }
.cv-notice-error { border-color: #d6343f; }

/* Raster */
.cv-grid {
	list-style: none; margin: 0 auto; padding: 0;
	display: grid; gap: 2rem;
	grid-template-columns: repeat(var(--cv-cols, 4), minmax(0, 1fr));
}
@container cv (max-width: 1000px) { .cv-grid { grid-template-columns: repeat(min(var(--cv-cols, 4), 3), minmax(0, 1fr)); } }
@container cv (max-width: 760px) { .cv-grid { grid-template-columns: repeat(min(var(--cv-cols, 4), 2), minmax(0, 1fr)); gap: 1.5rem; } }
@container cv (max-width: 520px) { .cv-grid { gap: 1rem; } }
@container cv (max-width: 300px) { .cv-grid { grid-template-columns: 1fr; } }

/* Karte – wie die Ticket-Kacheln: weiß, Bild mit schmalem Rand */
.cv-entry {
	margin: 0; display: flex; flex-direction: column;
	background: var(--cv-card); color: var(--cv-ink);
	border-radius: var(--cv-radius); padding: 6px;
	outline: 3px solid transparent; outline-offset: 0;
	transition: outline-color .2s;
}
.cv-entry-voted { outline-color: var(--cv-accent); }
.cv-media { position: relative; aspect-ratio: 1 / 1; background: #1a1a1a; border-radius: var(--cv-img-radius); overflow: hidden; }
.cv-media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; }
.cv-body { padding: 1.1em .6em .7em; display: flex; flex-direction: column; gap: .6em; flex: 1; text-align: center; }
.cv-contest .cv-title {
	margin: 0; color: var(--cv-ink); font-family: var(--cv-title-font); font-weight: 400; overflow-wrap: anywhere;
	font-size: 1.05em; line-height: 1.35; letter-spacing: .04em; text-transform: none;
}
.cv-excerpt { margin: 0; font-size: .88em; color: var(--cv-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-contest .cv-more { font-size: .85em; color: var(--cv-muted); text-decoration: underline; text-underline-offset: 3px; }
.cv-contest .cv-more:hover { color: var(--cv-ink); }
.cv-foot { margin-top: auto; padding-top: .4em; display: flex; flex-direction: column; gap: .8em; }

/* Ergebnis-Balken */
.cv-bar { height: 6px; background: #e6e6e6; overflow: hidden; }
.cv-bar span { display: block; height: 100%; width: 0; background: var(--cv-accent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.cv-figures {
	display: flex; justify-content: space-between; gap: .5em; margin-top: .4em;
	font-family: var(--cv-title-font); font-weight: 700; font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Buttons */
.cv-contest .cv-btn {
	appearance: none; cursor: pointer; width: 100%;
	font-family: inherit; font-weight: 800; font-size: .9em; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .08em;
	padding: .85em .8em; border: 2px solid #111; border-radius: var(--cv-radius);
	background: #111; color: #fff;
	transition: background-color .15s, border-color .15s, transform .05s;
}
.cv-contest .cv-btn:hover:not(:disabled) { background: var(--cv-accent); border-color: var(--cv-accent); }
.cv-contest .cv-btn:active:not(:disabled) { transform: translateY(1px); }
.cv-contest .cv-btn:focus-visible { outline: 3px solid var(--cv-accent-hover); outline-offset: 2px; }
.cv-contest .cv-btn:disabled { cursor: default; background: transparent; color: #8a8a8a; border-color: #d4d4d4; }
.cv-contest .cv-btn.cv-is-voted { background: var(--cv-accent); border-color: var(--cv-accent); color: #fff; }
.cv-contest .cv-btn.cv-is-pending { color: var(--cv-ink); border-color: var(--cv-ink); border-style: dashed; }
.cv-contest .cv-btn-ghost { background: transparent; color: #111; width: auto; }
.cv-contest .cv-btn-ghost:hover:not(:disabled) { color: #fff; }
.cv-busy .cv-submit { opacity: .6; cursor: progress; }

@container cv (max-width: 520px) {
	.cv-body { padding: .9em .25em .4em; gap: .5em; }
	.cv-contest .cv-title { font-size: 1em; letter-spacing: .02em; }
	.cv-excerpt { display: none; }      /* auf dem Handy bleibt's wie bei den Tickets schlank */
	.cv-links { gap: .3em; }
	.cv-contest .cv-link { width: 32px; height: 32px; }
	.cv-contest .cv-link .cv-ico { width: 16px; height: 16px; }
	.cv-contest .cv-play { width: 2.8em; height: 2.8em; right: .45em; bottom: .45em; }
	.cv-rank { font-size: .85em; }
	.cv-figures { font-size: .8em; }
	.cv-contest .cv-btn { font-size: .78em; padding: .8em .4em; letter-spacing: .05em; }
}

/* Abstimm-Dialog */
.cv-dialog {
	border: 0; border-radius: var(--cv-radius); padding: 0; width: min(440px, calc(100vw - 32px));
	background: var(--cv-card); color: var(--cv-ink); box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.cv-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.cv-form { padding: 1.6em; display: flex; flex-direction: column; gap: 1em; }
.cv-form p { margin: 0; color: var(--cv-ink); }
.cv-contest .cv-dialog-title {
	margin: 0; color: var(--cv-ink); font-size: 1.4em; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.cv-dialog-entry { font-family: var(--cv-title-font); }
.cv-field { display: flex; flex-direction: column; gap: .35em; font-weight: 700; color: var(--cv-ink); }
.cv-field input {
	font: inherit; font-weight: 400; padding: .75em .85em; width: 100%;
	color: var(--cv-ink); background: #fff; border: 2px solid #111; border-radius: var(--cv-radius);
}
.cv-field input:focus { outline: 3px solid var(--cv-accent); outline-offset: 1px; }
.cv-form .cv-hint { font-size: .85em; color: var(--cv-muted); }
.cv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cv-form .cv-dialog-error { color: #c0262f; font-size: .92em; font-weight: 600; }
.cv-actions { display: flex; gap: .6em; justify-content: flex-end; margin-top: .3em; flex-wrap: wrap; }
.cv-actions .cv-submit { width: auto; }

/* ===== Kopf: Countdown, Suche ===== */
.cv-countdown { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: .2em; margin-bottom: .4em; }
.cv-cd-label { font-size: .8em; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.cv-cd-time { font-family: var(--cv-title-font); font-weight: 700; font-size: clamp(1.6em, 6vw, 2.4em); line-height: 1.1; color: #fff; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: pre; }

.cv-contest .cv-toolbar {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 1.5em;
}
.cv-contest .cv-toolbar > * { margin: 0 !important; }
.cv-contest .cv-toolbar .cv-search,
.cv-contest .cv-toolbar .cv-genre select { box-sizing: border-box; height: 50px !important; min-height: 0; }
.cv-contest .cv-toolbar .cv-genre { display: block !important; position: static; flex: 0 1 210px; min-width: 150px; max-width: 260px; }
.cv-contest .cv-toolbar .cv-genre select { width: 100% !important; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 46px; }
.cv-contest .cv-toolbar .cv-search { flex: 1 1 220px; min-width: 0; max-width: 460px; }
.cv-contest .cv-toolbar .cv-count { flex: 0 0 auto; line-height: 50px; }
@container cv (max-width: 560px) {
	.cv-contest .cv-toolbar .cv-search { flex-basis: 100%; max-width: none; }
	.cv-contest .cv-toolbar .cv-genre { flex: 1 1 auto; max-width: none; }
}
/* Suchfeld: Rahmen sitzt am Label, Icon + Eingabe liegen als Flex-Elemente darin.
   Kein absolutes Positionieren mehr – das hatten manche Themes verschoben. */
.cv-contest .cv-search {
	flex: 1 1 260px; max-width: 420px; margin: 0 !important;
	display: flex !important; align-items: center; gap: .6em; position: static;
	padding: 0 .9em !important; border: 2px solid currentColor; border-radius: var(--cv-radius);
	cursor: text;
}
.cv-contest .cv-search .cv-ico {
	position: static !important; transform: none !important; margin: 0 !important;
	flex: none; width: 1.15em !important; height: 1.15em !important; opacity: .7; pointer-events: none;
}
.cv-contest .cv-search input {
	flex: 1; min-width: 0; width: auto !important; height: auto; margin: 0 !important;
	font: inherit; color: inherit; background: transparent !important; box-shadow: none !important;
	padding: .75em 0 !important; border: 0 !important; border-radius: 0; outline: none;
	-webkit-appearance: none; appearance: none;
}
.cv-contest .cv-search input::placeholder { color: inherit; opacity: .6; }
.cv-contest .cv-search:focus-within { outline: 3px solid var(--cv-accent); outline-offset: 1px; }
.cv-count { font-family: var(--cv-title-font); font-size: .9em; opacity: .75; white-space: nowrap; }
.cv-empty { text-align: center; padding: 2em 0; }

/* ===== Kachel-Extras ===== */
.cv-initials {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--cv-title-font); font-weight: 700; font-size: clamp(1.8em, 5vw, 3em); color: #f2f2f2; letter-spacing: .05em;
}
.cv-rank {
	position: absolute; left: .5em; top: .5em; z-index: 1;
	background: #111; color: #fff; font-family: var(--cv-title-font); font-weight: 700;
	padding: .3em .55em; line-height: 1; font-size: 1em;
}
.cv-top .cv-rank { background: var(--cv-accent); }
.cv-contest .cv-play {
	position: absolute; right: .6em; bottom: .6em; z-index: 1;
	width: 3.4em; height: 3.4em; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center; background: var(--cv-accent); color: #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,.45); transition: transform .12s, background-color .15s;
}
.cv-contest .cv-play:hover { transform: scale(1.07); background: var(--cv-accent-hover); }
.cv-contest .cv-play:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cv-contest .cv-play .cv-ico { width: 1.5em; height: 1.5em; margin-left: .12em; }
/* Equalizer, während die Band läuft */
.cv-is-playing .cv-play .cv-ico, .cv-is-playing .cv-link-audio .cv-ico { display: none; }
.cv-is-playing .cv-play::before, .cv-is-playing .cv-link-audio::before {
	content: ""; width: 1.1em; height: 1.1em;
	background: linear-gradient(currentColor, currentColor) 0 100% / 22% 60% no-repeat,
		linear-gradient(currentColor, currentColor) 50% 100% / 22% 100% no-repeat,
		linear-gradient(currentColor, currentColor) 100% 100% / 22% 40% no-repeat;
	animation: cv-eq .9s ease-in-out infinite alternate;
}
@keyframes cv-eq {
	50% { background-size: 22% 100%, 22% 35%, 22% 85%; }
	100% { background-size: 22% 45%, 22% 70%, 22% 100%; }
}
@media (prefers-reduced-motion: reduce) { .cv-is-playing .cv-play::before, .cv-is-playing .cv-link-audio::before { animation: none; } }
.cv-entry.cv-is-playing { outline-color: var(--cv-accent-hover); }

.cv-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4em; }
.cv-contest .cv-link {
	box-sizing: border-box; width: 36px; height: 36px; min-width: 0; min-height: 0; margin: 0; font-size: 16px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer;
	background: transparent; color: var(--cv-ink); border: 1.5px solid #d4d4d4; border-radius: var(--cv-radius);
	text-decoration: none; transition: border-color .15s, color .15s, background-color .15s;
}
.cv-contest .cv-link:hover { border-color: var(--cv-ink); }
.cv-contest .cv-link:focus-visible { outline: 3px solid var(--cv-accent); outline-offset: 1px; }
.cv-contest .cv-link .cv-ico { width: 18px; height: 18px; }
.cv-contest .cv-link-audio { border-color: var(--cv-accent); color: var(--cv-accent); }
.cv-contest .cv-link-sp:hover { border-color: #1db954; color: #1db954; }
.cv-contest .cv-link-yt:hover, .cv-contest .cv-link-yt-out:hover { border-color: #e62117; color: #e62117; }

/* Nach Ende: Rangliste */
.cv-is-ended .cv-top { outline-color: var(--cv-accent); }

/* ===== Medien-Dialog (YouTube / SoundCloud) ===== */
.cv-media-dialog { width: min(880px, calc(100vw - 24px)); }
.cv-md-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 1em .9em 1.3em; }
.cv-contest .cv-md-title { margin: 0; color: var(--cv-ink); font-family: var(--cv-title-font); font-weight: 700; font-size: 1.1em; }
.cv-contest .cv-md-close, .cv-contest .cv-pl-close {
	flex: none; width: 2.4em; height: 2.4em; display: grid; place-items: center; padding: 0; cursor: pointer;
	background: transparent; color: inherit; border: 0;
}
.cv-md-frame { position: relative; background: #000; color: #eee; }
.cv-md-yt { aspect-ratio: 16 / 9; }
.cv-md-sc { height: min(380px, 60vh); }
.cv-md-sp { height: min(380px, 62vh); background: #121212; }
.cv-md-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cv-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; padding: 1.5em; text-align: center; }
.cv-consent p { margin: 0; max-width: 34em; font-size: .92em; line-height: 1.5; color: #ddd; }
.cv-consent a { color: #fff; text-decoration: underline; }
.cv-contest .cv-consent .cv-btn { width: auto; background: var(--cv-accent); border-color: var(--cv-accent); padding-inline: 1.6em; }
.cv-consent .cv-remember { margin: 0; font-size: .8em; color: #999; }
.cv-loaded .cv-consent { display: none; }
.cv-md-foot { padding: .9em 1em; display: flex; justify-content: flex-end; }
.cv-md-foot .cv-btn { width: auto; }
@media (max-width: 600px) { .cv-md-sc { height: 300px; } }

/* ===== Mitlaufender Player ===== */
.cv-dock {
	position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99990;
	width: min(720px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.cv-dock > * { pointer-events: auto; }
.cv-player {
	display: flex; align-items: center; gap: .7em; padding: .55em .6em .55em .55em;
	background: #111; color: #fff; border: 2px solid var(--cv-accent); box-shadow: 0 10px 40px rgba(0,0,0,.6);
	font-size: 15px;
}
html.cv-dock-open body { padding-bottom: 160px; }
.cv-contest .cv-pl-toggle {
	flex: none; width: 2.8em; height: 2.8em; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
	display: grid; place-items: center; background: var(--cv-accent); color: #fff;
}
.cv-pl-ico { width: 0; height: 0; border-style: solid; border-width: .55em 0 .55em .9em; border-color: transparent transparent transparent currentColor; margin-left: .2em; }
.cv-is-playing .cv-pl-ico { width: .85em; height: 1em; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.cv-pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.cv-pl-title { font-family: var(--cv-title-font); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-pl-seek { width: 100%; margin: 0; accent-color: var(--cv-accent); height: 1.2em; }
.cv-pl-time { flex: none; font-family: var(--cv-title-font); font-size: .82em; opacity: .75; font-variant-numeric: tabular-nums; }
.cv-contest .cv-pl-pick { flex: none; width: auto; padding: .7em .9em; font-size: .78em; background: #fff; color: #111; border-color: #fff; }
.cv-contest .cv-pl-pick:hover:not(:disabled) { background: var(--cv-accent); border-color: var(--cv-accent); color: #fff; }
.cv-contest .cv-pl-pick.cv-is-picked { background: var(--cv-accent); border-color: var(--cv-accent); color: #fff; }
.cv-contest .cv-pl-pick:disabled { background: transparent; color: #888; border-color: #444; }
@media (max-width: 520px) {
	.cv-pl-time { display: none; }
	.cv-player { gap: .5em; }
}

.cv-contest .cv-title a { color: inherit; text-decoration: none; background: none; box-shadow: none; }
.cv-contest .cv-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Genre · Ort ===== */
.cv-contest .cv-meta { margin: -.2em 0 0; font-size: .85em; line-height: 1.35; color: var(--cv-muted); }
.cv-contest .cv-genre select {
	width: 100%; font: inherit; color: inherit; background: transparent; cursor: pointer;
	padding: .75em 2.2em .75em 1em; border: 2px solid currentColor; border-radius: var(--cv-radius);
	-webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.15em) 52%, calc(100% - .8em) 52%; background-size: .35em .35em; background-repeat: no-repeat;
}
.cv-contest .cv-genre select option { color: #111; background: #fff; }
.cv-contest .cv-genre select:focus { outline: 3px solid var(--cv-accent); outline-offset: 1px; }

/* ===== Auswahl ===== */
.cv-contest .cv-pick.cv-is-picked { background: var(--cv-accent); border-color: var(--cv-accent); color: #fff; }
.cv-contest .cv-pick.cv-is-picked:hover { background: var(--cv-accent-hover); border-color: var(--cv-accent-hover); }
.cv-entry.cv-is-picked, .cv-entry.cv-entry-voted { outline-color: var(--cv-accent); }
.cv-check {
	position: absolute; right: .5em; top: .5em; z-index: 1; display: none;
	width: 2em; height: 2em; border-radius: 50%; place-items: center;
	background: var(--cv-accent); color: #fff; font-weight: 800; font-size: 1em; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.cv-is-picked .cv-check, .cv-entry-voted .cv-check { display: grid; }
.cv-is-ended .cv-check { display: none; }

/* ===== Stimmzettel-Leiste ===== */
.cv-ballot {
	display: flex; align-items: center; gap: .8em; padding: .6em .6em .6em 1em;
	background: #fff; color: #111; border: 2px solid var(--cv-accent); box-shadow: 0 10px 40px rgba(0,0,0,.6);
	font-size: 15px;
}
.cv-ballot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35em; }
.cv-ballot-count { font-family: var(--cv-title-font); font-weight: 700; }
.cv-ballot-dots { display: flex; gap: 5px; }
.cv-ballot-dots i { width: 22px; height: 6px; background: #ddd; }
.cv-ballot-dots i.on { background: var(--cv-accent); }
.cv-contest .cv-ballot-open { width: auto; flex: none; background: var(--cv-accent); border-color: var(--cv-accent); }
.cv-contest .cv-ballot-open:hover { background: var(--cv-accent-hover); border-color: var(--cv-accent-hover); }
@media (max-width: 420px) {
	.cv-contest .cv-ballot-open { padding: .8em .6em; font-size: .78em; }
	.cv-ballot-dots i { width: 16px; }
}

/* Stimmzettel im Dialog */
.cv-ballot-list { margin: 0; padding: 0; list-style: none; counter-reset: cv; display: flex; flex-direction: column; }
.cv-ballot-list li {
	counter-increment: cv; display: flex; align-items: baseline; gap: .7em;
	padding: .55em 0; border-bottom: 1px solid #e5e5e5;
}
.cv-ballot-list li::before { content: counter(cv) "."; font-family: var(--cv-title-font); font-weight: 700; min-width: 1.4em; }
.cv-ballot-list li > span { flex: 1; min-width: 0; font-family: var(--cv-title-font); font-weight: 700; overflow-wrap: anywhere; }
.cv-contest .cv-ballot-rm {
	flex: none; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: .85em; color: #8a1c24; text-decoration: underline; text-underline-offset: 3px;
}
.cv-contest .cv-vote-dialog .cv-submit { background: var(--cv-accent); border-color: var(--cv-accent); }
.cv-contest .cv-vote-dialog .cv-submit:hover:not(:disabled) { background: var(--cv-accent-hover); border-color: var(--cv-accent-hover); }
@media (max-width: 520px) {
	.cv-vote-dialog .cv-actions { flex-direction: column-reverse; }
	.cv-contest .cv-vote-dialog .cv-actions .cv-btn { width: 100%; }
}
.cv-genre { flex: 1 1 200px; max-width: 420px; }
.cv-form .cv-ballot-hint { font-size: .88em; color: var(--cv-muted); }
.cv-contest .cv-md-pick.cv-is-picked { background: var(--cv-accent); border-color: var(--cv-accent); }

/* ===== Listenansicht (ohne Bilder): gleichmäßige, zentrierte Karten ===== */
.cv-contest .cv-list {
	display: grid; gap: 12px; grid-template-columns: 1fr; max-width: none; align-items: stretch;
}
@container cv (min-width: 620px)  { .cv-contest .cv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container cv (min-width: 1100px) { .cv-contest .cv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cv-contest .cv-row {
	display: block; padding: 0; margin: 0; outline: none !important;
	background: none; border: 0; border-radius: var(--cv-radius);
}
.cv-contest .cv-row-in {
	height: 100%; display: flex; flex-direction: column; align-items: center; gap: .3em;
	padding: 1.1em 1.1em 1em; text-align: center;
	background: var(--cv-card); color: var(--cv-ink); border-radius: var(--cv-radius);
	box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s, background-color .15s;
}
.cv-contest .cv-row .cv-rank { position: static; align-self: center; margin-bottom: .2em; padding: .3em .55em; font-size: .85em; }
.cv-contest .cv-row-main { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .25em; }
.cv-contest .cv-row .cv-title {
	margin: 0; text-align: center; font-size: 1.05em; line-height: 1.3; letter-spacing: .03em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cv-contest .cv-row .cv-meta { margin: 0; text-align: center; font-size: .84em; line-height: 1.35; }
.cv-contest .cv-row .cv-result { width: 100%; margin-top: .45em; }
.cv-contest .cv-row-foot {
	margin-top: auto; padding-top: .8em; width: 100%;
	display: flex; align-items: center; justify-content: center; gap: .6em; flex-wrap: wrap;
}
.cv-contest .cv-row-foot .cv-links { flex-wrap: nowrap; justify-content: center; gap: .4em; }
.cv-contest .cv-row-foot .cv-link { width: 38px; height: 38px; }
.cv-contest .cv-row-foot .cv-pick { width: auto; min-width: 10.5em; height: 38px; padding: 0 1.1em; font-size: .8em; line-height: 1; }

/* Ausgewählt / abgestimmt: grüner Rahmen rundum */
.cv-contest .cv-row.cv-is-picked .cv-row-in,
.cv-contest .cv-row.cv-entry-voted .cv-row-in { box-shadow: inset 0 0 0 3px var(--cv-accent); background: #f1f6ea; }
.cv-contest .cv-row.cv-is-playing .cv-row-in { box-shadow: inset 0 0 0 3px var(--cv-accent-hover); }
.cv-contest .cv-row.cv-top .cv-row-in { box-shadow: inset 0 0 0 3px var(--cv-accent); }
.cv-is-ended .cv-row .cv-pick { display: none; }
.cv-is-ended .cv-row-foot { padding-top: .6em; }

/* Ab 2 Spalten: jede Karte gleich aufgebaut – Knöpfe mittig, darunter „Auswählen“ in voller Breite */
@container cv (min-width: 620px) {
	.cv-contest .cv-row-foot { flex-direction: column; gap: .7em; }
	.cv-contest .cv-row-foot .cv-pick { width: 100%; min-width: 0; }
	.cv-contest .cv-row-foot:not(:has(.cv-links)) { padding-top: 1.2em; }
}
@container cv (max-width: 400px) {
	.cv-contest .cv-row-in { padding: 1em .8em .9em; }
	.cv-contest .cv-row-foot .cv-pick { flex: 1 1 10em; }
}

.cv-embed-notice { margin: -.6em auto 1.2em; max-width: 52em; text-align: center; font-size: .8em; opacity: .7; line-height: 1.5; }
.cv-embed-notice a { color: inherit; text-decoration: underline; }
