/*
Theme Name: BiVids
Theme URI: https://bivids.com
Author: BiVids
Description: A loud, sticker-covered bisexual tube theme with halftone paper, hard shadows and hover previews.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bivids
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
	--paper: #f7f2e8;
	--paper-deep: #efe7d6;
	--ink: #12100e;
	--ink-soft: #3a352e;
	--muted: #6f675b;
	--pink: #ff2e88;
	--pink-deep: #e0006a;
	--violet: #6a2be2;
	--violet-deep: #4a14b8;
	--lime: #c8ff3d;
	--blue: #2e8bff;
	--card: #fffdf7;
	--radius: 18px;
	--radius-sm: 12px;
	--border: 3px solid var(--ink);
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--font-display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1240px;
}

/* ---------------------------------------------------------------
   1b. Fonts (self-hosted)
--------------------------------------------------------------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage-800.woff2") format("woff2");
	font-weight: 700 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------------
   2. Reset & base
--------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--paper);
	background-image: radial-gradient(rgba(18, 16, 14, 0.10) 1.1px, transparent 1.1px);
	background-size: 17px 17px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-deep); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

button { font: inherit; cursor: pointer; }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--lime); color: var(--ink); }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px; top: -80px;
	z-index: 999;
	background: var(--lime);
	border: var(--border);
	padding: 10px 16px;
	font-weight: 800;
	transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------
   3. Buttons & chips
--------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--lime);
	color: var(--ink);
	border: var(--border);
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: -0.01em;
	box-shadow: var(--shadow-sm);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover {
	color: var(--ink);
	background: var(--pink);
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: var(--card); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--violet); color: #fff; }

.chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 13px;
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	transition: background .12s ease, transform .12s ease;
}
.chip:hover { background: var(--lime); color: var(--ink); transform: rotate(-2deg); }

/* ---------------------------------------------------------------
   4. Ticker
--------------------------------------------------------------- */
.ticker {
	background: var(--ink);
	color: var(--lime);
	border-bottom: var(--border);
	overflow: hidden;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ticker__track {
	display: flex;
	width: max-content;
	gap: 0;
	padding: 7px 0;
	animation: ticker 46s linear infinite;
}
.ticker__track span { white-space: nowrap; padding-inline: 14px; }
.ticker__track span::after { content: "✦"; color: var(--pink); padding-left: 24px; }
.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------
   5. Header
--------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 76px;
	padding-block: 8px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}
.brand:hover { color: inherit; }
.brand__mark {
	width: 54px;
	height: 54px;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .2s ease;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word {
	font-family: var(--font-display);
	font-size: 33px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
}
.brand__word b { color: var(--violet); font-weight: inherit; }
.brand__word i { color: var(--ink); font-style: normal; }
.brand__word em { color: var(--pink); font-style: normal; }

.nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: 10px;
	flex-wrap: wrap;
}
.nav a {
	padding: 8px 11px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-radius: 8px;
	position: relative;
}
.nav a::after {
	content: "";
	position: absolute;
	left: 10px; right: 10px; bottom: 3px;
	height: 3px;
	background: var(--pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .16s ease;
}
.nav a:hover::after,
.nav .current-menu-item > a::after { transform: scaleX(1); }
.nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }

