/* ==========================================================================
   MassEmbed Tube Theme — Dark premium tube styling (v1.2.0)
   Accent kleur is instelbaar via :root.
   Body class `accent-yellow` schakelt naar FUQ-geel accent.
   ========================================================================== */

:root {
	--bg:           #000000;
	--bg-2:         #050505;
	--surface:      #0f0f0f;
	--surface-2:    #151515;
	--surface-3:    #1c1c1c;
	--text:         #eaeaea;
	--text-strong:  #ffffff;
	--muted:        #aaaaaa;
	--muted-2:      #777777;
	--border:       #2a2a2a;
	--border-2:     #333333;
	--accent:       #ff3b7f;          /* YouPorn-style pink (default) */
	--accent-hover: #ff5e96;
	--accent-ink:   #ffffff;
	--radius:       12px;
	--radius-sm:    8px;
	--radius-lg:    16px;
	--shadow:       0 6px 24px rgba(0,0,0,.45);
	--shadow-card:  0 8px 28px rgba(0,0,0,.55);
	--container:    1480px;
	--font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.accent-yellow {
	--accent:       #f5c400;          /* FUQ-style yellow */
	--accent-hover: #ffd633;
	--accent-ink:   #111111;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--text-strong); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5 { color: var(--text-strong); font-weight: 700; letter-spacing: -0.01em; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); height:1px; width:1px; overflow:hidden; }
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left:1rem; top:1rem; background:var(--accent); color:var(--accent-ink); padding:.5rem .75rem; border-radius:var(--radius-sm); z-index:1000; }

/* ---------- Promo bar ---------- */
.promo-bar {
	background: linear-gradient(90deg, var(--accent), var(--accent-hover));
	color: var(--accent-ink);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.promo-bar-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 8px 20px;
	display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
}
.promo-cta {
	background: rgba(0,0,0,.35);
	color: var(--accent-ink);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
}
.promo-cta:hover { background: #000; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(6px);
}
.header-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 12px 20px;
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 16px;
}
.menu-toggle {
	display: none;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	width: 40px; height: 40px;
	padding: 0;
	cursor: pointer;
	position: relative;
}
.menu-toggle span {
	display: block; width: 18px; height: 2px; background: var(--text-strong);
	margin: 4px auto; border-radius: 2px; transition: .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-branding .site-logo-text,
.site-branding .custom-logo-link {
	color: var(--text-strong);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.02em;
	display: inline-flex; align-items: center;
}
.site-branding .site-logo-text::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	background: var(--accent);
	border-radius: 3px;
	margin-right: 10px;
}

.site-search {
	display: flex;
	align-items: center;
	background: #0d0d0d;
	border: 1px solid var(--border-2);
	border-radius: 999px;
	padding: 0 6px 0 18px;
	height: 44px;
	max-width: 640px;
	width: 100%;
	justify-self: stretch;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.site-search:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.site-search input[type="search"] {
	flex: 1; min-width: 0;
	background: transparent;
	border: 0; outline: 0;
	color: var(--text);
	font-size: 15px;
	height: 100%;
}
.site-search input[type="search"]::placeholder { color: var(--muted-2); }
.site-search button {
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	width: 34px; height: 34px;
	border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: background .15s ease;
}
.site-search button:hover { background: var(--accent-hover); }

.header-actions {
	display: flex; align-items: center; gap: 6px;
}
.header-icon-btn {
	width: 40px; height: 40px;
	background: var(--surface-3);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: .15s;
}
.header-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Layout ---------- */
.layout {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	min-height: 60vh;
}
.site-main { min-width: 0; padding: 20px 0 40px; }
.content-wrap > * + * { margin-top: 24px; }

/* ---------- Sidebar ---------- */
.sidebar {
	padding: 20px 0;
	border-right: 1px solid var(--border);
	padding-right: 16px;
}
.sidebar-menu, .sidebar-categories {
	list-style: none; margin: 0; padding: 0;
}
.sidebar-menu li a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
}
.sidebar-menu li a svg { flex: 0 0 auto; color: var(--muted); transition: color .15s; }
.sidebar-menu li a:hover,
.sidebar-menu li.current-menu-item a {
	background: var(--surface-3);
	color: var(--accent);
}
.sidebar-menu li a:hover svg,
.sidebar-menu li.current-menu-item a svg { color: var(--accent); }

