/* TeluguNewsTime - YouTube Shorts rail.
   A horizontally scrolling strip of 9:16 thumbnails. Scroll-snap keeps cards
   aligned on touch, and the whole thing collapses to a swipeable row on phones
   rather than wrapping into a tall grid. */

.tnt-shorts {
	margin: 26px 0 30px;
}

.tnt-shorts__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.tnt-shorts__title {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-size: 20px;
	line-height: 1.3;
}
.tnt-shorts__title::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 5px; height: 22px;
	border-radius: 3px;
	background: var(--tnt-red, #e30613);
}

.tnt-shorts__all {
	flex: none;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	color: var(--tnt-red, #e30613);
	white-space: nowrap;
}
.tnt-shorts__all:hover { text-decoration: underline; }

.tnt-shorts__rail {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 2px 2px 10px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
	.tnt-shorts__rail { scroll-behavior: auto; }
}
.tnt-shorts__rail::-webkit-scrollbar { height: 6px; }
.tnt-shorts__rail::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .22);
	border-radius: 3px;
}

.tnt-shorts__item {
	flex: 0 0 auto;
	width: 168px;
	scroll-snap-align: start;
}

.tnt-shorts__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tnt-shorts__thumb {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	background: #0b1222;
	box-shadow: 0 2px 10px rgba(16, 24, 40, .16);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1),
	            box-shadow .25s cubic-bezier(.2, .7, .2, 1);
}
.tnt-shorts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tnt-shorts__link:hover .tnt-shorts__thumb {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(16, 24, 40, .26);
}

/* Play glyph, drawn rather than shipped as an image. */
.tnt-shorts__play {
	position: absolute;
	left: 50%; top: 50%;
	width: 46px; height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: rgba(227, 6, 19, .92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.tnt-shorts__play::after {
	content: "";
	position: absolute;
	left: 18px; top: 13px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}
.tnt-shorts__link:hover .tnt-shorts__play { transform: scale(1.1); }

.tnt-shorts__caption {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
}

@media (min-width: 992px) {
	.tnt-shorts__item { width: 192px; }
	.tnt-shorts__title { font-size: 22px; }
}

@media (max-width: 480px) {
	.tnt-shorts__item { width: 142px; }
	.tnt-shorts__play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
	.tnt-shorts__play::after { left: 15px; top: 11px; border-width: 8px 0 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.tnt-shorts__thumb,
	.tnt-shorts__play { transition: none; }
	.tnt-shorts__link:hover .tnt-shorts__thumb { transform: none; }
	.tnt-shorts__link:hover .tnt-shorts__play { transform: none; }
}