.header-search {
	margin-left: auto;
	flex: 0 1 300px;
}
.header-search form {
	display: flex;
	align-items: center;
	border: 2.5px solid var(--ink);
	border-radius: 999px;
	background: var(--card);
	overflow: hidden;
	box-shadow: 3px 3px 0 var(--ink);
}
.header-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 14px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
}
.header-search input[type="search"]:focus { outline: none; }
.header-search button {
	border: 0;
	border-left: 2.5px solid var(--ink);
	background: var(--lime);
	padding: 10px 15px;
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
}
.header-search button:hover { background: var(--pink); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 7px;
	background: var(--card);
	border: 2.5px solid var(--ink);
	border-radius: 10px;
	padding: 9px 12px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 13px;
	box-shadow: 3px 3px 0 var(--ink);
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars span { display: block; width: 15px; height: 2.5px; background: var(--ink); }

/* ---------------------------------------------------------------
   6. Hero (homepage)
--------------------------------------------------------------- */
.hero {
	position: relative;
	border-bottom: var(--border);
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 18%, rgba(200, 255, 61, 0.5), transparent 42%),
		radial-gradient(circle at 8% 88%, rgba(255, 46, 136, 0.22), transparent 46%),
		var(--paper);
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 22px;
	padding-block: 20px 16px;
}
.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ink);
	color: var(--lime);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.hero__kicker i {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--pink);
	animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
	font-size: clamp(28px, 4.4vw, 56px);
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.hero h1 .hl {
	display: inline-block;
	background: var(--violet);
	color: var(--paper);
	padding: 0 .10em .04em;
	transform: rotate(-1.4deg);
	box-shadow: 6px 6px 0 var(--ink);
}
.hero h1 .hl--pink { background: var(--pink); color: var(--ink); transform: rotate(1deg); }
.hero__sub {
	max-width: 52ch;
	font-size: 16.5px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin-bottom: 18px;
}
.hero__sub strong { background: linear-gradient(transparent 62%, var(--lime) 62%); padding-inline: 2px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; }

.hero__art {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 0;
}
.hero__mascot {
	width: min(280px, 62%);
	mix-blend-mode: multiply;
	filter: drop-shadow(10px 12px 0 rgba(18, 16, 14, 0.16));
	transform: rotate(3deg);
	animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
	0%, 100% { transform: rotate(3deg) translateY(0); }
	50% { transform: rotate(1deg) translateY(-12px); }
}
.sticker {
	position: absolute;
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	line-height: .95;
	text-align: center;
	padding: 12px 16px;
	border: var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
}
.sticker--bi {
	top: 2%; right: 8%;
	background: var(--lime);
	font-size: 13px;
	transform: rotate(9deg);
}
.sticker--daily {
	bottom: 4%; left: 6%;
	background: var(--pink);
	font-size: 12px;
	transform: rotate(-7deg);
}
.sticker--18 {
	top: 6%; left: 2%;
	width: 44px; height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--lime);
	font-size: 15px;
	transform: rotate(-10deg);
}

/* ---------------------------------------------------------------
   7. Section headings
--------------------------------------------------------------- */
.section { padding-block: 26px; }
.section--tight { padding-block: 16px; }

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}
.section__title {
	font-size: clamp(24px, 3.4vw, 38px);
	text-transform: uppercase;
	margin: 0;
}
.section__title .mark {
	background: var(--lime);
	padding: 0 .18em .05em;
	box-shadow: 4px 4px 0 var(--ink);
	display: inline-block;
	transform: rotate(-1deg);
}
.section__title .mark--pink { background: var(--pink); }
.section__link {
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	white-space: nowrap;
	border-bottom: 3px solid var(--pink);
	padding-bottom: 2px;
}
.section__link:hover { color: var(--pink-deep); }

