/* Paginabreedte gelijktrekken over het hele plugin-oppervlak (lijstjes,
 * hub-pagina's, homepage-secties) -- Blocksy en Elementor renderen hier
 * anders soms vrijwel edge-to-edge, tot 1600px breed. Hier overal een
 * vaste, smallere kolom: max-w 1024px.
 */

.ct-container,
.elementor-container {
	max-width: 1024px !important;
}

/* "Full Width"-pagina's (elke normale pagina/artikel, niet met Elementor
 * gebouwd) laten de inhoud zelf helemaal los -- die krijgt hier alsnog een
 * centrale kolom plus zijmarge. */
.ct-container-full > article,
.ct-container-full > #content,
.ct-container-full > .content-area {
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* Losse artikelen (lijstjes): iets smallere kolom dan de algemene
 * paginabreedte, maar breed genoeg dat een YouTube-video (16:9) goed
 * gealigned oogt in plaats van te klein te ogen in een smalle leeskolom. */
.single-post .ct-container-full > article {
	max-width: 900px;
}

/* WordPress' eigen [caption]-shortcode zet een harde inline width (in
 * pixels, gelijk aan de volledige afbeelding) op de omliggende <figure
 * class="wp-caption">. Bij een groot origineel (bijv. 1000px breed) loopt
 * die breedte straal door de artikelkolom heen -- de afbeelding zelf heeft
 * wel max-width:100%, maar de figure eromheen niet, dus de tekst eronder
 * (het bijschrift) en de afbeelding samen duwen de hele pagina breder dan
 * bedoeld. Simpelweg de figure zelf ook aan de kolombreedte binden. */
.wp-caption {
	max-width: 100% !important;
}

@media (max-width: 480px) {
	.ct-container-full > article,
	.ct-container-full > #content,
	.ct-container-full > .content-area {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ==========================================================================
   Artikel (lijstje): titel, meta en leestekst.
   ========================================================================== */

/* Wat meer lucht tussen de vaste header en de titel. */
.single-post .entry-header {
	margin-top: 40px;
}

/* Blocksy's standaard byline (auteur/datum/categorie) staat uit -- we tonen
 * onze eigen, bij de stemfunctie passende regel onder de intro (zie
 * .ffun-lijst-meta, ingevoegd door ffun_the_content_filter()). */
.single-post .entry-meta {
	display: none;
}

.entry-content,
.entry-content p,
.ffun-item-tekst,
.ffun-lijst-meta {
	font-family: "Public Sans", system-ui, sans-serif;
}

.entry-content p {
	line-height: 1.7;
}

/* Regel onder de intro: geplaatst door -- stemmen -- datum. */
.ffun-lijst-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 4px 0 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #2D5053;
	font-size: 13px;
	color: #A9C4C0;
}

.ffun-lijst-meta a {
	color: #F3EFE2;
	font-weight: 600;
	text-decoration: none;
}

.ffun-lijst-meta a:hover {
	color: #E8A33B;
}

.ffun-lijst-meta .ffun-lijst-meta-stemmen {
	color: #E8A33B;
	font-weight: 700;
}

.ffun-lijst-meta .ffun-lijst-meta-scheiding {
	color: #2D5053;
}


/* Uitgelichte afbeelding bovenaan het artikel (zie
 * ffun_featured_image_boven_content() in inc-layout.php). Alleen hier --
 * niet in de kaartgrids (hitlijst/nieuwste/categorie-hub) -- staat een
 * eventuele bronvermelding als klein laagje over de foto. */
.ffun-featured-wrap {
	position: relative;
	line-height: 0;
	margin: 0 0 28px;
}

.ffun-featured-afbeelding {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid #2D5053;
	display: block;
}

.ffun-featured-credit {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(18, 47, 48, 0.75);
	color: #F3EFE2;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 10px;
	line-height: 1.4;
	padding: 3px 8px;
	border-radius: 2px;
	pointer-events: none;
}

/* Blocksy's standaard headerhoogte (70px, via de --header-height CSS-
 * variabele op .ct-container in de middenrij) oogde te fors nu het logo
 * platte tekst is i.p.v. een plaatje. Iets compacter, desktop en mobiel. */
header.ct-header [data-row="middle"] .ct-container {
	--header-height: 58px;
}

/* ==========================================================================
   Kopmerk (logo) in de header: "Film" + "Fun" in twee tinten -- net als
   "Muziek"+"Top10" op muziektop10.nl. Geen los logo-plaatje, gewoon de
   bestaande sitetitel-tekst gesplitst (zie ffun_header_logo_html_fix() in
   inc-layout.php).
   ========================================================================== */

.site-title a {
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ffun-logo-film {
	color: #E8A33B;
}

.ffun-logo-fun {
	color: #F3EFE2;
}

/* ==========================================================================
   Live hitlijst (homepage): lijstjes met de meeste stemmen, echt live via
   [ffun_hitlijst] -- geen stemknoppen hier, dat hoort bij het lijstje
   zelf, niet bij dit overzicht.
   ========================================================================== */

.ffun-hitlijst {
	display: flex;
	flex-direction: column;
	margin-top: 20px;
}

.ffun-hitlijst-rij {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	background: #16393B;
	border: 1px solid #2D5053;
	border-top: none;
	text-decoration: none;
	transition: background-color 120ms ease;
}

.ffun-hitlijst-rij:first-child {
	border-top: 1px solid #2D5053;
}

.ffun-hitlijst-rij:hover {
	background: #1a4244;
}

.ffun-hitlijst-rang {
	flex-shrink: 0;
	width: 32px;
	font-family: "Public Sans", sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: #E8A33B;
}

.ffun-hitlijst-afbeelding {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	overflow: hidden;
}

.ffun-hitlijst-afbeelding img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ffun-hitlijst-tekst {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ffun-hitlijst-meta {
	font-family: "Public Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #A9C4C0;
}

.ffun-hitlijst-titel {
	font-family: "Public Sans", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #F3EFE2;
}

.ffun-hitlijst-rij:hover .ffun-hitlijst-titel {
	color: #E8A33B;
}

.ffun-hitlijst-leeg {
	margin-top: 20px;
	color: #A9C4C0;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 14px;
}

/* ==========================================================================
   Titel + inhoud van 1 blok (LIVE HITLIJST, NIEUWSTE LIJSTJES, POPULAIRE
   ACTEURS/ACTRICES) visueel samenvoegen tot 1 kaart: de titel wordt een
   kopbalk BINNEN dezelfde rand, i.p.v. losse tekst erboven. De "Alle X ->"-
   link blijft bewust wel los ONDER het blok staan.
   ========================================================================== */

.ffun-blok-titelbalk {
	/* Volledige rand, net als bij ieder los item (.ffun-hitlijst-rij) --
	 * zo oogt de titel als hetzelfde soort vak in de rij, met exact zo'n
	 * scheidingslijntje naar het eerste item als tussen twee items onderling. */
	background: #16393B;
	border: 1px solid #2D5053;
	margin-top: 20px;
}

.ffun-blok-titelbalk .elementor-widget-wrap {
	/* Verticaal exact zo hoog als een item-rij (.ffun-hitlijst-rij, 81px) --
	 * 26px boven/onder in plaats van 16px, anders is de titelbalk lager dan
	 * de items eronder. */
	padding: 26px 16px !important;
}

.ffun-blok-titelbalk h2 {
	margin: 0;
}

.ffun-blok-inhoud .ffun-hitlijst {
	margin-top: 0;
}

.ffun-blok-inhoud .ffun-hitlijst-rij:first-child {
	border-top: none;
}

/* ==========================================================================
   "Account" in de hoofdnavigatie als knop i.p.v. gewone menutekst -- net
   als de andere call-to-action-knoppen op de site (marigold, vet, hoofd-
   letters). Zelfde menu-item staat zowel in het desktop- als het mobiele
   offcanvas-menu, dus 1 CSS-klasse dekt beide.
   ========================================================================== */

.ffun-nav-account-knop {
	align-items: center !important;
}

.ffun-nav-account-knop .ct-menu-link {
	align-self: center !important;
	height: auto !important;
	flex: none !important;
	background: #E8A33B;
	color: #24150A !important;
	padding: 9px 16px !important;
	font-weight: 800;
	line-height: normal !important;
}

.ffun-nav-account-knop .ct-menu-link:hover {
	background: #C98A2E;
	color: #24150A !important;
}

#offcanvas .ffun-nav-account-knop .ct-menu-link,
.mobile-menu .ffun-nav-account-knop .ct-menu-link {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 18px !important;
}


/* ==================== kaartgrid.css ==================== */

/* ==========================================================================
   Kaartgrid (homepage): "Populaire acteurs/actrices" en "Populaire
   lijstjes". Zelfde kleuren/typografie als de rest van de site, maar als
   grid van kaarten i.p.v. de rijenlijst van ffun-hitlijst.
   ========================================================================== */

.ffun-kaartgrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 20px;
}

.ffun-kaartgrid-item {
	display: flex;
	flex-direction: column;
	background: #16393B;
	border: 1px solid #2D5053;
	text-decoration: none;
	transition: border-color 120ms ease;
}

.ffun-kaartgrid-item:hover {
	border-color: #E8A33B;
}

.ffun-kaartgrid-afbeelding {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #122F30;
}

.ffun-kaartgrid-afbeelding img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ffun-kaartgrid-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 28px;
	color: #2D5053;
}

.ffun-kaartgrid-stemmen {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(18, 47, 48, 0.85);
	color: #E8A33B;
	font-family: "Public Sans", sans-serif;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 2px;
}

.ffun-kaartgrid-tekst {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
}

.ffun-kaartgrid-categorie {
	font-family: "Public Sans", sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: #A9C4C0;
}

.ffun-kaartgrid-titel {
	font-family: "Public Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #F3EFE2;
}

.ffun-kaartgrid-item:hover .ffun-kaartgrid-titel {
	color: #E8A33B;
}

/* 2 kolommen (populaire acteurs/actrices, elk 4 kaarten -- 2x2). */
.ffun-kaartgrid--klein {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
	.ffun-kaartgrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ffun-kaartgrid-tekst {
		padding: 10px;
	}
	.ffun-kaartgrid-titel {
		font-size: 13px;
	}
}


/* ==================== footer.css ==================== */

/* Uitgebreide footer (kolommen), boven de bestaande dunne onderbalk van het
 * thema (copyright + Footermenu). Zelfde achtergrondkleur als die onderbalk
 * zodat ze naadloos in elkaar overlopen. */

/* Het thema's eigen "Footermenu" (Over ons/Contact/Adverteren/Cookies/
 * Privacybeleid) is exact hetzelfde rijtje als onze eigen "Meer"-kolom
 * hierboven -- stond dubbel. De copyright-tekst ernaast blijft gewoon
 * staan, alleen dit menu verdwijnt. */
#footer-menu {
	display: none;
}

.ffun-footer {
	background: #16393B;
	border-top: 1px solid #2D5053;
}

.ffun-footer-inner {
	max-width: 1024px;
	margin: 0 auto;
	padding: 56px 20px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	box-sizing: border-box;
}

.ffun-footer-logo {
	display: inline-block;
	font-family: "Public Sans", sans-serif;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.02em;
	color: #F3EFE2;
	text-decoration: none;
}

.ffun-logo-accent {
	color: #E8A33B;
}

.ffun-footer-tagline {
	margin: 8px 0 0;
	font-family: "Public Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #A9C4C0;
}

.ffun-footer-blurb {
	margin: 14px 0 0;
	max-width: 320px;
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #A9C4C0;
}

.ffun-footer-kolom-titel {
	margin: 0 0 14px;
	font-family: "Public Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #F3EFE2;
}

.ffun-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ffun-footer-links a {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 14px;
	color: #A9C4C0;
	text-decoration: none;
}

.ffun-footer-links a:hover {
	color: #E8A33B;
}

@media (max-width: 900px) {
	.ffun-footer-inner {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
	}

	.ffun-footer-merk {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.ffun-footer-inner {
		grid-template-columns: 1fr;
		padding: 40px 20px 32px;
		gap: 32px;
	}
}
