/*
 * Fluxwave interface styles
 * Distinctive purple/teal visual system for long videos and vertical shorts.
 */

:root {
	--accent: #7c5cff;
	--accent-rgb: 124, 92, 255;
	--accent-2: #22d3b6;
	--accent-2-rgb: 34, 211, 182;
	--bg: #0f1220;
	--bg-elevated: #15192a;
	--surface: #191e31;
	--surface-2: #20263a;
	--surface-3: #282f46;
	--surface-glass: rgba(21, 25, 42, 0.82);
	--text: #f7f8ff;
	--text-soft: #d3d7e7;
	--muted: #949bb3;
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.16);
	--danger: #ff647c;
	--success: #22d3b6;
	--shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.18);
	--shadow-md: 0 18px 55px rgba(0, 0, 0, 0.28);
	--shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.42);
	--header-h: 68px;
	--sidebar-w: 244px;
	--sidebar-compact-w: 84px;
	--page-pad: clamp(18px, 2.4vw, 38px);
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
	--bg: #f5f6fb;
	--bg-elevated: #ffffff;
	--surface: #ffffff;
	--surface-2: #eef0f7;
	--surface-3: #e3e6f0;
	--surface-glass: rgba(255, 255, 255, 0.86);
	--text: #17192a;
	--text-soft: #3c425a;
	--muted: #6d7388;
	--line: rgba(20, 24, 42, 0.09);
	--line-strong: rgba(20, 24, 42, 0.16);
	--shadow-sm: 0 10px 28px rgba(45, 48, 75, 0.08);
	--shadow-md: 0 18px 50px rgba(45, 48, 75, 0.13);
	--shadow-lg: 0 28px 80px rgba(45, 48, 75, 0.18);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 85% -10%, rgba(var(--accent-rgb), 0.12), transparent 28rem),
		radial-gradient(circle at 15% 18%, rgba(var(--accent-2-rgb), 0.06), transparent 25rem),
		var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.nav-open,
body.search-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: inherit;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
input[type="submit"] {
	cursor: pointer;
}

button:disabled,
input:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

::selection {
	background: rgba(var(--accent-rgb), 0.34);
	color: var(--text);
}

:focus-visible {
	outline: 3px solid rgba(var(--accent-rgb), 0.46);
	outline-offset: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--surface);
	clip: auto !important;
	clip-path: none;
	color: var(--text);
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 12px;
	padding: 12px 16px;
	top: 12px;
	width: auto;
	z-index: 100000;
	border-radius: var(--radius-sm);
}

.skip-link {
	z-index: 100001;
}

.flux-icon {
	display: block;
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
}

.muted-text {
	color: var(--muted);
}

/* Application shell */

.flux-app-shell {
	min-height: 100vh;
}

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(280px, 760px) minmax(250px, 1fr);
	align-items: center;
	gap: 22px;
	height: var(--header-h);
	padding: 0 20px 0 14px;
	border-bottom: 1px solid var(--line);
	background: var(--surface-glass);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
}

.site-header__left,
.site-header__actions,
.site-header__search {
	display: flex;
	align-items: center;
}

.site-header__left {
	gap: 10px;
	min-width: 0;
}

.site-header__actions {
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.site-header__search {
	width: 100%;
	min-width: 0;
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--text-soft);
	transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.icon-button:hover {
	background: var(--surface-2);
	color: var(--text);
	transform: translateY(-1px);
}

.icon-button .flux-icon {
	width: 21px;
	height: 21px;
}

.site-menu-toggle {
	flex: 0 0 auto;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.045em;
}

.site-brand__mark {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 29px;
	flex: 0 0 auto;
	transform: rotate(-2deg);
}

.site-brand__mark span {
	position: absolute;
	inset: 2px 6px;
	border-radius: 9px 5px 9px 5px;
	background: linear-gradient(135deg, var(--accent), #a677ff 54%, var(--accent-2));
	box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35);
	transform: skewX(-12deg);
}

.site-brand__mark span:last-child {
	inset: 8px 12px;
	background: var(--bg-elevated);
	box-shadow: none;
}

.site-brand__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-brand__custom-logo,
.site-brand__custom-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 185px;
}

.site-brand__custom-logo img {
	width: auto;
	max-width: 185px;
	max-height: 42px;
	object-fit: contain;
}

.site-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.site-search-form__field {
	width: 100%;
	height: 44px;
	padding: 0 60px 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.13);
	color: var(--text);
	outline: none;
	transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

html[data-theme="light"] .site-search-form__field {
	background: rgba(245, 246, 251, 0.8);
}

.site-search-form__field::placeholder {
	color: var(--muted);
}

.site-search-form__field:focus {
	border-color: var(--accent);
	background: var(--surface);
	box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.site-search-form__submit {
	position: absolute;
	right: 0;
	display: grid;
	place-items: center;
	width: 54px;
	height: 44px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0 999px 999px 0;
	background: var(--surface-2);
	color: var(--text-soft);
	transition: background 180ms var(--ease), color 180ms var(--ease);
}

.site-search-form__submit:hover {
	background: var(--surface-3);
	color: var(--text);
}

.site-search-form__submit .flux-icon {
	width: 20px;
	height: 20px;
}

.site-search-form__close {
	display: none;
}

.mobile-search-toggle {
	display: none;
}

.header-studio-link,
.header-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.header-studio-link:hover,
.header-login:hover {
	background: var(--surface-3);
	color: var(--text);
	transform: translateY(-1px);
}

.header-studio-link .flux-icon,
.header-login .flux-icon {
	width: 18px;
	height: 18px;
}

.header-login {
	border-color: rgba(var(--accent-rgb), 0.4);
	background: rgba(var(--accent-rgb), 0.11);
	color: var(--text);
}

.header-profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.header-profile:hover {
	transform: translateY(-1px) scale(1.03);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22);
}

.header-profile__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.theme-toggle__sun {
	display: none;
}

html[data-theme="light"] .theme-toggle__moon {
	display: none;
}

html[data-theme="light"] .theme-toggle__sun {
	display: block;
}

/* Sidebar */

.site-sidebar {
	position: fixed;
	z-index: 900;
	inset: var(--header-h) auto 0 0;
	display: flex;
	flex-direction: column;
	width: var(--sidebar-w);
	border-right: 1px solid var(--line);
	background: var(--bg-elevated);
	transition: width 260ms var(--ease), transform 260ms var(--ease);
}

.site-sidebar__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 12px 20px;
	scrollbar-width: thin;
	scrollbar-color: var(--surface-3) transparent;
}

.sidebar-section {
	display: grid;
	gap: 4px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
}

.sidebar-section:first-child {
	padding-top: 2px;
}

.sidebar-section:last-child {
	border-bottom: 0;
}

.sidebar-section__title {
	margin: 0 10px 7px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 43px;
	padding: 9px 11px;
	border-radius: 12px;
	color: var(--text-soft);
	font-size: 14px;
	font-weight: 620;
	transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.sidebar-link:hover {
	background: var(--surface-2);
	color: var(--text);
	transform: translateX(2px);
}

.sidebar-link.is-active {
	background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-2-rgb), 0.08));
	color: var(--text);
	box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-link .flux-icon {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
}

.sidebar-link.is-active .flux-icon {
	color: var(--accent);
}

.sidebar-link__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-link__badge {
	margin-left: auto;
	color: var(--muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.topic-dot {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 7px;
	background: linear-gradient(135deg, hsl(var(--topic-hue) 78% 62%), hsl(calc(var(--topic-hue) + 42) 80% 54%));
	box-shadow: 0 5px 14px hsl(var(--topic-hue) 70% 40% / 0.22);
}

.sidebar-custom-menu,
.sidebar-custom-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-custom-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--text-soft);
	font-size: 13px;
}

.sidebar-custom-menu a:hover {
	background: var(--surface-2);
	color: var(--text);
}

.site-sidebar__footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
}

.site-sidebar__brand {
	color: var(--text-soft);
	font-weight: 800;
}

.sidebar-backdrop {
	position: fixed;
	z-index: 850;
	inset: var(--header-h) 0 0;
	display: none;
	border: 0;
	background: rgba(5, 7, 16, 0.64);
	backdrop-filter: blur(3px);
}

/* Collapsed sidebar */

body.sidebar-collapsed .site-sidebar {
	width: var(--sidebar-compact-w);
}

body.sidebar-collapsed .site-header {
	grid-template-columns: var(--sidebar-compact-w) minmax(280px, 760px) minmax(250px, 1fr);
}

body.sidebar-collapsed .site-main,
body.sidebar-collapsed .site-footer {
	margin-left: var(--sidebar-compact-w);
}

body.sidebar-collapsed .site-brand__name,
body.sidebar-collapsed .site-sidebar .sidebar-section__title,
body.sidebar-collapsed .site-sidebar .sidebar-link__label,
body.sidebar-collapsed .site-sidebar .sidebar-link__badge,
body.sidebar-collapsed .site-sidebar__footer,
body.sidebar-collapsed .sidebar-section--custom {
	display: none;
}

body.sidebar-collapsed .site-brand {
	gap: 0;
}

body.sidebar-collapsed .sidebar-link {
	justify-content: center;
	padding-inline: 8px;
}

body.sidebar-collapsed .sidebar-link:hover {
	transform: translateY(-1px);
}

body.sidebar-collapsed .topic-dot {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
}

/* Main and footer */

.site-main {
	min-height: calc(100vh - var(--header-h));
	margin-top: var(--header-h);
	margin-left: var(--sidebar-w);
	transition: margin-left 260ms var(--ease);
}

.site-footer {
	margin-left: var(--sidebar-w);
	padding: 28px var(--page-pad) 38px;
	border-top: 1px solid var(--line);
	transition: margin-left 260ms var(--ease);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1680px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 12px;
}

.site-footer__inner p {
	margin: 0;
}

.site-footer__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu a:hover {
	color: var(--text);
}

.mobile-bottom-nav {
	display: none;
}

.page-shell {
	width: min(100%, 1780px);
	margin: 0 auto;
	padding: 28px var(--page-pad) 56px;
}

/* Shared labels and buttons */

.eyebrow,
.section-heading__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--accent-2);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.eyebrow .flux-icon,
.section-heading__eyebrow .flux-icon {
	width: 15px;
	height: 15px;
}

.section-heading__eyebrow {
	color: var(--muted);
}

.section-heading__eyebrow--accent {
	color: var(--accent-2);
}

.flux-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 780;
	line-height: 1;
	transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.flux-button:hover {
	transform: translateY(-2px);
}

.flux-button .flux-icon {
	width: 18px;
	height: 18px;
}

.flux-button--primary {
	background: linear-gradient(135deg, var(--accent), #9d6cff);
	color: #fff;
	box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.27);
}

.flux-button--primary:hover {
	box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.34);
	color: #fff;
}

.flux-button--soft {
	border-color: var(--line);
	background: var(--surface-2);
	color: var(--text-soft);
}

.flux-button--soft:hover {
	border-color: var(--line-strong);
	background: var(--surface-3);
	color: var(--text);
}

/* Home page */

.home-intro {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	min-height: 190px;
	padding: clamp(25px, 4vw, 52px);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(120deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-2-rgb), 0.07) 55%, transparent),
		var(--surface);
	box-shadow: var(--shadow-sm);
}

.home-intro::before,
.home-intro::after {
	content: "";
	position: absolute;
	border-radius: 50%;	pointer-events: none;
}

.home-intro::before {
	width: 260px;
	height: 260px;
	right: 8%;
	top: -170px;
	background: radial-gradient(circle, rgba(var(--accent-rgb), 0.46), rgba(var(--accent-rgb), 0));
}

.home-intro::after {
	width: 230px;
	height: 230px;
	right: -70px;
	bottom: -170px;
	background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.34), rgba(var(--accent-2-rgb), 0));
}

.home-intro__copy,
.home-intro__actions {
	position: relative;
	z-index: 1;
}

.home-intro h1 {
	max-width: 770px;
	margin: 10px 0 9px;
	font-size: clamp(33px, 4vw, 60px);
	line-height: 1;
	letter-spacing: -0.055em;
}

.home-intro p {
	max-width: 700px;
	margin: 0;
	color: var(--text-soft);
	font-size: clamp(14px, 1.4vw, 17px);
}

.home-intro__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.topic-chips {
	position: sticky;
	top: calc(var(--header-h) + 1px);
	z-index: 40;
	display: flex;
	gap: 9px;
	margin: 22px calc(var(--page-pad) * -0.25) 0;
	padding: 10px calc(var(--page-pad) * 0.25);
	overflow-x: auto;
	scrollbar-width: none;
	background: linear-gradient(var(--bg) 72%, transparent);
}

.topic-chips::-webkit-scrollbar {
	display: none;
}

.topic-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 720;
	white-space: nowrap;
	transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.topic-chip:hover {
	border-color: rgba(var(--accent-rgb), 0.32);
	background: rgba(var(--accent-rgb), 0.12);
	color: var(--text);
	transform: translateY(-1px);
}

.topic-chip.is-active {
	border-color: transparent;
	background: var(--text);
	color: var(--bg);
}

.content-section {
	margin-top: clamp(36px, 5vw, 62px);
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.section-heading h2,
.watch-related__heading h2 {
	margin: 4px 0 0;
	font-size: clamp(22px, 2.3vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.038em;
}

.section-heading__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 4px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 750;
	transition: color 160ms var(--ease), gap 160ms var(--ease);
}

.section-heading__link:hover {
	gap: 9px;
	color: var(--text);
}

.section-heading__link .flux-icon {
	width: 17px;
	height: 17px;
}

/* Video cards */

.video-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 2.2vw, 36px) clamp(16px, 1.7vw, 26px);
}

.featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.84fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.video-card {
	min-width: 0;
	transition: transform 240ms var(--ease);
}

.video-card:hover {
	transform: translateY(-4px);
}

.js-enabled [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js-enabled [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.video-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #080a12;
	box-shadow: var(--shadow-sm);
	isolation: isolate;
}

.video-card__thumb img,
.video-card__thumb .flux-thumbnail__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease), filter 500ms var(--ease);
}

.video-card:hover .video-card__thumb img,
.video-card:hover .video-card__thumb .flux-thumbnail__fallback {
	transform: scale(1.035);
}

.video-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(4, 5, 10, 0.34), transparent 45%);
	opacity: 0.45;
	transition: opacity 220ms var(--ease);
}

.video-card:hover .video-card__shade {
	opacity: 1;
}

.video-card__play {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: rgba(9, 11, 22, 0.66);
	color: #fff;
	backdrop-filter: blur(12px);
	opacity: 0;
	transform: translate(-50%, -42%) scale(0.88);
	transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.video-card:hover .video-card__play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.video-card__play .flux-icon {
	width: 24px;
	height: 24px;
	margin-left: 2px;
}

.video-card__duration,
.video-card__badge,
.video-card__type {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 4px 7px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 7px;
	background: rgba(5, 6, 12, 0.74);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	backdrop-filter: blur(10px);
}

.video-card__duration {
	right: 9px;
	bottom: 9px;
	font-variant-numeric: tabular-nums;
}

.video-card__badge {
	left: 9px;
	top: 9px;
	text-transform: uppercase;
}

.video-card__badge--live {
	border-color: rgba(255, 100, 124, 0.5);
	background: rgba(226, 47, 76, 0.88);
}

.video-card__badge--featured,
.video-card__badge--premiere {
	border-color: rgba(var(--accent-rgb), 0.5);
	background: rgba(var(--accent-rgb), 0.85);
}

.video-card__badge--new {
	border-color: rgba(var(--accent-2-rgb), 0.5);
	background: rgba(15, 121, 108, 0.88);
}

.video-card__type {
	left: 9px;
	bottom: 9px;
	color: #fff;
}

.video-card__body {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 36px;
	gap: 12px;
	align-items: start;
	padding-top: 13px;
}

.video-card__avatar,
.video-card__avatar img {
	display: block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.video-card__avatar img {
	object-fit: cover;
	background: var(--surface-2);
}

.video-card__content {
	min-width: 0;
}

.video-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 760;
	line-height: 1.35;
	letter-spacing: -0.018em;
}

.video-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.video-card__channel {
	display: block;
	max-width: max-content;
	margin-top: 7px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.2;
}

.video-card__channel:hover {
	color: var(--text-soft);
}

.video-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
}

.video-card__more {
	width: 34px;
	height: 34px;
	margin-top: -4px;
	opacity: 0.45;
}

.video-card:hover .video-card__more {
	opacity: 1;
}

.flux-thumbnail__fallback {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(circle at 28% 24%, hsl(var(--fallback-hue) 88% 67% / 0.55), transparent 35%),
		radial-gradient(circle at 78% 74%, hsl(calc(var(--fallback-hue) + 76) 82% 58% / 0.5), transparent 38%),
		linear-gradient(145deg, hsl(var(--fallback-hue) 28% 17%), hsl(calc(var(--fallback-hue) + 30) 34% 8%));
}

