/* ==========================================================================
   News Ticker (.sentio-nt)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   ========================================================================== */

/* ── Container ── */
.sentio-nt {
	display: flex;
	align-items: center;
	overflow: hidden;
	position: relative;
	background: #1a1a2e;
	height: 48px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-sizing: border-box;
	z-index: 10;
}
.sentio-nt *, .sentio-nt *::before, .sentio-nt *::after { box-sizing: border-box; }

/* Sticky modes */
.sentio-nt--sticky-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
}
.sentio-nt--sticky-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
}

/* ── Header label ── */
.sentio-nt__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	height: 100%;
	background: #dc2626;
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}
/* Angled edge */
.sentio-nt__header::after {
	content: '';
	position: absolute;
	right: -16px;
	top: 0;
	bottom: 0;
	width: 16px;
	background: inherit;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sentio-nt__header-text {
	font-size: inherit;
	font-weight: inherit;
}
.sentio-nt__header-icon {
	flex-shrink: 0;
}

/* Pulse animation */
.sentio-nt__header--pulse .sentio-nt__header-text {
	animation: sentio-nt-pulse 2s ease-in-out infinite;
}
@keyframes sentio-nt-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* Live dot */
.sentio-nt__live-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
	position: relative;
}
.sentio-nt__live-dot::before {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
	animation: sentio-nt-dot-ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes sentio-nt-dot-ping {
	0% { transform: scale(1); opacity: 0.8; }
	75%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ── Meta (clock + date) ── */
.sentio-nt__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	height: 100%;
	background: rgba(255,255,255,0.08);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: rgba(255,255,255,0.7);
	white-space: nowrap;
	flex-shrink: 0;
}
.sentio-nt__clock {
	letter-spacing: 0.02em;
}

/* ── Viewport ── */
.sentio-nt__viewport {
	flex: 1;
	overflow: hidden;
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
	/* Fade edges */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

/* ── Scroll track ── */
.sentio-nt__track {
	display: flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
}
.sentio-nt--scroll .sentio-nt__track {
	animation: sentio-nt-scroll var(--sentio-nt-duration, 30s) linear infinite;
}
.sentio-nt--scroll.sentio-nt--paused .sentio-nt__track {
	animation-play-state: paused;
}
@keyframes sentio-nt-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
/* Right direction */
.sentio-nt--scroll.sentio-nt--rtl .sentio-nt__track {
	animation-name: sentio-nt-scroll-rtl;
}
@keyframes sentio-nt-scroll-rtl {
	0%   { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}

/* ── Items ── */
.sentio-nt__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.sentio-nt__text {
	font-size: 14px;
	font-weight: 500;
	color: #f1f5f9;
	line-height: 1;
}
.sentio-nt__link {
	text-decoration: none;
	transition: color 0.2s ease;
}
.sentio-nt__link:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Breaking news item */
.sentio-nt__item--breaking .sentio-nt__text {
	color: #fbbf24;
	font-weight: 700;
}
.sentio-nt__item--breaking.sentio-nt__item--glow .sentio-nt__text {
	text-shadow: 0 0 8px rgba(251,191,36,0.5), 0 0 16px rgba(251,191,36,0.2);
}

/* ── Separator ── */
.sentio-nt__sep {
	margin: 0 24px;
	font-size: 10px;
	color: rgba(255,255,255,0.3);
	user-select: none;
	flex-shrink: 0;
}

/* ── Category labels ── */
.sentio-nt__label {
	display: inline-block;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.6;
	white-space: nowrap;
	flex-shrink: 0;
}
.sentio-nt__label--filled {
	color: #fff;
	border-radius: 3px;
}
.sentio-nt__label--outlined {
	background: transparent;
	border: 1.5px solid currentColor;
	border-radius: 3px;
}
.sentio-nt__label--text {
	background: none;
	border: none;
	padding: 0;
	font-weight: 800;
}

/* ── Slides (vertical/fade/typed) ── */
.sentio-nt__slides {
	position: relative;
	width: 100%;
	height: 100%;
}
.sentio-nt__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, transform 0.4s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sentio-nt__slide--active {
	opacity: 1;
	visibility: visible;
}

/* Slide animation */
.sentio-nt--slide .sentio-nt__slide {
	transform: translateY(100%);
}
.sentio-nt--slide .sentio-nt__slide--active {
	transform: translateY(0);
}
.sentio-nt--slide .sentio-nt__slide--exit-up {
	transform: translateY(-100%);
	opacity: 0;
}

/* Fade animation */
.sentio-nt--fade .sentio-nt__slide {
	transform: none;
}

/* Typed animation */
.sentio-nt--typed .sentio-nt__slide {
	transform: none;
}
.sentio-nt--typed .sentio-nt__text {
	border-right: 2px solid currentColor;
	padding-right: 2px;
	animation: sentio-nt-blink 0.7s step-end infinite;
}
.sentio-nt--typed .sentio-nt__slide--done .sentio-nt__text {
	border-right-color: transparent;
	animation: none;
}
@keyframes sentio-nt-blink {
	0%, 100% { border-right-color: currentColor; }
	50% { border-right-color: transparent; }
}

/* ── Navigation ── */
.sentio-nt__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 0 8px;
	flex-shrink: 0;
}
.sentio-nt__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(255,255,255,0.08);
	border: none;
	border-radius: 4px;
	color: rgba(255,255,255,0.6);
	cursor: pointer;
	transition: all 0.2s ease;
}
.sentio-nt__nav-btn:hover {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

/* ── Progress bar ── */
.sentio-nt__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255,255,255,0.1);
	z-index: 5;
}
.sentio-nt__progress-fill {
	height: 100%;
	background: #dc2626;
	width: 0;
	transition: width 0.1s linear;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.sentio-nt {
		height: 40px;
	}
	.sentio-nt__header {
		padding: 0 12px;
		font-size: 11px;
		gap: 6px;
	}
	.sentio-nt__header::after {
		right: -12px;
		width: 12px;
	}
	.sentio-nt__text {
		font-size: 13px;
	}
	.sentio-nt__meta {
		padding: 0 10px;
		font-size: 11px;
	}
	.sentio-nt__sep {
		margin: 0 16px;
	}
	.sentio-nt__nav-btn {
		width: 24px;
		height: 24px;
	}
	.sentio-nt__label {
		font-size: 9px;
		padding: 1px 6px;
	}
}
