/* Tube app — Phase 6 cinematic Netflix-style vitrin */



.ns-tube-html,

.ns-tube-body {

	margin: 0;

	min-height: 100dvh;

	background: var(--nx-bg, #030308);

	color: var(--nx-text, #f0f2ff);

	font-family: "Segoe UI", system-ui, sans-serif;

	-webkit-font-smoothing: antialiased;

}



.ns-tube-app {

	min-height: 100dvh;

	background:

		radial-gradient(ellipse 90% 45% at 50% -5%, var(--nx-accent-soft), transparent 60%),

		var(--nx-bg);

}



/* Header */

.ns-tube-header {

	display: flex;

	align-items: center;

	gap: 0.75rem;

	padding: 0.75rem clamp(1rem, 4vw, 2rem);

	position: sticky;

	top: 0;

	z-index: 50;

	background: var(--nx-surface);

	backdrop-filter: blur(var(--nx-glass-blur, 22px));

	border-bottom: 1px solid var(--nx-border);

}



.ns-tube-header__left {

	display: flex;

	align-items: center;

	gap: 0.65rem;

	flex-shrink: 0;

}



.ns-tube-header__back {

	color: var(--nx-muted);

	text-decoration: none;

	font-size: 0.82rem;

}



.ns-tube-header__logo {

	font-weight: 800;

	letter-spacing: 0.1em;

	color: var(--nx-accent);

}



.ns-tube-header__actions {

	display: flex;

	align-items: center;

	gap: 0.5rem;

	margin-left: auto;

}



.ns-tube-icon-btn {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 38px;

	height: 38px;

	border-radius: 10px;

	border: 1px solid var(--nx-border);

	background: rgba(0, 0, 0, 0.35);

	color: var(--nx-text);

	cursor: pointer;

}



/* Category nav */

.ns-tube-cats {

	display: none;

	flex: 1;

	gap: 0.4rem;

	overflow-x: auto;

	scrollbar-width: none;

	min-width: 0;

}



.ns-tube-cats::-webkit-scrollbar { display: none; }



.ns-tube-cats__btn {

	flex: 0 0 auto;

	padding: 0.38rem 0.8rem;

	border-radius: 999px;

	border: 1px solid var(--nx-border);

	background: rgba(255, 255, 255, 0.03);

	color: var(--nx-muted);

	font-size: 0.78rem;

	cursor: pointer;
	text-decoration: none;

	transition: border-color 0.2s, color 0.2s, background 0.2s;

}



.ns-tube-cats__btn:hover,

.ns-tube-cats__btn.is-active {

	border-color: var(--nx-accent);

	color: var(--nx-accent);

	background: var(--nx-accent-soft);

}



.ns-tube-cats__btn.is-loading { opacity: 0.5; pointer-events: none; }



.ns-tube-content {

	padding: 0 0 2.5rem;

}



.ns-tube-kicker {

	font-size: 0.72rem;

	text-transform: uppercase;

	letter-spacing: 0.1em;

	color: var(--nx-accent);

}



/* Cinematic hero */

.ns-tube-hero {

	position: relative;

	min-height: clamp(360px, 58vh, 520px);

	margin-bottom: 1.5rem;

}



.ns-tube-hero__stage {

	position: absolute;

	inset: 0;

	overflow: hidden;

}



.ns-tube-hero__video,

.ns-tube-hero__image,

.ns-tube-hero__placeholder {

	width: 100%;

	height: 100%;

	object-fit: cover;

	display: block;

}



.ns-tube-hero__placeholder--1 { background: linear-gradient(135deg, #120818 0%, #3a1048 45%, #06060c 100%); }

.ns-tube-hero__placeholder--2 { background: linear-gradient(135deg, #081018 0%, #143858 45%, #05080c 100%); }

.ns-tube-hero__placeholder--3 { background: linear-gradient(135deg, #180810 0%, #581830 45%, #080508 100%); }

.ns-tube-hero__placeholder--4 { background: linear-gradient(135deg, #101018 0%, #282858 45%, #06060a 100%); }

.ns-tube-hero__placeholder--5 { background: linear-gradient(135deg, #141008 0%, #483818 45%, #0a0806 100%); }



.ns-tube-hero__veil {

	position: absolute;

	inset: 0;

	background:

		linear-gradient(0deg, rgba(3, 3, 8, 0.96) 0%, rgba(3, 3, 8, 0.4) 50%, rgba(3, 3, 8, 0.2) 100%),

		linear-gradient(90deg, rgba(3, 3, 8, 0.8) 0%, transparent 60%);

}



.ns-tube-hero__copy {

	position: relative;

	z-index: 2;

	display: flex;

	flex-direction: column;

	justify-content: flex-end;

	min-height: clamp(360px, 58vh, 520px);

	padding: clamp(1.5rem, 5vw, 3rem);

	max-width: 620px;

}



.ns-tube-hero__title {

	margin: 0.3rem 0 0.5rem;

	font-size: clamp(1.75rem, 5vw, 2.75rem);

	font-weight: 800;

	line-height: 1.1;

}



.ns-tube-hero__excerpt {

	margin: 0 0 0.75rem;

	color: var(--nx-muted);

	font-size: 0.95rem;

	max-width: 44ch;

}



.ns-tube-hero__meta {

	display: flex;

	gap: 0.75rem;

	margin-bottom: 1rem;

	font-size: 0.84rem;

	color: var(--nx-muted);

}



.ns-tube-hero__cta {

	display: inline-flex;

	align-items: center;

	gap: 0.45rem;

	width: fit-content;

	padding: 0.75rem 1.4rem;

	border-radius: 10px;

	background: var(--nx-accent);

	color: #fff;

	text-decoration: none;

	font-weight: 700;

	box-shadow: 0 10px 30px var(--nx-accent-soft);

	transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.ns-tube-hero__cta:hover {

	transform: translateY(-2px);

	box-shadow: 0 14px 36px rgba(255, 45, 85, 0.35);

}



/* Feed + strips */

.ns-tube-feed.is-loading {

	opacity: 0.45;

	pointer-events: none;

	transition: opacity 0.25s ease;

}



.ns-tube-strip {

	padding: 0 clamp(1rem, 4vw, 2rem);

	margin-bottom: 1.75rem;

}



.ns-tube-strip__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	padding: 0 1rem;
}

.ns-tube-strip__head .ns-tube-banner {
	flex: 1;
	margin: 0;
	padding: 0;
}

.ns-tube-strip__controls {
	display: flex;
	gap: 0.35rem;
	flex-shrink: 0;
	padding-top: 0.35rem;
}

.ns-tube-strip__scroll-btn {

	width: 30px;

	height: 30px;

	border-radius: 50%;

	border: 1px solid var(--nx-border);

	background: rgba(0, 0, 0, 0.4);

	color: var(--nx-text);

	cursor: pointer;

}



.ns-tube-strip__rail {

	display: flex;

	gap: 0.85rem;

	overflow-x: auto;

	scroll-snap-type: x mandatory;

	padding-bottom: 0.5rem;

	scrollbar-width: thin;

	scrollbar-color: var(--nx-accent-soft) transparent;

}



.ns-tube-strip__rail::-webkit-scrollbar { height: 6px; }

.ns-tube-strip__rail::-webkit-scrollbar-thumb { background: var(--nx-accent-soft); border-radius: 999px; }



/* Video cards */

.ns-tube-card {

	position: relative;

}



.ns-tube-card--strip {

	flex: 0 0 clamp(220px, 42vw, 280px);

	scroll-snap-align: start;

}



.ns-tube-card--md { min-width: 0; }



.ns-tube-card__link {

	display: grid;

	gap: 0.5rem;

	text-decoration: none;

	color: var(--nx-text);

	transition: transform 0.25s ease;

}



.ns-tube-card:hover .ns-tube-card__link {

	transform: translateY(-4px);

}



.ns-tube-card__thumb {

	position: relative;

	aspect-ratio: 16 / 9;

	border-radius: 8px;

	overflow: hidden;

	background: #000;

}



.ns-tube-card--strip .ns-tube-card__thumb {

	aspect-ratio: 16 / 9;

}



.ns-tube-card__thumb img,

.ns-tube-card__placeholder {

	width: 100%;

	height: 100%;

	object-fit: cover;

	display: block;

}



.ns-tube-card__placeholder--1 { background: linear-gradient(145deg, #1a1028, #080810); }

.ns-tube-card__placeholder--2 { background: linear-gradient(145deg, #102030, #060a10); }

.ns-tube-card__placeholder--3 { background: linear-gradient(145deg, #281018, #0a0608); }

.ns-tube-card__placeholder--4 { background: linear-gradient(145deg, #181828, #08080c); }

.ns-tube-card__placeholder--5 { background: linear-gradient(145deg, #282010, #0c0a08); }



.ns-tube-card__play {

	position: absolute;

	inset: 0;

	display: grid;

	place-items: center;

	background: rgba(0, 0, 0, 0.45);

	color: #fff;

	opacity: 0;

	transform: scale(0.92);

	transition: opacity 0.25s ease, transform 0.25s ease;

}



.ns-tube-card:hover .ns-tube-card__play {

	opacity: 1;

	transform: scale(1);

}



.ns-tube-card__shine {

	position: absolute;

	inset: 0;

	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);

	pointer-events: none;

}



.ns-tube-card__body { padding: 0 0.1rem; }



.ns-tube-card__title {

	margin: 0;

	font-size: 0.92rem;

	line-height: 1.35;

	font-weight: 600;

	display: -webkit-box;

	-webkit-line-clamp: 2;

	-webkit-box-orient: vertical;

	overflow: hidden;

}



.ns-tube-card__views {

	font-size: 0.76rem;

	color: var(--nx-muted);

}



.ns-tube-card__rank {

	position: absolute;

	top: 8px;

	left: 8px;

	z-index: 2;

	width: 28px;

	height: 28px;

	border-radius: 50%;

	display: grid;

	place-items: center;

	background: var(--nx-accent);

	color: #fff;

	font-weight: 700;

	font-size: 0.82rem;

}



.ns-tube-empty {

	margin: 2rem clamp(1rem, 4vw, 2rem);

	padding: 2rem;

	text-align: center;

	color: var(--nx-muted);

	border: 1px dashed var(--nx-border);

	border-radius: 14px;

}



/* Grid fallback (popular page) */

.ns-tube-grid {

	display: grid;

	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

	gap: 1rem;

	padding: 0 clamp(1rem, 4vw, 2rem);

}



/* Watch page */

.ns-tube-body--watch .ns-tube-content { padding: 0; max-width: none; }



.ns-tube-watch__stage {
	background: #000;
	width: 100%;
	max-width: 100%;
}

.ns-tube-player-shell {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.ns-tube-player-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ns-tube-player-wrap .plyr,
.ns-tube-player-wrap .plyr__video-wrapper,
.ns-tube-player {
	width: 100%;
	height: 100%;
}

.ns-tube-player-wrap .plyr {
	max-height: none;
}



.ns-tube-watch__body {

	max-width: 960px;

	margin: 0 auto;

	padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;

}



.ns-tube-watch__title {

	margin: 0 0 0.5rem;

	font-size: clamp(1.25rem, 4vw, 1.75rem);

}



.ns-tube-watch__meta {

	display: flex;

	gap: 1rem;

	list-style: none;

	padding: 0;

	margin: 0 0 1rem;

	color: var(--nx-muted);

	font-size: 0.88rem;

}



.ns-tube-share {

	margin: 1rem 0 1.25rem;

	padding: 1rem;

	border-radius: 12px;

	background: var(--nx-surface);

	border: 1px solid var(--nx-border);

}



.ns-tube-share__label { font-weight: 600; margin-bottom: 0.65rem; }



.ns-tube-share__bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }



.ns-tube-share__btn {

	padding: 0.5rem 0.85rem;

	border-radius: 8px;

	border: 1px solid var(--nx-border);

	background: rgba(0, 0, 0, 0.35);

	color: var(--nx-text);

	text-decoration: none;

	font-size: 0.82rem;

	cursor: pointer;

}



.ns-tube-next-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(8px);
	z-index: 30;
	pointer-events: auto;
}

.ns-tube-next-overlay[hidden] {
	display: none !important;
}

.ns-tube-next-overlay__card {
	position: relative;
	text-align: center;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 16px;
	background: rgba(18, 18, 18, 0.92);
	border: 1px solid rgba(230, 0, 0, 0.35);
	box-shadow: 0 0 40px rgba(230, 0, 0, 0.15);
	max-width: 340px;
	width: calc(100% - 2rem);
}

.ns-tube-next-overlay__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-accent, #e60000);
}

.ns-tube-next-overlay__title {
	display: block;
	margin-bottom: 1rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.ns-tube-next-overlay__btn {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.65rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff1a1a, #b30000);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(230, 0, 0, 0.35);
}

.ns-tube-next-overlay__close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	z-index: 35;
	pointer-events: auto;
}

.ns-tube-next-overlay__close:hover {
	background: rgba(230, 0, 0, 0.35);
}



@media (min-width: 768px) {

	.ns-tube-cats { display: flex; }

}

/* Phase 7 — sidebar + glass header */
.ns-tube-app {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100dvh;
}

.ns-tube-sidebar {
	display: none;
	padding: 1.25rem 1rem;
	border-right: 1px solid var(--nx-border);
}

.ns-tube-sidebar--glass {
	background: rgba(3, 3, 8, 0.55);
	backdrop-filter: blur(18px);
}

.ns-tube-sidebar__home {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--nx-muted);
	text-decoration: none;
	font-size: 0.85rem;
}

.ns-tube-sidebar__brand {
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
}

.ns-tube-sidebar__nav {
	display: grid;
	gap: 0.35rem;
}

.ns-tube-sidebar__nav a {
	color: var(--nx-muted);
	text-decoration: none;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.ns-tube-sidebar__nav a.is-active,
.ns-tube-sidebar__nav a:hover {
	color: var(--nx-text);
	background: rgba(255, 255, 255, 0.05);
}

.ns-tube-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ns-tube-header--glass {
	background: rgba(3, 3, 8, 0.6);
}

@media (min-width: 900px) {
	.ns-tube-app { grid-template-columns: 220px 1fr; }
	.ns-tube-sidebar { display: block; }
	.ns-tube-cats--header { display: none; }
}

.ns-tube-cats--sidebar {
	display: grid;
	gap: 0.3rem;
	margin-top: 1rem;
}

.ns-tube-cats--sidebar .ns-tube-cats__item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.ns-tube-cats--sidebar .ns-tube-cats__btn {
	flex: 1;
	text-align: left;
	border-radius: 8px;
}

.ns-tube-cats__sub {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--nx-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--nx-muted);
	cursor: pointer;
	font-size: 0.85rem;
	line-height: 1;
}

.ns-tube-cats__sub.is-active {
	color: var(--nx-accent);
	border-color: var(--nx-accent);
}

/* Phase 8 — watch scroll fix, sticky sidebar, hero play, widgets */
.ns-tube-body--watch {
	overflow-x: hidden;
}

.ns-tube-body--watch .ns-tube-app {
	min-height: auto;
	overflow: visible;
}

.ns-tube-body--watch .ns-tube-main {
	overflow: visible;
	min-height: 0;
}

.ns-tube-sidebar--sticky {
	position: sticky;
	top: 80px;
	align-self: start;
	max-height: calc(100dvh - 96px);
	overflow-y: auto;
}

.ns-tube-sidebar--watch-hidden {
	display: none !important;
}

.ns-tube-hero__poster-wrap {
	position: relative;
	width: 100%;
	height: 100%;
}

.ns-tube-hero__play-btn {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.ns-tube-hero__play-btn:hover {
	transform: scale(1.06);
	background: rgba(255, 45, 85, 0.75);
}

.ns-tube-widget {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nx-border);
}

.ns-tube-widget__title {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-muted);
}

.ns-tube-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.ns-tube-widget__list a {
	display: grid;
	gap: 0.15rem;
	text-decoration: none;
	color: var(--nx-text);
	font-size: 0.82rem;
}

.ns-tube-widget__list span {
	color: var(--nx-muted);
	font-size: 0.74rem;
}

.ns-tube-widget__more {
	display: inline-block;
	margin-top: 0.65rem;
	font-size: 0.78rem;
	color: var(--nx-accent);
	text-decoration: none;
}

.ns-tube-follow-btn {
	margin: 0 0 1rem;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--nx-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--nx-text);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ns-tube-follow-btn.is-active {
	border-color: var(--nx-accent);
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
}

.ns-tube-empty--inline {
	margin-bottom: 1.5rem;
}

.ns-tube-footer {
	margin-top: auto;
	padding: 2rem clamp(1rem, 4vw, 2rem) 1.5rem;
	border-top: 1px solid var(--nx-border);
	background: rgba(0, 0, 0, 0.25);
	font-size: 0.85rem;
	color: var(--nx-muted);
}

.ns-tube-footer__grid {
	display: grid;
	gap: 1.5rem;
	max-width: 960px;
	margin: 0 auto 1.25rem;
}

@media (min-width: 640px) {
	.ns-tube-footer__grid {
		grid-template-columns: 1.4fr repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.ns-tube-footer__logo {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--nx-accent);
	text-decoration: none;
}

.ns-tube-footer__tagline {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.55;
	max-width: 22rem;
}

.ns-tube-footer__col h4 {
	margin: 0 0 0.65rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-text);
}

.ns-tube-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.ns-tube-footer__col a,
.ns-tube-footer__btn {
	color: var(--nx-muted);
	text-decoration: none;
	font-size: 0.82rem;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.ns-tube-footer__col a:hover,
.ns-tube-footer__btn:hover {
	color: var(--nx-accent);
}

.ns-tube-footer__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	max-width: 960px;
	margin: 0 auto 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ns-tube-footer__cats a {
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--nx-border);
	color: var(--nx-muted);
	text-decoration: none;
	font-size: 0.74rem;
}

.ns-tube-footer__cats a:hover {
	border-color: var(--nx-accent);
	color: var(--nx-accent);
}

.ns-tube-footer__bottom {
	max-width: 960px;
	margin: 0 auto;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ns-tube-footer__copy {
	margin: 0;
	font-size: 0.74rem;
}

/* FAZ 3 — sidebar labels, site header, drawer, hub grid, watch extras */
.ns-tube-sidebar__label {
	margin: 0 0 0.45rem;
	padding: 0 0.15rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nx-muted);
}

.ns-tube-body--watch .ns-tube-app {
	grid-template-columns: 1fr !important;
}

.ns-tube-watch {
	width: 100%;
	max-width: 100%;
}

.ns-tube-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--nx-border);
}

.ns-tube-site-header--glass {
	background: rgba(3, 3, 8, 0.6);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.ns-tube-site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
}

.ns-tube-site-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.ns-tube-site-header__logo {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(255, 45, 85, 0.35), rgba(255, 45, 85, 0.08));
	border: 1px solid rgba(255, 45, 85, 0.35);
	color: var(--nx-accent);
	font-weight: 800;
	font-size: 0.95rem;
}

.ns-tube-site-header__stack {
	display: grid;
	gap: 0.05rem;
	min-width: 0;
}

.ns-tube-site-header__name {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
}

.ns-tube-site-header__tagline {
	font-size: 0.68rem;
	color: var(--nx-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 12rem;
}

.ns-tube-site-header__nav {
	display: none;
	align-items: center;
	gap: 0.15rem;
	flex: 1;
	min-width: 0;
	justify-content: center;
}

.ns-tube-site-header__link,
.ns-tube-site-header__link--btn {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.65rem;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: var(--nx-muted);
	text-decoration: none;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.ns-tube-site-header__link:hover,
.ns-tube-site-header__link.is-active,
.ns-tube-site-header__link--btn:hover {
	color: var(--nx-accent);
	background: var(--nx-accent-soft);
}

.ns-tube-site-header__watch-label {
	flex: 1;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--nx-muted);
	text-align: center;
}

.ns-tube-site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
}

.ns-tube-site-header__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--nx-border);
	color: var(--nx-muted);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
}

.ns-tube-site-header__back:hover {
	color: var(--nx-accent);
	border-color: rgba(255, 45, 85, 0.35);
}

.ns-tube-site-header__burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--nx-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
}

.ns-tube-site-header__burger span {
	display: block;
	width: 16px;
	height: 2px;
	margin: 0 auto;
	background: var(--nx-text);
	border-radius: 2px;
}

.ns-tube-site-header__mobile-bar {
	padding: 0 0.75rem 0.65rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 900px) {
	.ns-tube-site-header__nav { display: flex; }
	.ns-tube-site-header__burger { display: none; }
	.ns-tube-site-header__mobile-bar { display: none; }
}

@media (max-width: 899px) {
	.ns-tube-site-header__tagline { display: none; }
}

.ns-tube-drawer[hidden] { display: none; }

.ns-tube-drawer__overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
}

.ns-tube-drawer__overlay[hidden] { display: none; }

.ns-tube-drawer__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 95;
	width: min(88vw, 320px);
	height: 100dvh;
	padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	background: rgba(5, 5, 12, 0.96);
	border-left: 1px solid var(--nx-border);
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
}

.ns-tube-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.ns-tube-drawer__title {
	font-weight: 700;
	font-size: 0.95rem;
}

.ns-tube-drawer__close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--nx-border);
	border-radius: 10px;
	background: transparent;
	color: var(--nx-text);
	cursor: pointer;
}

.ns-tube-drawer__nav {
	display: grid;
	gap: 0.25rem;
}

.ns-tube-drawer__link {
	display: block;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--nx-muted);
	text-decoration: none;
	text-align: left;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.ns-tube-drawer__link:hover,
.ns-tube-drawer__link.is-active {
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
}

body.ns-tube-drawer-open { overflow: hidden; }

.ns-tube-hub__anchor {
	display: block;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 88px;
}

.ns-tube-section-head {
	padding: 0 clamp(1rem, 4vw, 2rem);
	margin: 1.5rem 0 0.75rem;
}

.ns-tube-section-head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.ns-tube-section-head__sub {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: var(--nx-muted);
}

.ns-tube-latest {
	padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
}

.ns-tube-latest__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.ns-tube-latest__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.ns-tube-latest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ns-tube-related {
	padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
	max-width: 1200px;
	margin: 0 auto;
}

.ns-tube-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.ns-tube-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.ns-tube-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ns-tube-tags {
	margin: 1.25rem 0;
}

.ns-tube-tags__title {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-muted);
}

.ns-tube-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ns-tube-tags__chip {
	display: inline-flex;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--nx-border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--nx-muted);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ns-tube-tags__chip:hover {
	border-color: var(--nx-accent);
	color: var(--nx-accent);
	background: var(--nx-accent-soft);
}

.ns-tube-body--watch .nx-interactions {
	margin: 1rem 0;
	padding: 1rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--nx-border);
}

/* ── FAZ 3: Ticker, banners, page heroes ── */
.ns-tube-ticker {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--nx-border);
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(12px);
	overflow: hidden;
}

.ns-tube-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-accent);
	border-right: 1px solid var(--nx-border);
	background: var(--nx-accent-soft);
	white-space: nowrap;
}

.ns-tube-ticker__viewport {
	flex: 1;
	overflow: hidden;
	min-width: 0;
}

.ns-tube-ticker__track {
	display: flex;
	gap: 1.5rem;
	width: max-content;
	padding: 0.55rem 0;
	animation: ns-tube-ticker 40s linear infinite;
}

.ns-tube-ticker__viewport:hover .ns-tube-ticker__track {
	animation-play-state: paused;
}

.ns-tube-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--nx-text);
	text-decoration: none;
	font-size: 0.82rem;
	white-space: nowrap;
}