.flux-thumbnail__fallback::before,
.flux-thumbnail__fallback::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 28%;
	transform: rotate(24deg);
}

.flux-thumbnail__fallback::before {
	width: 48%;
	aspect-ratio: 1;
	left: -15%;
	bottom: -35%;
}

.flux-thumbnail__fallback::after {
	width: 32%;
	aspect-ratio: 1;
	right: -10%;
	top: -22%;
}

.flux-thumbnail__orb {
	position: absolute;
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
	filter: blur(1px);
}

.flux-thumbnail__play {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(6, 8, 17, 0.34);
	color: #fff;
	backdrop-filter: blur(12px);
}

.flux-thumbnail__play .flux-icon {
	width: 29px;
	height: 29px;
	margin-left: 3px;
}

/* Featured card layout */

.video-card--hero-primary {
	grid-row: 1 / span 2;
}

.video-card--hero-primary .video-card__thumb {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
}

.video-card--hero-primary .video-card__title {
	font-size: clamp(16px, 1.5vw, 21px);
}

.video-card--hero-primary .video-card__body {
	grid-template-columns: 48px minmax(0, 1fr) 36px;
}

.video-card--hero-primary .video-card__avatar,
.video-card--hero-primary .video-card__avatar img {
	width: 48px;
	height: 48px;
}

.video-card--hero-secondary {
	display: grid;
	grid-template-columns: minmax(150px, 44%) minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.video-card--hero-secondary .video-card__thumb {
	aspect-ratio: 16 / 10;
	border-radius: 13px;
	box-shadow: none;
}

.video-card--hero-secondary .video-card__body {
	grid-template-columns: 34px minmax(0, 1fr);
	padding: 0;
}

.video-card--hero-secondary .video-card__avatar,
.video-card--hero-secondary .video-card__avatar img {
	width: 34px;
	height: 34px;
}

.video-card--hero-secondary .video-card__more {
	display: none;
}

.video-card--hero-secondary .video-card__title {
	font-size: 13px;
}

.video-card--hero-secondary .video-card__channel {
	margin-top: 5px;
}

/* Shorts cards and rails */

.shorts-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(190px, 244px);
	gap: 16px;
	overflow-x: auto;
	padding: 2px 2px 14px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--surface-3) transparent;
}

.short-card {
	min-width: 0;
	scroll-snap-align: start;
}

.short-card__media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 15.5;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #070912;
	box-shadow: var(--shadow-sm);
	isolation: isolate;
	transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.short-card:hover .short-card__media {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

.short-card__media img,
.short-card__media .flux-thumbnail__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease);
}

.short-card:hover .short-card__media img,
.short-card:hover .short-card__media .flux-thumbnail__fallback {
	transform: scale(1.04);
}

.short-card__gradient {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(to top, rgba(4, 5, 12, 0.9), transparent 52%);
}

.short-card__play {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 43%;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(5, 7, 16, 0.58);
	color: #fff;
	backdrop-filter: blur(12px);
	opacity: 0;
	transform: translate(-50%, -42%) scale(0.88);
	transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.short-card:hover .short-card__play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.short-card__duration {
	position: absolute;
	z-index: 3;
	right: 10px;
	top: 10px;
	padding: 5px 7px;
	border-radius: 7px;
	background: rgba(4, 5, 12, 0.68);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	backdrop-filter: blur(10px);
}

.short-card__overlay {
	position: absolute;
	z-index: 2;
	inset: auto 14px 14px;
	color: #fff;
}

.short-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.short-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 10px;
}

.short-card__meta img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
}

/* Archives */

.archive-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	min-height: 170px;
	padding: clamp(26px, 4vw, 48px);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(125deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-2-rgb), 0.04)),
		var(--surface);
	box-shadow: var(--shadow-sm);
}

.archive-hero::after {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	right: -80px;
	top: -150px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 70%);
	pointer-events: none;
}

.archive-hero > * {
	position: relative;
	z-index: 1;
}

.archive-hero h1 {
	margin: 9px 0 6px;
	font-size: clamp(34px, 4.4vw, 64px);
	line-height: 1;
	letter-spacing: -0.055em;
}

.archive-hero p,
.archive-hero__description {
	max-width: 720px;
	margin: 0;
	color: var(--text-soft);
	font-size: 15px;
}

.archive-hero__description p {
	margin: 0;
}

.archive-sort {
	display: inline-flex;
	gap: 5px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
}

.archive-sort__button {
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 750;
}

.archive-sort__button:hover {
	color: var(--text);
}

.archive-sort__button.is-active {
	background: var(--text);
	color: var(--bg);
}

.video-grid--archive,
.video-grid--library,
.video-grid--search {
	margin-top: 28px;
}

.flux-pagination,
.navigation.pagination {
	margin-top: 45px;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 750;
}

.page-numbers:hover,
.page-numbers.current {
	border-color: rgba(var(--accent-rgb), 0.38);
	background: rgba(var(--accent-rgb), 0.14);
	color: var(--text);
}

.page-numbers.prev,
.page-numbers.next {
	gap: 7px;
	width: auto;
}

.page-numbers .flux-icon {
	width: 15px;
	height: 15px;
}

/* Empty states */

.flux-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: 44px 24px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-xl);
	background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.07), rgba(var(--accent-2-rgb), 0.035)), var(--surface);
	text-align: center;
}

.flux-empty__icon {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	margin-bottom: 18px;
	border: 1px solid rgba(var(--accent-rgb), 0.28);
	border-radius: 24px;
	background: rgba(var(--accent-rgb), 0.12);
	color: var(--accent);
	transform: rotate(-4deg);
}

.flux-empty__icon .flux-icon {
	width: 32px;
	height: 32px;
}

.flux-empty h1,
.flux-empty h2 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(25px, 3vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.flux-empty p {
	max-width: 600px;
	margin: 12px auto 22px;
	color: var(--muted);
}

.flux-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.not-found-code {
	margin-bottom: -16px;
	color: rgba(var(--accent-rgb), 0.17);
	font-size: clamp(90px, 18vw, 220px);
	font-weight: 950;
	line-height: 0.8;
	letter-spacing: -0.08em;
}

.not-found-search {
	width: min(100%, 620px);
	margin-top: 28px;
}

/* Watch page and player */

.watch-page {
	padding-top: 22px;
}

.watch-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
	gap: clamp(24px, 2.5vw, 38px);
	align-items: start;
}

.watch-main,
.watch-related {
	min-width: 0;
}

.watch-player-wrap {
	overflow: hidden;
	border-radius: 20px;
	box-shadow: var(--shadow-lg);
}

.flux-player {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	overflow: hidden;
	background: #05060b;
	color: #fff;
}

.flux-player--wide {
	aspect-ratio: 16 / 9;
}

.flux-player--short {
	width: 100%;
	height: 100%;
	aspect-ratio: 9 / 16;
}

.flux-player__media,
.flux-player__embed,
.flux-player__embed iframe,
.flux-player__embed video {
	width: 100%;
	height: 100%;
}

.flux-player__media {
	display: block;
	object-fit: contain;
	background: #05060b;
}

.flux-player__embed {
	position: absolute;
	inset: 0;
}

.flux-player__embed iframe {
	display: block;
	border: 0;
}

.flux-player--empty {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px;
	text-align: center;
	background:
		radial-gradient(circle at 35% 20%, rgba(var(--accent-rgb), 0.33), transparent 35%),
		linear-gradient(145deg, #11152a, #05060b);
}

.flux-player--empty h3 {
	margin: 12px 0 4px;
	font-size: clamp(18px, 2vw, 27px);
}

.flux-player--empty p {
	max-width: 520px;
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
}

.flux-player--empty p + p,
.flux-player--empty .flux-button {
	margin-top: 18px;
}

.flux-player__empty-icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--accent-2);
}

.flux-player__empty-icon .flux-icon {
	width: 30px;
	height: 30px;
}

.watch-header {
	padding: 20px 2px 13px;
}

.watch-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 7px;
}

.watch-topics a {
	color: var(--accent-2);
	font-size: 11px;
	font-weight: 730;
}

.watch-header h1 {
	margin: 0;
	font-size: clamp(22px, 2.5vw, 36px);
	line-height: 1.17;
	letter-spacing: -0.04em;
}

.watch-header__meta {
	display: flex;
	gap: 7px;
	margin-top: 9px;
	color: var(--muted);
	font-size: 12px;
}

.watch-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 0 20px;
	border-bottom: 1px solid var(--line);
}

.channel-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.channel-summary__avatar,
.channel-summary__avatar img {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

.channel-summary__avatar img {
	object-fit: cover;
	background: var(--surface-2);
}

.channel-summary__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.channel-summary__name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-summary__text > span {
	color: var(--muted);
	font-size: 10px;
}

.subscribe-button,
.short-subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 40px;
	margin-left: 8px;
	padding: 0 15px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), #9568ff);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.24);
	transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.subscribe-button:hover,
.short-subscribe:hover {
	transform: translateY(-1px);
	box-shadow: 0 13px 30px rgba(var(--accent-rgb), 0.31);
}

.subscribe-button.is-active,
.short-subscribe.is-active {
	border: 1px solid var(--line);
	background: var(--surface-2);
	color: var(--text-soft);
	box-shadow: none;
}

.subscribe-button__icon .flux-icon {
	width: 16px;
	height: 16px;
}

.watch-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: max-content;
}

.watch-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 750;
	transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), border-color 160ms var(--ease);
}

.watch-action:hover {
	background: var(--surface-3);
	color: var(--text);
	transform: translateY(-1px);
}

.watch-action.is-active {
	border-color: rgba(var(--accent-rgb), 0.34);
	background: rgba(var(--accent-rgb), 0.14);
	color: var(--accent);
}

.watch-action .flux-icon {
	width: 17px;
	height: 17px;
}

.watch-description {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.watch-description__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 12px;
}

.watch-description__content {
	color: var(--text-soft);
	font-size: 14px;
}

.watch-description__content > :first-child {
	margin-top: 0;
}

.watch-description__content > :last-child {
	margin-bottom: 0;
}

.watch-related {
	position: sticky;
	top: calc(var(--header-h) + 18px);
}

.watch-related__heading {
	margin-bottom: 15px;
}

.related-list {
	display: grid;
	gap: 13px;
}

.video-card--compact {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 12px;
	padding: 9px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.video-card--compact:hover {
	border-color: var(--line);
	background: var(--surface);
	transform: translateX(-2px);
}

.video-card--compact .video-card__thumb {
	aspect-ratio: 16 / 10;
	border-radius: 11px;
	box-shadow: none;
}

.video-card--compact .video-card__play {
	width: 38px;
	height: 38px;
}

.video-card--compact .video-card__play .flux-icon {
	width: 19px;
	height: 19px;
}

.video-card--compact .video-card__body {
	grid-template-columns: minmax(0, 1fr) 24px;
	gap: 5px;
	padding: 2px 0 0;
}

.video-card--compact .video-card__avatar {
	display: none;
}

.video-card--compact .video-card__title {
	font-size: 12px;
	line-height: 1.34;
}

.video-card--compact .video-card__channel {
	margin-top: 5px;
	font-size: 10px;
}

.video-card--compact .video-card__meta {
	font-size: 9px;
}

.video-card--compact .video-card__more {
	width: 24px;
	height: 24px;
}

.video-card--compact .video-card__type {
	left: 6px;
	bottom: 6px;
	font-size: 8px;
}

.video-card--compact .video-card__duration {
	right: 6px;
	bottom: 6px;
	font-size: 8px;
}

/* Comments */

.watch-comments,
.comments-area {
	margin-top: 34px;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: 22px;
	letter-spacing: -0.03em;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: 52px;
}

.comment-body {
	position: relative;
	padding: 18px 18px 18px 70px;
	margin-bottom: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.comment-author .avatar {
	position: absolute;
	left: 17px;
	top: 17px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
	font-weight: 800;
}

.comment-metadata {
	margin-top: 2px;
	color: var(--muted);
	font-size: 10px;
}

.comment-content {
	margin-top: 10px;
	color: var(--text-soft);
	font-size: 13px;
}

.comment-content > :last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 9px;
}

.comment-reply-link {
	color: var(--accent);
	font-size: 11px;
	font-weight: 750;
}

.comment-respond {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as {
	grid-column: 1 / -1;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 7px;
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content textarea,
.entry-content select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--line-strong);
	border-radius: 11px;
	background: var(--bg);
	color: var(--text);
	outline: none;
	transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.comment-form textarea {
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

/* Immersive shorts feed */

.fluxwave-shorts-view .site-footer {
	display: none;
}

.fluxwave-shorts-view .site-main {
	height: calc(100vh - var(--header-h));
	overflow: hidden;
}

.shorts-page {
	position: relative;
	height: 100%;
	background:
		radial-gradient(circle at 35% 20%, rgba(var(--accent-rgb), 0.09), transparent 30rem),
		var(--bg);
}

.shorts-page__topbar {
	position: absolute;
	z-index: 50;
	left: 24px;
	top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: calc(100% - 48px);
	pointer-events: none;
}

.shorts-page__hint {
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-glass);
	color: var(--muted);
	font-size: 10px;
	backdrop-filter: blur(12px);
}

.short-feed {
	height: 100%;
	overflow-y: auto;
	scroll-behavior: smooth;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
}

.short-feed::-webkit-scrollbar {
	display: none;
}

.short-feed-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 100%;
	padding: 28px 105px 24px 34px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.short-stage {
	position: relative;
	width: min(410px, 42vh);
	height: min(760px, calc(100vh - var(--header-h) - 52px));
	max-width: calc(100vw - var(--sidebar-w) - 190px);
	aspect-ratio: 9 / 16;
	isolation: isolate;
}

.short-stage__player {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	background: #05060b;
	box-shadow: var(--shadow-lg);
}

.short-stage__player .flux-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.short-stage__player .flux-player__media {
	object-fit: cover;
}

.short-stage__gradient {
	position: absolute;
	z-index: 2;
	inset: 0;
	border-radius: 24px;
	background: linear-gradient(to top, rgba(3, 4, 10, 0.86) 0%, rgba(3, 4, 10, 0.18) 38%, transparent 60%);
	pointer-events: none;
}

.short-stage__play {
	position: absolute;
	z-index: 5;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(3, 4, 10, 0.52);
	color: #fff;
	backdrop-filter: blur(12px);
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.88);
	transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.short-feed-item.is-paused .short-stage__play,
.short-stage__player:hover .short-stage__play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.short-stage__play .flux-icon {
	width: 28px;
	height: 28px;
}

.short-stage__mute {
	position: absolute;
	z-index: 7;
	right: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(3, 4, 10, 0.5);
	color: #fff;
	backdrop-filter: blur(10px);
}

.short-stage__mute .flux-icon {
	width: 18px;
	height: 18px;
}

.short-stage__volume-on {
	display: none;
}

.short-feed-item.is-unmuted .short-stage__volume-on {
	display: block;
}

.short-feed-item.is-unmuted .short-stage__volume-off {
	display: none;
}

.short-progress {
	position: absolute;
	z-index: 8;
	left: 10px;
	right: 10px;
	bottom: 8px;
	height: 3px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.24);
}

.short-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.short-stage__info {
	position: absolute;
	z-index: 4;
	left: 18px;
	right: 18px;
	bottom: 24px;
	color: #fff;
	pointer-events: none;
}

.short-stage__info a,
.short-stage__info button {
	pointer-events: auto;
}

.short-author-row {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.short-author-row__avatar,
.short-author-row__avatar img {
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
}

.short-author-row__avatar img {
	object-fit: cover;
}

.short-author-row__name {
	min-width: 0;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.short-subscribe {
	height: 32px;
	margin-left: 3px;
	padding: 0 11px;
	font-size: 10px;
}

.short-subscribe.is-active {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
}

.short-stage__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 12px 0 5px;
	font-size: 16px;
	font-weight: 820;
	line-height: 1.3;
	letter-spacing: -0.02em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.short-stage__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.74);
	font-size: 11px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.short-stage__stats {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 9px;
}

.short-stage__stats span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.short-stage__stats .flux-icon {
	width: 13px;
	height: 13px;
}

.short-actions {
	position: absolute;
	z-index: 5;
	right: -78px;
	bottom: 18px;
	display: grid;
	gap: 13px;
}

.short-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-soft);
	font-size: 9px;
	font-weight: 700;
}

.short-action__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface-2);
	box-shadow: var(--shadow-sm);
	transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.short-action:hover .short-action__icon {
	background: var(--surface-3);
	color: var(--text);
	transform: translateY(-2px);
}

.short-action.is-active .short-action__icon {
	border-color: rgba(var(--accent-rgb), 0.45);
	background: rgba(var(--accent-rgb), 0.18);
	color: var(--accent);
}

.short-action__icon .flux-icon {
	width: 21px;
	height: 21px;
}

