/*
 * Nova Visions ([eve_corp_videos]) and the Reliquary ([eve_corp_gallery]) on the HUD skin.
 */

.nova-media {
	--m-line: var(--nova-line, rgba(95, 214, 236, 0.16));
	--m-line-strong: var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	--m-cyan: var(--nova-cyan, #3fc8e4);
	--m-bright: var(--nova-text-bright, #e4f1f6);
	--m-muted: var(--nova-muted, #6f8392);
	--m-gold: var(--nova-gold, #d9a441);
	--m-display: var(--nova-font-display, "Rajdhani", Arial, sans-serif);
	--m-cut: var(--nova-cut, 10px);
	display: grid;
	gap: 1.5rem;
}

.nova-media-empty {
	border: 1px dashed var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	padding: 1.5rem;
	text-align: center;
}

.nova-media-empty strong {
	color: var(--nova-text-bright, #e4f1f6);
}

.nova-media-tag {
	border: 1px solid var(--m-gold);
	color: var(--m-gold);
	display: inline-block;
	font-family: var(--m-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	padding: 0.1rem 0.5rem;
	text-transform: uppercase;
}

.nova-media-notice {
	color: var(--m-muted);
	font-size: 0.8rem;
	margin: 0;
	text-align: center;
}

.nova-media-msg {
	margin: 0;
	padding: 0.75rem 1rem;
}

.nova-media-msg.is-ok {
	background: rgba(var(--nova-ok-rgb, 79, 191, 127), 0.12);
	border-left: 3px solid var(--nova-ok, #4fbf7f);
}

.nova-media-msg.is-err {
	background: rgba(224, 83, 61, 0.12);
	border-left: 3px solid var(--nova-hostile, #e0533d);
}

/* ---------- Filters ---------- */

.nova-media-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.nova-media-filters button {
	background: transparent;
	border: 1px solid var(--m-line-strong);
	color: var(--m-cyan);
	cursor: pointer;
	font-family: var(--m-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	padding: 0.45rem 1rem;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}

.nova-media-filters button:hover,
.nova-media-filters button.is-active {
	background: var(--nova-cyan-deep, #127a93);
	color: var(--m-bright);
}

/* ---------- Video grid ---------- */

.nova-video-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.nova-video {
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.9), rgba(10, 17, 24, 0.9));
	border: 1px solid var(--m-line);
	clip-path: polygon(var(--m-cut) 0, 100% 0, 100% calc(100% - var(--m-cut)), calc(100% - var(--m-cut)) 100%, 0 100%, 0 var(--m-cut));
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.nova-video:hover {
	box-shadow: 0 0 0 1px var(--m-cyan), 0 0 22px rgba(var(--nova-accent-rgb, 63, 200, 228), 0.2);
}

.nova-video.is-featured {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.nova-video.is-featured {
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.nova-video.is-featured .nova-video-body {
		align-self: center;
	}

	.nova-video.is-featured h3 {
		font-size: 1.8rem;
	}
}

.nova-video-player,
.nova-video-frame {
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
	width: 100%;
}

.nova-video-player {
	background: #000;
	cursor: pointer;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.nova-video-player img {
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.4s ease;
	width: 100%;
}

.nova-video-player:hover img,
.nova-video-player:focus-visible img {
	opacity: 1;
	transform: scale(1.03);
}

.nova-video-play {
	background: rgba(4, 7, 11, 0.75);
	border: 2px solid var(--m-cyan);
	border-radius: 50%;
	box-shadow: 0 0 24px rgba(var(--nova-accent-rgb, 63, 200, 228), 0.45);
	height: 64px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background 0.15s ease;
	width: 64px;
}

.nova-video-play::after {
	border-bottom: 12px solid transparent;
	border-left: 20px solid var(--m-cyan);
	border-top: 12px solid transparent;
	content: "";
	left: 24px;
	position: absolute;
	top: 18px;
}

.nova-video-player:hover .nova-video-play {
	background: var(--nova-cyan-deep, #127a93);
}

.nova-video-body {
	display: grid;
	gap: 0.5rem;
	padding: 1rem 1.2rem 1.25rem;
}

.nova-video h3 {
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: 1.2rem;
	line-height: 1.2;
	margin: 0;
}

.nova-video-body p {
	margin: 0;
}

.nova-video-author {
	color: var(--m-muted);
	font-size: 0.8rem;
}

/* ---------- Album: share panel ---------- */

.nova-album-share {
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.85), rgba(10, 17, 24, 0.85));
	border: 1px solid var(--m-line);
	border-top: 2px solid var(--m-gold);
	padding: 1rem 1.25rem;
}

.nova-album-share.is-guest {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
}

.nova-album-share.is-guest p {
	margin: 0;
}

.nova-album-share summary {
	color: var(--m-gold);
	cursor: pointer;
	font-family: var(--m-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.nova-album-share form {
	display: grid;
	gap: 0.9rem;
	margin-top: 1rem;
}

.nova-album-share form p {
	margin: 0;
}

.nova-album-share label {
	color: var(--m-muted);
	display: block;
	font-family: var(--m-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin-bottom: 0.3rem;
	text-transform: uppercase;
}

.nova-album-share input[type="text"],
.nova-album-share textarea,
.nova-album-share input[type="file"] {
	background: rgba(4, 7, 11, 0.7) !important;
	border: 1px solid var(--m-line-strong) !important;
	border-radius: 0 !important;
	color: var(--m-bright) !important;
	padding: 0.65rem 0.8rem !important;
	width: 100%;
}

.nova-album-share small {
	color: var(--m-muted);
	display: block;
	font-size: 0.8rem;
	margin-top: 0.3rem;
}

.nova-album-send {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.nova-album-send button {
	background: var(--nova-cyan-deep, #127a93);
	border: 1px solid var(--m-cyan);
	color: var(--m-bright);
	cursor: pointer;
	font-family: var(--m-display);
	font-weight: 700;
	letter-spacing: 0.16em;
	padding: 0.75rem 1.4rem;
	text-transform: uppercase;
}

.nova-album-send button:hover {
	background: var(--m-cyan);
	color: var(--nova-void, #000);
}

.nova-album-send small {
	flex: 1 1 16rem;
	margin: 0;
}

/* ---------- Album: masonry grid ---------- */

.nova-album-grid {
	column-gap: 1rem;
	columns: 3 18rem;
}

.nova-moment {
	background: rgba(10, 17, 24, 0.85);
	border: 1px solid var(--m-line);
	break-inside: avoid;
	margin: 0 0 1rem;
	transition: box-shadow 0.2s ease;
}

.nova-moment:hover {
	box-shadow: 0 0 0 1px var(--m-gold), 0 0 20px rgba(217, 164, 65, 0.2);
}

.nova-moment-open {
	background: none;
	border: 0;
	cursor: zoom-in;
	display: block;
	padding: 0;
	width: 100%;
}

.nova-moment-open img {
	display: block;
	height: auto;
	width: 100%;
}

.nova-moment figcaption {
	display: grid;
	gap: 0.25rem;
	padding: 0.7rem 0.9rem 0.8rem;
}

.nova-moment figcaption strong {
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: 1.05rem;
	line-height: 1.2;
}

.nova-moment figcaption span {
	align-items: center;
	color: var(--m-muted);
	display: flex;
	font-size: 0.8rem;
	gap: 0.4rem;
}

.nova-moment figcaption span img {
	border: 1px solid var(--m-line-strong);
}

.nova-album-nav {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
}

.nova-album-nav a {
	color: var(--m-cyan);
	font-family: var(--m-display);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- Lightbox ---------- */

.nova-lb-lock {
	overflow: hidden;
}

.nova-lightbox {
	align-items: center;
	background: rgba(2, 4, 7, 0.94);
	display: none;
	gap: 1rem;
	inset: 0;
	justify-content: center;
	padding: 2rem 1rem;
	position: fixed;
	z-index: 100000;
}

.nova-lightbox.is-open {
	display: flex;
}

.nova-lightbox figure {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	max-height: 100%;
	max-width: min(1400px, 100%);
}

.nova-lightbox img {
	border: 1px solid var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	max-height: calc(100vh - 12rem);
	max-width: 100%;
	object-fit: contain;
}

.nova-lightbox figcaption {
	color: var(--nova-text, #a6b6c3);
	text-align: center;
}

.nova-lightbox figcaption strong {
	color: var(--nova-text-bright, #e4f1f6);
	display: block;
	font-family: var(--nova-font-display, Arial, sans-serif);
	font-size: 1.3rem;
}

.nova-lb-credit {
	color: var(--nova-gold, #d9a441);
	font-size: 0.85rem;
}

.nova-lb-story {
	margin: 0.4rem auto 0;
	max-width: 46rem;
}

.nova-lightbox button {
	background: rgba(4, 7, 11, 0.7);
	border: 1px solid var(--nova-line-strong, rgba(95, 214, 236, 0.42));
	color: var(--nova-cyan, #3fc8e4);
	cursor: pointer;
	font-size: 2rem;
	height: 3rem;
	line-height: 1;
	width: 3rem;
}

.nova-lightbox button:hover,
.nova-lightbox button:focus-visible {
	background: var(--nova-cyan-deep, #127a93);
	color: #fff;
}

.nova-lb-close {
	position: absolute;
	right: 1rem;
	top: 1rem;
}

.nova-lightbox.is-single .nova-lb-prev,
.nova-lightbox.is-single .nova-lb-next {
	display: none;
}

@media (max-width: 640px) {
	.nova-lb-prev,
	.nova-lb-next {
		bottom: 1rem;
		position: absolute;
	}

	.nova-lb-prev {
		left: 1rem;
	}

	.nova-lb-next {
		right: 1rem;
	}
}

/* =====================================================================
 * Nova Visions layout: tabs, stage + playlist, category shelves
 * ===================================================================== */

.nova-media-filters button span {
	background: rgba(4, 7, 11, 0.6);
	border-radius: 999px;
	color: var(--m-gold);
	font-size: 0.7rem;
	margin-left: 0.35rem;
	padding: 0.05rem 0.45rem;
}

.nova-tv-stage {
	display: grid;
	gap: 1rem 1.5rem;
	grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr);
	grid-template-rows: auto 1fr;
}

.nova-tv-screen {
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid var(--m-cyan);
	box-shadow: 0 0 0 1px rgba(var(--nova-accent-rgb, 63, 200, 228), 0.25), 0 0 40px rgba(var(--nova-accent-rgb, 63, 200, 228), 0.18);
	grid-column: 1;
	grid-row: 1;
	overflow: hidden;
	position: relative;
}

.nova-tv-screen .nova-video-player,
.nova-tv-screen .nova-video-frame {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.nova-tv-screen .nova-video-play {
	height: 84px;
	width: 84px;
}

.nova-tv-screen .nova-video-play::after {
	border-bottom-width: 16px;
	border-left-width: 26px;
	border-top-width: 16px;
	left: 32px;
	top: 24px;
}

.nova-tv-info {
	align-content: start;
	display: grid;
	gap: 0.45rem;
	grid-column: 1;
	grid-row: 2;
	justify-items: start;
}

.nova-tv-info h2 {
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	line-height: 1.1;
	margin: 0;
}

.nova-tv-info p {
	margin: 0;
}

.nova-tv-onair {
	align-items: center;
	color: var(--nova-hostile, #e0533d);
	display: inline-flex;
	font-family: var(--m-display);
	font-size: 0.7rem;
	font-weight: 700;
	gap: 0.4rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.nova-tv-onair::before {
	animation: nova-tv-blink 1.6s ease-in-out infinite;
	background: currentColor;
	border-radius: 50%;
	box-shadow: 0 0 8px currentColor;
	content: "";
	height: 7px;
	width: 7px;
}

@keyframes nova-tv-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* Playlist */

.nova-tv-list {
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.85), rgba(10, 17, 24, 0.85));
	border: 1px solid var(--m-line);
	display: flex;
	flex-direction: column;
	grid-column: 2;
	grid-row: 1 / span 2;
	max-height: 36rem;
	min-height: 0;
}

.nova-tv-list h3 {
	border-bottom: 1px solid var(--m-line);
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: 1rem;
	letter-spacing: 0.16em;
	margin: 0;
	padding: 0.8rem 1rem;
	text-transform: uppercase;
}

.nova-tv-list ol {
	counter-reset: tv;
	list-style: none;
	margin: 0;
	overflow-y: auto;
	padding: 0.4rem;
}

.nova-tv-item {
	align-items: center;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	color: inherit;
	cursor: pointer;
	display: grid;
	gap: 0.7rem;
	grid-template-columns: 7rem minmax(0, 1fr);
	padding: 0.45rem;
	text-align: left;
	transition: background 0.15s ease;
	width: 100%;
}

.nova-tv-item:hover,
.nova-tv-item:focus-visible {
	background: rgba(var(--nova-accent-rgb, 63, 200, 228), 0.08);
}

.nova-tv-item.is-current {
	background: linear-gradient(90deg, rgba(var(--nova-accent-rgb, 63, 200, 228), 0.18), transparent);
	border-left-color: var(--m-cyan);
}

.nova-tv-item-thumb,
.nova-tv-card-thumb {
	aspect-ratio: 16 / 9;
	background: #000;
	display: block;
	overflow: hidden;
	position: relative;
}

.nova-tv-item-thumb img,
.nova-tv-card-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.nova-tv-item-text {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.nova-tv-item-text strong {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--m-bright);
	display: -webkit-box;
	font-family: var(--m-display);
	font-size: 0.95rem;
	line-height: 1.2;
	overflow: hidden;
}

.nova-tv-item-text small {
	color: var(--m-gold);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Placeholder when a thumbnail could not be stored */

.nova-tv-nothumb {
	background:
		radial-gradient(circle at 30% 30%, rgba(var(--nova-accent-rgb, 63, 200, 228), 0.35), transparent 55%),
		linear-gradient(135deg, #0f1922, #04070b);
	display: block;
	height: 100%;
	width: 100%;
}

/* Shelves */

.nova-tv-shelves {
	display: grid;
	gap: 2rem;
	margin-top: 1rem;
}

.nova-tv-shelf h3 {
	border-left: 3px solid var(--m-gold);
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: 1.3rem;
	letter-spacing: 0.1em;
	margin: 0 0 0.9rem;
	padding-left: 0.75rem;
	text-transform: uppercase;
}

.nova-tv-shelf h3 span {
	color: var(--m-muted);
	font-size: 0.85rem;
	margin-left: 0.4rem;
}

.nova-tv-row {
	display: grid;
	gap: 1rem;
	grid-auto-columns: minmax(15rem, 18rem);
	grid-auto-flow: column;
	overflow-x: auto;
	padding-bottom: 0.75rem;
	scroll-snap-type: x mandatory;
	scrollbar-color: var(--m-line-strong) transparent;
}

.nova-tv-card {
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.9), rgba(10, 17, 24, 0.9));
	border: 1px solid var(--m-line);
	color: inherit;
	cursor: pointer;
	display: grid;
	gap: 0.35rem;
	padding: 0 0 0.8rem;
	scroll-snap-align: start;
	text-align: left;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nova-tv-card:hover,
.nova-tv-card:focus-visible {
	box-shadow: 0 0 0 1px var(--m-cyan), 0 0 20px rgba(var(--nova-accent-rgb, 63, 200, 228), 0.25);
	transform: translateY(-3px);
}

.nova-tv-card-thumb img {
	transition: transform 0.4s ease;
}

.nova-tv-card:hover .nova-tv-card-thumb img {
	transform: scale(1.06);
}

.nova-tv-card .nova-video-play {
	height: 46px;
	opacity: 0;
	transition: opacity 0.2s ease;
	width: 46px;
}

.nova-tv-card .nova-video-play::after {
	border-bottom-width: 9px;
	border-left-width: 14px;
	border-top-width: 9px;
	left: 17px;
	top: 12px;
}

.nova-tv-card:hover .nova-video-play,
.nova-tv-card:focus-visible .nova-video-play {
	opacity: 1;
}

.nova-tv-card strong {
	color: var(--m-bright);
	font-family: var(--m-display);
	font-size: 1rem;
	line-height: 1.2;
	padding: 0 0.85rem;
}

.nova-tv-card small {
	color: var(--m-muted);
	font-size: 0.78rem;
	padding: 0 0.85rem;
}

@media (max-width: 900px) {
	.nova-tv-stage {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
	}

	.nova-tv-screen,
	.nova-tv-info,
	.nova-tv-list {
		grid-column: 1;
		grid-row: auto;
	}

	.nova-tv-list {
		max-height: 22rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nova-tv-onair::before {
		animation: none;
	}
}