.ns-tube-ticker__item:hover {
	color: var(--nx-accent);
}

.ns-tube-ticker__thumb {
	width: 36px;
	height: 22px;
	border-radius: 4px;
	object-fit: cover;
}

.ns-tube-ticker__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nx-accent);
}

.ns-tube-ticker__date {
	font-size: 0.72rem;
	color: var(--nx-muted);
}

@keyframes ns-tube-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.ns-tube-kicker--vitrin {
	display: inline-flex;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 45, 85, 0.35);
	background: var(--nx-accent-soft);
	box-shadow: 0 0 16px rgba(255, 45, 85, 0.2);
}

.ns-tube-banner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0 1rem;
	margin: 1.25rem 0 0.75rem;
	position: relative;
}

.ns-tube-banner__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid rgba(255, 45, 85, 0.35);
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
}

.ns-tube-banner__title {
	margin: 0;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	font-weight: 700;
}

.ns-tube-banner__sub {
	margin: 0.2rem 0 0;
	font-size: 0.82rem;
	color: var(--nx-muted);
}

.ns-tube-banner__line {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: -0.35rem;
	height: 1px;
	background: linear-gradient(90deg, var(--nx-accent), transparent 70%);
	box-shadow: 0 0 12px rgba(255, 45, 85, 0.4);
	grid-column: 1 / -1;
}