.short-feed-nav {
	position: absolute;
	z-index: 30;
	right: 28px;
	top: 50%;
	display: grid;
	gap: 10px;
	transform: translateY(-50%);
}

.short-feed-nav .icon-button {
	border: 1px solid var(--line);
	background: var(--surface-glass);
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(12px);
}

/* Single short details */

.single-short-page__stage {
	height: calc(100vh - var(--header-h));
	background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.1), transparent 35rem);
}

.single-short-page__stage .short-feed-item {
	height: 100%;
}

.single-short-details {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(290px, 410px);
	gap: 38px;
	padding-top: 54px;
}

.single-short-copy {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.single-short-copy h2,
.single-short-details__related h2 {
	margin-top: 0;
	font-size: 23px;
	letter-spacing: -0.03em;
}

.shorts-mini-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.shorts-mini-grid .short-card__overlay {
	inset: auto 10px 10px;
}

.shorts-mini-grid .short-card__meta {
	display: none;
}

/* Library and channel pages */

.archive-hero--library,
.archive-hero--topic {
	align-items: center;
}

.library-count {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
}

.channel-rail {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 2px 2px 12px;
	scrollbar-width: thin;
}

.channel-pill {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 235px;
	padding: 12px 15px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.channel-pill:hover {
	border-color: rgba(var(--accent-rgb), 0.3);
	transform: translateY(-2px);
}

.channel-pill img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.channel-pill__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.channel-pill__text strong {
	overflow: hidden;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-pill__text small {
	margin-top: 3px;
	color: var(--muted);
	font-size: 10px;
}

.channel-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(30px, 5vw, 64px);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(125deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-2-rgb), 0.06)),
		var(--surface);
	box-shadow: var(--shadow-md);
}

.channel-hero__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	right: -150px;
	top: -260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.24), transparent 70%);
}

.channel-hero__content {
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) auto;
	gap: 27px;
	align-items: center;
}

.channel-hero__avatar img {
	display: block;
	width: 132px;
	height: 132px;
	border: 4px solid rgba(255, 255, 255, 0.12);
	border-radius: 34px;
	object-fit: cover;
	box-shadow: var(--shadow-md);
}

.channel-hero__copy h1 {
	margin: 7px 0 4px;
	font-size: clamp(34px, 4.6vw, 66px);
	line-height: 1;
	letter-spacing: -0.06em;
}

.channel-hero__copy p {
	max-width: 720px;
	margin: 12px 0 0;
	color: var(--text-soft);
}

.channel-hero__stats {
	display: flex;
	gap: 7px;
	color: var(--muted);
	font-size: 12px;
}

.subscribe-button--large {
	height: 46px;
	padding-inline: 19px;
}

/* Generic text results and prose */

.text-result {
	display: flex;
	flex-direction: column;
	min-height: 215px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.text-result__type {
	max-width: max-content;
	padding: 5px 8px;
	border-radius: 7px;
	background: rgba(var(--accent-rgb), 0.13);
	color: var(--accent);
	font-size: 9px;
	font-weight: 850;
	text-transform: uppercase;
}

.text-result h2 {
	margin: 14px 0 8px;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.text-result p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.text-result__meta {
	margin-bottom: 10px;
	color: var(--muted);
	font-size: 10px;
}

.prose-page {
	max-width: 1120px;
}

.prose-card {
	padding: clamp(24px, 5vw, 64px);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.prose-card__header {
	max-width: 850px;
	margin: 0 auto 30px;
	text-align: center;
}

.prose-card__header h1 {
	margin: 10px 0 14px;
	font-size: clamp(36px, 6vw, 74px);
	line-height: 1;
	letter-spacing: -0.06em;
}

.prose-card__byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 12px;
}

.prose-card__byline img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.prose-card__featured {
	margin: 0 auto 34px;
}

.prose-card__featured img {
	display: block;
	width: 100%;
	border-radius: var(--radius-lg);
}

.entry-content {
	word-break: break-word;
}

.prose-card .entry-content {
	max-width: 780px;
	margin: 0 auto;
	color: var(--text-soft);
	font-size: 16px;
	line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--text);
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: 1.75em;
}

.entry-content h3 {
	margin-top: 1.7em;
	font-size: 1.35em;
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--accent);
	border-radius: 0 14px 14px 0;
	background: var(--surface-2);
	color: var(--text);
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.entry-content pre {
	overflow-x: auto;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #080a12;
	color: #e7e9f4;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

/* Toast */

.flux-toast {
	position: fixed;
	z-index: 5000;
	left: 50%;
	bottom: 26px;
	max-width: min(90vw, 460px);
	padding: 11px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface-glass);
	color: var(--text);
	font-size: 12px;
	font-weight: 700;
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(18px);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.flux-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Responsive */

@media (max-width: 1480px) {
	.video-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.watch-layout {
		grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
	}

	.video-card--compact {
		grid-template-columns: 145px minmax(0, 1fr);
	}
}

@media (max-width: 1180px) {
	.site-header {
		grid-template-columns: var(--sidebar-compact-w) minmax(260px, 1fr) auto;
	}

	.site-sidebar {
		width: var(--sidebar-compact-w);
	}

	.site-main,
	.site-footer {
		margin-left: var(--sidebar-compact-w);
	}

	.site-brand__name,
	.site-sidebar .sidebar-section__title,
	.site-sidebar .sidebar-link__label,
	.site-sidebar .sidebar-link__badge,
	.site-sidebar__footer,
	.sidebar-section--custom {
		display: none;
	}

	.sidebar-link {
		justify-content: center;
		padding-inline: 8px;
	}

	.featured-grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.8fr);
	}

	.watch-layout {
		grid-template-columns: minmax(0, 1fr) 315px;
		gap: 24px;
	}

	.watch-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.watch-actions {
		justify-content: flex-start;
	}

	.short-stage {
		max-width: calc(100vw - var(--sidebar-compact-w) - 180px);
	}
}

@media (max-width: 980px) {
	.site-header {
		grid-template-columns: auto minmax(220px, 1fr) auto;
		gap: 14px;
		padding-inline: 10px 14px;
	}

	.site-sidebar {
		width: min(310px, 86vw);
		transform: translateX(-105%);
		box-shadow: var(--shadow-lg);
	}

	.site-sidebar .sidebar-section__title,
	.site-sidebar .sidebar-link__label,
	.site-sidebar .sidebar-link__badge,
	.site-sidebar__footer,
	.sidebar-section--custom {
		display: initial;
	}

	.site-sidebar .sidebar-link {
		justify-content: flex-start;
		padding-inline: 11px;
	}

	body.nav-open .site-sidebar {
		transform: translateX(0);
	}

	body.nav-open .sidebar-backdrop {
		display: block;
	}

	.site-main,
	.site-footer,
	body.sidebar-collapsed .site-main,
	body.sidebar-collapsed .site-footer {
		margin-left: 0;
	}

	.site-brand__name,
	body.sidebar-collapsed .site-brand__name {
		display: inline;
	}

	.featured-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.video-card--hero-primary {
		grid-row: auto;
		grid-column: 1 / -1;
	}

	.video-card--hero-secondary {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.video-card--hero-secondary .video-card__thumb {
		aspect-ratio: 16 / 9;
	}

	.video-card--hero-secondary .video-card__body {
		grid-template-columns: 40px minmax(0, 1fr) 30px;
		padding-top: 12px;
	}

	.video-card--hero-secondary .video-card__avatar,
	.video-card--hero-secondary .video-card__avatar img {
		width: 40px;
		height: 40px;
	}

	.video-card--hero-secondary .video-card__more {
		display: grid;
	}

	.watch-layout {
		grid-template-columns: 1fr;
	}

	.watch-related {
		position: static;
	}

	.related-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.video-card--compact {
		display: block;
		padding: 0;
		border: 0;
	}

	.video-card--compact .video-card__body {
		grid-template-columns: minmax(0, 1fr) 24px;
		padding-top: 10px;
	}

	.short-stage {
		max-width: calc(100vw - 180px);
	}

	.single-short-details {
		grid-template-columns: 1fr;
	}

	.shorts-mini-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	:root {
		--header-h: 60px;
		--page-pad: 16px;
	}

	body {
		font-size: 14px;
	}

	.site-header {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 8px;
		height: var(--header-h);
		padding-inline: 8px;
	}

	.site-brand {
		font-size: 17px;
	}

	.site-brand__mark {
		width: 30px;
		height: 26px;
	}

	.site-header__search {
		position: fixed;
		z-index: 1100;
		inset: 0;
		display: none;
		align-items: flex-start;
		padding: 10px;
		background: var(--bg);
	}

	body.search-open .site-header__search {
		display: flex;
	}

	.site-search-form__field {
		height: 44px;
		padding-right: 92px;
	}

	.site-search-form__submit {
		right: 42px;
		height: 44px;
		border-radius: 0;
	}

	.site-search-form__close {
		position: absolute;
		right: 0;
		display: grid;
		place-items: center;
		width: 42px;
		height: 44px;
		padding: 0;
		border: 0;
		border-left: 1px solid var(--line);
		border-radius: 0 999px 999px 0;
		background: var(--surface-2);
		color: var(--text-soft);
	}

	.mobile-search-toggle {
		display: grid;
	}

	.header-studio-link,
	.header-login span,
	.header-login .flux-icon + span {
		display: none;
	}

	.header-login {
		width: 40px;
		padding: 0;
		justify-content: center;
	}

	.theme-toggle {
		display: none;
	}

	.site-main {
		padding-bottom: 69px;
	}

	.site-footer {
		padding-bottom: 90px;
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.mobile-bottom-nav {
		position: fixed;
		z-index: 800;
		left: 8px;
		right: 8px;
		bottom: 8px;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		height: 60px;
		padding: 4px;
		border: 1px solid var(--line-strong);
		border-radius: 20px;
		background: var(--surface-glass);
		box-shadow: var(--shadow-md);
		backdrop-filter: blur(20px) saturate(150%);
	}

	.mobile-bottom-nav__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 0;
		border: 0;
		border-radius: 15px;
		background: transparent;
		color: var(--muted);
		font-size: 8px;
		font-weight: 750;
	}

	.mobile-bottom-nav__item .flux-icon {
		width: 19px;
		height: 19px;
	}

	.mobile-bottom-nav__item.is-active {
		background: rgba(var(--accent-rgb), 0.14);
		color: var(--accent);
	}

	.page-shell {
		padding-top: 18px;
		padding-bottom: 40px;
	}

	.home-intro,
	.archive-hero {
		align-items: flex-start;
		flex-direction: column;
		min-height: 0;
		padding: 25px;
		border-radius: 24px;
	}

	.home-intro h1,
	.archive-hero h1 {
		font-size: clamp(32px, 10vw, 48px);
	}

	.home-intro__actions {
		justify-content: flex-start;
	}

	.topic-chips {
		top: var(--header-h);
		margin-top: 14px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.content-section {
		margin-top: 38px;
	}

	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 14px;
	}

	.video-card__body {
		grid-template-columns: 36px minmax(0, 1fr) 28px;
		gap: 9px;
		padding-top: 10px;
	}

	.video-card__avatar,
	.video-card__avatar img {
		width: 36px;
		height: 36px;
	}

	.video-card__title {
		font-size: 12px;
	}

	.video-card__channel,
	.video-card__meta {
		font-size: 9px;
	}

	.video-card__more {
		width: 28px;
		height: 28px;
	}

	.featured-grid {
		gap: 22px 14px;
	}

	.video-card--hero-primary .video-card__body {
		grid-template-columns: 40px minmax(0, 1fr) 28px;
	}

	.video-card--hero-primary .video-card__avatar,
	.video-card--hero-primary .video-card__avatar img {
		width: 40px;
		height: 40px;
	}

	.shorts-rail {
		grid-auto-columns: 185px;
	}

	.watch-page {
		padding-inline: 0;
		padding-top: 0;
	}

	.watch-player-wrap {
		border-radius: 0;
	}

	.watch-header,
	.watch-toolbar,
	.watch-description,
	.watch-comments,
	.watch-related {
		margin-left: var(--page-pad);
		margin-right: var(--page-pad);
	}

	.watch-toolbar {
		gap: 15px;
	}

	.channel-summary {
		width: 100%;
	}

	.subscribe-button {
		margin-left: auto;
	}

	.watch-actions {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.watch-action {
		flex: 0 0 auto;
	}

	.watch-description {
		padding: 16px;
	}

	.related-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.fluxwave-shorts-view .site-main {
		padding-bottom: 0;
		height: calc(100vh - var(--header-h));
	}

	.fluxwave-shorts-view .mobile-bottom-nav,
	.single-flux_short .mobile-bottom-nav {
		display: none;
	}

	.short-feed-item {
		padding: 8px 68px 8px 8px;
	}

	.short-stage {
		width: min(100%, 430px);
		height: calc(100vh - var(--header-h) - 16px);
		max-width: calc(100vw - 76px);
	}

	.short-stage__player,
	.short-stage__gradient {
		border-radius: 20px;
	}

	.short-actions {
		right: -60px;
		bottom: 20px;
		gap: 11px;
	}

	.short-action__icon {
		width: 43px;
		height: 43px;
	}

	.short-feed-nav,
	.shorts-page__hint {
		display: none;
	}

	.shorts-page__topbar {
		left: 14px;
		top: 10px;
		width: auto;
	}

	.single-short-page__stage {
		height: calc(100vh - var(--header-h));
	}

	.single-short-details {
		padding-top: 34px;
	}

	.channel-hero__content {
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 18px;
	}

	.channel-hero__avatar img {
		width: 90px;
		height: 90px;
		border-radius: 24px;
	}

	.channel-hero__content > .subscribe-button {
		grid-column: 1 / -1;
		justify-self: start;
		margin-left: 0;
	}

	.comment-list .children {
		margin-left: 20px;
	}

	.flux-toast {
		bottom: 82px;
	}
}

@media (max-width: 520px) {
	.site-brand__name {
		display: none;
	}

	.site-header__actions {
		gap: 2px;
	}

	.home-intro__actions,
	.flux-empty__actions {
		width: 100%;
	}

	.home-intro__actions .flux-button,
	.flux-empty__actions .flux-button {
		flex: 1 1 150px;
	}

	.section-heading {
		align-items: flex-start;
	}

	.section-heading__link {
		font-size: 0;
	}

	.section-heading__link .flux-icon {
		width: 22px;
		height: 22px;
	}

	.video-grid,
	.featured-grid,
	.related-list {
		grid-template-columns: 1fr;
	}

	.video-card--hero-primary {
		grid-column: auto;
	}

	.video-card__title {
		font-size: 14px;
	}

	.video-card__channel,
	.video-card__meta {
		font-size: 10px;
	}

	.video-card--hero-primary .video-card__title {
		font-size: 16px;
	}

	.shorts-rail {
		grid-auto-columns: 72vw;
	}

	.archive-sort {
		width: 100%;
	}

	.archive-sort__button {
		flex: 1;
		text-align: center;
	}

	.library-count {
		align-self: flex-start;
	}

	.watch-header h1 {
		font-size: 21px;
	}

	.channel-summary__text > span {
		display: none;
	}

	.subscribe-button {
		height: 37px;
		padding-inline: 12px;
	}

	.watch-action {
		padding-inline: 12px;
	}

	.watch-action__label {
		display: none;
	}

	.short-feed-item {
		padding: 0;
	}

	.short-stage {
		width: 100%;
		height: 100%;
		max-width: none;
	}

	.short-stage__player,
	.short-stage__gradient {
		border: 0;
		border-radius: 0;
	}

	.short-actions {
		right: 10px;
		bottom: 90px;
	}

	.short-action {
		color: #fff;
		text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	}

	.short-action__icon {
		border-color: rgba(255, 255, 255, 0.17);
		background: rgba(4, 5, 12, 0.45);
		color: #fff;
		box-shadow: none;
		backdrop-filter: blur(10px);
	}

	.short-action.is-active .short-action__icon {
		background: rgba(var(--accent-rgb), 0.72);
		color: #fff;
	}

	.short-stage__info {
		right: 76px;
		bottom: 24px;
	}

	.short-stage__excerpt {
		display: none;
	}

	.short-stage__mute {
		right: 12px;
		top: 12px;
	}

	.shorts-page__topbar {
		display: none;
	}

	.shorts-mini-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.channel-hero {
		padding: 25px;
	}

	.channel-hero__content {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.channel-hero__avatar img {
		width: 72px;
		height: 72px;
		border-radius: 20px;
	}

	.channel-hero__copy h1 {
		font-size: 30px;
	}

	.channel-hero__copy p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.channel-hero__stats {
		font-size: 10px;
	}

	.prose-card {
		padding: 24px 18px;
	}

	.prose-card__header h1 {
		font-size: 36px;
	}

	.comment-form {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Dynamic menus and short playback state */
.short-stage__pause-icon {
	display: none;
}

.short-feed-item.is-playing .short-stage__play-icon {
	display: none;
}

.short-feed-item.is-playing .short-stage__pause-icon {
	display: block;
}

.card-popover {
	position: fixed;
	z-index: 4200;
	display: grid;
	min-width: 170px;
	padding: 6px;
	border: 1px solid var(--line-strong);
	border-radius: 13px;
	background: var(--surface-glass);
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(18px) saturate(150%);
	animation: flux-popover-in 150ms var(--ease) both;
}

.card-popover button,
.card-popover a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 38px;
	padding: 8px 11px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 700;
	text-align: left;
}

.card-popover button:hover,
.card-popover a:hover,
.card-popover button:focus-visible,
.card-popover a:focus-visible {
	background: var(--surface-2);
	color: var(--text);
}

.is-loading {
	position: relative;
	pointer-events: none;
}

.is-loading::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: flux-spin 650ms linear infinite;
}

.is-loading > * {
	opacity: 0.25;
}

@keyframes flux-spin {
	to { transform: rotate(360deg); }
}

@keyframes flux-popover-in {
	from { opacity: 0; transform: translateY(-4px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* YouTube-connected creator system */

.flux-player--youtube {
	background:
		radial-gradient(circle at 50% 25%, rgba(var(--accent-rgb), 0.14), transparent 32rem),
		#05060b;
}

.flux-player--youtube .flux-player__embed {
	background: #05060b;
}

.flux-player--youtube iframe {
	background: #05060b;
}

.flux-youtube-short {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 25%, rgba(var(--accent-rgb), 0.24), transparent 58%),
		linear-gradient(145deg, #121528, #05060b 70%);
}

.flux-youtube-short__poster,
.flux-youtube-short__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.flux-youtube-short__poster {
	z-index: 1;
	object-fit: cover;
	filter: saturate(0.92) brightness(0.82);
	transform: scale(1.015);
	transition: opacity 320ms var(--ease), transform 650ms var(--ease);
}

.flux-youtube-short__iframe {
	z-index: 2;
	background: #05060b;
	opacity: 0;
	transition: opacity 260ms var(--ease);
}

.flux-youtube-short__loading {
	position: absolute;
	z-index: 3;
	inset: 50% auto auto 50%;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	background: rgba(4, 5, 12, 0.54);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(12px);
	transform: translate(-50%, -50%);
	transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}

.flux-youtube-short__loading span {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.34);
	border-top-color: #fff;
	border-radius: 50%;
	animation: flux-spin 720ms linear infinite;
}

.flux-youtube-short.is-ready .flux-youtube-short__iframe {
	opacity: 1;
}

.flux-youtube-short.is-ready .flux-youtube-short__poster {
	opacity: 0;
	transform: scale(1.05);
	pointer-events: none;
}

.flux-youtube-short.is-ready .flux-youtube-short__loading {
	opacity: 0;
	visibility: hidden;
}

.watch-action--source {
	border-color: rgba(var(--accent-2-rgb), 0.24);
	background: rgba(var(--accent-2-rgb), 0.1);
	color: var(--accent-2);
}

.watch-action--source:hover {
	border-color: rgba(var(--accent-2-rgb), 0.4);
	background: rgba(var(--accent-2-rgb), 0.16);
	color: var(--text);
}

.watch-description__source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	border: 1px solid rgba(var(--accent-2-rgb), 0.2);
	border-radius: 999px;
	background: rgba(var(--accent-2-rgb), 0.08);
	color: var(--accent-2);
	font-weight: 750;
}

.watch-description__source::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(var(--accent-2-rgb), 0.1);
}

.channel-hero__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.channel-hero__source {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface-glass);
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 750;
	backdrop-filter: blur(12px);
	transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.channel-hero__source:hover {
	border-color: rgba(var(--accent-2-rgb), 0.32);
	background: rgba(var(--accent-2-rgb), 0.1);
	color: var(--text);
	transform: translateY(-1px);
}

.channel-hero__source .flux-icon {
	width: 16px;
	height: 16px;
	color: var(--accent-2);
}

.site-footer__identity {
	display: grid;
	gap: 7px;
}

.site-footer__legal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px 16px;
}

.site-footer__legal a {
	color: var(--muted);
	transition: color 160ms var(--ease);
}

.site-footer__legal a:hover {
	color: var(--text);
}

.mobile-bottom-nav__item--create {
	position: relative;
	color: var(--text-soft);
}

.mobile-bottom-nav__create-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 29px;
	margin-top: -13px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 11px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.33);
	transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.mobile-bottom-nav__item--create:hover .mobile-bottom-nav__create-icon,
.mobile-bottom-nav__item--create:focus-visible .mobile-bottom-nav__create-icon {
	box-shadow: 0 11px 26px rgba(var(--accent-rgb), 0.42);
	transform: translateY(-2px);
}

.mobile-bottom-nav__create-icon .flux-icon {
	width: 17px !important;
	height: 17px !important;
}

/* Mandatory connection gate for signed-in creators */

body.fluxwave-youtube-gated,
body.youtube-gate-open {
	overflow: hidden;
}

body.fluxwave-youtube-gated .flux-app-shell {
	filter: blur(10px) saturate(0.72);
	pointer-events: none;
	user-select: none;
	transform: scale(0.992);
	transform-origin: center top;
}

.youtube-gate {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
	isolation: isolate;
}

.youtube-gate__backdrop {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(circle at 20% 12%, rgba(var(--accent-rgb), 0.24), transparent 35rem),
		radial-gradient(circle at 86% 84%, rgba(var(--accent-2-rgb), 0.18), transparent 32rem),
		rgba(5, 6, 13, 0.82);
	backdrop-filter: blur(20px) saturate(125%);
	-webkit-backdrop-filter: blur(20px) saturate(125%);
}

.youtube-gate__dialog {
	display: grid;
	grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1.26fr);
	width: min(980px, 100%);
	max-height: min(760px, calc(100vh - 44px));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 30px;
	background: var(--surface);
	box-shadow: 0 35px 120px rgba(0, 0, 0, 0.58);
	animation: youtube-gate-enter 420ms var(--ease) both;
}

