body {
	background-color: black;
	margin: 0;
	padding: 0;
	z-index: 5000;
	font-family: Arial, sans-serif;
}

#video-container {
	position: fixed;
	width: 100%;
	height: 100%;
}

video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Shaka Player UI Styles */
.shaka-video-container {
	width: 100%;
	height: 100%;
	position: relative;
}

.shaka-controls-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	padding: 8px;
	transition: opacity 0.3s ease;
}

.shaka-control-button {
	background: rgba(255, 255, 255, 0.2) !important;
	border: none !important;
	border-radius: 4px !important;
	color: white !important;
	margin: 0 4px !important;
	padding: 8px !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
}

.shaka-control-button:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}

.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
}

/* Custom UI overlay that hides with video controls */
.custom-ui-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 2;
	transition: opacity 0.3s ease;
}

/* Status indicator positioned top-right */
.status-indicator-button {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	backdrop-filter: blur(10px);
	pointer-events: auto;
	opacity: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.status-connected {
	background-color: #22c55e;
	animation: pulse 2s infinite;
}

.status-initializing {
	background-color: #f59e0b;
}

.status-disconnected {
	background-color: #ef4444;
}

/* Show UI on hover/interaction */
.shaka-video-container:hover .custom-ui-overlay,
.shaka-video-container.shaka-controls-shown .custom-ui-overlay {
	opacity: 1;
}

.shaka-video-container:hover .status-indicator-button,
.shaka-video-container.shaka-controls-shown .status-indicator-button {
	opacity: 1;
}

/* Sync notifications container */
#sync-notifications {
	position: fixed;
	top: 70px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* No Video Modal Styles */
.no-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 15000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.no-video-content {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 16px;
	padding: 40px;
	max-width: 480px;
	text-align: center;
	color: white;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.no-video-icon {
	font-size: 4rem;
	margin-bottom: 20px;
	opacity: 0.8;
	animation: float 3s ease-in-out infinite;
}

.no-video-title {
	color: #60a5fa;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.no-video-message {
	color: #cbd5e1;
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

.no-video-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.no-video-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: white;
}

.btn-primary:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #e2e8f0;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
}

/* Error state styling */
.no-video-modal.error .no-video-icon {
	color: #ef4444;
}

.no-video-modal.error .no-video-title {
	color: #fca5a5;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* Custom Scrollbars */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(139, 92, 246, 0.6) rgba(55, 65, 81, 0.3);
}

*::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

*::-webkit-scrollbar-track {
	background: rgba(55, 65, 81, 0.3);
	border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
	background: rgba(139, 92, 246, 0.6);
	border-radius: 4px;
	transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(139, 92, 246, 0.8);
}

*::-webkit-scrollbar-corner {
	background: rgba(55, 65, 81, 0.3);
}

/* Video Load Modal Styles */
.video-load-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-load-container {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 12px;
	/*padding: 30px;
max-width: 800px;*/
	width: 100%;
	height: 100%;
	/*max-height: 80vh;*/
	overflow-y: auto;
	color: white;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
}

.modal-header {
	text-align: center;
	margin-bottom: 25px;
}

.modal-header h2 {
	color: #60a5fa;
	font-size: 1.5rem;
	margin-bottom: 8px;
}

.modal-header p {
	color: #94a3b8;
	font-size: 0.9rem;
}

.close-button {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background 0.2s ease;
}

.close-button:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Main Navigation Tabs */
.main-tabs {
	display: flex;
	gap: 0;
	/*margin-bottom: 25px;*/
	border-bottom: 1px solid rgba(107, 114, 128, 0.3);
	background: rgba(55, 65, 81, 0.3);
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}

.main-tab {
	flex: 1;
	padding: 12px 20px;
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border-bottom: 3px solid transparent;
}

.main-tab:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #e5e7eb;
}

.main-tab.active {
	background: rgba(59, 130, 246, 0.2);
	color: #60a5fa;
	border-bottom-color: #60a5fa;
}

.tab-content {
	min-height: 300px;
}

