/**
 * MajoTV IPTV Player Frontend Styles - Netflix/YouTube Grid Layout (Integrated in MajoTV Player)
 */

.majotv-iptv-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #0b0f19; /* Deep Slate Black */
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	font-family: 'Inter', sans-serif;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-sizing: border-box;
}

.majotv-iptv-container * {
	box-sizing: border-box;
}

/* Player Wrapper Section */
.majotv-player-wrapper {
	width: 100%;
	background: #000;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	aspect-ratio: 16/9;
	max-height: 580px;
}

.majotv-video-container {
	width: 100%;
	height: 100%;
	background: #000;
	position: relative;
}

.majotv-video-container video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Custom adjustments to fit accent color */
.majotv-player-wrapper {
	--plyr-color-main: var(--majotv-accent);
}

/* Floating Channel Info Overlay */
.majotv-channel-info-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 10;
	background: rgba(11, 15, 25, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 40px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-10px);
}

.majotv-channel-info-overlay.visible {
	opacity: 1;
	transform: translateY(0);
}

.majotv-current-logo {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.05);
	padding: 2px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.majotv-current-text {
	display: flex;
	flex-direction: column;
}

.majotv-live-badge {
	align-self: flex-start;
	background: #ef4444; /* red-500 */
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	margin-bottom: 4px;
	letter-spacing: 0.5px;
}

.majotv-current-name {
	color: #fff;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 250px;
}

.majotv-current-group {
	color: #94a3b8; /* slate-400 */
	margin: 0;
	font-size: 11px;
	margin-top: 2px;
}

/* Stream Status Message Overlay */
.majotv-stream-status-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(11, 15, 25, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 11;
}

.majotv-stream-status-overlay .status-content {
	text-align: center;
	color: #fff;
	padding: 20px;
}

.majotv-stream-status-overlay .status-icon {
	font-size: 32px;
	margin-bottom: 10px;
	display: block;
}

.majotv-stream-status-overlay .status-icon .majotv-chat-spinner {
	margin: 0 auto;
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--majotv-accent);
}

.majotv-stream-status-overlay .status-text {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}

/* Playlist / Channel Grid Section Below Player */
.majotv-playlist-section {
	padding: 24px;
	background: #0b0f19;
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.majotv-playlist-header {
	display: none !important;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

/* Search Box */
.majotv-search-box {
	position: relative;
	width: 280px;
}

.majotv-search-box .search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #64748b;
	pointer-events: none;
}

#majotv-search {
	width: 100%;
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 30px;
	padding: 10px 16px 10px 40px;
	color: #fff !important;
	font-size: 13px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

#majotv-search::placeholder {
	color: #64748b !important;
	opacity: 1 !important;
}

#majotv-search:focus {
	border-color: var(--majotv-accent) !important;
	background: rgba(255, 255, 255, 0.05) !important;
	box-shadow: 0 0 0 2px rgba(var(--majotv-accent-rgb), 0.25) !important;
}

/* Categories Scrollable Tabs */
.majotv-categories-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 8px;
	max-width: 100%;
	padding-bottom: 8px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

/* Custom premium scrollbar for categories tabs */
.majotv-categories-tabs::-webkit-scrollbar {
	height: 5px;
}

.majotv-categories-tabs::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 3px;
}

.majotv-categories-tabs::-webkit-scrollbar-thumb {
	background: rgba(100, 116, 139, 0.25);
	background: rgba(var(--majotv-accent-rgb), 0.25);
	border-radius: 3px;
}

.majotv-categories-tabs::-webkit-scrollbar-thumb:hover {
	background: var(--majotv-accent);
}

.majotv-tab-btn {
	background: rgba(255, 255, 255, 0.04);
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 8px 18px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	flex-shrink: 0;
}

.majotv-tab-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
}

.majotv-tab-btn.active {
	background: var(--majotv-accent);
	color: #fff;
	border-color: var(--majotv-accent);
	box-shadow: 0 4px 12px rgba(var(--majotv-accent-rgb), 0.3);
}

/* Channels Grid */
.majotv-channels-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 20px;
	margin-top: 10px;
	padding: 10px 4px 20px 4px;
	min-height: 150px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

/* Custom premium scrollbar for horizontal playlist */
.majotv-channels-grid::-webkit-scrollbar {
	height: 8px;
}

.majotv-channels-grid::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 4px;
}