.ns-tube-banner__link {
	font-size: 0.78rem;
	color: var(--nx-accent);
	text-decoration: none;
}

.ns-tube-page-hero {
	position: relative;
	min-height: clamp(220px, 32vw, 360px);
	border-radius: 0 0 20px 20px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.ns-tube-page-hero__media,
.ns-tube-page-hero__aurora {
	position: absolute;
	inset: 0;
}

.ns-tube-page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ns-tube-page-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(3, 3, 8, 0.2) 0%, rgba(3, 3, 8, 0.92) 100%);
}

.ns-tube-page-hero__aurora {
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 45, 85, 0.2), transparent 45%),
		linear-gradient(180deg, #0a0818 0%, #030308 100%);
}

.ns-tube-page-hero__inner {
	position: relative;
	z-index: 1;
	padding: clamp(1.5rem, 5vw, 3rem);
	max-width: 720px;
}

.ns-tube-page-hero__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nx-accent);
}

.ns-tube-page-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	line-height: 1.1;
}

.ns-tube-page-hero__desc {
	margin: 0.65rem 0 0;
	max-width: 42rem;
	color: var(--nx-muted);
}

.ns-tube-page-hero__meta {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	color: var(--nx-accent);
}

.ns-tube-page-grid,
.ns-tube-hub--category .ns-tube-page-grid {
	padding: 0 1rem 2rem;
}