/* Direct URL Input Section */
.direct-url-section {
	background: rgba(30, 41, 59, 0.8);
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	padding: 20px;
	border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Jellyfin Section */
.jellyfin-section {
	/*background: rgba(30, 41, 59, 0.8);*/
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	padding: 20px;
	/*border: 1px solid rgba(148, 163, 184, 0.2);*/
}

.jellyfin-config {
	margin-bottom: 20px;
}

.config-row {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.jellyfin-input {
	flex: 1;
	min-width: 200px;
	padding: 10px 12px;
	background: rgba(55, 65, 81, 1);
	border: 1px solid rgba(107, 114, 128, 1);
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
}

.jellyfin-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.jellyfin-input::placeholder {
	color: rgba(156, 163, 175, 1);
}

.test-connection-btn {
	padding: 10px 16px;
	background: #059669;
	border: none;
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.test-connection-btn:hover:not(:disabled) {
	background: #047857;
}

.test-connection-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.jellyfin-search {
	margin-top: 20px;
}

.search-row {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.search-input {
	flex: 1;
	padding: 10px 12px;
	background: rgba(55, 65, 81, 1);
	border: 1px solid rgba(107, 114, 128, 1);
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
}

.search-input:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.search-btn {
	padding: 10px 20px;
	background: #8b5cf6;
	border: none;
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s;
}

.search-btn:hover:not(:disabled) {
	background: #7c3aed;
}

.search-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.search-results {
	margin-top: 20px;
}

.search-results h3 {
	color: #e5e7eb;
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.movies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
	/*max-height: 300px;*/
	overflow-y: auto;
}

.movie-card {
	background: rgba(55, 65, 81, 0.6);
	border: 1px solid rgba(107, 114, 128, 0.3);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s;
}

.movie-card:hover {
	border-color: rgba(139, 92, 246, 0.5);
	background: rgba(55, 65, 81, 0.8);
}

.movie-poster {
	width: 100%;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(31, 41, 55, 1);
	overflow: hidden;
}

.poster-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.poster-placeholder {
	font-size: 2rem;
	color: rgba(156, 163, 175, 0.5);
}

.movie-info {
	padding: 12px;
}

.movie-title {
	color: #f3f4f6;
	font-size: 0.9rem;
	font-weight: bold;
	margin-bottom: 4px;
	line-height: 1.3;
}

.movie-year {
	color: #9ca3af;
	font-size: 0.8rem;
	margin-bottom: 3px;
}

.movie-rating {
	color: #fbbf24;
	font-size: 0.75rem;
	margin-bottom: 4px;
}

.movie-genres {
	color: #8b5cf6;
	font-size: 0.75rem;
	margin-bottom: 6px;
}

.movie-overview {
	color: #d1d5db;
	font-size: 0.75rem;
	line-height: 1.3;
	margin-bottom: 10px;
}

.movie-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.load-movie-btn {
	padding: 6px 12px;
	background: #8b5cf6;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 0.8rem;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	flex: 1;
}

.load-movie-btn:hover:not(:disabled) {
	background: #7c3aed;
}

.load-movie-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.no-results {
	text-align: center;
	color: #9ca3af;
	font-style: italic;
	padding: 30px;
	background: rgba(55, 65, 81, 0.3);
	border-radius: 8px;
	border: 1px dashed rgba(107, 114, 128, 0.3);
}

/* Content Type Tabs */
.content-type-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}

.content-tab {
	padding: 8px 16px;
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
}

.content-tab.active {
	color: #8b5cf6;
	border-bottom-color: #8b5cf6;
}

.content-tab:hover {
	color: #e5e7eb;
}

/* TV Show Styles */
.show-card {
	background: rgba(55, 65, 81, 0.6);
	border: 1px solid rgba(107, 114, 128, 0.3);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s;
}

.show-card:hover {
	border-color: rgba(16, 185, 129, 0.5);
	background: rgba(55, 65, 81, 0.8);
}

.show-header {
	padding: 15px;
	border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}

.show-title {
	color: #f3f4f6;
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 6px;
	line-height: 1.3;
}

.seasons-container {
	padding: 15px;
}

.seasons-list {
	max-height: 200px;
	overflow-y: auto;
}

.season-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 6px;
}

.season-item:hover {
	background: rgba(75, 85, 99, 0.3);
}

.season-item.selected {
	background: rgba(16, 185, 129, 0.2);
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.season-number {
	background: rgba(16, 185, 129, 0.2);
	color: #10b981;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: bold;
	min-width: 40px;
	text-align: center;
}

.season-info {
	flex: 1;
}

.season-name {
	color: #e5e7eb;
	font-size: 0.9rem;
	font-weight: 500;
}

.season-episodes {
	color: #9ca3af;
	font-size: 0.8rem;
}

.episodes-container {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(107, 114, 128, 0.3);
}

.episodes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	max-height: 300px;
	overflow-y: auto;
}

.episode-card {
	background: rgba(75, 85, 99, 0.4);
	border: 1px solid rgba(107, 114, 128, 0.3);
	border-radius: 6px;
	padding: 12px;
	transition: all 0.2s;
}

.episode-card:hover {
	background: rgba(75, 85, 99, 0.6);
	border-color: rgba(139, 92, 246, 0.5);
}

.episode-number {
	color: #8b5cf6;
	font-size: 0.8rem;
	font-weight: bold;
	margin-bottom: 4px;
}

.episode-title {
	color: #f3f4f6;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 6px;
	line-height: 1.3;
}

.episode-overview {
	color: #d1d5db;
	font-size: 0.75rem;
	line-height: 1.3;
	margin-bottom: 10px;
}

.episode-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.load-episode-btn {
	padding: 4px 8px;
	background: #8b5cf6;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 0.75rem;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
	flex: 1;
}

.load-episode-btn:hover:not(:disabled) {
	background: #7c3aed;
}

.load-episode-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.loading-spinner {
	text-align: center;
	padding: 20px;
	color: #9ca3af;
}

.section-title {
	color: #10b981;
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.url-input-row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.url-input {
	flex: 1;
	padding: 12px 16px;
	background: rgba(55, 65, 81, 1);
	border: 1px solid rgba(107, 114, 128, 1);
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
}

.url-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.url-input::placeholder {
	color: rgba(156, 163, 175, 1);
}

.load-url-btn {
	padding: 12px 20px;
	background: #3b82f6;
	border: none;
	border-radius: 6px;
	color: white;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.load-url-btn:hover:not(:disabled) {
	background: #2563eb;
}

.load-url-btn:disabled {
	background: rgba(59, 130, 246, 0.5);
	cursor: not-allowed;
}

.result-message {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
}

.result-success {
	background: rgba(16, 185, 129, 0.2);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-error {
	background: rgba(239, 68, 68, 0.2);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}