.majotv-channels-grid::-webkit-scrollbar-thumb {
	background: rgba(100, 116, 139, 0.3); /* Default fallback */
	background: rgba(var(--majotv-accent-rgb), 0.3);
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.majotv-channels-grid::-webkit-scrollbar-thumb:hover {
	background: var(--majotv-accent);
}

/* Grid Item Card (Netflix Style) */
.majotv-grid-item {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	position: relative;
	flex: 0 0 180px; /* Force card base width */
}

.majotv-grid-item:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(var(--majotv-accent-rgb), 0.4);
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.majotv-grid-item.active {
	background: rgba(var(--majotv-accent-rgb), 0.06);
	border-color: var(--majotv-accent);
	box-shadow: 0 0 15px rgba(var(--majotv-accent-rgb), 0.2);
}

/* Logo Card Area */
.majotv-card-logo-area {
	height: 110px;
	background: #030712; /* Charcoal Black */
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
	padding: 14px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.majotv-iptv-container .majotv-grid-item .majotv-card-logo-area img.majotv-card-logo {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	display: block !important;
}

.majotv-card-logo-placeholder {
	font-size: 32px;
	opacity: 0.8;
}

/* Card Info Area */
.majotv-card-info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	flex: 1;
	width: 100%;
}

.majotv-card-title {
	color: #e2e8f0;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	white-space: normal;
	word-wrap: break-word;
	transition: color 0.2s;
	width: 100%;
}

.majotv-grid-item:hover .majotv-card-title {
	color: #fff;
}

.majotv-card-group {
	color: #64748b;
	font-size: 11px;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.majotv-grid-item.active .majotv-card-group {
	color: var(--majotv-accent);
}

/* Mini Live Sound Equalizer Overlay on Card */
.playing-indicator {
	display: none;
	align-items: flex-end;
	gap: 2px;
	width: 14px;
	height: 14px;
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(11, 15, 25, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	padding: 4px;
	border-radius: 4px;
	box-sizing: content-box;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.majotv-grid-item.active .playing-indicator {
	display: inline-flex;
}

.playing-indicator .bar {
	width: 2px;
	height: 100%;
	background: var(--majotv-accent);
	border-radius: 1px;
	animation: bounce 0.8s ease-in-out infinite alternate;
}

.playing-indicator .bar-1 { height: 30%; animation-delay: 0.1s; }
.playing-indicator .bar-2 { height: 60%; animation-delay: 0.3s; }
.playing-indicator .bar-3 { height: 90%; animation-delay: 0.5s; }

@keyframes bounce {
	0% {
		height: 20%;
	}
	100% {
		height: 100%;
	}
}

/* Errors & No Results */
.majotv-iptv-error-box {
	background: #1e1b4b;
	border: 1px solid #312e81;
	border-left: 4px solid #ef4444;
	color: #cbd5e1;
	padding: 16px;
	border-radius: 8px;
	font-size: 14px;
	margin: 15px 0;
	line-height: 1.5;
}

.majotv-no-results {
	grid-column: 1 / -1;
	padding: 40px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

/* Responsive Sizing Rules */
@media (max-width: 768px) {
	.majotv-playlist-header {
		flex-direction: column;
		align-items: stretch;
	}

	.majotv-search-box {
		width: 100%;
	}

	.majotv-channels-grid {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		gap: 8px !important;
		overflow-x: hidden !important;
		flex-wrap: wrap !important;
		padding: 10px 4px 10px 4px !important;
	}

	.majotv-grid-item {
		flex: none !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	.majotv-card-logo-area {
		height: auto !important;
		aspect-ratio: 1/1 !important;
		padding: 10px !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.majotv-iptv-container .majotv-grid-item .majotv-card-logo-area img.majotv-card-logo {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		display: block !important;
	}

	.majotv-card-info {
		padding: clamp(4px, 1.2vw, 10px) !important;
		gap: 2px !important;
	}

	.majotv-card-title {
		font-size: clamp(10px, 2vw, 13px) !important;
	}

	.majotv-card-group {
		font-size: clamp(8px, 1.8vw, 11px) !important;
	}

	.majotv-playlist-section {
		padding: 12px !important;
	}

	.playing-indicator {
		bottom: 4px !important;
		right: 4px !important;
		padding: 2px !important;
		width: 10px !important;
		height: 10px !important;
	}
}

/* ==========================================================================
   IPTV Live Chat Sidebar Styles
   ========================================================================== */

.majotv-player-chat-layout {
	display: flex;
	flex-direction: row;
	width: 100%;
	background: #000;
	position: relative;
	align-items: stretch;
}

.majotv-iptv-container.has-chat .majotv-player-chat-layout {
	padding-right: 340px;
}

.majotv-player-chat-layout .majotv-player-wrapper {
	flex: 1;
	min-width: 0;
}

.majotv-chat-sidebar {
	width: 340px;
	background: #ffffff;
	border-left: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	box-sizing: border-box;
	z-index: 5;
}

.majotv-chat-header {
	padding: 16px;
	border-bottom: 1px solid #e2e8f0;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.majotv-chat-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.majotv-chat-title h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.pulsing-dot {
	width: 8px;
	height: 8px;
	background-color: #10b981;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.majotv-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.majotv-chat-messages::-webkit-scrollbar {
	width: 4px;
}

.majotv-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

.majotv-chat-messages::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}

.majotv-chat-messages::-webkit-scrollbar-thumb:hover {
	background: var(--majotv-accent);
}

.majotv-chat-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #475569;
	gap: 12px;
}

.majotv-chat-spinner {
	width: 24px;
	height: 24px;
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-top-color: var(--majotv-accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.majotv-chat-message-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	animation: fadeInChat 0.25s ease-out;
}

@keyframes fadeInChat {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.majotv-chat-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	flex-shrink: 0;
	text-transform: uppercase;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.majotv-chat-msg-body {
	flex: 1;
	min-width: 0;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	position: relative;
	align-self: flex-start;
	line-height: 1.4;
}

.majotv-chat-message-item.is-own .majotv-chat-msg-body {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
}

.majotv-chat-msg-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
	gap: 8px;
}

.majotv-chat-msg-user {
	font-size: 12px;
	font-weight: 600;
	color: var(--majotv-chat-user-color, #1e293b);
	display: inline;
}

.majotv-chat-message-item.is-own .majotv-chat-msg-user {
	color: var(--majotv-chat-user-color, var(--majotv-accent));
}

.majotv-chat-msg-time {
	font-size: 9px;
	color: #94a3b8;
	margin-left: 6px;
	display: inline-block;
}

.majotv-chat-msg-text {
	font-size: 12px;
	color: var(--majotv-chat-msg-color, #334155);
	line-height: 1.4;
	word-break: break-word;
	margin: 0;
	display: inline;
}

.majotv-chat-message-item.is-own .majotv-chat-msg-text {
	color: var(--majotv-chat-msg-color, #1e293b);
}

.majotv-chat-footer {
	padding: 16px;
	border-top: 1px solid #e2e8f0;
	background: #ffffff;
}

.majotv-chat-form {
	display: flex;
	gap: 8px;
	position: relative;
	align-items: center;
	width: 100%;
}

#majotv-chat-message-input {
	flex: 1;
	background: #f8fafc !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 20px !important;
	padding: 8px 96px 8px 14px !important;
	color: #0f172a !important;
	font-size: 13px !important;
	outline: none !important;
	box-shadow: none !important;
	transition: all 0.2s;
	height: 38px !important;
}

#majotv-chat-message-input:focus {
	border-color: var(--majotv-accent) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 2px rgba(var(--majotv-accent-rgb), 0.2) !important;
}

.majotv-chat-send-btn {
	position: absolute !important;
	right: 6px !important;
	background: transparent !important;
	border: none !important;
	color: #64748b;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: color 0.2s, transform 0.1s;
}

.majotv-chat-send-btn:hover {
	color: var(--majotv-accent);
}

.majotv-chat-send-btn:active {
	transform: scale(0.9);
}

.majotv-chat-emoji-btn {
	position: absolute !important;
	right: 36px !important;
	background: transparent !important;
	border: none !important;
	color: #64748b;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: color 0.2s, transform 0.1s;
}

.majotv-chat-emoji-btn:hover {
	color: var(--majotv-accent);
}

.majotv-chat-emoji-btn:active {
	transform: scale(0.9);
}

.majotv-chat-emoji-popover {
	position: absolute;
	bottom: 50px;
	right: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	z-index: 100;
	width: 300px;
	animation: slideUpEmoji 0.2s ease-out;
}

@keyframes slideUpEmoji {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.emoji-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
	max-height: 180px;
	overflow-y: auto;
	padding-right: 4px;
}

.emoji-grid::-webkit-scrollbar {
	width: 4px;
}

.emoji-grid::-webkit-scrollbar-track {
	background: transparent;
}

.emoji-grid::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}

.majotv-chat-sidebar.dark-theme .emoji-grid::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
	background: var(--majotv-accent);
}

.emoji-grid span {
	font-size: 20px;
	cursor: pointer;
	text-align: center;
	display: inline-block;
	transition: transform 0.15s ease;
	user-select: none;
}

.emoji-grid span:hover {
	transform: scale(1.35);
}

.majotv-chat-login-prompt {
	text-align: center;
	padding: 4px 0;
}

.majotv-chat-login-prompt p {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 10px 0;
}

.majotv-chat-disabled-prompt {
	text-align: center;
	padding: 12px;
	background: rgba(239, 68, 68, 0.05);
	border: 1px dashed rgba(239, 68, 68, 0.25);
	border-radius: 12px;
	margin: 4px 0;
}

.majotv-chat-disabled-prompt p {
	font-size: 12px;
	color: #ef4444;
	margin: 0;
	font-weight: 500;
	line-height: 1.4;
}

.majotv-chat-login-btn {
	display: inline-block;
	background: var(--majotv-accent);
	color: #fff !important;
	text-decoration: none !important;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	transition: background 0.2s, transform 0.1s;
	box-shadow: 0 4px 12px rgba(var(--majotv-accent-rgb), 0.2);
}

.majotv-chat-login-btn:hover {
	background: rgba(var(--majotv-accent-rgb), 0.85);
	color: #fff !important;
	transform: translateY(-1px);
}

.majotv-chat-login-btn:active {
	transform: translateY(0);
}

.majotv-chat-theme-btn,
.majotv-chat-menu-btn {
	background: transparent;
	border: none;
	color: #64748b;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.majotv-chat-theme-btn:hover,
.majotv-chat-menu-btn:hover {
	background-color: #f1f5f9;
	color: #0f172a;
}

.majotv-chat-theme-btn:active,
.majotv-chat-menu-btn:active {
	transform: scale(0.9);
}

/* Dropdown Menu styling */
.majotv-chat-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	min-width: 170px;
	z-index: 100;
	padding: 6px 0;
	animation: slideDownMenu 0.15s ease-out;
	box-sizing: border-box;
}

@keyframes slideDownMenu {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.majotv-dropdown-user {
	padding: 8px 16px;
	display: flex;
	flex-direction: column;
}

.majotv-dropdown-username {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.majotv-dropdown-divider {
	height: 1px;
	background-color: #f1f5f9;
	margin: 6px 0;
}

.majotv-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	color: #475569 !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 500;
	transition: background-color 0.15s, color 0.15s;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1.2;
}

.majotv-dropdown-item svg {
	flex-shrink: 0;
}

.majotv-dropdown-item:hover {
	background-color: #f8fafc;
	color: #0f172a !important;
}

.majotv-dropdown-item.logout-link {
	color: #ef4444 !important;
}

.majotv-dropdown-item.logout-link:hover {
	background-color: #fef2f2;
	color: #ef4444 !important;
}

/* ==========================================================================
   Dark Theme Overrides for Chat Sidebar
   ========================================================================== */

.majotv-chat-sidebar.dark-theme {
	background: #0f1422;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-header {
	background: #0f1422;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-title h3 {
	color: #ffffff;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-theme-btn:hover,
.majotv-chat-sidebar.dark-theme .majotv-chat-menu-btn:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff;
}

/* Dark mode dropdown overrides */
.majotv-chat-sidebar.dark-theme .majotv-chat-dropdown {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-username {
	color: #f1f5f9;
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-divider {
	background-color: rgba(255, 255, 255, 0.08);
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-item {
	color: #94a3b8 !important;
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-item:hover {
	background-color: rgba(255, 255, 255, 0.04);
	color: #ffffff !important;
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-item.logout-link {
	color: #fca5a5 !important;
}

.majotv-chat-sidebar.dark-theme .majotv-dropdown-item.logout-link:hover {
	background-color: rgba(239, 68, 68, 0.1);
	color: #fca5a5 !important;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-messages::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-loading {
	color: #64748b;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-spinner {
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--majotv-accent);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-msg-body,
.majotv-chat-sidebar.dark-theme .majotv-chat-message-item.is-own .majotv-chat-msg-body {
	background: transparent !important;
	border: none !important;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-msg-user {
	color: var(--majotv-chat-user-color, #e2e8f0);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-message-item.is-own .majotv-chat-msg-user {
	color: var(--majotv-chat-user-color, #ffffff);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-msg-time {
	color: #475569;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-msg-text {
	color: var(--majotv-chat-msg-color, #cbd5e1);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-message-item.is-own .majotv-chat-msg-text {
	color: var(--majotv-chat-msg-color, #f1f5f9);
}

.majotv-chat-sidebar.dark-theme .majotv-chat-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #0f1422;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-disabled-prompt {
	background: rgba(239, 68, 68, 0.08);
	border-color: rgba(239, 68, 68, 0.35);
}

.majotv-chat-sidebar.dark-theme #majotv-chat-message-input {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: #ffffff !important;
}

.majotv-chat-sidebar.dark-theme #majotv-chat-message-input:focus {
	border-color: var(--majotv-accent) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: 0 0 0 2px rgba(var(--majotv-accent-rgb), 0.25) !important;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-emoji-popover {
	background: #0f1422;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.majotv-chat-header-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px;
	line-height: 1.4;
	color: #475569;
}
.majotv-chat-header-notice span {
	font-size: 14px;
	flex-shrink: 0;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-header-notice {
	background: #0d121f;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #94a3b8;
}

.majotv-chat-header-notice.ban-warning {
	background: #fef2f2;
	border-bottom: 1px solid #fee2e2;
	color: #ef4444;
}
.majotv-chat-sidebar.dark-theme .majotv-chat-header-notice.ban-warning {
	background: #1a0f12;
	border-bottom: 1px solid rgba(239, 68, 68, 0.15);
	color: #fca5a5;
}

@media (max-width: 991px) {
	.majotv-iptv-container.has-chat .majotv-player-chat-layout {
		padding-right: 0;
	}
	.majotv-player-chat-layout {
		flex-direction: column;
	}
	.majotv-chat-sidebar {
		width: 100%;
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		height: 420px;
		position: relative;
		top: auto;
		bottom: auto;
		right: auto;
	}
	
	/* Compact chat styles for mobile view */
	.majotv-chat-header {
		padding: 8px 12px;
	}
	
	.majotv-chat-messages {
		padding: 8px 12px;
		gap: 6px;
	}
	
	.majotv-chat-avatar {
		width: 24px;
		height: 24px;
		font-size: 9px;
	}
	
	.majotv-chat-msg-body {
		padding: 4px 8px;
		border-radius: 4px 10px 10px 10px;
	}
	
	.majotv-chat-message-item.is-own .majotv-chat-msg-body {
		border-radius: 10px 4px 10px 10px;
	}
	
	.majotv-chat-msg-header {
		margin-bottom: 2px;
		gap: 4px;
	}
	
	.majotv-chat-msg-user {
		font-size: 10.5px;
	}
	
	.majotv-chat-msg-time {
		font-size: 8.5px;
	}
	
	.majotv-chat-msg-text {
		font-size: 10.5px;
		line-height: 1.3;
	}
	
	.majotv-chat-footer {
		padding: 8px 12px;
	}
	
	#majotv-chat-message-input {
		height: 32px !important;
		font-size: 12px !important;
		padding: 6px 60px 6px 12px !important;
	}
	
	.majotv-chat-emoji-btn {
		right: 32px;
		padding: 4px;
	}
	
	.majotv-chat-send-btn {
		right: 4px;
		padding: 4px;
	}
}

/* Ensure the theme container allows for a wider layout when player is active */
body:has(#majotv-iptv-player-container) .container,
body:has(#majotv-iptv-player-container) .container-sm,
body:has(#majotv-iptv-player-container) .container-md,
body:has(#majotv-iptv-player-container) .container-lg,
body:has(#majotv-iptv-player-container) .container-xl,
body:has(#majotv-iptv-player-container) .container-xxl {
	max-width: 2048px !important;
}

/* ==========================================================================
   IPTV Auth Overlay & Locked Player Styles
   ========================================================================== */

.majotv-player-wrapper.majotv-locked,
.majotv-player-wrapper.majotv-auth-open,
.majotv-player-wrapper:has(.majotv-auth-overlay:not([style*="display: none"])) {
	aspect-ratio: auto;
	min-height: 480px;
	height: auto;
}

.majotv-auth-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(3, 7, 18, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 200;
	padding: 20px;
	overflow-y: auto;
}

.majotv-auth-container {
	width: 100%;
	max-width: 400px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 16px 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	animation: majotvFadeIn 0.3s ease-out;
	margin: auto;
}

@keyframes majotvFadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.majotv-auth-title {
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 3px;
	text-align: center;
}

.majotv-auth-subtitle {
	color: #94a3b8;
	font-size: 11px;
	margin-top: 0;
	margin-bottom: 12px;
	text-align: center;
	line-height: 1.3;
}

.majotv-auth-field {
	margin-bottom: 9px;
	text-align: left;
}

.majotv-auth-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.majotv-auth-field label {
	display: block;
	color: #cbd5e1;
	font-size: 10px;
	font-weight: 600;
	margin-bottom: 4px;
}

.majotv-auth-field input[type="text"],
.majotv-auth-field input[type="email"],
.majotv-auth-field input[type="password"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 8px !important;
	padding: 7px 10px !important;
	color: #fff !important;
	font-size: 12px !important;
	outline: none !important;
	transition: all 0.2s;
	height: auto !important;
	box-shadow: none !important;
}

.majotv-auth-field input:focus {
	border-color: var(--majotv-accent) !important;
	box-shadow: 0 0 0 2px rgba(var(--majotv-accent-rgb), 0.25) !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

.majotv-auth-btn {
	width: 100%;
	background: var(--majotv-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 9px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(var(--majotv-accent-rgb), 0.3);
	margin-top: 6px;
}

.majotv-auth-btn:hover {
	background: rgba(var(--majotv-accent-rgb), 0.85);
	transform: translateY(-1px);
}

.majotv-auth-switch {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 0;
	font-size: 11px;
	color: #64748b;
}

.majotv-auth-switch a {
	color: var(--majotv-accent);
	text-decoration: none;
	font-weight: 600;
}

.majotv-auth-switch a:hover {
	text-decoration: underline;
}

.majotv-auth-errors {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 16px;
}

.majotv-auth-error {
	color: #f87171 !important;
	font-size: 11px;
	margin: 0 0 4px 0;
	line-height: 1.4;
}

.majotv-auth-error:last-child {
	margin-bottom: 0;
}

.majotv-file-input-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.majotv-file-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.majotv-file-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

#majotv-file-selected {
	color: #94a3b8;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
}

/* Expired Trial Glassmorphism Overlay Style */
.majotv-expired-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(3, 7, 18, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 20;
	padding: 20px;
}

.majotv-expired-container {
	width: 75% !important;
	height: 75% !important;
	max-width: none !important;
	background: rgba(30, 29, 29, 0.90) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	animation: majotvFadeIn 0.3s ease-out;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.majotv-expired-box-content {
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: 480px;
}

.majotv-expired-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.majotv-expired-container .expired-title {
	font-size: 19px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 8px;
	color: #fff !important;
	text-align: center;
}

.majotv-expired-container .expired-desc {
	font-size: 12px;
	line-height: 1.5;
	margin-top: 0;
	margin-bottom: 22px;
	color: #94a3b8 !important;
	text-align: center;
}

.majotv-expired-container .expired-desc strong {
	color: #fff !important;
}

.register-btn-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: var(--majotv-accent);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(var(--majotv-accent-rgb), 0.3);
	box-sizing: border-box;
}

.register-btn-link:hover {
	background: rgba(var(--majotv-accent-rgb), 0.85);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(var(--majotv-accent-rgb), 0.4);
}

.register-btn-link:active {
	transform: translateY(0);
}

.expired-btn-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: #1877f2; /* Facebook Brand Blue */
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.expired-btn-link:hover {
	background: #166fe5;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.expired-btn-link:active {
	transform: translateY(0);
}

.expired-btn-link .fb-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.cs-btn-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: #25D366; /* WhatsApp Green */
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
	box-sizing: border-box;
}

.cs-btn-link:hover {
	background: #20ba5a;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.cs-btn-link:active {
	transform: translateY(0);
}

/* ==========================================
   IPTV Light Theme Styles
   ========================================== */

.majotv-iptv-container.light-theme {
	background: #f8fafc; /* Slate 50 */
	border: 1px solid #e2e8f0; /* Slate 200 */
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.majotv-iptv-container.light-theme .majotv-playlist-section {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-current-name {
	color: #0f172a !important;
	text-shadow: none;
}

.majotv-iptv-container.light-theme .majotv-current-group {
	color: #475569 !important;
}

.majotv-iptv-container.light-theme .majotv-channel-info-overlay {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.majotv-iptv-container.light-theme .majotv-current-logo {
	background: rgba(15, 23, 42, 0.02);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.majotv-iptv-container.light-theme .majotv-card-logo,
.majotv-iptv-container.light-theme .majotv-current-logo {
	filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.15));
}

.majotv-iptv-container.light-theme .majotv-tab-btn {
	background: #f1f5f9;
	color: #475569 !important;
	border: 1px solid #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-tab-btn:hover {
	background: #e2e8f0;
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-tab-btn.active {
	background: var(--majotv-accent);
	color: #ffffff !important;
	border-color: var(--majotv-accent);
}

.majotv-iptv-container.light-theme .majotv-search-box .search-icon {
	color: #94a3b8;
}

.majotv-iptv-container.light-theme #majotv-search {
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme #majotv-search:focus {
	border-color: var(--majotv-accent) !important;
	box-shadow: 0 0 0 3px rgba(var(--majotv-accent-rgb), 0.15) !important;
}

.majotv-iptv-container.light-theme .majotv-grid-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-grid-item:hover {
	background: #ffffff;
	border-color: var(--majotv-accent);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	transform: translateY(-2px);
}

.majotv-iptv-container.light-theme .majotv-grid-item.active {
	background: #ffffff;
	border-color: var(--majotv-accent);
	box-shadow: 0 8px 20px rgba(var(--majotv-accent-rgb), 0.12);
}

.majotv-iptv-container.light-theme .majotv-grid-item .majotv-card-logo-area {
	background: #030712; /* Keep dark background so white logos remain visible */
	border-bottom: 1px solid #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-grid-item.active .majotv-card-logo-area {
	border-bottom-color: var(--majotv-accent);
}

.majotv-iptv-container.light-theme .majotv-grid-item .majotv-card-title {
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-grid-item .majotv-card-group {
	color: #64748b !important;
}

.majotv-iptv-container.light-theme .majotv-no-results {
	color: #64748b !important;
}

.majotv-iptv-container.light-theme .majotv-expired-overlay {
	background: rgba(248, 250, 252, 0.9) !important;
}

.majotv-iptv-container.light-theme .majotv-expired-container {
	background: rgba(255, 255, 255, 0.9) !important;
	border: 1px solid rgba(15, 23, 42, 0.1) !important;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.majotv-iptv-container.light-theme .majotv-expired-container .expired-title {
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-expired-container .expired-desc {
	color: #475569 !important;
}

.majotv-iptv-container.light-theme .majotv-expired-container .expired-desc strong {
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-auth-overlay {
	background: rgba(248, 250, 252, 0.9) !important;
}

.majotv-iptv-container.light-theme .majotv-auth-container {
	background: rgba(255, 255, 255, 0.9) !important;
	border: 1px solid rgba(15, 23, 42, 0.1) !important;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
	color: #0f172a;
}

.majotv-iptv-container.light-theme .majotv-stream-status-overlay {
	background: rgba(248, 250, 252, 0.9) !important;
}

.majotv-iptv-container.light-theme .majotv-stream-status-overlay .status-text {
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-auth-title {
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-auth-subtitle {
	color: #475569 !important;
}

.majotv-iptv-container.light-theme .majotv-auth-field label {
	color: #334155;
}

.majotv-iptv-container.light-theme .majotv-auth-field input {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #0f172a !important;
}

.majotv-iptv-container.light-theme .majotv-auth-field input:focus {
	border-color: var(--majotv-accent) !important;
	box-shadow: 0 0 0 3px rgba(var(--majotv-accent-rgb), 0.15) !important;
}

.majotv-iptv-container.light-theme .majotv-auth-switch {
	color: #475569;
}

.majotv-iptv-container.light-theme .majotv-auth-switch a {
	color: var(--majotv-accent);
}

.majotv-iptv-container.light-theme .majotv-auth-switch a:hover {
	color: var(--majotv-accent);
	text-decoration: underline;
}

.majotv-iptv-container.light-theme .majotv-file-btn {
	background: #e2e8f0;
	border: 1px solid #cbd5e1;
	color: #334155;
}

.majotv-iptv-container.light-theme .majotv-file-btn:hover {
	background: #cbd5e1;
}

.majotv-iptv-container.light-theme #majotv-file-selected {
	color: #475569;
}

.majotv-auth-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: none;
	outline: none;
	font-size: 24px;
	line-height: 1;
	font-weight: 500;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s ease;
	padding: 4px;
	z-index: 10;
}

.majotv-auth-close-btn:hover {
	color: #ffffff;
}

.majotv-iptv-container.light-theme .majotv-auth-close-btn {
	color: #64748b;
}

.majotv-iptv-container.light-theme .majotv-auth-close-btn:hover {
	color: #0f172a;
}

/* Floating Mute Indicator overlay styles */
.majotv-mute-indicator {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(239, 68, 68, 0.9); /* Red overlay with opacity */
	color: #fff !important;
	border: none !important;
	border-radius: 30px !important;
	padding: 8px 14px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
	transition: all 0.2s ease;
	font-family: 'Inter', sans-serif;
	line-height: 1.2 !important;
	height: auto !important;
	text-decoration: none !important;
	outline: none !important;
}

.majotv-mute-indicator:hover {
	background: #dc2626; /* darker red */
	transform: scale(1.05);
	box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
	color: #fff !important;
}

.majotv-mute-indicator:active {
	transform: scale(0.95);
}

.majotv-mute-indicator svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.majotv-mute-indicator span {
	vertical-align: middle;
}

/* --- Premium Announcements & User Box Top Bar --- */
.majotv-iptv-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 0 20px;
	gap: 20px;
	z-index: 20;
	position: relative;
}

.majotv-top-announcements {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.majotv-announcement-header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--majotv-accent);
	margin-bottom: 2px;
}

.majotv-site-announcement,
.majotv-channel-announcement {
	font-size: 13px;
	color: #e2e8f0;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 6px;
}

.majotv-site-announcement strong,
.majotv-channel-announcement strong {
	color: #94a3b8;
	font-weight: 600;
	flex-shrink: 0;
}

.majotv-channel-announcement {
	animation: fadeInNotice 0.3s ease-in-out;
}

@keyframes fadeInNotice {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.majotv-top-user-box {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 340px;
	margin-right: -20px;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	padding-left: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
	box-sizing: border-box;
}

.majotv-top-user-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	width: 100%;
}

.majotv-top-user-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-bottom: 2px;
}

.majotv-top-username {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-align: left;
}

.majotv-top-user-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.majotv-top-user-meta-actions-wrapper {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.majotv-top-user-meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.majotv-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	white-space: nowrap !important;
}

.majotv-rwt-container {
	position: relative;
	cursor: pointer;
	user-select: none;
}

.majotv-rwt-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #475569;
	color: #94a3b8;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	margin-left: 4px;
	vertical-align: middle;
	line-height: 1;
	transition: all 0.2s ease;
}

.majotv-rwt-container:hover .majotv-rwt-info-icon,
.majotv-rwt-info-icon:hover {
	border-color: #f59e0b;
	color: #f59e0b;
}

.majotv-iptv-container.light-theme .majotv-rwt-info-icon {
	border-color: #94a3b8;
	color: #64748b;
}

.majotv-iptv-container.light-theme .majotv-rwt-container:hover .majotv-rwt-info-icon,
.majotv-iptv-container.light-theme .majotv-rwt-info-icon:hover {
	border-color: #d97706;
	color: #d97706;
}

.majotv-rwt-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background-color: #1e293b;
	color: #ffffff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	line-height: 1.4;
	width: max-content;
	max-width: 240px;
	white-space: normal;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
	text-align: center;
}

.majotv-rwt-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #1e293b transparent transparent transparent;
}

.majotv-rwt-container:hover .majotv-rwt-tooltip,
.majotv-rwt-tooltip.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.majotv-iptv-container.light-theme .majotv-rwt-tooltip {
	background-color: #0f172a;
	color: #ffffff;
	border-color: rgba(0, 0, 0, 0.15);
}

.majotv-iptv-container.light-theme .majotv-rwt-tooltip::after {
	border-color: #0f172a transparent transparent transparent;
}

.majotv-buffer-notice {
	font-size: 11px;
	color: #66696d;
	font-weight: 600;
	margin-top: 2px;
	text-align: left;
	width: 100%;
}

.majotv-buy-info-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	vertical-align: middle;
}

.majotv-buy-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #ef4444;
	color: #ef4444;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	transition: all 0.2s ease;
	margin-left: 3px;
}

.majotv-buy-info-wrapper:hover .majotv-buy-info-icon {
	background-color: rgba(239, 68, 68, 0.1);
	border-color: #dc2626;
	color: #dc2626;
}

.majotv-buy-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background-color: #1e293b;
	color: #ffffff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	line-height: 1.4;
	width: max-content;
	max-width: 240px;
	white-space: normal;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
	text-align: center;
}

.majotv-buy-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #1e293b transparent transparent transparent;
}

.majotv-buy-info-wrapper:hover .majotv-buy-tooltip,
.majotv-buy-tooltip.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.majotv-iptv-container.light-theme .majotv-buy-tooltip {
	background-color: #0f172a;
	color: #ffffff;
	border-color: rgba(0, 0, 0, 0.15);
}

.majotv-iptv-container.light-theme .majotv-buy-tooltip::after {
	border-color: #0f172a transparent transparent transparent;
}

.majotv-meta-label {
	color: #94a3b8;
}

.majotv-meta-value {
	color: #10b981; /* bright emerald green */
	font-weight: 700;
}

#majotv-top-rwt {
	color: #f59e0b; /* bright amber */
}

.majotv-top-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.majotv-top-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.majotv-top-btn.earn-points-btn {
	background: rgba(var(--majotv-accent-rgb), 0.15);
	color: var(--majotv-accent) !important;
	border: 1px solid rgba(var(--majotv-accent-rgb), 0.35);
}

.majotv-top-btn.earn-points-btn:hover {
	background: var(--majotv-accent);
	color: #ffffff !important;
	box-shadow: 0 0 15px rgba(var(--majotv-accent-rgb), 0.4);
	transform: translateY(-1px);
}

.majotv-top-btn.buy-btn {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.majotv-top-btn.buy-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
	filter: brightness(1.1);
}

.majotv-top-btn:active {
	transform: translateY(1px);
}

/* --- Large Full-Screen Standalone Popup --- */
.majotv-referral-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(8, 12, 21, 0.75) !important; /* dimmed backdrop overlay */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 999999 !important;
	display: none; /* hidden by default, no important flag to allow jQuery transition */
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	animation: modalFadeIn 0.25s ease-in-out;
}

@keyframes modalFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.majotv-referral-standalone-container {
	width: 95% !important;
	height: 95% !important;
	background: #0f172a !important; /* Slate Dark Background matching index1.html */
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 16px !important;
	overflow-y: auto !important; /* scrollbar inside container */
	padding: 40px !important;
	box-sizing: border-box !important;
	position: relative !important;
}

.majotv-referral-close-x {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	z-index: 100 !important;
	pointer-events: auto !important;
}

.majotv-referral-close-x:hover {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
}

/* Header */
.majotv-ref-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #334155;
	margin-top: 40px; /* Pushes the header down to avoid overlap with absolute Close button */
	margin-bottom: 30px;
	width: 100%;
}

.majotv-ref-logo {
	font-size: 24px;
	font-weight: bold;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.majotv-ref-avatar-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.majotv-ref-tier {
	font-size: 14px;
	color: #94a3b8;
}

.majotv-ref-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #475569;
	overflow: hidden;
}

.majotv-ref-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.majotv-ref-avatar-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 20px;
}

/* Cards */
.majotv-ref-card {
	background-color: #1e293b !important; /* matching --card-bg */
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	border: 1px solid #334155;
	text-align: left;
	box-sizing: border-box;
}

/* Banner Image Box */
.majotv-ref-banner-container {
	position: relative;
	width: 100%;
	height: 90px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 20px;
}

.majotv-ref-banner-img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 0;
	display: block;
}

.majotv-ref-banner-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	white-space: nowrap;
	z-index: 2;
}

.majotv-ref-banner-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.25);
	z-index: 1;
	pointer-events: none;
}

/* Stats Section */
.majotv-ref-stats-group {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 20px 0;
}

.majotv-ref-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #111827;
	padding: 15px 20px;
	border-radius: 10px;
	border-left: 4px solid #3b82f6;
}

.majotv-ref-stat-label {
	color: #94a3b8;
	font-weight: 500;
	font-size: 14px;
}

.majotv-ref-stat-value {
	font-size: 22px;
	font-weight: 700;
	font-family: monospace;
}

.majotv-ref-alert-text {
	color: #ef4444;
	font-weight: bold;
	text-align: center;
	margin: 15px 0;
	padding: 10px;
	background: rgba(239, 68, 68, 0.1);
	border-radius: 8px;
	font-size: 14px;
}

/* Share Box */
.majotv-ref-share-box {
	background: #111827;
	padding: 15px;
	border-radius: 10px;
	border: 1px dashed #475569;
	color: #94a3b8;
	font-size: 14px;
	margin: 15px 0;
	user-select: all;
	word-break: break-all;
	white-space: pre-wrap;
	text-align: left;
}

/* Buttons */
.majotv-ref-btn {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: white !important;
	border: none;
	padding: 14px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
	transition: opacity 0.2s;
	box-sizing: border-box;
}

.majotv-ref-btn:hover {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
	color: #ffffff !important;
	opacity: 0.9 !important;
	border: none !important;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
}

.majotv-ref-btn.btn-secondary {
	background: transparent;
	border: 1px solid #475569;
	color: #f8fafc !important;
	margin-top: 15px;
}

.majotv-ref-btn.btn-secondary:hover {
	background: #334155 !important;
	color: #ffffff !important;
	border: 1px solid #475569 !important;
}

/* Benefits Detail Styles */
.majotv-ref-section-title {
	font-size: 22px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
}

.majotv-ref-rules-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.majotv-ref-rules-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 15px;
	color: #cbd5e1;
	font-size: 14px;
	text-align: left;
}

.majotv-ref-rules-list li::before {
	content: "⚡";
	position: absolute;
	left: 0;
	top: 2px;
}

.majotv-ref-policy-box {
	background: rgba(239, 68, 68, 0.05);
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: 10px;
	padding: 15px;
	margin-top: 20px;
}

.majotv-ref-policy-title {
	color: #ef4444 !important;
	font-weight: bold !important;
	margin-top: 0;
	margin-bottom: 8px;
}

/* Toast Notification */
.majotv-ref-toast {
	position: fixed !important;
	bottom: 20px !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(100px) !important;
	background: #10b981 !important;
	color: white !important;
	padding: 10px 20px !important;
	border-radius: 20px !important;
	font-weight: 500 !important;
	transition: transform 0.3s ease !important;
	z-index: 1000000 !important;
}

.majotv-ref-toast.show {
	transform: translateX(-50%) translateY(0) !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
	.majotv-iptv-top-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 12px 16px;
	}
	
	.majotv-top-user-box {
		justify-content: space-between;
		align-items: center;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
		border-left: none;
		padding-left: 0;
		padding-top: 12px;
		width: auto;
		margin-right: 0;
	}
	
	.majotv-top-user-info {
		align-items: flex-start;
	}
	
	.majotv-site-announcement,
	.majotv-channel-announcement {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
	
	.majotv-top-user-meta-actions-wrapper {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
		width: 100%;
	}
	
	.majotv-top-user-meta {
		margin-bottom: 0;
		gap: 10px;
	}
	
	.majotv-top-actions {
		margin-top: 0;
		gap: 6px;
	}
	
	.majotv-top-btn {
		padding: 4px 8px;
		font-size: 11px;
		border-radius: 6px;
	}
	
	.majotv-expired-container {
		width: 90% !important;
		height: auto !important;
		max-height: 95% !important;
		padding: 20px 16px !important;
	}
	
	.majotv-expired-box-content {
		width: 100% !important;
	}
	
	.register-btn-link,
	.expired-btn-link {
		padding: 10px !important;
		font-size: 12px !important;
		width: 100% !important;
		box-sizing: border-box !important;
		white-space: normal !important;
	}
}

/* --- Light Theme Top Bar Overrides --- */
.majotv-iptv-container.light-theme .majotv-iptv-top-bar {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-top-user-box {
	border-left: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
	.majotv-iptv-container.light-theme .majotv-top-user-box {
		border-left: none;
		border-top: 1px solid #e2e8f0;
	}
}

.majotv-iptv-container.light-theme .majotv-announcement-header {
	color: var(--majotv-accent);
}

.majotv-iptv-container.light-theme .majotv-site-announcement,
.majotv-iptv-container.light-theme .majotv-channel-announcement {
	color: #334155;
}

.majotv-iptv-container.light-theme .majotv-site-announcement strong,
.majotv-iptv-container.light-theme .majotv-channel-announcement strong {
	color: #64748b;
}

.majotv-iptv-container.light-theme .majotv-top-username {
	color: #0f172a;
}

.majotv-iptv-container.light-theme .majotv-meta-label {
	color: #475569;
}

.majotv-iptv-container.light-theme .majotv-meta-value {
	color: #059669; /* darker emerald green for readability in light mode */
}

.majotv-iptv-container.light-theme #majotv-top-rwt {
	color: #d97706; /* darker amber/orange */
}

/* User Card controls layout styling (Dark mode defaults) */
.majotv-top-user-controls .majotv-chat-theme-btn,
.majotv-top-user-controls .majotv-chat-menu-btn {
	color: #cbd5e1;
}

.majotv-top-user-controls .majotv-chat-theme-btn:hover,
.majotv-top-user-controls .majotv-chat-menu-btn:hover {
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.majotv-top-user-controls .majotv-chat-dropdown {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.majotv-top-user-controls .majotv-dropdown-username {
	color: #ffffff;
}

.majotv-top-user-controls .majotv-dropdown-divider {
	background-color: rgba(255, 255, 255, 0.08);
}

.majotv-top-user-controls .majotv-dropdown-item {
	color: #cbd5e1 !important;
}

.majotv-top-user-controls .majotv-dropdown-item:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff !important;
}

/* User Card controls layout styling (Light mode overrides) */
.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-chat-theme-btn,
.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-chat-menu-btn {
	color: #475569;
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-chat-theme-btn:hover,
.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-chat-menu-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #0f172a;
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-chat-dropdown {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-dropdown-username {
	color: #0f172a;
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-dropdown-divider {
	background-color: #e2e8f0;
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-dropdown-item {
	color: #475569 !important;
}

.majotv-iptv-container.light-theme .majotv-top-user-controls .majotv-dropdown-item:hover {
	background-color: #f8fafc;
	color: #0f172a !important;
}

/* Blurs video container and hides controls when locked */
.majotv-player-wrapper.majotv-locked .plyr__controls,
.majotv-player-wrapper.majotv-locked .plyr__video-controls,
.majotv-player-wrapper.majotv-locked .plyr__control {
	display: none !important;
	pointer-events: none !important;
}

.majotv-player-wrapper.majotv-locked .majotv-video-container {
	pointer-events: none !important;
}

.majotv-player-wrapper.majotv-locked .majotv-channel-info-overlay {
	display: none !important;
}

/* Opaque/transparent overlays so playing background video is fully visible in its original style */
.majotv-expired-overlay,
.majotv-iptv-container.light-theme .majotv-expired-overlay {
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   Mobile Layout Tabs & Chat Color Settings
   ========================================================================== */

/* Mobile Tabs Navigation (Hidden on Desktop) */
.majotv-mobile-tabs-nav {
	display: none;
}

@media (max-width: 991px) {
	.majotv-mobile-tabs-nav {
		display: flex;
		width: 100%;
		background: #0f1422;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	
	.majotv-iptv-container.light-theme .majotv-mobile-tabs-nav {
		background: #ffffff;
		border-bottom: 1px solid #e2e8f0;
	}

	.majotv-mobile-tab-btn {
		flex: 1;
		background: transparent;
		border: none;
		outline: none;
		color: #94a3b8;
		padding: 12px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		text-align: center;
		position: relative;
		transition: all 0.2s;
	}

	.majotv-iptv-container.light-theme .majotv-mobile-tab-btn {
		color: #64748b;
	}

	.majotv-mobile-tab-btn.active {
		color: #ffffff;
	}

	.majotv-iptv-container.light-theme .majotv-mobile-tab-btn.active {
		color: var(--majotv-accent);
	}

	.majotv-mobile-tab-btn.active::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 3px;
		background-color: var(--majotv-accent);
	}

	/* Controlled visibility when tabs are selected on mobile */
	#majotv-iptv-player-container.majotv-mobile-show-channels .majotv-chat-sidebar {
		display: none !important;
	}
	#majotv-iptv-player-container.majotv-mobile-show-channels .majotv-playlist-section {
		display: block !important;
	}

	#majotv-iptv-player-container.majotv-mobile-show-chat .majotv-chat-sidebar {
		display: flex !important;
	}
	#majotv-iptv-player-container.majotv-mobile-show-chat .majotv-playlist-section {
		display: none !important;
	}
}

/* Chat settings button */
.majotv-chat-settings-btn {
	position: absolute !important;
	right: 66px !important;
	background: transparent !important;
	border: none !important;
	color: #64748b;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: color 0.2s, transform 0.1s;
}

.majotv-chat-settings-btn:hover {
	color: var(--majotv-accent);
}

.majotv-chat-settings-btn:active {
	transform: scale(0.9);
}

/* Chat Custom Colors Panel */
.majotv-chat-colors-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	gap: 12px;
	flex-wrap: wrap;
}

.majotv-chat-sidebar.dark-theme .majotv-chat-colors-panel {
	background: #0d121f;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.majotv-color-option {
	display: flex;
	align-items: center;
	gap: 6px;
}

.majotv-color-option label {
	font-size: 11px;
	font-weight: 600;
	color: #475569;
}

.majotv-chat-sidebar.dark-theme .majotv-color-option label {
	color: #94a3b8;
}

.majotv-color-option input[type="color"] {
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	background: transparent;
	padding: 0;
	overflow: hidden;
}

.majotv-color-option input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

.majotv-color-option input[type="color"]::-webkit-color-swatch {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 50%;
}

.majotv-chat-sidebar.dark-theme .majotv-color-option input[type="color"]::-webkit-color-swatch {
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.majotv-reset-colors-btn {
	background: transparent;
	border: none;
	color: #ef4444;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.majotv-reset-colors-btn:hover {
	background-color: rgba(239, 68, 68, 0.05);
}

/* AJAX Auth Messages and Loading Buttons */
.majotv-auth-msg-container {
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}
.majotv-auth-msg-container.error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #f87171 !important;
}
.majotv-auth-msg-container.success {
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.3);
	color: #34d399 !important;
}
.majotv-auth-btn.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
.majotv-auth-btn.loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin-top: -9px;
	margin-left: -9px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: majotv-auth-spin 0.6s linear infinite;
}
@keyframes majotv-auth-spin {
	to { transform: rotate(360deg); }
}

/* Light Theme Overrides */
.majotv-iptv-container.light-theme .majotv-auth-msg-container.error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #dc2626 !important;
}
.majotv-iptv-container.light-theme .majotv-auth-msg-container.success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #059669 !important;
}

/* Countdown Warning Popup Close Button Styles */
.majotv-countdown-close-btn {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: none;
	outline: none;
	font-size: 26px;
	line-height: 1;
	font-weight: 500;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s ease;
	padding: 4px;
	z-index: 10;
}
.majotv-countdown-close-btn:hover {
	color: #ffffff;
}
.majotv-iptv-container.light-theme .majotv-countdown-close-btn {
	color: #64748b;
}
.majotv-iptv-container.light-theme .majotv-countdown-close-btn:hover {
	color: #0f172a;
}

/* Player Ad Overlay Container */
.majotv-player-ad-overlay {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 24px);
	max-width: 680px;
	z-index: 12;
	background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(20, 83, 45, 0.95) 100%);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 10px 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* Close button for ad overlay */
.majotv-ad-close-btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	background: #ef4444;
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 14px;
	font-weight: bold;
	line-height: 18px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 15;
	transition: background 0.2s ease;
}

