/* Stemfunctie -- kleuren van de Hitlijst-huisstijl (petrol/marigold, zelfde
   palet als muziektop10.nl), los van welk thema er verder actief is. */

.ffun-uitleg {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 14px;
	color: #A9C4C0;
	margin: 24px 0 16px;
}

.ffun-lijst {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 32px;
}

.ffun-item {
	display: grid;
	grid-template-columns: 48px 1fr 140px;
	gap: 16px;
	align-items: start;
	padding: 16px;
	background: #16393B;
	border: 1px solid #2D5053;
}

.ffun-item-rang {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: #E8A33B;
	line-height: 1.2;
}

.ffun-item-titel {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #F3EFE2 !important;
	margin: 0 0 8px;
}

/* Video, tekst en reacties zijn losse grid-kinderen van .ffun-item (niet
 * genest in .ffun-item-inhoud) zodat ze de volle kaartbreedte gebruiken. */
.ffun-item-video,
.ffun-item-tekst,
.ffun-reacties {
	grid-column: 1 / -1;
}

.ffun-item-video {
	/* Breekt ook uit de eigen padding van de kaart (16px) voor een
	 * randloze, goed gealigneerde video. */
	margin: 8px -16px 0;
}

.ffun-item-video {
	/* Vaste 16:9-verhouding forceren -- de ruwe oEmbed-iframe van WordPress
	 * komt soms met afwijkende width/height-attributen terug, en zonder dit
	 * werd de video verticaal uitgerekt zodra hij op 100% breedte werd
	 * gezet zonder de hoogte mee te schalen. */
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.ffun-item-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.ffun-item-tekst {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #A9C4C0 !important;
	margin-top: 8px;
}

.ffun-reacties {
	margin-top: 8px;
}

.ffun-item-stem {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 6px;
}

/* ▲/▼ naast elkaar, elk met hun eigen aantal er direct onder. */
.ffun-stem-groep {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

/* Totaal helemaal rechts, in een eigen geel omkaderd vierkantje --
 * zelfde stijl als de stemknoppen, los van de up/down-groep. */
.ffun-stem-totaal-doos {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 32px;
	padding: 0 6px;
	border: 1px solid #E8A33B;
	flex-shrink: 0;
}

/* Kort tooltipje: "je stemde hier al op" -- zonder dit leek een stem op een
 * item dat je (vanaf hetzelfde apparaat/netwerk) al eerder had gestemd
 * gewoon niks te doen, want het aantal ging dan terecht niet omhoog. */
.ffun-stem-al-gestemd {
	position: absolute;
	top: -6px;
	right: 100%;
	margin-right: 8px;
	white-space: nowrap;
	background: #16393B;
	border: 1px solid #2D5053;
	color: #A9C4C0;
	font-family: "Public Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	z-index: 2;
	animation: ffun-nudge-in 200ms ease-out;
}

@media (max-width: 480px) {
	.ffun-stem-al-gestemd {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		top: -28px;
		margin-right: 0;
	}
}

/* 'Alleen tonen'-lijstjes (bv. de '...op volgorde'-franchiseposts): zelfde
 * opmaak als een gewoon stembaar item, maar de knoppen doen niets. Vaste
 * volgorde blijft behouden (zie ffun_the_content_filter), dit is puur de
 * visuele knop-styling zodat disabled-knoppen er niet uitgegrijsd uitzien. */
.ffun-item-alleen-tonen .ffun-stem-knop:disabled {
	opacity: 1;
	cursor: default;
}

.ffun-stem-knop {
	width: 34px;
	height: 32px;
	border: 1px solid #E8A33B;
	background: transparent;
	color: #E8A33B;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.ffun-stem-knop:hover:not(:disabled) {
	background: #E8A33B;
	color: #24150A;
}

/* Downvote-knop krijgt een eigen kleur (zelfde roestrood als de
 * reactie-downvote, .ffun-reactie-omlaag.actief) zodat omhoog/omlaag ook
 * visueel uit elkaar te houden zijn, niet allebei marigold. */
.ffun-stem-omlaag:hover:not(:disabled) {
	background: #D6634C;
	border-color: #D6634C;
	color: #24150A;
}

.ffun-stem-knop:disabled {
	opacity: 0.4;
	cursor: default;
}

.ffun-stem-omhoog.actief {
	background: #E8A33B;
	color: #24150A;
}

.ffun-stem-omlaag.actief {
	background: #D6634C;
	border-color: #D6634C;
	color: #24150A;
}

.ffun-stem-aantal {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: #F3EFE2 !important;
}

/* Onder elke knop: dat ene aantal (los van het geklemde totaal rechts). */
.ffun-stem-detail-up,
.ffun-stem-detail-down {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.ffun-stem-detail-up {
	color: #E8A33B;
}

.ffun-stem-detail-down {
	color: #D6634C;
}

@media (max-width: 480px) {
	.ffun-item {
		grid-template-columns: 36px 1fr 112px;
		gap: 10px;
	}
	.ffun-item-titel {
		font-size: 17px;
	}
	.ffun-item-video {
		margin: 8px -10px 0;
	}
	.ffun-item-stem {
		gap: 4px;
	}
	.ffun-stem-knop {
		width: 30px;
	}
	.ffun-stem-totaal-doos {
		min-width: 28px;
		padding: 0 4px;
	}
}

/* Reactieformulier onder een item: het thema past een generieke
 * form-stijl toe (display:flex, align-items:stretch), waardoor het
 * tekstveld even hoog werd getrokken als de kolom -- veel te hoog. Hier op
 * een normale, compacte hoogte gezet. */
.ffun-reactie-form {
	align-items: flex-end;
}

.ffun-reactie-form textarea {
	height: 85px;
	resize: vertical;
}

/* ==========================================================================
   "Mis je een film?" -- voorstellen om een item toe te voegen aan een
   bestaand lijstje. Iedereen (niet alleen de maker) mag voorstellen; komt
   direct live te staan.
   ========================================================================== */

.ffun-item-voorstellen {
	margin-top: 32px;
	padding: 20px;
	background: #16393B;
	border: 1px solid #2D5053;
	font-family: "Public Sans", sans-serif;
}

.ffun-item-voorstellen-titel {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	color: #F3EFE2;
}

.ffun-item-voorstellen-uitleg {
	margin: 0 0 14px;
	font-size: 14px;
	color: #A9C4C0;
}

.ffun-item-voorstellen-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 480px;
}

.ffun-item-voorstellen-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #F3EFE2;
}

.ffun-item-voorstellen-form input,
.ffun-item-voorstellen-form textarea {
	background: #122F30;
	border: 1px solid #2D5053;
	color: #F3EFE2;
	padding: 10px 12px;
	font-family: "Public Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
}

.ffun-item-voorstellen-knop {
	background: #E8A33B;
	color: #24150A;
	border: none;
	border-radius: 0 !important;
	padding: 12px 24px !important;
	font-family: "Public Sans", sans-serif;
	font-weight: 700;
	text-transform: uppercase !important;
	font-size: 14px !important;
	cursor: pointer;
	align-self: flex-start;
	text-decoration: none;
	display: inline-block;
}

.ffun-item-voorstellen-knop:disabled {
	opacity: 0.6;
	cursor: default;
}

.ffun-item-voorstellen-melding {
	margin: 0;
	font-size: 14px;
	color: #A9C4C0;
}

.ffun-item-voorstellen-melding-ok {
	color: #E8A33B;
	font-weight: 700;
}

/* Als je vanuit de "film toegevoegd"-mail op de directe link klikt
   (#item-X), springt de browser er vanzelf naartoe -- dit laat 'm ook
   even opvallen tussen de rest. */
.ffun-item:target {
	border-color: #E8A33B;
	box-shadow: 0 0 0 2px #E8A33B;
}

/* ==========================================================================
   Banner voor niet-ingelogde bezoekers op een lijstjespagina: wijst op
   accountvoordelen (eigen lijstjes, reageren, stemgeschiedenis).
   ========================================================================== */

.ffun-account-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	justify-content: space-between;
	margin: 0 0 24px;
	padding: 16px 18px;
	background: #16393B;
	border: 1px solid #E8A33B;
	font-family: "Public Sans", sans-serif;
}

.ffun-account-banner p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #F3EFE2;
	max-width: 480px;
}

.ffun-account-banner .ffun-account-knop {
	flex-shrink: 0;
	padding: 10px 20px;
}

@media (max-width: 480px) {
	.ffun-account-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Nudge die verschijnt na de eerste stem van een niet-ingelogde bezoeker. */
.ffun-stem-nudge {
	position: relative;
	margin-top: 16px;
	padding: 14px 40px 14px 16px;
	background: #16393B;
	border: 1px solid #E8A33B;
	font-family: "Public Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #F3EFE2;
	animation: ffun-nudge-in 200ms ease-out;
}

.ffun-stem-nudge a {
	color: #E8A33B;
	font-weight: 700;
	text-decoration: underline;
}

.ffun-stem-nudge-sluiten {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	color: #A9C4C0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.ffun-stem-nudge-sluiten:hover {
	color: #F3EFE2;
}

@keyframes ffun-nudge-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
