@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* SmartFont: Combines Katalogue for Hebrew and Open Sans for English */
@font-face {
	font-family: "RadioSol-SmartFont";
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: local("Open Sans"), local("Assistant"), local("Arial"), sans-serif;
}

@font-face {
	font-family: "RadioSol-SmartFont";
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url("https://radiosol.co.il/wp-content/uploads/podcast1/2025/11/katalogueboldwebfont.woff") format("woff");
	unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

.radiosol-youtube-scroller-widget {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	font-family: 'Assistant', sans-serif;
	direction: ltr;
	/* LTR for layout */
	position: relative;
}

/* Main Player - Full width with thick orange border */
.radiosol-main-player {
	width: 100%;
	margin-bottom: 20px;
	background: #000;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 12px solid #ff6b6b;
	/* Thicker orange border */
	position: relative;
	box-sizing: border-box;
}

.radiosol-player-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
}

.radiosol-player-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Main Player Cover */
.radiosol-main-cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: opacity 0.3s ease;
}

.radiosol-main-play-btn {
	color: #fff;
	transition: transform 0.3s ease;
	filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.radiosol-main-cover:hover .radiosol-main-play-btn {
	transform: scale(1.1);
}

/* Overlay Title - RTL text only */
.radiosol-main-overlay-title {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: rgba(18, 9, 69, 0.8);
	/* Dark Blue transparent */
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-family: "RadioSol-SmartFont", "Open Sans", Sans-serif !important;
	font-size: 18px;
	pointer-events: none;
	z-index: 10;
	direction: rtl;
	/* RTL for Hebrew text only */
	text-align: right;
}

/* Scroller Wrapper - Contains arrows (absolute positioned) and container */
.radiosol-scroller-wrapper {
	position: relative;
	width: 100%;
	direction: ltr;
	/* LTR layout */
	margin: 0 auto;
	/* Center the wrapper */
}

/* Scroller Container - Contains track and dots, EXACTLY matches main video width */
.radiosol-scroller-container {
	width: 100%;
	/* Exactly matches main video width */
	display: flex;
	flex-direction: column;
	gap: 15px;
	position: relative;
	overflow: hidden;
	direction: ltr;
	box-sizing: border-box;
}

/* Scroller Track - Contains all videos in a row */
.radiosol-scroller-track {
	display: flex;
	gap: 15px;
	width: auto;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: grab;
	will-change: transform;
	direction: ltr;
}

.radiosol-scroller-track:active {
	cursor: grabbing;
}

/* Video Item - Each thumbnail - exactly 3 visible, aligned with main video */
.radiosol-video-item {
	flex: 0 0 calc((100% - 30px) / 3);
	/* Exactly 3: (100% - 2 gaps of 15px) / 3 */
	flex-shrink: 0;
	min-width: 0;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 8px solid #120945;
	/* Thicker blue border */
	background: #000;
	box-sizing: border-box;
}

.radiosol-video-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(18, 9, 69, 0.3);
}

.radiosol-video-item img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.radiosol-video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.radiosol-video-item:hover .radiosol-video-overlay {
	opacity: 1;
}

.radiosol-play-icon {
	color: #fff;
	font-size: 40px;
	background: transparent;
	width: auto;
	height: auto;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Navigation Arrows - Positioned absolutely OUTSIDE the container */
.radiosol-scroll-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 0;
	cursor: pointer;
	width: 0;
	height: 0;
	padding: 0;
	transition: transform 0.2s ease, border-color 0.2s ease;
	z-index: 10;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
}

.radiosol-scroll-left {
	left: -40px;
	/* Position outside on the left */
	border-right: 18px solid #120945;
	/* Blue - points left */
	border-left: none;
}

.radiosol-scroll-left:hover {
	border-right-color: #ff6b6b;
	/* Orange on hover */
	transform: translateY(-50%) scale(1.1);
}

.radiosol-scroll-right {
	right: -40px;
	/* Position outside on the right */
	border-left: 18px solid #120945;
	/* Blue - points right */
	border-right: none;
}