.majotv-ad-close-btn:hover {
	background: #dc2626;
}

/* Ad content container */
.majotv-player-ad-content {
	width: 100%;
}

/* Default HTML Banner Styling */
.majotv-ad-banner-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 15px;
	flex-wrap: wrap;
}

.majotv-ad-left {
	display: flex;
	align-items: center;
}

.majotv-ad-logo {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 4px 10px;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.majotv-ad-logo-top {
	font-size: 10px;
	color: #166534;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.majotv-ad-logo-bottom {
	font-size: 14px;
	color: #15803d;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.majotv-ad-center {
	flex: 1;
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 180px;
}

.majotv-ad-phone {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.5px;
	line-height: 1.1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.majotv-ad-disclaimer {
	font-size: 8px;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.majotv-ad-right {
	display: flex;
	align-items: center;
}

.majotv-ad-amazon-btn {
	background: #0f172a;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 20px;
	padding: 6px 14px;
	text-decoration: none !important;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: all 0.2s ease;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.majotv-ad-amazon-btn:hover {
	background: #1e293b;
	transform: translateY(-1px);
}

.majotv-ad-amazon-text-top {
	font-size: 7px;
	color: rgba(255,255,255,0.6);
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 2px;
}

.majotv-ad-amazon-text-bottom {
	font-size: 13px;
	color: #fff;
	font-weight: 700;
	letter-spacing: -0.2px;
}

/* Custom Uploaded Ad Banner image wrapper */
.majotv-custom-ad-banner {
	width: 100%;
}

.majotv-custom-ad-banner img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

/* Adjust for small screens */
@media (max-width: 576px) {
	.majotv-player-ad-overlay {
		padding: 8px 12px;
		bottom: 8px;
		width: calc(100% - 16px);
	}
	.majotv-ad-phone {
		font-size: 16px;
	}
	.majotv-ad-logo {
		padding: 2px 6px;
	}
	.majotv-ad-logo-bottom {
		font-size: 11px;
	}
	.majotv-ad-amazon-btn {
		padding: 4px 10px;
	}
	.majotv-ad-amazon-text-bottom {
		font-size: 10px;
	}
}

/* Premium Frontend Country Switcher */
.majotv-country-switcher-outer-wrapper {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
	width: 100%;
	max-width: 2048px;
	box-sizing: border-box;
}

.majotv-country-switcher-outer-wrapper .majotv-country-switcher-select {
	background: #ffffff !important;
	color: #0f172a !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 20px !important;
	padding: 5px 12px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	cursor: pointer;
	outline: none !important;
	height: 30px !important;
	display: flex;
	align-items: center;
	transition: all 0.2s;
	font-family: 'Inter', sans-serif;
	box-shadow: none !important;
	line-height: 1 !important;
}

.majotv-country-switcher-outer-wrapper .majotv-country-switcher-select:hover {
	background: #f1f5f9 !important;
	border-color: #cbd5e1 !important;
}

.majotv-country-switcher-outer-wrapper .majotv-country-switcher-select option {
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 12px !important;
}

/* Dark theme overrides when .dark-theme class is active on switcher */
.majotv-country-switcher-outer-wrapper.dark-theme .majotv-country-switcher-select {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.majotv-country-switcher-outer-wrapper.dark-theme .majotv-country-switcher-select:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
}

.majotv-country-switcher-outer-wrapper.dark-theme .majotv-country-switcher-select option {
	background: #0f1422 !important;
	color: #ffffff !important;
}

/* Tourist Mode Header Log In / Register Links */
.majotv-tourist-links {
	margin-left: 10px;
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 3px 8px;
	border-radius: 12px;
}

.majotv-tourist-btn {
	color: var(--majotv-accent) !important;
	text-decoration: none !important;
	transition: opacity 0.2s;
	cursor: pointer;
}

.majotv-tourist-btn:hover {
	opacity: 0.8;
}

/* Light theme overrides */
.majotv-iptv-container.light-theme .majotv-tourist-links {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.majotv-iptv-container.light-theme .majotv-tourist-links span {
	color: rgba(0, 0, 0, 0.2) !important;
}

.majotv-tourist-btn span {
	color: inherit !important;
}

#majotv-tourist-register-btn {
	background: var(--majotv-accent) !important;
	color: #ffffff !important;
	padding: 2px 8px !important;
	border-radius: 8px !important;
	margin-left: 4px;
	display: inline-block;
	text-decoration: none !important;
}

#majotv-tourist-register-btn:hover {
	opacity: 0.9 !important;
}

@media (max-width: 768px) {
	.majotv-buy-tooltip,
	.majotv-rwt-tooltip {
		left: auto !important;
		right: -10px !important;
		transform: translateY(4px) !important;
	}
	.majotv-buy-info-wrapper:hover .majotv-buy-tooltip,
	.majotv-buy-tooltip.show,
	.majotv-rwt-container:hover .majotv-rwt-tooltip,
	.majotv-rwt-tooltip.show {
		transform: translateY(0) !important;
	}
	.majotv-buy-tooltip::after,
	.majotv-rwt-tooltip::after {
		left: auto !important;
		right: 14px !important;
		transform: none !important;
	}
}