.sidebar-heading {
	margin: 24px 0 8px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted-2);
}
.sidebar-categories li a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 12px;
	color: var(--text);
	font-size: 14px;
	border-radius: var(--radius-sm);
}
.sidebar-categories li a span {
	color: var(--muted-2);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.sidebar-categories li a:hover { background: var(--surface-3); color: var(--accent); }

/* ---------- Chip row ---------- */
.chip-row {
	display: flex; gap: 8px; flex-wrap: nowrap;
	overflow-x: auto;
	padding: 14px 0 6px;
	scrollbar-width: thin;
}
.chip-row::-webkit-scrollbar { height: 6px; }
.chip-row::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
.chip {
	flex: 0 0 auto;
	display: inline-flex; align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--accent);
	color: var(--accent);
	background: transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: .15s;
}
.chip:hover { background: var(--accent); color: var(--accent-ink); }
.chip.chip-solid { background: var(--accent); color: var(--accent-ink); }
.chip.chip-solid:hover { background: var(--accent-hover); }

/* tag chip = subtle variant for tag clouds */
.tag-chip {
	display: inline-flex; align-items: center;
	padding: 6px 12px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: 999px;
	font-size: 12px;
	margin: 0 4px 6px 0;
	transition: .15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Section ---------- */
.section { margin-top: 32px; }
.section-title {
	font-size: 24px;
	margin: 0 0 16px;
	display: flex; align-items: center; gap: 12px;
}
.section-title::before {
	content: "";
	width: 4px; height: 22px;
	background: var(--accent);
	border-radius: 2px;
}

/* ---------- Video grid ---------- */
.video-grid {
	display: grid;
	gap: 18px 14px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 960px)  { .video-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px)  { .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 380px)  { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Video card ---------- */
.video-card { margin: 0; }
.video-card-link {
	display: block;
	color: var(--text);
}
.video-card-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.video-card-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.video-card-link:hover .video-card-thumb {
	box-shadow: var(--shadow-card);
}
.video-card-link:hover .video-card-thumb img { transform: scale(1.06); }
.video-card-duration {
	position: absolute; right: 8px; bottom: 8px;
	background: rgba(0,0,0,.78);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
	letter-spacing: .02em;
}
.video-card-badge-hd {
	position: absolute; left: 8px; top: 8px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 10px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: .05em;
}
.video-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text-strong);
	margin: 10px 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .15s ease;
}
.video-card-link:hover .video-card-title { color: var(--accent); }
.video-card-cat {
	font-size: 12px;
	color: var(--muted);
}
.video-card-meta {
	display: flex; gap: 8px; flex-wrap: wrap;
	color: var(--muted);
	font-size: 12px;
}
.video-card-meta span + span::before { content: "•"; margin-right: 8px; color: var(--muted-2); }

/* ---------- Category grid (Browse Categories) ---------- */
.cat-grid {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(6, minmax(0,1fr));
}
@media (max-width: 1200px) { .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 720px)  { .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.cat-grid li a {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
	color: var(--text-strong);
	transition: transform .25s ease;
}
.cat-grid li a::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%);
	z-index: 1;
}
.cat-grid li a::after {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%);
	opacity: .35;
}
.cat-grid li a:hover { transform: translateY(-2px); }
.cat-grid .cat-name {
	position: absolute; left: 12px; bottom: 10px;
	z-index: 2;
	font-weight: 700;
	font-size: 15px;
}
.cat-grid .cat-count {
	position: absolute; left: 12px; bottom: 30px;
	z-index: 2;
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .08em;
}

/* ---------- Ad zones ---------- */
.ad-zone {
	background: var(--surface-2);
	border: 1px dashed var(--border-2);
	border-radius: var(--radius);
	color: var(--muted-2);
	font-size: 12px;
	text-align: center;
	padding: 18px;
	position: relative;
}
.ad-zone::before {
	content: "Ad";
	position: absolute; top: 6px; left: 8px;
	font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
	background: rgba(0,0,0,.5);
	padding: 2px 6px;
	border-radius: 4px;
}
.ad-zone-top { min-height: 90px; }

/* ---------- Archive / filter bar ---------- */
.archive-header {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}
.archive-title {
	font-size: 26px;
	margin: 0;
}
.archive-description { color: var(--muted); font-size: 14px; max-width: 720px; }

.filter-bar {
	display: flex; gap: 8px; flex-wrap: nowrap;
	overflow-x: auto;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	scrollbar-width: thin;
}
.filter-bar select,
.filter-bar .filter-btn {
	flex: 0 0 auto;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	font-size: 13px;
	cursor: pointer;
}
.filter-bar select:hover,
.filter-bar .filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar .filter-sort { margin-left: auto; }