/* ---------------------------------------------------------------
   8. Video grid & cards
--------------------------------------------------------------- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px 20px;
}

.card { position: relative; min-width: 0; }

.card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border: var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: #1b1720;
	box-shadow: var(--shadow);
	transition: transform .14s ease, box-shadow .14s ease;
}
.card__thumb:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease, opacity .2s ease;
}
.card__thumb:hover .card__img { transform: scale(1.04); }

.card__preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.card__thumb.is-playing .card__preview { opacity: 1; }

.card__play {
	position: absolute;
	left: 50%; top: 50%;
	width: 54px; height: 54px;
	transform: translate(-50%, -50%) scale(.86);
	display: grid;
	place-items: center;
	background: var(--lime);
	border: 3px solid var(--ink);
	border-radius: 50%;
	padding-left: 4px;
	font-size: 18px;
	opacity: 0;
	transition: opacity .16s ease, transform .16s ease;
	box-shadow: 3px 3px 0 var(--ink);
}
.card__thumb:hover .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card__badge {
	position: absolute;
	top: 10px; left: 10px;
	background: var(--pink);
	color: var(--ink);
	border: 2.5px solid var(--ink);
	border-radius: 8px;
	padding: 3px 9px;
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	transform: rotate(-4deg);
	box-shadow: 2px 2px 0 var(--ink);
}
.card__badge--lime { background: var(--lime); }
.card__badge--violet { background: var(--violet); color: #fff; }

.card__dur {
	position: absolute;
	right: 9px; bottom: 9px;
	background: rgba(18, 16, 14, 0.88);
	color: #fff;
	border-radius: 6px;
	padding: 2px 7px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
}

.card__title {
	font-family: var(--font-body);
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.012em;
	margin: 12px 2px 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card__title a:hover { color: var(--violet-deep); }

.card__meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--muted);
	margin-left: 2px;
}
.card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.card__cat { color: var(--pink-deep); }

/* Featured first card */
@media (min-width: 900px) {
	.grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--featured > .card:first-child { grid-column: span 2; grid-row: span 2; }
	.grid--featured > .card:first-child .card__thumb { aspect-ratio: 16 / 10; height: 100%; }
	.grid--featured > .card:first-child .card__title { font-size: 24px; -webkit-line-clamp: 3; }
	.grid--featured > .card:first-child .card__img { height: 100%; }
}

/* ---------------------------------------------------------------
   9. Promo band
--------------------------------------------------------------- */
.band {
	position: relative;
	margin-block: 12px;
	background: var(--violet);
	color: #fff;
	border-block: var(--border);
	overflow: hidden;
}
.band::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.3px, transparent 1.3px);
	background-size: 14px 14px;
	opacity: .65;
	pointer-events: none;
}
.band__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 18px;
}
.band h2 {
	font-size: clamp(20px, 2.6vw, 32px);
	text-transform: uppercase;
	margin: 0 0 4px;
}
.band h2 span { color: var(--lime); }
.band p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 14.5px; }