.radiosol-scroll-right:hover {
	border-left-color: #ff6b6b;
	/* Orange on hover */
	transform: translateY(-50%) scale(1.1);
}

/* Dot Navigation - RTL order (first dot right, last dot left) */
.radiosol-dots-navigation {
	display: flex;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 10px 0;
	direction: rtl;
	/* RTL order: first dot appears on right, last on left */
}

.radiosol-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #120945;
	/* Blue - inactive */
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.radiosol-dot:hover {
	transform: scale(1.2);
}

.radiosol-dot.active {
	background: #ff6b6b;
	/* Orange - active */
	width: 14px;
	height: 14px;
}

/* Responsive Design - Similar to desktop */
@media (max-width: 768px) {
	.radiosol-youtube-scroller-widget {
		max-width: 100%;
		padding: 0 15px;
	}

	.radiosol-main-player {
		border-width: 12px;
		/* Keep same thick border as desktop */
	}

	.radiosol-video-item {
		flex: 0 0 calc((100% - 30px) / 3);
		/* Still show 3 thumbnails */
		border-width: 8px;
		/* Keep same thick border as desktop */
	}

	/* Keep arrows outside like desktop */
	.radiosol-scroll-btn {
		border-top-width: 12px;
		border-bottom-width: 12px;
		position: absolute;
		/* Keep absolute positioning */
		transform: translateY(-50%);
		/* Keep centered */
		top: 50%;
	}

	.radiosol-scroll-left {
		left: -35px;
		/* Position outside on left (slightly closer than desktop) */
		border-right-width: 18px;
	}

	.radiosol-scroll-right {
		right: -35px;
		/* Position outside on right (slightly closer than desktop) */
		border-left-width: 18px;
	}

	/* Keep wrapper as block to maintain arrow positioning */
	.radiosol-scroller-wrapper {
		position: relative;
		width: 100%;
		display: block;
		/* Not flex - keep desktop behavior */
	}

	/* Adjust arrow positioning for smaller screens */
	@media (max-width: 480px) {
		.radiosol-scroll-left {
			left: -30px;
		}

		.radiosol-scroll-right {
			right: -30px;
		}
	}
}

/* active thumb style */
.radiosol-video-item.active-thumb {
	border-color: #ff6b6b;
	/* Orange border for active */
	transform: translateY(-3px);

	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* TV Zap Effect */
@keyframes radiosol-zap-animation {
	0% {
		transform: scale(1, 1);
		filter: brightness(1) contrast(1);
		opacity: 1;
	}

	10% {
		transform: scale(1.1, 0.05);
		/* Squeeze vertically */
		filter: brightness(2) contrast(3) grayscale(1);
		/* Flash */
		opacity: 0.8;
	}

	20% {
		transform: scale(0.1, 0.01);
		/* Dot */
		opacity: 0;
	}

	30% {
		transform: scale(0.1, 0.01);
		/* Stay dot */
		opacity: 0;
		filter: brightness(1) contrast(1) grayscale(0);
	}

	60% {
		transform: scale(0.1, 0.01);
		opacity: 0;
	}

	80% {
		transform: scale(1, 0.05);
		/* Expand horizontally line */
		opacity: 0.8;
	}

	100% {
		transform: scale(1, 1);
		opacity: 1;
	}
}

.radiosol-zap-effect .radiosol-player-wrapper {
	animation: radiosol-zap-animation 0.4s ease-in-out forwards;
	position: relative;
}

/* Optional: Add a white flash overlay */
.radiosol-zap-effect .radiosol-player-wrapper::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: white;
	opacity: 0;
	pointer-events: none;
	animation: radiosol-zap-flash 0.4s ease-in-out;
	z-index: 20;
}

@keyframes radiosol-zap-flash {

	0%,
	100% {
		opacity: 0;
	}

	10% {
		opacity: 0.8;
	}

	20% {
		opacity: 0;
	}
}