.youtube-gate__brand {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	overflow: hidden;
	padding: 45px 30px;
	background:
		radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.19), transparent 11rem),
		radial-gradient(circle at 85% 90%, rgba(var(--accent-2-rgb), 0.36), transparent 15rem),
		linear-gradient(145deg, #6044e8, #7c5cff 48%, #252044);
}

.youtube-gate__brand::before,
.youtube-gate__brand::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
}

.youtube-gate__brand::before {
	width: 310px;
	height: 310px;
	left: -155px;
	top: -90px;
}

.youtube-gate__brand::after {
	width: 240px;
	height: 240px;
	right: -125px;
	bottom: -105px;
}

.youtube-gate__brand-mark {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 26px;
	background: rgba(12, 13, 28, 0.28);
	color: #fff;
	box-shadow: 0 18px 45px rgba(18, 10, 66, 0.28);
	backdrop-filter: blur(14px);
}

.youtube-gate__brand-mark--account {
	background: rgba(var(--accent-2-rgb), 0.2);
}

.youtube-gate__brand-mark .flux-icon {
	width: 39px;
	height: 39px;
}

.youtube-gate__connection-line {
	position: relative;
	z-index: 1;
	width: clamp(50px, 7vw, 92px);
	height: 3px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #fff, var(--accent-2));
}

.youtube-gate__connection-line::before,
.youtube-gate__connection-line::after,
.youtube-gate__connection-line i {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border: 3px solid rgba(255, 255, 255, 0.88);
	border-radius: 50%;
	background: #6e54ef;
	transform: translateY(-50%);
}

.youtube-gate__connection-line::before,
.youtube-gate__connection-line::after {
	content: "";
}

.youtube-gate__connection-line::before {
	left: -2px;
}

.youtube-gate__connection-line::after {
	right: -2px;
	background: var(--accent-2);
}

.youtube-gate__connection-line i {
	left: 50%;
	background: #fff;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
	transform: translate(-50%, -50%);
}

.youtube-gate__content {
	overflow-y: auto;
	padding: clamp(30px, 5vw, 55px);
	overscroll-behavior: contain;
}

.youtube-gate__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-2);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.youtube-gate__eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 0 5px rgba(var(--accent-2-rgb), 0.12);
}

.youtube-gate__content h1 {
	margin: 9px 0 12px;
	color: var(--text);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1.04;
}

.youtube-gate__content > p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.youtube-gate__notice,
.youtube-gate__configuration-error {
	margin-top: 18px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--text-soft);
	font-size: 12px;
	line-height: 1.55;
}

.youtube-gate__notice--success {
	border-color: rgba(var(--accent-2-rgb), 0.28);
	background: rgba(var(--accent-2-rgb), 0.1);
	color: var(--accent-2);
}

.youtube-gate__notice--error {
	border-color: rgba(255, 100, 124, 0.32);
	background: rgba(255, 100, 124, 0.1);
	color: #ff91a3;
}

.youtube-gate__notice--warning {
	border-color: rgba(255, 193, 77, 0.3);
	background: rgba(255, 193, 77, 0.1);
	color: #ffd07a;
}

.youtube-gate__permissions {
	display: grid;
	gap: 9px;
	margin: 24px 0;
}

.youtube-gate__permissions > div {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	align-items: start;
	gap: 11px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--surface-2);
}

.youtube-gate__permissions > div > span {
	display: grid;
	place-items: center;
	width: 33px;
	height: 33px;
	border-radius: 10px;
	background: rgba(var(--accent-rgb), 0.12);
	color: var(--accent);
}

.youtube-gate__permissions > div:nth-child(2) > span {
	background: rgba(var(--accent-2-rgb), 0.1);
	color: var(--accent-2);
}

.youtube-gate__permissions .flux-icon {
	width: 17px;
	height: 17px;
}

.youtube-gate__permissions p {
	display: grid;
	gap: 2px;
	margin: 0;
}

.youtube-gate__permissions strong {
	color: var(--text);
	font-size: 12px;
}

.youtube-gate__permissions small {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.45;
}

.youtube-gate__connect,
.youtube-gate__secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 800;
	transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.youtube-gate__connect {
	background: linear-gradient(135deg, var(--accent), #8f70ff 55%, var(--accent-2));
	color: #fff;
	box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.28);
}

.youtube-gate__connect:hover {
	color: #fff;
	box-shadow: 0 20px 46px rgba(var(--accent-rgb), 0.38);
	transform: translateY(-2px);
}

.youtube-gate__connect .flux-icon {
	width: 19px;
	height: 19px;
}

.youtube-gate__connect.is-loading {
	min-height: 52px;
	pointer-events: none;
}

.youtube-gate__secondary {
	margin-top: 14px;
	border-color: var(--line-strong);
	background: var(--surface-2);
	color: var(--text);
}

.youtube-gate__account-hint {
	margin-top: 10px !important;
	font-size: 11px !important;
	text-align: center;
}

.youtube-gate__configuration-error {
	display: grid;
	gap: 4px;
	border-color: rgba(255, 193, 77, 0.3);
	background: rgba(255, 193, 77, 0.08);
}

.youtube-gate__configuration-error strong {
	color: #ffd07a;
}

.youtube-gate__configuration-error span {
	color: var(--text-soft);
}

.youtube-gate__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px 15px;
	margin-top: 20px;
	padding-top: 17px;
	border-top: 1px solid var(--line);
}

.youtube-gate__footer a {
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
}

.youtube-gate__footer a:hover {
	color: var(--text);
}

@keyframes youtube-gate-enter {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.975);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 900px) {
	.youtube-gate__dialog {
		grid-template-columns: 1fr;
		width: min(680px, 100%);
	}

	.youtube-gate__brand {
		min-height: 150px;
		padding: 28px;
	}

	.youtube-gate__brand-mark {
		width: 68px;
		height: 68px;
		border-radius: 20px;
	}

	.youtube-gate__brand-mark .flux-icon {
		width: 30px;
		height: 30px;
	}

	.channel-hero__actions {
		justify-content: flex-start;
	}
}

@media (max-width: 620px) {
	.youtube-gate {
		align-items: stretch;
		padding: 0;
	}

	.youtube-gate__dialog {
		width: 100%;
		max-height: 100dvh;
		min-height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.youtube-gate__brand {
		min-height: 118px;
		padding: 20px;
	}

	.youtube-gate__brand-mark {
		width: 56px;
		height: 56px;
		border-radius: 17px;
	}

	.youtube-gate__brand-mark .flux-icon {
		width: 26px;
		height: 26px;
	}

	.youtube-gate__connection-line {
		width: 62px;
	}

	.youtube-gate__content {
		padding: 26px 20px 32px;
	}

	.youtube-gate__content h1 {
		font-size: 32px;
	}

	.youtube-gate__permissions {
		margin-block: 19px;
	}

	.youtube-gate__permissions > div {
		padding: 9px 10px;
	}

	.site-footer__legal {
		align-items: flex-start;
		flex-direction: column;
	}

	.channel-hero__actions,
	.channel-hero__actions > * {
		width: 100%;
	}

	.channel-hero__source {
		min-height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.youtube-gate__dialog {
		animation: none;
	}

	.flux-youtube-short__loading span {
		animation-duration: 1.4s !important;
	}
}


/* ==========================================================================\n   Fluxwave 3.5 - premium StreamLab-inspired application chrome\n   ========================================================================== */

:root {
	--bg: #090b16;
	--bg-elevated: #0b0e19;
	--surface: #111522;
	--surface-2: #151a29;
	--surface-3: #1c2233;
	--surface-glass: rgba(10, 12, 23, 0.86);
	--text: #f7f8ff;
	--text-soft: #d9ddec;
	--muted: #858da8;
	--line: rgba(255, 255, 255, 0.065);
	--line-strong: rgba(255, 255, 255, 0.11);
	--header-h: 88px;
	--sidebar-w: 298px;
	--sidebar-compact-w: 88px;
	--radius: 18px;
	--radius-lg: 24px;
	--radius-xl: 30px;
	--shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.22);
	--shadow-md: 0 24px 65px rgba(0, 0, 0, 0.31);
	--shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.48);
}

body {
	background:
		radial-gradient(circle at 62% 18%, rgba(var(--accent-rgb), 0.07), transparent 34rem),
		linear-gradient(180deg, #0a0c17 0%, #080a13 100%);
}

.site-header {
	grid-template-columns: var(--sidebar-w) minmax(340px, 492px) minmax(260px, 1fr);
	gap: clamp(28px, 6.8vw, 100px);
	height: var(--header-h);
	padding: 0 34px 0 28px;
	border-bottom-color: rgba(255,255,255,0.055);
	background: rgba(8, 10, 19, 0.88);
	box-shadow: 0 12px 40px rgba(0,0,0,0.12);
	backdrop-filter: blur(28px) saturate(150%);
	-webkit-backdrop-filter: blur(28px) saturate(150%);
}

.site-header__left { gap: 14px; }

.site-menu-toggle {
	width: 42px;
	height: 42px;
	margin-left: -9px;
	border-radius: 13px;
}

.site-menu-toggle:hover { background: rgba(255,255,255,0.055); }

.site-brand {
	gap: 12px;
	font-size: 20px;
	font-weight: 820;
	letter-spacing: -0.035em;
}

.site-brand__mark {
	width: 31px;
	height: 34px;
	transform: none;
}

.site-brand__mark span:first-child {
	inset: 2px 2px;
	border-radius: 7px;
	background: linear-gradient(145deg, #30dfce 6%, #35c9d6 38%, #765bff 100%);
	box-shadow: 0 10px 30px rgba(39, 211, 190, 0.22), 0 0 26px rgba(var(--accent-rgb),0.18);
	clip-path: polygon(17% 7%, 92% 50%, 17% 93%);
	transform: none;
}

.site-brand__mark span:last-child {
	inset: 10px 10px 10px 9px;
	border-radius: 3px;
	background: #0a0c17;
	clip-path: polygon(15% 4%, 94% 50%, 15% 96%);
	transform: none;
}

.site-search-form__field {
	height: 46px;
	padding: 0 58px 0 22px;
	border-color: rgba(255,255,255,0.085);
	background: rgba(9, 11, 21, 0.74);
	font-size: 13px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.015), 0 8px 28px rgba(0,0,0,0.12);
}

.site-search-form__field:focus {
	border-color: rgba(var(--accent-rgb), 0.5);
	background: rgba(15,18,32,0.96);
	box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.08), 0 14px 40px rgba(0,0,0,0.2);
}

.site-search-form__submit {
	right: 6px;
	width: 42px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
}

.site-search-form__submit:hover { background: rgba(255,255,255,0.055); }

.site-header__actions { gap: 12px; }

.header-studio-link {
	height: 46px;
	padding: 0 20px;
	border-color: rgba(var(--accent-rgb),0.2);
	background:
		linear-gradient(110deg, rgba(var(--accent-rgb),0.17), rgba(var(--accent-2-rgb),0.11)),
		#111523;
	color: #f7f7ff;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 34px rgba(0,0,0,0.16);
}