/* ---------------------------------------------------------------
   10. Category tiles
--------------------------------------------------------------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}
.cat-tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 108px;
	padding: 16px;
	background: var(--card);
	border: var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	transition: transform .13s ease, box-shadow .13s ease, background .13s ease;
}
.cat-tile:hover {
	color: var(--ink);
	background: var(--lime);
	transform: translate(-2px, -2px) rotate(-.6deg);
	box-shadow: 6px 6px 0 var(--ink);
}
.cat-tile__name {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.cat-tile__count { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-tile:hover .cat-tile__count { color: var(--ink-soft); }

/* ---------------------------------------------------------------
   11. Editorial / SEO copy
--------------------------------------------------------------- */
.editorial {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 30px;
	padding-block: 30px;
	border-top: var(--border);
	margin-top: 16px;
}
.editorial h2 { font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; }
.editorial p { color: var(--ink-soft); font-size: 15.5px; }
.editorial a { color: var(--violet-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

.faq { border: var(--border); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__title {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0;
	padding: 14px 18px;
	background: var(--ink);
	color: var(--lime);
	font-family: var(--font-display);
}
.faq details { border-top: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 14px 44px 14px 18px;
	font-weight: 800;
	font-size: 14.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute;
	right: 16px; top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1;
	color: var(--pink-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 18px 16px; font-size: 14px; color: var(--ink-soft); }
.faq .faq__a p { margin: 0; }

/* ---------------------------------------------------------------
   12. Pagination
--------------------------------------------------------------- */
.pager { display: flex; justify-content: center; padding-block: 34px 10px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	background: var(--card);
	border: 2.5px solid var(--ink);
	border-radius: 10px;
	font-weight: 800;
	font-size: 14px;
}
.pager .page-numbers:hover { background: var(--lime); color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { border: 0; background: transparent; }

/* ---------------------------------------------------------------
   13. Archive header
--------------------------------------------------------------- */
.archive-head { padding-block: 22px 6px; }
.archive-head h1 { font-size: clamp(26px, 3.6vw, 44px); text-transform: uppercase; margin-bottom: 6px; }
.archive-head .archive-desc { max-width: 70ch; color: var(--ink-soft); font-size: 15.5px; }
.archive-head .count-pill {
	display: inline-block;
	background: var(--lime);
	border: 2.5px solid var(--ink);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-top: 6px;
}

/* ---------------------------------------------------------------
   14. Single video
--------------------------------------------------------------- */
.crumbs { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-block: 20px 12px; }
.crumbs a:hover { color: var(--pink-deep); }
.crumbs span { padding-inline: 6px; }

.player-shell {
	position: relative;
	background: var(--ink);
	border: var(--border);
	border-radius: 22px;
	padding: 10px;
	box-shadow: 8px 8px 0 rgba(18, 16, 14, 0.35);
	overflow: hidden;
}
.player-shell video {
	width: 100%;
	max-height: 72vh;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
}
.player-note {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 10px;
	padding: 8px 6px 2px;
	color: #b9b1a4;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
}

.single-head { padding-block: 22px 8px; }
.single-head h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 10px; }
.single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}
.single-meta .pill {
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 999px;
	padding: 3px 10px;
	color: var(--ink);
}
.single-meta .pill--pink { background: var(--pink); }

.single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px;
	padding-block: 18px 40px;
	align-items: start;
}
.single-body { font-size: 16px; color: var(--ink-soft); }
.single-body p { margin-bottom: 1.1em; }
.single-body h2, .single-body h3 { color: var(--ink); margin-top: 1.4em; }
.single-body a { color: var(--violet-deep); font-weight: 700; text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-row .chip { text-transform: lowercase; letter-spacing: 0; font-size: 12.5px; }

.upnext { position: sticky; top: 100px; }
.upnext__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.upnext__head h2 { font-size: 18px; text-transform: uppercase; margin: 0; }
.upnext__list { display: grid; gap: 10px; }
.mini {
	display: grid;
	grid-template-columns: 122px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	background: var(--card);
	border: 2.5px solid var(--ink);
	border-radius: 12px;
	padding: 7px;
	transition: transform .12s ease, background .12s ease;
}
.mini:hover { background: var(--lime); color: var(--ink); transform: translateX(-2px); }
.mini__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #1b1720;
}
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__thumb span {
	position: absolute;
	right: 4px; bottom: 4px;
	background: rgba(18, 16, 14, .88);
	color: #fff;
	font-size: 9.5px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 4px;
}
.mini__title {
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mini__meta { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.mini:hover .mini__meta { color: var(--ink-soft); }

/* ---------------------------------------------------------------
   15. Page / 404
--------------------------------------------------------------- */
.page-wrap { max-width: 820px; margin-inline: auto; padding-block: 46px 70px; }
.page-wrap h1 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; }
.page-content { font-size: 16.5px; color: var(--ink-soft); }
.page-content h2 { font-size: 26px; color: var(--ink); margin-top: 1.6em; }
.page-content h3 { font-size: 20px; color: var(--ink); margin-top: 1.4em; }
.page-content a { color: var(--violet-deep); font-weight: 700; text-decoration: underline; }
.page-content ul, .page-content ol { padding-left: 1.3em; }
.page-content li { margin-bottom: .4em; }
.page-content blockquote {
	margin: 1.5em 0;
	padding: 14px 18px;
	background: var(--card);
	border: var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.error-404 { text-align: center; padding-block: 70px 90px; }
.error-404 h1 { font-size: clamp(50px, 12vw, 130px); line-height: .85; text-transform: uppercase; }
.error-404 h1 span { color: var(--pink); }
.error-404 p { max-width: 46ch; margin: 0 auto 22px; color: var(--ink-soft); }
.error-404 img { width: 170px; margin: 0 auto 18px; mix-blend-mode: multiply; }

/* ---------------------------------------------------------------
   16. Footer
--------------------------------------------------------------- */
.site-footer {
	background: var(--ink);
	color: var(--paper);
	border-top: var(--border);
	margin-top: 30px;
}
.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr);
	gap: 30px;
	padding-block: 42px 30px;
}
.footer-brand .brand__word { color: var(--paper); font-size: 38px; }
.footer-brand .brand__word b { color: var(--lime); }
.footer-brand .brand__word i { color: var(--paper); }
.footer-brand .brand__word em { color: var(--pink); }
.footer-brand p { color: #a9a294; font-size: 14px; max-width: 34ch; margin-top: 12px; }
.footer-col h3 {
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #d8d1c4; font-size: 13.5px; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
	border-top: 1px solid rgba(247, 242, 232, 0.16);
	padding-block: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	color: #918a7c;
}
.footer-bottom .badge-18 {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border: 2px solid var(--lime);
	border-radius: 50%;
	color: var(--lime);
	font-weight: 800;
	font-size: 12px;
}

/* ---------------------------------------------------------------
   17. Responsive
--------------------------------------------------------------- */
@media (max-width: 1080px) {
	.nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-inner { flex-wrap: wrap; }
	.header-search { flex: 1 1 100%; order: 3; margin-left: 0; }
	.nav.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		order: 4;
		flex: 1 1 100%;
		margin: 6px 0 8px;
		border-top: 2px solid var(--ink);
		padding-top: 8px;
		gap: 0;
	}
	.nav.is-open a { padding: 10px 6px; border-bottom: 1px solid rgba(18,16,14,.12); }
	.single-grid { grid-template-columns: 1fr; }
	.upnext { position: static; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; padding-block: 14px 12px; }
	.hero__art { display: none; }
	.band__inner { flex-direction: column; align-items: flex-start; }
	.editorial { grid-template-columns: 1fr; gap: 26px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(46%, 1fr)); gap: 18px 12px; }
	.card__title { font-size: 13.5px; }
	.footer-top { grid-template-columns: 1fr; }
	.header-search { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 540px) {
	.wrap { padding-inline: 14px; }
	.hero h1 { font-size: clamp(28px, 8vw, 38px); }
	.hero__sub { font-size: 15.5px; }
	.brand__word { font-size: 28px; }
	.brand__mark { width: 44px; height: 44px; }
	.grid { grid-template-columns: 1fr 1fr; }
	.player-shell { padding: 6px; border-radius: 16px; }
	.player-shell video { border-radius: 10px; }
	.single-head h1 { font-size: 26px; }
	.mini { grid-template-columns: 104px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.ticker__track { animation: none; }
}

/* ---------------------------------------------------------------
   bivids-featured-fix
   The featured lead card combined aspect-ratio:16/10 with height:100%,
   which made its thumb grow to ~678px inside a 463px card and overlap
   the neighbouring column. Let the thumb fill the card instead.
---------------------------------------------------------------- */
.grid--featured > .card:first-child { min-width: 0; }
.grid--featured > .card:first-child .card__thumb {
	aspect-ratio: auto;
	height: 100%;
	width: 100%;
	max-width: 100%;
}
.grid--featured > .card:first-child .card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__thumb { max-width: 100%; }

/* ---------------------------------------------------------------
   bivids-featured-fix-2
   In the featured lead card the thumbnail filled the whole grid area,
   pushing the title below the card where it got clipped. Make the card
   a flex column so the thumb yields space to the title + meta.
---------------------------------------------------------------- */
.grid--featured > .card:first-child {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.grid--featured > .card:first-child .card__thumb {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	width: 100%;
	aspect-ratio: auto;
}
.grid--featured > .card:first-child .card__title,
.grid--featured > .card:first-child .card__meta {
	flex: 0 0 auto;
	position: relative;
	z-index: 1;
}

/* bivids-featured-fix-3 — breathing room under the meta line */
.grid--featured > .card:first-child { padding-bottom: 12px; }
.grid--featured > .card:first-child .card__meta { margin-bottom: 0; }