.ns-tube-taxonomy-footer {
	max-width: 960px;
	margin: 0 auto 2rem;
	padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.ns-tube-taxonomy-footer .ns-tube-banner {
	padding-left: 0;
	padding-right: 0;
}

.ns-tube-tags--labels {
	margin-top: 1.25rem;
}

.ns-tube-tags__chip--label {
	cursor: default;
}

.ns-tube-tags__chip--label:hover {
	border-color: var(--nx-border);
	color: var(--nx-muted);
	background: rgba(255, 255, 255, 0.03);
}

@media (prefers-reduced-motion: reduce) {
	.ns-tube-ticker__track {
		animation: none;
	}
}

/* ── FAZ 2: Mega menu + category vitrin ── */
.ns-tube-mega {
	position: relative;
}

.ns-tube-mega__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.ns-tube-mega__panel {
	position: absolute;
	top: calc(100% + 0.55rem);
	left: 50%;
	transform: translateX(-50%);
	width: min(560px, 92vw);
	padding: 0.85rem;
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
	z-index: 130;
}

.ns-tube-mega__panel[hidden] {
	display: none !important;
}

.ns-tube-mega__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.65rem;
	font-size: 0.82rem;
}

.ns-tube-mega__head a {
	color: var(--nx-accent);
	text-decoration: none;
}