.header-studio-link:hover {
	border-color: rgba(var(--accent-2-rgb),0.28);
	background: linear-gradient(110deg, rgba(var(--accent-rgb),0.24), rgba(var(--accent-2-rgb),0.16));
	transform: translateY(-2px);
}

.header-studio-link .flux-icon { width: 19px; height: 19px; }

.header-menu-wrap { position: relative; }

.header-notification-toggle {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 14px;
}

.header-notification-dot {
	position: absolute;
	right: 9px;
	top: 8px;
	width: 7px;
	height: 7px;
	border: 2px solid #0b0e19;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 12px rgba(var(--accent-2-rgb),0.7);
}

.header-profile {
	width: auto;
	height: 48px;
	padding: 4px 9px 4px 5px;
	gap: 7px;
	border: 1px solid rgba(255,255,255,0.075);
	background: rgba(16,20,33,0.72);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.header-profile:hover {
	transform: translateY(-1px);
	border-color: rgba(var(--accent-rgb),0.25);
	box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.header-profile__avatar { width: 36px; height: 36px; }
.header-profile__chevron { color: var(--muted); }
.header-profile__chevron .flux-icon { width: 16px; height: 16px; }

.header-popover {
	position: absolute;
	top: calc(100% + 13px);
	right: 0;
	z-index: 1200;
	width: 286px;
	padding: 10px;
	border: 1px solid rgba(255,255,255,0.085);
	border-radius: 20px;
	background: rgba(14,17,29,0.97);
	box-shadow: 0 28px 80px rgba(0,0,0,0.5);
	backdrop-filter: blur(24px) saturate(150%);
	animation: fluxHeaderPopoverIn 180ms var(--ease) both;
}

.header-popover[hidden] { display: none !important; }

.header-popover::before {
	content: '';
	position: absolute;
	right: 26px;
	top: -6px;
	width: 12px;
	height: 12px;
	border-left: 1px solid rgba(255,255,255,0.08);
	border-top: 1px solid rgba(255,255,255,0.08);
	background: #0e111d;
	transform: rotate(45deg);
}

.header-popover__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 9px 12px;
	border-bottom: 1px solid var(--line);
}
.header-popover__head strong { font-size: 14px; }
.header-popover__head span { color: var(--accent-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.header-popover__empty { display: grid; justify-items: center; gap: 5px; padding: 24px 12px 18px; text-align: center; }
.header-popover__empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 14px; background: rgba(var(--accent-rgb),0.13); color: var(--accent); }
.header-popover__empty strong { font-size: 13px; }
.header-popover__empty small { color: var(--muted); font-size: 11px; }

.header-profile-menu__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 7px 12px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--line);
}
.header-profile-menu__identity img { width: 44px; height: 44px; border-radius: 50%; }
.header-profile-menu__identity span { min-width: 0; display: grid; }
.header-profile-menu__identity strong, .header-profile-menu__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-profile-menu__identity strong { font-size: 13px; }
.header-profile-menu__identity small { color: var(--muted); font-size: 10px; }
.header-profile-menu > a,
.header-profile-menu > button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 9px 10px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 650;
	text-align: left;
}
.header-profile-menu > a:hover,
.header-profile-menu > button:hover { background: rgba(255,255,255,0.055); color: #fff; }
.header-profile-menu > a .flux-icon,
.header-profile-menu > button .flux-icon { width: 18px; height: 18px; color: var(--muted); }
.header-profile-menu__logout { margin-top: 5px; border-top: 1px solid var(--line) !important; border-radius: 0 0 12px 12px !important; }

@keyframes fluxHeaderPopoverIn {
	from { opacity: 0; transform: translateY(-7px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sidebar, tuned to the supplied reference. */
.site-sidebar {
	inset: var(--header-h) auto 0 0;
	width: var(--sidebar-w);
	border-right-color: rgba(255,255,255,0.05);
	background:
		linear-gradient(180deg, rgba(13,16,29,0.98), rgba(9,12,22,0.99));
	box-shadow: 20px 0 50px rgba(0,0,0,0.09);
}

.site-sidebar__scroll {
	padding: 24px 28px 18px;
	scrollbar-width: none;
}
.site-sidebar__scroll::-webkit-scrollbar { display: none; }

.sidebar-section {
	gap: 6px;
	padding: 0;
	border: 0;
}
.sidebar-section--primary { padding-top: 0; }
.sidebar-section--custom { margin-top: 18px; }

.sidebar-link {
	min-height: 54px;
	gap: 15px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: #d7dae8;
	font-size: 14px;
	font-weight: 560;
}
.sidebar-link .flux-icon { width: 22px; height: 22px; color: #c8ccdc; }
.sidebar-link:hover { background: rgba(255,255,255,0.045); transform: translateX(3px); }
.sidebar-link.is-active {
	border-color: rgba(var(--accent-rgb),0.25);
	background: linear-gradient(110deg, rgba(104,65,220,0.31), rgba(76,40,151,0.22));
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 12px 28px rgba(44,22,98,0.18);
}
.sidebar-link.is-active .flux-icon { color: #9d68ff; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb),0.35)); }

.sidebar-subscriptions { margin-top: 36px; }
.sidebar-subscriptions__head { display:flex; align-items:center; justify-content:space-between; padding: 0 14px 12px; }
.sidebar-subscriptions__head h2 { margin:0; color:#9868ff; font-size:13px; font-weight:800; letter-spacing:.01em; }
.sidebar-subscriptions__head a { color:#9a6dff; font-size:10px; font-weight:750; }
.sidebar-subscriptions__list { display:grid; gap:4px; }
.sidebar-channel { display:grid; grid-template-columns: 34px minmax(0,1fr) 7px; align-items:center; gap:11px; min-height:46px; padding: 5px 11px; border-radius:12px; color:var(--text-soft); transition:background 160ms var(--ease), transform 160ms var(--ease); }
.sidebar-channel:hover { background:rgba(255,255,255,.045); transform:translateX(3px); }
.sidebar-channel img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.sidebar-channel span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:620; }
.sidebar-channel i { width:7px; height:7px; border-radius:50%; background:#26d9da; box-shadow:0 0 12px rgba(38,217,218,.6); }

.sidebar-studio-card {
	margin: 10px 28px 18px;
	padding: 18px 18px 16px;
	border: 1px solid rgba(var(--accent-rgb),0.17);
	border-radius: 16px;
	background:
		radial-gradient(circle at 12% 0%, rgba(var(--accent-2-rgb),0.12), transparent 50%),
		linear-gradient(135deg, rgba(14,62,76,0.26), rgba(52,24,86,0.36));
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 45px rgba(0,0,0,0.14);
}
.sidebar-studio-card__icon { display:grid; place-items:center; width:32px; height:32px; margin-bottom:10px; border-radius:10px; background:rgba(var(--accent-2-rgb),0.1); color:var(--accent-2); }
.sidebar-studio-card strong { display:block; font-size:13px; }
.sidebar-studio-card p { margin:5px 0 13px; color:var(--muted); font-size:10px; line-height:1.5; }
.sidebar-studio-card a { display:flex; align-items:center; justify-content:center; min-height:37px; border-radius:10px; background:linear-gradient(90deg, #18a6b6, #7838df); color:#fff; font-size:11px; font-weight:800; box-shadow:0 10px 24px rgba(79,49,184,.2); transition:transform 180ms var(--ease), filter 180ms var(--ease); }
.sidebar-studio-card a:hover { transform:translateY(-2px); filter:brightness(1.08); }
.site-sidebar__footer { padding: 10px 30px 15px; border:0; opacity:.48; }

.site-main { margin-top:var(--header-h); margin-left:var(--sidebar-w); }
.site-footer { margin-left:var(--sidebar-w); }

/* Premium immersive Shorts view. */
.fluxwave-shorts-view .site-main {
	height: calc(100dvh - var(--header-h));
	background:
		radial-gradient(circle at 48% 16%, rgba(var(--accent-rgb),0.075), transparent 31rem),
		linear-gradient(110deg, #0d101e 0%, #0a0d18 52%, #080a12 100%);
}

.shorts-page { background:transparent; }

.short-feed-item {
	align-items:flex-start;
	justify-content:center;
	height:100%;
	min-height:100%;
	padding:18px 128px 18px 30px;
}

.short-stage {
	width:auto;
	height:min(912px, calc(100dvh - var(--header-h) - 36px));
	max-width:none;
	aspect-ratio:9 / 16;
	transform:translateX(-88px);
	isolation:isolate;
	animation:shortStageIdle 7s ease-in-out infinite alternate;
}

.short-stage__ambient {
	position:absolute;
	z-index:-2;
	inset:4% -22% 1%;
	border-radius:38%;
	background:
		radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb),.12), transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(var(--accent-2-rgb),.065), transparent 45%);
	filter:blur(50px);
	opacity:.9;
	pointer-events:none;
}

.short-stage__player {
	border:1px solid rgba(255,255,255,.105);
	border-radius:27px;
	background:#05070d;
	box-shadow:
		0 38px 90px rgba(0,0,0,.46),
		0 0 0 1px rgba(255,255,255,.012),
		0 0 60px rgba(var(--accent-rgb),.055);
	transition:transform 380ms var(--ease), border-color 240ms var(--ease), box-shadow 380ms var(--ease);
}
.short-feed-item.is-active .short-stage__player {
	animation:shortStageEnter 520ms var(--ease) both;
}
.short-stage:hover .short-stage__player {
	border-color:rgba(255,255,255,.15);
	box-shadow:0 44px 105px rgba(0,0,0,.52), 0 0 74px rgba(var(--accent-rgb),.075);
}

.short-stage__tap-layer {
	position:absolute;
	z-index:5;
	inset:0;
	width:100%;
	height:100%;
	padding:0;
	border:0;
	border-radius:inherit;
	background:transparent;
	cursor:pointer;
}
.short-stage__tap-layer:focus-visible { outline:2px solid rgba(var(--accent-rgb),.65); outline-offset:-4px; }

.short-stage__gradient {
	z-index:6;
	border-radius:27px;
	background:
		linear-gradient(to top, rgba(3,5,10,.93) 0%, rgba(4,5,11,.62) 18%, rgba(4,5,11,.13) 43%, transparent 61%),
		linear-gradient(to bottom, rgba(4,5,11,.19), transparent 18%);
}

.short-progress {
	z-index:10;
	left:23px;
	right:23px;
	top:16px;
	bottom:auto;
	height:4px;
	border-radius:99px;
	background:repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 44px, transparent 44px 54px);
	box-shadow:0 1px 12px rgba(0,0,0,.18);
}
.short-progress__bar {
	position:relative;
	min-width:8%;
	background:linear-gradient(90deg, #7f43ff, #a45dff);
	box-shadow:0 0 12px rgba(var(--accent-rgb),.7);
	transition:width 180ms linear;
}
.short-progress__bar::after {
	content:'';
	position:absolute;
	right:-3px;
	top:50%;
	width:7px;
	height:7px;
	border-radius:50%;
	background:#bc8bff;
	box-shadow:0 0 12px #a974ff;
	transform:translateY(-50%);
}

.short-stage__status {
	position:absolute;
	z-index:12;
	left:50%;
	top:50%;
	padding:10px 14px;
	border:1px solid rgba(255,255,255,.12);
	border-radius:999px;
	background:rgba(5,7,14,.66);
	color:#fff;
	font-size:11px;
	font-weight:750;
	letter-spacing:.01em;
	backdrop-filter:blur(14px);
	opacity:0;
	pointer-events:none;
	transform:translate(-50%,-50%) scale(.88);
}
.short-stage__status.is-visible { animation:shortStatusPop .7s var(--ease) both; }

.short-stage__sound-cue {
	position:absolute;
	z-index:11;
	top:34px;
	right:18px;
	display:flex;
	align-items:center;
	gap:6px;
	padding:7px 10px;
	border:1px solid rgba(255,255,255,.11);
	border-radius:999px;
	background:rgba(5,7,14,.48);
	color:rgba(255,255,255,.88);
	font-size:9px;
	font-weight:700;
	backdrop-filter:blur(12px);
	opacity:0;
	transform:translateY(-4px);
	transition:opacity 250ms var(--ease), transform 250ms var(--ease);
	pointer-events:none;
}
.short-stage__sound-cue .flux-icon { width:13px; height:13px; }
.short-stage__sound-cue.is-visible { opacity:.78; transform:translateY(0); animation:soundCueFade 3.4s 1.1s both; }

/* Hide third-party embed chrome as aggressively as a cross-origin iframe allows. */
.flux-youtube-short { background:#05070d; }
.flux-youtube-short__poster { filter:saturate(.98) brightness(.88); transform:scale(1.018); }
.flux-youtube-short__iframe {
	inset:-5.5% !important;
	width:111% !important;
	height:111% !important;
	max-width:none !important;
	pointer-events:none !important;
	transform:translateZ(0);
}
.flux-youtube-short__loading { z-index:4; width:48px; height:48px; background:rgba(8,10,17,.45); }

.short-stage__info {
	z-index:8;
	left:23px;
	right:22px;
	bottom:35px;
	color:#fff;
}
.short-author-row { gap:10px; }
.short-author-row__avatar,
.short-author-row__avatar img { width:52px; height:52px; }
.short-author-row__avatar { padding:2px; border:1px solid rgba(255,255,255,.75); background:rgba(255,255,255,.12); box-shadow:0 10px 28px rgba(0,0,0,.25); }
.short-author-row__avatar img { width:46px; height:46px; }
.short-author-row__name { font-size:16px; font-weight:790; letter-spacing:-.02em; text-shadow:0 2px 12px rgba(0,0,0,.6); }
.short-author-row__verified { display:grid; place-items:center; width:18px; height:18px; margin-left:-4px; border-radius:50%; background:#25cfd0; color:#fff; box-shadow:0 0 14px rgba(37,207,208,.35); }
.short-author-row__verified .flux-icon { width:11px; height:11px; stroke-width:2.6; }
.short-subscribe {
	height:34px;
	margin-left:5px;
	padding:0 14px;
	border:1px solid rgba(var(--accent-2-rgb),.68);
	border-radius:999px;
	background:rgba(9,20,24,.32);
	color:#3de1d2;
	font-size:11px;
	font-weight:800;
	box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
	transition:transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.short-subscribe:hover { transform:translateY(-2px); background:rgba(var(--accent-2-rgb),.13); }
.short-subscribe.is-active { border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.09); color:#fff; }
.short-stage__title { margin:14px 0 0; font-size:16px; font-weight:540; line-height:1.35; letter-spacing:-.01em; text-shadow:0 2px 14px rgba(0,0,0,.7); }
.short-stage__title a:hover { color:#fff; }
.short-stage__sound { display:flex; align-items:center; gap:9px; margin-top:15px; color:rgba(255,255,255,.9); font-size:12px; font-weight:520; }
.short-stage__sound .flux-icon { width:19px; height:19px; }
.short-stage__excerpt,
.short-stage__stats { display:none !important; }

.short-actions {
	right:-95px;
	top:51%;
	bottom:auto;
	dis:grid;
	gap:14px;
	padding:12px 9px 9px;
	border:1px solid rgba(255,255,255,.055);
	border-radius:24px;
	background:rgba(16,20,33,.72);
	box-shadow:0 22px 55px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.025);
	backdrop-filter:blur(18px) saturate(130%);
	transform:translateY(-43%);
}
.short-action { gap:6px; color:#d2d6e5; font-size:10px; font-weight:650; }
.short-action__icon {
	width:52px;
	height:52px;
	border-color:rgba(255,255,255,.075);
	background:rgba(8,11,20,.72);
	box-shadow:inset 0 1px 0 rgba(255,255,255,.025), 0 8px 22px rgba(0,0,0,.12);
}
.short-action__icon .flux-icon { width:23px; height:23px; }
.short-action:hover .short-action__icon { border-color:rgba(var(--accent-rgb),.2); background:rgba(24,29,45,.92); color:#fff; transform:translateY(-3px) scale(1.055); box-shadow:0 12px 28px rgba(0,0,0,.22); }
.short-action.is-active .short-action__icon { border-color:rgba(var(--accent-rgb),.28); background:rgba(var(--accent-rgb),.13); color:#9b58ff; box-shadow:0 0 24px rgba(var(--accent-rgb),.13); }
.short-action--more { margin-top:-1px; }
.short-action.is-bursting .short-action__icon { animation:shortHeartBurst .62s var(--ease); }
.short-action.is-bursting .short-action__icon::before,
.short-action.is-bursting .short-action__icon::after {
	content:'';
	position:absolute;
	width:6px;
	height:6px;
	border-radius:50%;
	background:#a45dff;
	box-shadow:18px -7px 0 #25d6c4, -16px -8px 0 #cf8cff, 13px 15px 0 #7b5cff, -14px 13px 0 #32d4cb;
	animation:shortParticles .6s ease-out both;
}
.short-action__icon { position:relative; }

.short-more-menu {
	position:absolute;
	z-index:30;
	right:-87px;
	top:calc(51% + 196px);
	width:184px;
	padding:7px;
	border:1px solid rgba(255,255,255,.08);
	border-radius:16px;
	background:rgba(13,16,27,.96);
	box-shadow:0 24px 65px rgba(0,0,0,.43);
	backdrop-filter:blur(22px);
	animation:fluxHeaderPopoverIn 160ms var(--ease) both;
}
.short-more-menu[hidden] { display:none !important; }
.short-more-menu a,
.short-more-menu button { display:flex; align-items:center; gap:9px; width:100%; min-height:39px; padding:8px 9px; border:0; border-radius:10px; background:transparent; color:var(--text-soft); font-size:11px; font-weight:650; text-align:left; }
.short-more-menu a:hover,
.short-more-menu button:hover { background:rgba(255,255,255,.055); color:#fff; }
.short-more-menu .flux-icon { width:16px; height:16px; color:var(--muted); }

.short-feed-nav {
	right:34px;
	top:auto;
	bottom:76px;
	gap:18px;
	transform:none;
}
.short-feed-nav .icon-button {
	width:52px;
	height:52px;
	border-color:rgba(255,255,255,.075);
	background:rgba(16,20,32,.74);
	box-shadow:0 12px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.025);
	backdrop-filter:blur(16px);
}
.short-feed-nav .icon-button:hover { border-color:rgba(var(--accent-rgb),.2); background:rgba(24,28,44,.9); transform:translateY(-3px); }

@keyframes shortStageEnter {
	from { opacity:.45; transform:translateY(18px) scale(.975); filter:saturate(.8); }
	to { opacity:1; transform:translateY(0) scale(1); filter:saturate(1); }
}
@keyframes shortStageIdle {
	from { filter:drop-shadow(0 0 0 rgba(var(--accent-rgb),0)); }
	to { filter:drop-shadow(0 0 20px rgba(var(--accent-rgb),.025)); }
}
@keyframes shortStatusPop {
	0% { opacity:0; transform:translate(-50%,-50%) scale(.82); }
	25% { opacity:1; transform:translate(-50%,-50%) scale(1); }
	72% { opacity:1; }
	100% { opacity:0; transform:translate(-50%,-50%) scale(.96); }
}
@keyframes soundCueFade {
	0%,65% { opacity:.78; }
	100% { opacity:0; }
}
@keyframes shortHeartBurst {
	0% { transform:scale(1); }
	35% { transform:scale(1.22) rotate(-7deg); }
	70% { transform:scale(.94) rotate(3deg); }
	100% { transform:scale(1); }
}
@keyframes shortParticles {
	0% { opacity:0; transform:scale(.4); }
	32% { opacity:1; }
	100% { opacity:0; transform:scale(1.8); }
}

/* Compact/collapsed desktop chrome. */
body.sidebar-collapsed .site-header { grid-template-columns:var(--sidebar-compact-w) minmax(340px,492px) minmax(260px,1fr); }
body.sidebar-collapsed .sidebar-studio-card,
body.sidebar-collapsed .sidebar-subscriptions { display:none; }
body.sidebar-collapsed .site-sidebar__scroll { padding-inline:14px; }
body.sidebar-collapsed .sidebar-link { padding-inline:8px; }

@media (max-width: 1280px) and (min-width: 981px) {
	:root { --sidebar-w:260px; }
	.site-header { gap:30px; padding-right:24px; }
	.site-sidebar__scroll { padding-inline:20px; }
	.sidebar-studio-card { margin-inline:20px; }
	.short-stage { transform:translateX(-48px); }
	.short-feed-item { padding-right:104px; }
	.short-actions { right:-86px; }
	.short-feed-nav { right:20px; }
}

@media (max-width: 980px) {
	:root { --header-h:68px; --sidebar-w:280px; }
	.site-header {
		grid-template-columns:auto minmax(0,1fr) auto;
		gap:14px;
		padding:0 16px;
	}
	.site-brand__name { font-size:18px; }
	.site-sidebar { width:280px; }
	.site-sidebar__scroll { padding:20px 18px; }
	.sidebar-studio-card { margin-inline:18px; }
	.site-main,
	.site-footer { margin-left:0; }
	.header-studio-link span { display:none; }
	.header-studio-link { width:44px; padding:0; justify-content:center; }
	.header-profile__chevron { display:none; }
	.header-profile { width:44px; padding:3px; border-radius:50%; }
	.header-notification-toggle { display:none; }

	.fluxwave-shorts-view .site-main { height:calc(100dvh - var(--header-h)); }
	.short-feed-item { align-items:flex-start; padding:10px 0 74px; }
	.short-stage {
		height:min(calc(100dvh - var(--header-h) - 86px), 860px);
		max-height:none;
		max-width:calc(100vw - 96px);
		transform:none;
		animation:none;
	}
	.short-actions {
		right:-78px;
		top:52%;
		padding:8px 6px;
		gap:10px;
		border:0;
		background:transparent;
		box-shadow:none;
		backdrop-filter:none;
	}
	.short-action__icon { width:46px; height:46px; background:rgba(8,10,18,.66); backdrop-filter:blur(12px); }
	.short-action__label { font-size:9px; }
	.short-feed-nav { display:none; }
	.short-more-menu { right:-68px; }
}

@media (max-width: 700px) {
	.site-header__search { display:none; }
	.mobile-search-toggle { display:grid; }
	.site-header { grid-template-columns:minmax(0,1fr) auto; }
	.site-header__left { min-width:0; }
	.site-menu-toggle { margin-left:-7px; }
	.site-brand { gap:8px; }
	.site-brand__mark { width:27px; height:30px; }
	.site-header__actions { gap:6px; }
	.header-studio-link { width:40px; height:40px; }
	.header-profile { width:40px; height:40px; }
	.header-profile__avatar { width:34px; height:34px; }
	.header-popover { position:fixed; top:62px; right:12px; width:min(286px, calc(100vw - 24px)); }

	.short-feed-item { padding:4px 0 66px; }
	.short-stage {
		height:calc(100dvh - var(--header-h) - 70px);
		width:min(100vw, calc((100dvh - var(--header-h) - 70px) * .5625));
		max-width:100vw;
		border-radius:0;
	}
	.short-stage__player,
	.short-stage__gradient { border-radius:18px; }
	.short-stage__player { border-color:rgba(255,255,255,.07); box-shadow:none; }
	.short-stage__ambient { display:none; }
	.short-stage__info { left:16px; right:70px; bottom:24px; }
	.short-author-row__avatar,
	.short-author-row__avatar img { width:42px; height:42px; }
	.short-author-row__avatar img { width:36px; height:36px; }
	.short-author-row__name { font-size:13px; }
	.short-author-row__verified { width:16px; height:16px; }
	.short-subscribe { height:30px; padding:0 10px; font-size:9px; }
	.short-stage__title { font-size:13px; margin-top:10px; }
	.short-stage__sound { margin-top:10px; font-size:10px; }
	.short-stage__sound .flux-icon { width:16px; height:16px; }
	.short-progress { left:14px; right:14px; top:12px; height:3px; }
	.short-stage__sound-cue { top:26px; right:12px; }
	.short-actions {
		right:8px;
		top:auto;
		bottom:82px;
		transform:none;
		z-index:12;
	}
	.short-action__icon { width:42px; height:42px; }
	.short-action__icon .flux-icon { width:20px; height:20px; }
	.short-action__label { color:#fff; text-shadow:0 2px 7px rgba(0,0,0,.7); }
	.short-more-menu { right:10px; top:auto; bottom:78px; }
	.fluxwave-shorts-view .mobile-bottom-nav { display:flex; }
}

@media (max-width: 430px) {
	.site-brand__name { max-width:120px; }
	.short-stage { width:100vw; height:calc(100dvh - var(--header-h) - 64px); }
	.short-stage__player,
	.short-stage__gradient { border-radius:0; border-inline:0; }
	.short-stage__info { bottom:22px; }
}

@media (prefers-reduced-motion: reduce) {
	.short-stage,
	.short-feed-item.is-active .short-stage__player,
	.short-action.is-bursting .short-action__icon,
	.short-action.is-bursting .short-action__icon::before,
	.short-action.is-bursting .short-action__icon::after,
	.header-popover { animation:none !important; }
	.short-stage__player,
	.short-action__icon,
	.sidebar-link,
	.sidebar-channel { transition:none !important; }
}


/* ==========================================================================
   Fluxwave 3.6 - homepage layout refinement
   ========================================================================== */
.home-page--v36 {
	max-width: 100%;
	padding-top: 18px;
}

.home-page--v36 .topic-chips {
	margin-bottom: 16px;
	padding: 2px 2px 6px;
	gap: 12px;
}

.home-page--v36 .topic-chip {
	min-height: 42px;
	padding: 0 18px;
	border-radius: 14px;
	background: rgba(255,255,255,0.042);
	border-color: rgba(255,255,255,0.07);
	font-size: 13px;
	font-weight: 720;
}

.home-page--v36 .topic-chip.is-active {
	background: linear-gradient(135deg, rgba(var(--accent-rgb),0.28), rgba(var(--accent-2-rgb),0.18));
	border-color: rgba(var(--accent-rgb),0.35);
}

.home-page--v36 .content-section {
	padding: 8px 0 0;
}

.home-page--v36 .section-heading {
	margin-bottom: 14px;
}

.home-page--v36 .section-heading h2 {
	font-size: 28px;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.home-page--v36 .section-heading__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.home-page--v36 .section-heading__link {
	font-size: 13px;
	font-weight: 750;
}

.video-grid--homepage-main,
.video-grid--homepage-secondary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 18px;
}

.home-page--v36 .video-card {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.home-page--v36 .video-card:hover {
	transform: none;
}

.home-page--v36 .video-card__thumb {
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,0.06);
	background: #101521;
	box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.home-page--v36 .video-card__thumb:hover,
.home-page--v36 .video-card:hover .video-card__thumb {
	border-color: rgba(var(--accent-rgb),0.22);
	box-shadow: 0 22px 52px rgba(0,0,0,0.24), 0 0 0 1px rgba(var(--accent-rgb),0.08);
}

.home-page--v36 .video-card__body {
	padding: 12px 4px 0;
	gap: 12px;
}

.home-page--v36 .video-card__avatar,
.home-page--v36 .video-card__avatar img {
	width: 40px;
	height: 40px;
}

.home-page--v36 .video-card__title {
	font-size: 15px;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.home-page--v36 .video-card__channel {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 560;
}

.home-page--v36 .video-card__meta {
	margin-top: 4px;
	font-size: 12px;
	color: #a3acc4;
}

.home-page--v36 .video-card__more {
	opacity: 1;
	align-self: flex-start;
	margin-top: 2px;
	background: transparent;
}

.home-page--v36 .video-card__duration {
	right: 10px;
	bottom: 10px;
	padding: 5px 7px;
	font-size: 11px;
	font-weight: 780;
	background: rgba(7,9,14,0.86);
}

.home-page--v36 .video-card__play {
	width: 50px;
	height: 50px;
	background: rgba(11,13,22,0.58);
	backdrop-filter: blur(10px);
}

.home-page--v36 .video-card:hover .video-card__play {
	transform: translate(-50%, -50%) scale(1);
}

.home-page--v36 .shorts-rail--homepage {
	gap: 14px;
	padding-bottom: 10px;
}

.home-page--v36 .short-card {
	min-width: 148px;
	width: 148px;
}

.home-page--v36 .short-card__media {
	border-radius: 18px;
	border-color: rgba(255,255,255,0.06);
}

.home-page--v36 .short-card__overlay {
	padding: 14px 12px 12px;
}

.home-page--v36 .short-card__title {
	font-size: 14px;
	line-height: 1.28;
}

.home-page--v36 .short-card__meta {
	font-size: 12px;
}

@media (max-width: 1380px) {
	.video-grid--homepage-main,
	.video-grid--homepage-secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home-page--v36 .section-heading h2 { font-size: 22px; }
	.video-grid--homepage-main,
	.video-grid--homepage-secondary {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.home-page--v36 .short-card {
		min-width: 138px;
		width: 138px;
	}
}


/* ==========================================================================
   Fluxwave 3.7 - Shorts engagement panel and refined player chrome
   ========================================================================== */
.fluxwave-shorts-view .site-main,
.fluxwave-short-single-view .site-main {
	background:
		radial-gradient(circle at 45% 12%, rgba(var(--accent-rgb), .055), transparent 30rem),
		#090b12;
}

.fluxwave-shorts-view .short-feed-item,
.fluxwave-short-single-view .short-feed-item {
	padding: 16px 118px 16px 32px;
}

.fluxwave-shorts-view .short-stage,
.fluxwave-short-single-view .short-stage {
	height: min(820px, calc(100dvh - var(--header-h) - 32px));
	width: auto;
	aspect-ratio: 9 / 16;
	max-width: min(470px, calc(100vw - var(--sidebar-w) - 230px));
	transform: translateX(-70px);
	animation: none;
	transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.short-stage__player,
.short-stage__gradient {
	border-radius: 21px;
}

.short-stage__player {
	border-color: rgba(255,255,255,.11);
	box-shadow: 0 26px 78px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.018);
}

.short-feed-item.is-active .short-stage__player {
	animation: shortStageEnterV37 440ms cubic-bezier(.18,.78,.22,1) both;
}

.flux-youtube-short__iframe {
	inset: -4.2% !important;
	width: 108.4% !important;
	height: 108.4% !important;
}

.short-stage__gradient {
	z-index: 6;
	background:
		linear-gradient(to top, rgba(2,4,8,.9) 0%, rgba(2,4,8,.52) 18%, rgba(2,4,8,.07) 42%, transparent 58%),
		linear-gradient(to bottom, rgba(2,4,8,.34) 0%, rgba(2,4,8,.06) 14%, transparent 25%);
}

.short-stage__topbar {
	position: absolute;
	z-index: 22;
	left: 16px;
	right: 16px;
	top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
	opacity: .94;
	transform: translateY(0);
	transition: opacity 180ms ease, transform 180ms ease;
}

.short-stage:hover .short-stage__topbar,
.short-feed-item.is-paused .short-stage__topbar,
.short-comments-open .short-stage__topbar {
	opacity: 1;
}

.short-stage__topgroup {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.short-top-button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.105);
	border-radius: 50%;
	background: rgba(8,10,15,.58);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
	backdrop-filter: blur(14px) saturate(135%);
	-webkit-backdrop-filter: blur(14px) saturate(135%);
	transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.short-top-button:hover {
	transform: translateY(-2px) scale(1.045);
	background: rgba(21,25,35,.84);
	border-color: rgba(255,255,255,.18);
	box-shadow: 0 12px 28px rgba(0,0,0,.26);
}

.short-top-button:active { transform: scale(.94); }
.short-top-button .flux-icon { width: 20px; height: 20px; stroke-width: 2; }
.short-top-button--cc { font-size: 12px; font-weight: 900; letter-spacing: -.03em; }
.short-top-button--cc[aria-pressed="true"] { background: #fff; color: #10131b; border-color: #fff; }
.short-top-button__pause,
.short-top-button__unmuted { display: none; }
.short-feed-item.is-playing .short-top-button__play { display: none; }
.short-feed-item.is-playing .short-top-button__pause { display: grid; }
.short-feed-item.is-unmuted .short-top-button__muted { display: none; }
.short-feed-item.is-unmuted .short-top-button__unmuted { display: grid; }

.short-progress {
	left: 8px;
	right: 8px;
	top: auto;
	bottom: 7px;
	height: 3px;
	border-radius: 99px;
	background: rgba(255,255,255,.22);
	box-shadow: none;
}
.short-progress__bar {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 12px rgba(var(--accent-rgb),.45);
}
.short-progress__bar::after { display: none; }

.short-stage__info {
	left: 17px;
	right: 17px;
	bottom: 28px;
}
.short-author-row__avatar,
.short-author-row__avatar img { width: 42px; height: 42px; }
.short-author-row__avatar img { width: 38px; height: 38px; }
.short-author-row__name { font-size: 13px; }
.short-stage__title { margin-top: 9px; font-size: 14px; line-height: 1.32; }
.short-stage__sound { margin-top: 9px; font-size: 11px; opacity: .94; }

.short-actions {
	right: -82px;
	top: 50%;
	gap: 11px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	transform: translateY(-42%);
}

.short-action {
	gap: 5px;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255,255,255,.9);
}

.short-action__icon {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255,255,255,.075);
	background: rgba(31,34,40,.92);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 24px rgba(0,0,0,.18);
	backdrop-filter: blur(14px);
}
.short-action:hover .short-action__icon {
	background: rgba(47,50,58,.96);
	border-color: rgba(255,255,255,.13);
	transform: translateY(-2px) scale(1.04);
}
.short-action.is-active .short-action__icon {
	background: linear-gradient(135deg, rgba(var(--accent-rgb),.22), rgba(var(--accent-2-rgb),.14));
	border-color: rgba(var(--accent-rgb),.28);
}

.short-more-menu {
	right: -72px;
	top: calc(50% + 180px);
	width: 190px;
	border-radius: 14px;
	background: rgba(24,26,32,.97);
}
.short-more-menu.is-top-position {
	right: 16px;
	top: 62px;
}

.short-feed-nav {
	z-index: 1002;
	right: 17px;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
}
.short-feed-nav .icon-button { width: 50px; height: 50px; background: rgba(42,44,49,.94); }

/* Comments panel modelled after a compact engagement panel, using original Fluxwave markup and styling. */
.short-comments-panel {
	position: fixed;
	z-index: 1000;
	top: calc(var(--header-h) + 16px);
	right: 82px;
	bottom: 16px;
	display: grid;
	grid-template-rows: auto minmax(0,1fr) auto;
	width: min(448px, calc(100vw - var(--sidebar-w) - 650px));
	min-width: 360px;
	border: 1px solid rgba(255,255,255,.13);
	border-radius: 17px;
	background: #16181d;
	color: #f8f8f8;
	box-shadow: 0 28px 80px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.025);
	opacity: 0;
	visibility: hidden;
	transform: translateX(28px) scale(.985);
	transform-origin: right center;
	transition: opacity 210ms ease, transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 320ms;
	overflow: hidden;
}
.short-comments-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) scale(1);
	transition-delay: 0s;
}
.short-comments-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 60px;
	padding: 0 14px 0 16px;
	border-bottom: 1px solid rgba(255,255,255,.1);
	background: rgba(22,24,29,.98);
}
.short-comments-panel__title { display: flex; align-items: baseline; gap: 7px; }
.short-comments-panel__title h2 { margin: 0; font-size: 18px; line-height: 1; letter-spacing: -.025em; }
.short-comments-panel__title span { color: #aeb3bd; font-size: 13px; font-weight: 560; }
.short-comments-panel__header-actions { display: flex; align-items: center; gap: 5px; }
.short-comments-panel__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	transition: background 140ms ease, transform 140ms ease;
}
.short-comments-panel__icon:hover { background: rgba(255,255,255,.08); transform: scale(1.04); }
.short-comments-panel__icon .flux-icon { width: 21px; height: 21px; }
.short-comments-sort { position: relative; }
.short-comments-sort__menu {
	position: absolute;
	z-index: 12;
	right: 0;
	top: 44px;
	width: 170px;
	padding: 7px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 13px;
	background: #27292f;
	box-shadow: 0 18px 48px rgba(0,0,0,.45);
	animation: fluxHeaderPopoverIn 150ms ease both;
}
.short-comments-sort__menu[hidden] { display: none !important; }
.short-comments-sort__menu button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 40px;
	padding: 0 11px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #e8e8eb;
	font-size: 12px;
	font-weight: 650;
	text-align: left;
}
.short-comments-sort__menu button:hover,
.short-comments-sort__menu button.is-active { background: rgba(255,255,255,.075); }
.short-comments-sort__menu button.is-active { color: #fff; }

.short-comments-panel__body {
	position: relative;
	overflow-y: auto;
	padding: 12px 14px 18px 16px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,.18) transparent;
}
.short-comments-list { display: grid; gap: 18px; }
.short-comment {
	display: grid;
	grid-template-columns: 34px minmax(0,1fr);
	gap: 11px;
	animation: shortCommentIn 250ms cubic-bezier(.2,.8,.2,1) both;
}
.short-comment--reply { grid-template-columns: 30px minmax(0,1fr); margin-top: 14px; }
.short-comment__avatar img { display: block; border-radius: 50%; object-fit: cover; }
.short-comment__main { min-width: 0; }
.short-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-height: 18px; }
.short-comment__meta strong { font-size: 11.5px; font-weight: 760; color: #f5f5f6; }
.short-comment__meta span { color: #a4a8b1; font-size: 10.5px; }
.short-comment__text { margin-top: 4px; color: #f0f0f1; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.short-comment__text p { margin: 0 0 5px; }
.short-comment__text p:last-child { margin-bottom: 0; }
.short-comment__actions { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.short-comment__like,
.short-comment__reply,
.short-comment__replies-toggle {
	border: 0;
	background: transparent;
	color: #bfc3cb;
	font-size: 10.5px;
	font-weight: 700;
}
.short-comment__like { display: flex; align-items: center; gap: 5px; min-height: 27px; padding: 2px 7px; margin-left: -7px; border-radius: 999px; }
.short-comment__like:hover { background: rgba(255,255,255,.065); color: #fff; }
.short-comment__like.is-active { color: var(--accent-2); }
.short-comment__like .flux-icon { width: 15px; height: 15px; }
.short-comment__reply { min-height: 27px; padding: 2px 8px; border-radius: 999px; }
.short-comment__reply:hover { background: rgba(255,255,255,.065); color: #fff; }
.short-comment__replies-toggle { display: flex; align-items: center; gap: 5px; margin-top: 6px; padding: 5px 7px; border-radius: 999px; color: #bba0ff; }
.short-comment__replies-toggle:hover { background: rgba(var(--accent-rgb),.1); }
.short-comment__replies-toggle .flux-icon { width: 14px; height: 14px; transition: transform 160ms ease; }
.short-comment__replies-toggle[aria-expanded="true"] .flux-icon { transform: rotate(180deg); }
.short-comment__replies[hidden] { display: none !important; }

.short-comments-skeleton { display: grid; gap: 20px; padding: 3px 0; }
.short-comments-skeleton[hidden] { display: none !important; }
.short-comments-skeleton__item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; }
.short-comments-skeleton__item > span { width: 34px; height: 34px; border-radius: 50%; background: #24272d; animation: commentSkeleton 1.4s ease-in-out infinite; }
.short-comments-skeleton__item div { display: grid; gap: 7px; padding-top: 2px; }
.short-comments-skeleton__item i { display: block; height: 9px; border-radius: 99px; background: #24272d; animation: commentSkeleton 1.4s ease-in-out infinite; }
.short-comments-skeleton__item i:nth-child(1) { width: 34%; }
.short-comments-skeleton__item i:nth-child(2) { width: 92%; }
.short-comments-skeleton__item i:nth-child(3) { width: 68%; }

.short-comments-empty,
.short-comments-error {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 54px 20px;
	text-align: center;
	color: #aeb3bd;
}
.short-comments-empty[hidden] { display: none !important; }
.short-comments-empty__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: rgba(255,255,255,.06); color: #e7e7ea; }
.short-comments-empty__icon .flux-icon { width: 22px; height: 22px; }
.short-comments-empty strong,
.short-comments-error strong { color: #fff; font-size: 13px; }
.short-comments-empty span,
.short-comments-error span { max-width: 250px; font-size: 11px; line-height: 1.5; }
.short-comments-load-more { display: block; min-height: 34px; margin: 18px auto 0; padding: 0 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: #24272d; color: #fff; font-size: 11px; font-weight: 740; }
.short-comments-load-more:hover { background: #30333a; }
.short-comments-load-more[hidden] { display: none !important; }

.short-comments-panel__composer {
	min-height: 54px;
	display: grid;
	grid-template-columns: 34px minmax(0,1fr);
	align-items: end;
	gap: 10px;
	padding: 9px 14px 10px 16px;
	border-top: 1px solid rgba(255,255,255,.1);
	background: #1b1d22;
}
.short-comments-panel__composer-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-bottom: 2px; }
.short-comment-form { min-width: 0; }
.short-comment-form__row { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: end; gap: 8px; }
.short-comment-form textarea {
	width: 100%;
	min-height: 38px;
	max-height: 112px;
	padding: 9px 12px;
	resize: none;
	border: 1px solid rgba(255,255,255,.09);
	border-radius: 18px;
	background: #24272d;
	color: #fff;
	font: inherit;
	font-size: 12px;
	line-height: 1.45;
	outline: none;
	transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.short-comment-form textarea:focus { border-color: rgba(var(--accent-rgb),.5); background: #292c33; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.08); }
.short-comment-form__submit { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb),.22); transition: transform 150ms ease, filter 150ms ease; }
.short-comment-form__submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.short-comment-form__submit:disabled { opacity: .45; transform: none; }
.short-comment-form__submit .flux-icon { width: 17px; height: 17px; }
.short-comment-replying { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 5px 6px; color: #bcb0df; font-size: 10px; }
.short-comment-replying[hidden] { display: none !important; }
.short-comment-replying button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #aaaeb6; }
.short-comment-replying button:hover { background: rgba(255,255,255,.07); color: #fff; }
.short-comment-replying .flux-icon { width: 13px; height: 13px; }
.short-comment-login { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: #c7c9ce; font-size: 11px; }
.short-comment-login .flux-icon { width: 18px; height: 18px; }
.short-comment-login a { margin-left: auto; color: #c5acff; font-weight: 800; }
.short-comments-closed { grid-column: 1 / -1; padding: 6px; color: #aeb3bd; font-size: 11px; text-align: center; }
.short-comments-closed[hidden] { display: none !important; }
.short-comments-panel__composer.is-closed > *:not(.short-comments-closed) { display: none !important; }

.short-comments-backdrop { display: none; }

body.short-comments-open .short-stage {
	transform: translateX(clamp(-300px, -18vw, -175px));
}
body.short-comments-open .short-feed-nav { opacity: 1; }

@keyframes shortStageEnterV37 {
	from { opacity: .55; transform: translateY(10px) scale(.985); filter: saturate(.85); }
	to { opacity: 1; transform: translateY(0) scale(1); filter: saturate(1); }
}
@keyframes shortCommentIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes commentSkeleton {
	0%,100% { opacity: .55; }
	50% { opacity: 1; }
}

@media (max-width: 1500px) and (min-width: 1101px) {
	.short-comments-panel { width: 404px; min-width: 340px; right: 72px; }
	body.short-comments-open .short-stage { transform: translateX(-220px); }
	.fluxwave-shorts-view .short-stage,
	.fluxwave-short-single-view .short-stage { transform: translateX(-38px); }
	body.short-comments-open .short-stage { transform: translateX(-220px); }
}

@media (max-width: 1100px) {
	.short-comments-panel {
		right: 12px;
		width: min(420px, calc(100vw - 24px));
		min-width: 0;
	}
	body.short-comments-open .short-stage { transform: translateX(-135px); }
	.short-feed-nav { display: none; }
}

@media (max-width: 780px) {
	.fluxwave-shorts-view .short-feed-item,
	.fluxwave-short-single-view .short-feed-item { padding: 6px 0 70px; }
	.fluxwave-shorts-view .short-stage,
	.fluxwave-short-single-view .short-stage {
		height: calc(100dvh - var(--header-h) - 76px);
		max-width: 100vw;
		transform: none !important;
	}
	.short-stage__topbar { left: 11px; right: 11px; top: 11px; }
	.short-top-button { width: 36px; height: 36px; }
	.short-top-button .flux-icon { width: 18px; height: 18px; }
	.short-actions { right: 7px; bottom: 82px; top: auto; transform: none; gap: 8px; }
	.short-action__icon { width: 43px; height: 43px; background: rgba(24,27,33,.74); }
	.short-stage__info { right: 64px; bottom: 23px; }
	.short-progress { left: 0; right: 0; bottom: 0; border-radius: 0; }

	.short-comments-panel {
		top: auto;
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		height: min(72dvh, 650px);
		border-radius: 20px;
		transform: translateY(36px) scale(.985);
		transform-origin: bottom center;
	}
	.short-comments-panel.is-open { transform: translateY(0) scale(1); }
	.short-comments-backdrop {
		position: fixed;
		z-index: 999;
		inset: var(--header-h) 0 0;
		display: block;
		background: rgba(0,0,0,.42);
		backdrop-filter: blur(2px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 200ms ease, visibility 0s linear 240ms;
	}
	body.short-comments-open .short-comments-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
}

@media (max-width: 430px) {
	.short-stage__topgroup { gap: 5px; }
	.short-top-button { width: 34px; height: 34px; }
	.short-stage__topbar { left: 8px; right: 8px; top: 8px; }
	.short-top-button--cc { font-size: 10px; }
	.short-comments-panel { left: 0; right: 0; bottom: 0; height: min(78dvh, 680px); border-radius: 18px 18px 0 0; border-bottom: 0; }
	.short-comments-panel__header { min-height: 56px; }
	.short-comments-panel__body { padding-inline: 12px; }
	.short-comments-panel__composer { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.short-comments-panel,
	.short-comments-backdrop,
	.short-feed-item.is-active .short-stage__player,
	.short-comment { transition: none !important; animation: none !important; }
}

/* Fluxwave 3.7 polish: visible custom player chrome, focus, and motion details. */
.short-stage__topbar::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: -16px;
	right: -16px;
	top: -16px;
	height: 92px;
	background: linear-gradient(180deg, rgba(2,4,8,.54), rgba(2,4,8,.11) 62%, transparent);
	border-radius: 21px 21px 0 0;
	pointer-events: none;
}

.short-feed-item.is-active .short-stage__topbar {
	animation: shortChromeEnter 420ms cubic-bezier(.18,.78,.22,1) 80ms both;
}

.short-feed-item.is-chrome-idle .short-stage__topbar {
	opacity: .72;
}
.short-feed-item.is-chrome-idle .short-top-button {
	background: rgba(8,10,15,.42);
}
.short-feed-item.is-chrome-idle .short-stage:hover .short-stage__topbar,
.short-feed-item.is-chrome-idle .short-stage:focus-within .short-stage__topbar {
	opacity: 1;
}

.short-top-button:focus-visible,
.short-action:focus-visible .short-action__icon,
.short-comments-panel__icon:focus-visible,
.short-comment__like:focus-visible,
.short-comment__reply:focus-visible,
.short-comment__replies-toggle:focus-visible,
.short-comment-form__submit:focus-visible {
	outline: 2px solid rgba(var(--accent-2-rgb), .9);
	outline-offset: 2px;
}

.short-feed-item.is-active .short-actions .short-action {
	animation: shortActionEnter 360ms cubic-bezier(.18,.78,.22,1) both;
}
.short-feed-item.is-active .short-actions .short-action:nth-child(1) { animation-delay: 90ms; }
.short-feed-item.is-active .short-actions .short-action:nth-child(2) { animation-delay: 130ms; }
.short-feed-item.is-active .short-actions .short-action:nth-child(3) { animation-delay: 170ms; }
.short-feed-item.is-active .short-actions .short-action:nth-child(4) { animation-delay: 210ms; }
.short-feed-item.is-active .short-actions .short-action:nth-child(5) { animation-delay: 250ms; }

.short-comments-list > .short-comment:nth-child(2) { animation-delay: 25ms; }
.short-comments-list > .short-comment:nth-child(3) { animation-delay: 50ms; }
.short-comments-list > .short-comment:nth-child(4) { animation-delay: 75ms; }
.short-comments-list > .short-comment:nth-child(5) { animation-delay: 100ms; }
.short-comments-list > .short-comment:nth-child(n+6) { animation-delay: 120ms; }

.short-comments-panel.is-open .short-comments-panel__header {
	animation: commentHeaderEnter 300ms cubic-bezier(.18,.78,.22,1) both;
}
.short-comments-panel.is-open .short-comments-panel__composer {
	animation: commentComposerEnter 360ms cubic-bezier(.18,.78,.22,1) 70ms both;
}

.short-stage:fullscreen,
.short-stage:-webkit-full-screen {
	height: 100vh !important;
	width: min(56.25vh, 100vw) !important;
	max-width: none !important;
	margin: 0 auto;
	transform: none !important;
	background: #000;
}
.short-stage:fullscreen .short-stage__player,
.short-stage:fullscreen .short-stage__gradient,
.short-stage:-webkit-full-screen .short-stage__player,
.short-stage:-webkit-full-screen .short-stage__gradient {
	border-radius: 0;
}
.short-stage:fullscreen .short-actions,
.short-stage:-webkit-full-screen .short-actions {
	right: 14px;
}

@keyframes shortChromeEnter {
	from { opacity: 0; transform: translateY(-9px); }
	to { opacity: .94; transform: translateY(0); }
}
@keyframes shortActionEnter {
	from { opacity: 0; transform: translateY(10px) scale(.92); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes commentHeaderEnter {
	from { opacity: .4; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes commentComposerEnter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (hover: none) {
	.short-feed-item.is-chrome-idle .short-stage__topbar { opacity: .94; }
}

@media (prefers-reduced-motion: reduce) {
	.short-feed-item.is-active .short-stage__topbar,
	.short-feed-item.is-active .short-actions .short-action,
	.short-comments-panel.is-open .short-comments-panel__header,
	.short-comments-panel.is-open .short-comments-panel__composer {
		animation: none !important;
	}
}

.short-comments-panel__body,
.short-feed {
	overscroll-behavior: contain;
}
.short-stage::backdrop {
	background: #000;
}


/* ==========================================================================
   Fluxwave 3.8 — VueTube-inspired full application refresh
   Structure is inspired by the supplied project while keeping Fluxwave's
   original brand, colors, icons and WordPress/YouTube integration.
   ========================================================================== */

:root {
  --v38-bg: #080a0f;
  --v38-panel: #10131a;
  --v38-panel-2: #151922;
  --v38-panel-3: #1a1f2a;
  --v38-line: rgba(255,255,255,.085);
  --v38-line-2: rgba(255,255,255,.13);
  --v38-text: #f6f7fb;
  --v38-muted: #9da5b6;
  --v38-sidebar: 248px;
  --v38-header: 72px;
  --v38-radius: 14px;
  --v38-shadow: 0 18px 50px rgba(0,0,0,.28);
}

html[data-theme="light"] {
  --v38-bg: #f7f7f8;
  --v38-panel: #ffffff;
  --v38-panel-2: #f1f2f4;
  --v38-panel-3: #e8eaee;
  --v38-line: rgba(18,22,31,.11);
  --v38-line-2: rgba(18,22,31,.17);
  --v38-text: #15171b;
  --v38-muted: #666d79;
  --v38-shadow: 0 18px 50px rgba(16,20,30,.11);
}

body.fluxwave-app {
  background: var(--v38-bg);
  color: var(--v38-text);
}

body.fluxwave-app::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 44% -10%, rgba(var(--accent-rgb),.10), transparent 34rem),
    radial-gradient(circle at 96% 12%, rgba(var(--accent-2-rgb),.06), transparent 30rem);
  pointer-events: none;
}

/* Header: clean, dense, centered search like the supplied project. */
.site-header {
  height: var(--v38-header);
  grid-template-columns: var(--v38-sidebar) minmax(320px, 620px) 1fr;
  gap: 30px;
  padding: 0 24px 0 16px;
  border-bottom: 1px solid var(--v38-line);
  background: color-mix(in srgb, var(--v38-bg) 90%, transparent);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.site-header__left { gap: 12px; }
.site-menu-toggle { width: 40px; height: 40px; border-radius: 50%; }
.site-menu-toggle:hover { background: var(--v38-panel-2); transform: rotate(4deg); }
.site-brand { font-size: 20px; font-weight: 820; letter-spacing: -.035em; }
.site-brand__mark { width: 32px; height: 32px; }
.site-search-form__field {
  height: 44px;
  padding-left: 18px;
  border: 1px solid var(--v38-line-2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--v38-panel) 88%, transparent);
  box-shadow: none;
  color: var(--v38-text);
}
.site-search-form__field::placeholder { color: var(--v38-muted); }
.site-search-form__field:focus {
  background: var(--v38-panel);
  border-color: rgba(var(--accent-rgb),.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.10);
}
.site-search-form__submit { right: 4px; width: 40px; height: 36px; border-radius: 9px; }
.site-header__actions { justify-content: flex-end; gap: 8px; }
.header-studio-link {
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--v38-line);
  border-radius: 999px;
  background: var(--v38-panel-2);
  box-shadow: none;
}
.header-studio-link:hover { background: var(--v38-panel-3); transform: translateY(-1px); }
.header-notification-toggle { width: 40px; height: 40px; border-radius: 50%; }
.header-profile { width: 42px; height: 42px; padding: 3px; border-radius: 50%; background: transparent; border: 1px solid var(--v38-line); }
.header-profile__avatar { width: 34px; height: 34px; }
.header-profile__chevron { display: none; }
.header-popover { border-radius: 14px; border-color: var(--v38-line-2); background: color-mix(in srgb, var(--v38-panel) 96%, transparent); }

/* Sidebar: closer to the project hierarchy, cleaner section separators. */
.site-sidebar {
  inset: var(--v38-header) auto 0 0;
  width: var(--v38-sidebar);
  border-right: 1px solid var(--v38-line);
  background: var(--v38-bg);
  box-shadow: none;
}
.site-sidebar__scroll { padding: 14px 12px 20px; }
.sidebar-section { gap: 2px; padding: 8px 0 12px; border-bottom: 1px solid var(--v38-line); }
.sidebar-section--primary { padding-top: 0; }
.sidebar-section--account { margin-top: 0; }
.sidebar-link {
  min-height: 42px;
  gap: 18px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: var(--v38-text);
  font-size: 14px;
  font-weight: 590;
}
.sidebar-link .flux-icon { width: 21px; height: 21px; color: currentColor; }
.sidebar-link:hover { background: var(--v38-panel-2); transform: none; }
.sidebar-link.is-active {
  border: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.20), rgba(var(--accent-rgb),.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
html[data-theme="light"] .sidebar-link.is-active { color: #1b1d22; }
.sidebar-link.is-active .flux-icon { color: var(--accent); filter: none; }
.sidebar-subscriptions { margin: 12px 0 0; padding: 14px 0; border-bottom: 1px solid var(--v38-line); }
.sidebar-subscriptions__head { padding: 0 13px 8px; }
.sidebar-subscriptions__head h2 { color: var(--v38-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.sidebar-subscriptions__head a { font-size: 11px; color: var(--accent); }
.sidebar-channel { min-height: 42px; grid-template-columns: 30px minmax(0,1fr) 6px; padding: 5px 13px; border-radius: 9px; }
.sidebar-channel img { width: 30px; height: 30px; }
.sidebar-channel:hover { transform: none; background: var(--v38-panel-2); }
.sidebar-studio-card { margin: 14px 12px; border-radius: 13px; background: linear-gradient(145deg, rgba(var(--accent-rgb),.13), rgba(var(--accent-2-rgb),.08)), var(--v38-panel); }
.site-sidebar__footer { padding: 12px 18px 20px; }

.site-main { margin-top: var(--v38-header); margin-left: var(--v38-sidebar); }
.site-footer { margin-left: var(--v38-sidebar); }
.page-shell { max-width: 1780px; padding-left: 28px; padding-right: 28px; }

/* Homepage: project-inspired Recommended grid instead of oversized hero. */
.home-page--v36 { padding-top: 18px; }
.home-page--v36 .topic-chips { position: sticky; top: var(--v38-header); z-index: 30; margin: -18px -28px 18px; padding: 14px 28px 10px; background: color-mix(in srgb, var(--v38-bg) 94%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); }
.home-page--v36 .topic-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--v38-panel-2); color: var(--v38-text); font-size: 12px; font-weight: 680; box-shadow: none; }
.home-page--v36 .topic-chip:hover { background: var(--v38-panel-3); transform: translateY(-1px); }
.home-page--v36 .topic-chip.is-active { background: var(--v38-text); color: var(--v38-bg); }
.home-page--v36 .content-section { padding-top: 4px; }
.home-page--v36 .section-heading { margin-bottom: 16px; }
.home-page--v36 .section-heading__eyebrow { display: none; }
.home-page--v36 .section-heading h2 { font-size: 24px; font-weight: 760; letter-spacing: -.025em; }
.video-grid--homepage-main,
.video-grid--homepage-secondary,
.video-grid--archive,
.video-grid--library,
.video-grid--search { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 30px 16px; }
.home-page--v36 .video-card,
.video-grid--archive .video-card,
.video-grid--library .video-card,
.video-grid--search .video-card { background: transparent; border: 0; padding: 0; box-shadow: none; }
.home-page--v36 .video-card__thumb,
.video-grid--archive .video-card__thumb,
.video-grid--library .video-card__thumb,
.video-grid--search .video-card__thumb { border-radius: 12px; border: 0; box-shadow: none; }
.home-page--v36 .video-card__thumb::after,
.video-grid--archive .video-card__thumb::after,
.video-grid--library .video-card__thumb::after,
.video-grid--search .video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}
.home-page--v36 .video-card:hover .video-card__thumb,
.video-grid--archive .video-card:hover .video-card__thumb,
.video-grid--library .video-card:hover .video-card__thumb,
.video-grid--search .video-card:hover .video-card__thumb { transform: translateY(-2px); box-shadow: var(--v38-shadow); }
.home-page--v36 .video-card__body,
.video-grid--archive .video-card__body,
.video-grid--library .video-card__body,
.video-grid--search .video-card__body { padding: 10px 2px 0; gap: 10px; }
.home-page--v36 .video-card__avatar,
.home-page--v36 .video-card__avatar img,
.video-grid--archive .video-card__avatar,
.video-grid--archive .video-card__avatar img,
.video-grid--library .video-card__avatar,
.video-grid--library .video-card__avatar img,
.video-grid--search .video-card__avatar,
.video-grid--search .video-card__avatar img { width: 36px; height: 36px; }
.home-page--v36 .video-card__title,
.video-grid--archive .video-card__title,
.video-grid--library .video-card__title,
.video-grid--search .video-card__title { font-size: 14px; line-height: 1.3; font-weight: 720; }
.home-page--v36 .video-card__channel,
.home-page--v36 .video-card__meta,
.video-grid--archive .video-card__channel,
.video-grid--archive .video-card__meta,
.video-grid--library .video-card__channel,
.video-grid--library .video-card__meta,
.video-grid--search .video-card__channel,
.video-grid--search .video-card__meta { font-size: 12px; color: var(--v38-muted); }
.home-page--v36 .video-card__more { opacity: 1; }
.home-page--v36 .shorts-rail--homepage { gap: 12px; }
.home-page--v36 .short-card { min-width: 180px; width: 180px; }
.home-page--v36 .short-card__media { border-radius: 12px; }

/* Archive/library/search/channel pages. */
.archive-hero, .author-hero, .search-hero {
  margin-bottom: 22px;
  padding: 22px 0 18px;
  border: 0;
  border-bottom: 1px solid var(--v38-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.archive-hero h1, .author-hero h1, .search-hero h1 { font-size: clamp(28px,3vw,42px); }
.archive-hero p, .author-hero p, .search-hero p { color: var(--v38-muted); }
.library-count { border-color: var(--v38-line); background: var(--v38-panel); }
.channel-rail { gap: 10px; }
.channel-pill { border-radius: 12px; border-color: var(--v38-line); background: var(--v38-panel); }

/* Watch page: classic two-column composition from the project, modernized. */
.watch-page { max-width: 1680px; padding-top: 24px; }
.watch-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 28px; align-items: start; }
.watch-player-wrap { border-radius: 14px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.28); overflow: hidden; }
.watch-header { padding: 16px 2px 8px; }
.watch-header h1 { font-size: clamp(20px,2vw,26px); line-height: 1.24; font-weight: 760; letter-spacing: -.02em; }
.watch-topics { margin-bottom: 5px; }
.watch-header__meta { color: var(--v38-muted); font-size: 13px; }
.watch-toolbar { padding: 10px 0 16px; border-bottom: 1px solid var(--v38-line); gap: 14px; }
.channel-summary { min-width: 0; }
.channel-summary__avatar img { width: 44px; height: 44px; }
.channel-summary__name { font-weight: 760; }
.channel-summary__text span { color: var(--v38-muted); }
.subscribe-button { min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--v38-text); color: var(--v38-bg); }
.subscribe-button.is-active { background: var(--v38-panel-2); color: var(--v38-text); }
.watch-actions { gap: 7px; }
.watch-action { min-height: 38px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--v38-panel-2); color: var(--v38-text); }
.watch-action:hover { background: var(--v38-panel-3); transform: translateY(-1px); }
.watch-description { margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--v38-panel-2); box-shadow: none; }
.watch-related { position: sticky; top: calc(var(--v38-header) + 18px); }
.watch-related__heading { margin-bottom: 12px; }
.watch-related__heading h2 { font-size: 20px; }
.watch-related .video-card--compact { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 10px; padding: 0; margin-bottom: 12px; border: 0; background: transparent; box-shadow: none; }
.watch-related .video-card--compact .video-card__thumb { aspect-ratio: 16/9; border-radius: 10px; }
.watch-related .video-card--compact .video-card__body { padding: 1px 0; }
.watch-related .video-card--compact .video-card__title { font-size: 13px; line-height: 1.26; }
.watch-related .video-card--compact .video-card__channel,
.watch-related .video-card--compact .video-card__meta { font-size: 11px; }
.watch-comments { margin-top: 24px; }

/* Generic comments, tuned to feel consistent with the Shorts panel. */
.comments-area { border-top: 1px solid var(--v38-line); padding-top: 22px; }
.comment-list .comment-body { border-radius: 12px; background: transparent; border: 0; }
.comment-content { color: var(--v38-text); }

/* Preserve/improve the v3.7 Shorts layout. */
.fluxwave-shorts-view .site-main { height: calc(100dvh - var(--v38-header)); }
.short-stage { height: min(860px, calc(100dvh - var(--v38-header) - 24px)); }
.short-stage__player { border-radius: 16px; border-color: var(--v38-line-2); }
.short-stage__gradient { border-radius: 16px; }
.short-stage__top-controls { top: 14px; left: 14px; right: 14px; }
.short-action-button, .short-nav-button { border-color: var(--v38-line); background: rgba(18,20,27,.72); backdrop-filter: blur(14px); }
.short-comments-panel { border-radius: 14px; border-color: var(--v38-line-2); background: color-mix(in srgb, var(--v38-panel) 97%, transparent); box-shadow: var(--v38-shadow); }
.short-comments-panel__header { border-bottom-color: var(--v38-line); }
.short-comments-panel__footer { border-top-color: var(--v38-line); background: var(--v38-panel); }

/* Motion: crisp page entrances and tactile cards. */
@keyframes v38PageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes v38CardIn { from { opacity:0; transform:translateY(12px) scale(.99); } to { opacity:1; transform:none; } }
.site-main > * { animation: v38PageIn 280ms cubic-bezier(.2,.75,.25,1) both; }
.video-card[data-reveal], .short-card { animation: v38CardIn 360ms cubic-bezier(.2,.75,.25,1) both; }
.video-card:nth-child(2n) { animation-delay: 30ms; }
.video-card:nth-child(3n) { animation-delay: 55ms; }
.video-card:nth-child(4n) { animation-delay: 80ms; }

@media (max-width: 1500px) {
  .video-grid--homepage-main, .video-grid--homepage-secondary, .video-grid--archive, .video-grid--library, .video-grid--search { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1180px) {
  :root { --v38-sidebar: 88px; }
  .site-header { grid-template-columns: var(--v38-sidebar) minmax(280px,1fr) auto; gap: 18px; }
  .site-sidebar { width: var(--v38-sidebar); }
  .site-sidebar .sidebar-link__label, .site-sidebar .sidebar-subscriptions, .site-sidebar .sidebar-studio-card, .site-sidebar .site-sidebar__footer, .site-sidebar .sidebar-section--account { display:none; }
  .site-sidebar__scroll { padding: 12px 8px; }
  .sidebar-link { justify-content:center; padding:0; }
  .site-main, .site-footer { margin-left: var(--v38-sidebar); }
  .watch-layout { grid-template-columns: minmax(0,1fr) 340px; gap:20px; }
  .video-grid--homepage-main, .video-grid--homepage-secondary, .video-grid--archive, .video-grid--library, .video-grid--search { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --v38-sidebar: 0px; --v38-header: 64px; }
  .site-header { grid-template-columns: auto minmax(0,1fr) auto; padding:0 12px; }
  .site-brand__name { display:none; }
  .site-sidebar { width: 260px; transform: translateX(-102%); box-shadow: 30px 0 90px rgba(0,0,0,.45); }
  body.nav-open .site-sidebar { transform: translateX(0); }
  .site-sidebar .sidebar-link__label, .site-sidebar .sidebar-subscriptions, .site-sidebar .sidebar-studio-card, .site-sidebar .site-sidebar__footer, .site-sidebar .sidebar-section--account { display:flex; }
  .site-sidebar .sidebar-subscriptions { display:block; }
  .site-sidebar .sidebar-link { justify-content:flex-start; padding:0 13px; }
  .site-main, .site-footer { margin-left:0; }
  .page-shell { padding-left:16px; padding-right:16px; }
  .home-page--v36 .topic-chips { margin-left:-16px; margin-right:-16px; padding-left:16px; padding-right:16px; }
  .watch-layout { grid-template-columns:1fr; }
  .watch-related { position:static; }
  .watch-related .video-card--compact { grid-template-columns: 190px minmax(0,1fr); }
}
@media (max-width: 620px) {
  .site-header__search { display:none; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-header__actions { grid-column:3; }
  .page-shell { padding-left:12px; padding-right:12px; }
  .video-grid--homepage-main, .video-grid--homepage-secondary, .video-grid--archive, .video-grid--library, .video-grid--search { grid-template-columns:1fr; gap:24px; }
  .home-page--v36 .short-card { min-width: 152px; width:152px; }
  .watch-related .video-card--compact { grid-template-columns: 150px minmax(0,1fr); }
  .watch-toolbar { align-items:flex-start; }
  .watch-actions { width:100%; overflow-x:auto; padding-bottom:2px; }
  .watch-action { flex:0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .site-main > *, .video-card[data-reveal], .short-card { animation:none !important; }
}
