/* YouTube Scroller Widget Styles - LTR Layout with RTL Text */
.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: "Katalogue", Sans-serif;
	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;
		}
	}
}