/* ---------- A-Z navigation ---------- */
.az-nav {
	display: flex; flex-wrap: wrap; gap: 6px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.az-nav a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 34px; height: 34px;
	padding: 0 8px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
}
.az-nav a:hover,
.az-nav a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.az-section { margin-top: 28px; }
.az-letter {
	display: inline-block;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	font-weight: 800;
	color: var(--accent);
	margin-bottom: 12px;
}
.az-list {
	list-style: none; margin: 0; padding: 0;
	columns: 4;
	column-gap: 28px;
}
@media (max-width: 960px) { .az-list { columns: 3; } }
@media (max-width: 640px) { .az-list { columns: 2; } }
@media (max-width: 380px) { .az-list { columns: 1; } }
.az-list li {
	break-inside: avoid;
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 4px;
	border-bottom: 1px solid #1a1a1a;
	font-size: 14px;
}
.az-list li a { color: var(--text); flex: 1; }
.az-list li a:hover { color: var(--accent); }
.az-list li .count { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Single video page ---------- */
.single-title { font-size: 22px; margin: 12px 0; }
.video-player-wrapper {
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16/9;
}
.video-player-wrapper iframe,
.video-player-wrapper video { width: 100%; height: 100%; border: 0; display: block; }
.video-player-placeholder,
.video-player-fallback-content { padding: 20px; color: var(--muted); }

.video-meta {
	display: flex; flex-wrap: wrap; gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 13px;
}
.video-meta a { color: var(--accent); }

.video-actions {
	display: flex; gap: 8px; flex-wrap: wrap;
	padding: 12px 0;
}
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	background: var(--surface-3);
	color: var(--text-strong);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-weight: 600; font-size: 14px;
	cursor: pointer;
	transition: .15s;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; }

.video-description { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); }
.video-tags { padding: 14px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.video-tags > span { color: var(--muted); font-size: 13px; margin-right: 4px; }

.related-videos { margin-top: 32px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: 6px;
	font-size: 12px;
	color: var(--muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Pagination ---------- */
.pagination, .nav-links {
	display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
	padding: 28px 0;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span {
	min-width: 38px; height: 38px;
	padding: 0 10px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 600;
	font-size: 13px;
}
.pagination .current, .nav-links .current {
	background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.pagination a:hover, .nav-links a:hover {
	border-color: var(--accent); color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--surface-2);
	border-top: 1px solid var(--border);
	margin-top: 60px;
	color: var(--muted);
}
.footer-wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 28px 20px;
}
.footer-widgets {
	display: grid; gap: 24px;
	grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 720px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-disclaimer { font-size: 12px; line-height: 1.6; margin: 20px 0; }
.footer-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
	font-size: 13px;
}
.footer-menu a { color: var(--muted); }
.footer-menu a:hover { color: var(--accent); }
.footer-copyright { text-align: center; font-size: 12px; color: var(--muted-2); padding-top: 16px; }

/* ---------- Age gate ---------- */
.age-gate {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(0,0,0,.92);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-gate-inner {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	max-width: 440px; width: 100%;
	text-align: center;
}
.age-gate-inner h2 { margin-top: 0; }
.age-gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- SEO text / page ---------- */
.seo-text-block, .page-article {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	color: var(--text);
	line-height: 1.7;
}
.seo-text-inner h2, .seo-text-inner h3 { margin-top: 0; }

/* ---------- 404 / no-results ---------- */
.error-404, .no-results {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	text-align: center;
}
.error-404 h1 { font-size: 72px; margin: 0; color: var(--accent); }

/* ---------- Mobile layout ---------- */
@media (max-width: 960px) {
	.header-inner { grid-template-columns: auto auto 1fr; gap: 10px; }
	.header-actions { display: none; }
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.layout { grid-template-columns: 1fr; }
	.sidebar {
		position: fixed; inset: 0 30% 0 0;
		background: var(--surface-2);
		z-index: 60;
		transform: translateX(-100%);
		transition: transform .25s ease;
		padding: 20px;
		border-right: 1px solid var(--border);
		overflow-y: auto;
	}
	.sidebar.is-open { transform: translateX(0); }
	body.sidebar-open::after {
		content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55;
	}
}

@media (max-width: 560px) {
	.header-inner { padding: 10px 14px; gap: 8px; }
	.site-search { height: 40px; padding-left: 14px; }
	.site-branding .site-logo-text { font-size: 18px; }
	.site-main { padding: 14px 0 28px; }
	.layout { padding: 0 12px; }
	.section-title { font-size: 20px; }
	.archive-title { font-size: 22px; }
}