.ns-tube-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.45rem;
}

.ns-tube-mega__card {
	display: grid;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--nx-text);
}

.ns-tube-mega__cover {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(80, 120, 255, 0.25), rgba(0, 0, 0, 0.5));
	background-size: cover;
	background-position: center;
	border: 1px solid var(--nx-border);
}

.ns-tube-mega__name,
.ns-tube-mega__chip {
	font-size: 0.78rem;
}

.ns-tube-mega__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.55rem;
	border-radius: 999px;
	border: 1px solid var(--nx-border);
	background: rgba(255, 255, 255, 0.04);
	color: var(--nx-text);
	text-decoration: none;
}

.ns-tube-cat-showcase {
	margin-bottom: 1.25rem;
}

.ns-tube-cat-showcase__block {
	margin-bottom: 1rem;
	padding: 0.85rem;
	border-radius: 18px;
}

.ns-tube-cat-showcase__hero {
	display: grid;
	grid-template-columns: minmax(180px, 280px) 1fr;
	gap: 1rem;
	align-items: end;
	text-decoration: none;
	color: var(--nx-text);
	margin-bottom: 0.85rem;
}

.ns-tube-cat-showcase__cover {
	display: block;
	min-height: 120px;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(80, 120, 255, 0.2), rgba(0, 0, 0, 0.55));
	background-size: cover;
	background-position: center;
	border: 1px solid var(--nx-border);
}

.ns-tube-cat-showcase__meta strong {
	display: block;
	font-size: 1.15rem;
}

.ns-tube-cat-showcase__meta span {
	color: var(--nx-accent);
	font-size: 0.82rem;
}

.ns-tube-cat-showcase__rail {
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	padding-bottom: 0.35rem;
	scroll-snap-type: x mandatory;
}

.ns-tube-cat-showcase__rail .ns-tube-card {
	flex: 0 0 min(200px, 48vw);
	scroll-snap-align: start;
}

@media (max-width: 640px) {
	.ns-tube-cat-showcase__hero {
		grid-template-columns: 1fr;
	}
}

/* ── Master update: player queue + mega menu + cinematic hero ── */
.ns-tube-mega__panel {
	width: min(720px, 94vw);
	padding: 1rem;
	backdrop-filter: blur(18px);
	border: 1px solid rgba(230, 0, 0, 0.22);
}

.ns-tube-mega__head p {
	margin: 0.15rem 0 0;
	font-size: 0.75rem;
	color: var(--nx-muted);
}

.ns-tube-mega__layout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 0.85rem;
}

.ns-tube-mega__nav { display: grid; gap: 0.35rem; }

.ns-tube-mega__link {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ns-tube-mega__link:hover {
	background: rgba(230, 0, 0, 0.12);
	box-shadow: inset 0 0 0 1px rgba(230, 0, 0, 0.25);
}

.ns-tube-mega__icon {
	width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: rgba(230, 0, 0, 0.12);
	color: var(--nx-accent);
}

.ns-tube-mega__featured {
	padding: 0.65rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--nx-border);
}

.ns-tube-mega__featured-kicker {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-accent);
	margin-bottom: 0.45rem;
}

.ns-tube-mega__featured-card {
	display: grid;
	gap: 0.45rem;
	text-decoration: none;
	color: inherit;
}

.ns-tube-mega__featured-cover {
	display: block;
	height: 88px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04) center/cover no-repeat;
}

.ns-tube-hero--cinematic {
	position: relative;
	overflow: hidden;
}

.ns-tube-hero__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(230, 0, 0, 0.25), transparent 45%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.85));
	pointer-events: none;
}

.ns-tube-hero--cinematic .ns-tube-hero__copy {
	position: relative;
	z-index: 1;
}

.ns-tube-hero__title {
	font-size: clamp(1.6rem, 4.5vw, 2.8rem);
	font-weight: 800;
}

.ns-tube-card__link[data-ns-tube-instant] {
	cursor: pointer;
}

@media (max-width: 720px) {
	.ns-tube-mega__layout { grid-template-columns: 1fr; }
}

