/* Roku Simulator Styles - Redesigned */

/* Desktop-only overlay */
#desktop-only-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

#desktop-only-overlay .desktop-only-content {
	text-align: center;
	color: #fff;
	padding: 40px;
	max-width: 400px;
}

#desktop-only-overlay .desktop-only-content i {
	font-size: 80px;
	color: #6c5ce7;
	margin-bottom: 30px;
	display: block;
}

#desktop-only-overlay .desktop-only-content h2 {
	font-size: 28px;
	margin-bottom: 15px;
	font-weight: 600;
}

#desktop-only-overlay .desktop-only-content p {
	font-size: 16px;
	color: #a0a0a0;
	line-height: 1.6;
	margin-bottom: 20px;
}

#desktop-only-overlay .min-width-note {
	font-size: 12px;
	color: #6c5ce7;
	background: rgba(108, 92, 231, 0.1);
	padding: 8px 16px;
	border-radius: 20px;
	display: inline-block;
}

/* Mobile: Scale down the simulator instead of hiding it */
@media (max-width: 1199px) {
	#desktop-only-overlay {
		display: none;
	}

	.roku-simulator-container {
		display: flex !important;
		transform-origin: top center;
	}

	.simulator-main {
		transform: scale(0.55);
		transform-origin: top center;
	}

	.web-preview-info {
		max-width: 90%;
		padding: 12px 16px;
		gap: 12px;
	}

	.web-preview-info p {
		font-size: 12px;
	}

	.keyboard-hint {
		display: none;
	}
}

@media (max-width: 900px) {
	.simulator-main {
		transform: scale(0.45);
	}
}

@media (max-width: 700px) {
	.simulator-main {
		transform: scale(0.38);
	}

	.web-preview-info {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 500px) {
	.simulator-main {
		transform: scale(0.32);
	}
}

/* Main Simulator Container */
.roku-simulator-container {
	padding: 20px;
	min-height: calc(100vh - 100px);
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Web Preview Info Banner */
.web-preview-info {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(108, 92, 231, 0.08);
	border: 1px solid rgba(108, 92, 231, 0.2);
	border-radius: 12px;
	padding: 16px 24px;
	margin-bottom: 20px;
	max-width: 700px;
}

.preview-info-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.preview-info-icon i {
	font-size: 20px;
	color: #fff;
}

.preview-info-text p {
	margin: 0;
	color: var(--text-primary, #333);
	font-size: 14px;
	line-height: 1.5;
}

.preview-info-text .preview-info-subtext {
	color: var(--text-secondary, #666);
	font-size: 13px;
	margin-top: 4px;
}

.preview-info-text strong {
	color: var(--brand-color, #6c5ce7);
}

/* Public Share Preview Link */
.share-preview-link {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: rgba(16, 185, 129, 0.06);
	border: 1px solid rgba(16, 185, 129, 0.2);
	border-radius: 12px;
	padding: 14px 20px;
	margin-bottom: 16px;
	max-width: 700px;
}

.share-preview-icon {
	width: 38px;
	height: 38px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.share-preview-icon i {
	font-size: 16px;
	color: #fff;
}

.share-preview-content {
	flex: 1;
	min-width: 0;
}

.share-preview-label {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary, #333);
}

.share-preview-input-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.share-preview-input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	color: #333;
	font-family: 'Monaco', 'Consolas', monospace;
	outline: none;
	transition: border-color 0.2s;
}

.share-preview-input:focus {
	border-color: #10b981;
}

.share-preview-copy-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.share-preview-copy-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.share-preview-copy-btn.copied {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.share-preview-hint {
	margin: 6px 0 0;
	font-size: 11px;
	color: var(--text-secondary, #888);
}

/* Dark mode adjustments for share link */
html.dark-mode .share-preview-link {
	background: rgba(16, 185, 129, 0.08);
	border-color: rgba(16, 185, 129, 0.2);
}

html.dark-mode .share-preview-label {
	color: #f5f5f5;
}

html.dark-mode .share-preview-input {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
	color: #e0e0e0;
}

html.dark-mode .share-preview-input:focus {
	border-color: #10b981;
}

html.dark-mode .share-preview-hint {
	color: #999;
}

/* Share link responsive */
@media (max-width: 600px) {
	.share-preview-link {
		flex-direction: column;
		gap: 10px;
		padding: 12px 16px;
	}

	.share-preview-input-row {
		flex-direction: column;
	}

	.share-preview-copy-btn {
		justify-content: center;
		padding: 10px 16px;
	}
}

/* Tabs */
.simulator-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.simulator-tab {
	padding: 12px 30px;
	border: none;
	border-radius: 8px;
	background: var(--card-bg, #2a2a3e);
	color: var(--text-secondary, #a0a0a0);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.simulator-tab:hover {
	background: var(--card-bg-hover, #3a3a4e);
	color: var(--text-primary, #fff);
}

.simulator-tab.active {
	background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
	color: #fff;
}

.simulator-tab i {
	font-size: 16px;
}

/* Main Simulator Area */
.simulator-main {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	justify-content: center;
}

/* TV Frame */
.tv-frame {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tv-bezel {
	background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
	border-radius: 20px;
	padding: 20px 20px 30px 20px;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 -1px 0 rgba(0, 0, 0, 0.3);
	position: relative;
}

.tv-screen {
	/* Responsive sizing: scales with viewport but has minimum size */
	width: clamp(800px, 55vw, 1100px);
	height: clamp(450px, 31vw, 619px);
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.tv-brand {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	color: #555;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 3px;
}

.tv-stand {
	width: 25%;
	min-width: 200px;
	height: 15px;
	background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
	border-radius: 0 0 10px 10px;
	margin-top: -5px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ROKU INTERFACE - HOME SCREEN
   ======================================== */
.roku-interface {
	display: flex;
	height: 100%;
	background: #000;
	position: relative;
}

/* Mini Sidebar (Icons only) - Vertically Centered */
.roku-sidebar-mini {
	width: 50px;
	background: #000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 500;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	pointer-events: auto;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide sidebar when menu is open */
.roku-sidebar-mini.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.roku-sidebar-mini .sidebar-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 18px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 10px;
	margin-bottom: 14px;
	pointer-events: auto;
	position: relative;
	z-index: 501;
}

.roku-sidebar-mini .sidebar-icon:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.1);
}

.roku-sidebar-mini .sidebar-icon.selected {
	color: #fff;
}

.roku-sidebar-mini .sidebar-icon:active {
	transform: scale(0.95);
	background: var(--brand-color, #6c5ce7);
}

.roku-sidebar-mini .sidebar-icon.focused {
	color: #fff;
}

/* Full Menu (Slide-out) - HIDDEN BY DEFAULT */
.roku-menu-full {
	position: absolute;
	left: -240px;
	top: 0;
	bottom: 0;
	width: 240px;
	background: rgba(0, 0, 0, 0.95);
	z-index: 200;
	transition: left 0.3s ease;
	display: flex;
	flex-direction: column;
}

.roku-menu-full.open {
	left: 0;
}

.roku-menu-logo {
	padding: 20px;
	text-align: left;
}

.roku-menu-logo img {
	max-width: 160px;
	max-height: 130px;
	object-fit: contain;
}

.roku-menu-items {
	flex: 1;
	padding: 10px 0;
}

.roku-menu-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 14px 20px;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.roku-menu-item i {
	width: 24px;
	text-align: center;
	font-size: 18px;
}

.roku-menu-item:hover {
	background: rgba(255, 255, 255, 0.1);
}

.roku-menu-item.selected {
	background: var(--brand-color, #0891b2);
}

.roku-menu-item.focused {
	background: var(--brand-color, #0891b2);
}

/* Main Content Area */
.roku-main-content {
	flex: 1;
	margin-left: 0;
	height: 100%;
	overflow: hidden;
	position: relative;
}

/* ========================================
   HOME SCREEN LAYOUT
   ======================================== */
.roku-home-screen {
	height: 100%;
	position: relative;
	overflow: hidden;
}

/* Full-screen dynamic background */
.roku-fullscreen-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	transition: background-image 0.5s ease;
	z-index: 0;
}

/* Dark overlay on background */
.roku-fullscreen-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

/* Content info panel (left side) */
.roku-info-panel {
	position: absolute;
	top: 15px;
	left: 60px;
	right: 40%;
	z-index: 10;
	padding: 15px;
}

.roku-info-title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 8px;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	max-width: 100%;
}

.roku-info-description {
	max-width: 380px;
}

.roku-info-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.roku-badge {
	background: #fff;
	color: #000;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.roku-badge i {
	font-size: 10px;
}

.roku-badge-live {
	background: #ef4444;
	color: white;
}

.roku-badge-live i {
	font-size: 8px;
	animation: pulse-live 1.5s ease-in-out infinite;
}

.roku-info-time {
	color: #ccc;
	font-size: 13px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.roku-info-description {
	color: #ccc;
	font-size: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	margin-top: 8px;
}

/* Content Rows - Positioned at bottom */
.roku-rows-container {
	position: absolute;
	bottom: 0;
	left: 50px;
	right: 0;
	z-index: 10;
	padding: 10px 0 15px 0;
	max-height: 55%;
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.roku-rows-container::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Opera */
}

.roku-content-row {
	margin-bottom: 15px;
	padding: 0 15px;
}

.roku-row-title {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	margin-left: 10px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.roku-row-items {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 5px;
	scroll-behavior: smooth;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.roku-row-items::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Opera */
}

/* Content Cards - Larger style with title overlay */
.roku-content-card {
	flex-shrink: 0;
	width: 200px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.roku-content-card:hover {
	transform: scale(1.02);
}

.roku-content-card.focused {
	z-index: 10;
}

.roku-content-card.focused .roku-card-thumbnail {
	border: 3px solid var(--brand-color, #00b8d4);
	box-shadow: 0 0 15px rgba(0, 184, 212, 0.5);
}

.roku-card-thumbnail {
	width: 200px;
	height: 113px;
	background: #1a1a1a;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	transition: all 0.2s ease;
	border: 3px solid transparent;
	box-sizing: border-box;
}

.roku-card-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roku-card-thumbnail .no-thumbnail {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	font-size: 28px;
	background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
}

/* Title overlay at bottom of card */
.roku-card-title-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 25px 10px 8px;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========================================
   DETAIL SCREEN
   ======================================== */
.roku-detail-screen {
	height: 100%;
	background-image: url('/images/background.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	padding: 40px;
	padding-left: 70px; /* Account for sidebar */
	gap: 40px;
}

.roku-detail-screen.custom-bg {
	background-image: var(--custom-bg-url);
}

.roku-detail-left {
	flex-shrink: 0;
	width: 360px;
}

.roku-detail-thumbnail {
	width: 360px;
	height: 203px;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.roku-detail-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roku-detail-title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin-top: 15px;
	text-align: right;
	max-width: 360px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.roku-detail-duration {
	color: #aaa;
	font-size: 14px;
	text-align: right;
	margin-top: 5px;
}

.roku-detail-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
	overflow: hidden;
	max-width: 100%;
}

.roku-play-button {
	background: #e0e0e0;
	color: #000;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
	outline: none;
	box-shadow: none;
}

.roku-play-button:hover,
.roku-play-button.focused {
	background: #fff;
}

.roku-detail-description {
	background: rgba(60, 60, 60, 0.6);
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.6;
	max-height: 150px;
	overflow-y: auto;
	overflow-x: hidden;
	word-wrap: break-word;
	overflow-wrap: break-word;
	scrollbar-width: thin;
	scrollbar-color: rgba(80, 80, 80, 0.5) transparent;
}

/* Webkit scrollbar for detail description */
.roku-detail-description::-webkit-scrollbar {
	width: 4px;
}

.roku-detail-description::-webkit-scrollbar-track {
	background: transparent;
}

.roku-detail-description::-webkit-scrollbar-thumb {
	background: rgba(80, 80, 80, 0.5);
	border-radius: 2px;
}

.roku-detail-description::-webkit-scrollbar-thumb:hover {
	background: rgba(100, 100, 100, 0.6);
}

.roku-detail-date {
	color: #ccc;
	font-size: 13px;
}

/* ========================================
   EPISODES/SERIES SCREEN
   ======================================== */
.roku-episodes-screen {
	height: 100%;
	display: flex;
	padding: 30px;
	padding-left: 70px; /* Account for sidebar */
	gap: 30px;
	background: #000;
}

.roku-series-info {
	width: 280px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
}

.roku-series-thumbnail {
	width: 100%;
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
	background: #1a1a1a;
}

.roku-series-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roku-series-title {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin-top: 15px;
}

.roku-series-meta {
	color: #888;
	font-size: 13px;
	margin-top: 8px;
}

.roku-series-description {
	color: #aaa;
	font-size: 12px;
	margin-top: 10px;
	line-height: 1.5;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 72px;
}

.roku-series-play-btn {
	background: rgba(80, 80, 80, 0.6);
	color: #fff;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 500;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 15px;
	text-align: left;
	transition: all 0.2s ease;
}

.roku-series-play-btn.focused {
	background: var(--brand-color, #0891b2);
}

.roku-episodes-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.roku-episodes-header {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	padding-left: 5px;
}

.roku-episodes-scroll {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.roku-episodes-scroll::-webkit-scrollbar {
	width: 4px;
}

.roku-episodes-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
}

.roku-episode-item {
	display: flex;
	gap: 15px;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.roku-episode-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.roku-episode-item.focused {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.roku-episode-thumb {
	width: 120px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: #1a1a1a;
}

.roku-episode-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roku-episode-info {
	flex: 1;
	min-width: 0;
}

.roku-episode-title {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.roku-episode-meta {
	color: #888;
	font-size: 11px;
	margin-bottom: 6px;
}

.roku-episode-desc {
	color: #aaa;
	font-size: 11px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 32px;
}

/* ========================================
   SEARCH SCREEN
   ======================================== */
.roku-search-screen {
	height: 100%;
	background-image: url('/images/background.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60px 40px 40px;
	padding-left: 70px; /* Account for sidebar */
}

.roku-search-screen.custom-bg {
	background-image: var(--custom-bg-url);
}

.roku-search-title {
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 30px;
}

.roku-search-bar {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: 600px;
	margin-bottom: 30px;
}

.roku-search-input {
	flex: 1;
	background: rgba(100, 100, 100, 0.7);
	border: none;
	padding: 15px 20px;
	color: #fff;
	font-size: 16px;
	border-radius: 4px;
	outline: none;
}

.roku-search-input::placeholder {
	color: #aaa;
}

.roku-search-input.focused {
	box-shadow: 0 0 0 2px #fff;
}

.roku-search-btn {
	background: var(--brand-color, #0891b2);
	color: #fff;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.roku-search-btn:hover,
.roku-search-btn.focused {
	filter: brightness(1.1);
}

.roku-search-results {
	width: 100%;
	margin-top: 20px;
}

.roku-search-results-count {
	color: #ccc;
	font-size: 14px;
	margin-bottom: 15px;
	margin-left: 5px;
}

.roku-search-results-row {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 5px;
}

.roku-search-results-row::-webkit-scrollbar {
	height: 4px;
}

.roku-search-results-row::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
}

/* Search result cards */
.roku-search-card {
	flex-shrink: 0;
	width: 220px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 8px;
	overflow: hidden;
}

.roku-search-card.focused {
	transform: scale(1.03);
}

.roku-search-card.focused .roku-search-card-thumb {
	box-shadow: 0 0 0 3px #fff;
}

.roku-search-card-thumb {
	width: 220px;
	height: 124px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	transition: all 0.2s ease;
}

.roku-search-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roku-search-card-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 30px 12px 10px;
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
}

/* ========================================
   ROKU KEYBOARD
   ======================================== */
.roku-keyboard-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 300;
}

.roku-keyboard-container {
	background: #3a3a3a;
	border-radius: 12px;
	padding: 25px;
	width: 700px;
	max-width: 95%;
}

.roku-keyboard-title {
	color: #fff;
	font-size: 18px;
	text-align: center;
	margin-bottom: 5px;
	padding-bottom: 15px;
	border-bottom: 1px solid #555;
}

.roku-keyboard-input {
	background: #555;
	padding: 12px 15px;
	border-radius: 6px;
	margin: 20px 0;
}

.roku-keyboard-input-text {
	color: #fff;
	font-size: 18px;
	min-height: 24px;
}

.roku-keyboard-grid {
	display: flex;
	gap: 8px;
}

.roku-keyboard-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.roku-keyboard-left .keyboard-row {
	display: flex;
	gap: 6px;
}

.roku-keyboard-main {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.roku-keyboard-numbers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.roku-keyboard-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.roku-key {
	background: #555;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px;
	min-width: 38px;
	min-height: 38px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.1s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.roku-key:hover {
	background: #666;
}

.roku-key.focused {
	background: #888;
	color: #000;
}

.roku-key.special {
	font-size: 12px;
}

.roku-key.wide {
	min-width: 50px;
}

.roku-keyboard-actions {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.roku-keyboard-action {
	background: #444;
	color: #fff;
	border: none;
	padding: 12px 20px;
	font-size: 14px;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	transition: all 0.1s ease;
	display: flex;
	align-items: center;
	gap: 10px;
}

.roku-keyboard-action:hover {
	background: #555;
}

.roku-keyboard-action.focused {
	background: var(--brand-color, #0891b2);
}

.roku-keyboard-action::before {
	content: '\2022';
	font-size: 20px;
}

/* ========================================
   AUDIO PLAYER SCREEN
   ======================================== */
.roku-audio-screen {
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.roku-audio-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	filter: blur(0) brightness(0.7);
}

.roku-audio-content {
	position: relative;
	z-index: 1;
	text-align: center;
	width: 100%;
	padding: 40px;
}

.roku-live-audio-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e74c3c;
	color: white;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 15px;
	animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.8; }
}

.roku-audio-title {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 10px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.roku-audio-subtitle {
	color: #ddd;
	font-size: 16px;
	margin-bottom: 40px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.roku-audio-progress {
	width: 100%;
	max-width: 500px;
	margin: 0 auto 20px;
}

.roku-audio-progress-bar {
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	overflow: hidden;
}

.roku-audio-progress-fill {
	height: 100%;
	background: #fff;
	width: 0%;
	transition: width 0.1s linear;
}

.roku-audio-times {
	display: flex;
	justify-content: space-between;
	color: #fff;
	font-size: 14px;
	margin-top: 8px;
}

.roku-audio-controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.roku-audio-btn {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.roku-audio-btn i {
	color: #000;
	font-size: 18px;
}

.roku-audio-btn:hover,
.roku-audio-btn.focused {
	background: #fff;
	transform: scale(1.05);
}

.roku-audio-btn.play-pause {
	width: 60px;
	height: 60px;
}

.roku-audio-btn.play-pause i {
	font-size: 22px;
}

/* ========================================
   VIDEO PLAYER SCREEN
   ======================================== */
.roku-video-screen {
	height: 100%;
	background: #000;
	position: relative;
}

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

.roku-video-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
	padding: 40px 30px 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.roku-video-screen:hover .roku-video-controls,
.roku-video-screen.controls-visible .roku-video-controls {
	opacity: 1;
}

.roku-video-progress {
	margin-bottom: 15px;
}

.roku-video-progress-bar {
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	cursor: pointer;
}

.roku-video-progress-fill {
	height: 100%;
	background: #fff;
	border-radius: 2px;
	width: 0%;
}

.roku-video-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.roku-video-time {
	color: #fff;
	font-size: 13px;
}

.roku-video-btns {
	display: flex;
	gap: 15px;
}

.roku-video-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	padding: 5px;
	transition: all 0.2s ease;
}

.roku-video-btn:hover,
.roku-video-btn i,
.roku-video-btn.focused {
	color: #fff;
	color: var(--brand-color, #0891b2);
}

/* Bunny Embed Player */
.roku-embed-player {
	display: flex;
	align-items: center;
	justify-content: center;
}

.roku-video-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.roku-video-back-hint {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 8px 15px;
	border-radius: 5px;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.roku-embed-player:hover .roku-video-back-hint {
	opacity: 1;
}

.roku-video-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #888;
	gap: 15px;
}

.roku-video-error i {
	font-size: 48px;
	color: #666;
}

.roku-video-error p {
	font-size: 16px;
}

/* ========================================
   ROKU REMOTE
   ======================================== */
.roku-remote {
	flex-shrink: 0;
}

.remote-body {
	width: 120px;
	background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
	border-radius: 30px 30px 40px 40px;
	padding: 20px 15px 30px;
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.remote-top-section {
	display: flex;
	justify-content: center;
}

.remote-power-btn {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.remote-power-btn i {
	color: #e74c3c;
	font-size: 14px;
}

.remote-power-btn:hover {
	transform: scale(1.05);
}

.remote-power-btn:active {
	transform: scale(0.95);
}

/* D-Pad */
.remote-dpad-section {
	display: flex;
	justify-content: center;
}

.dpad-container {
	display: grid;
	grid-template-columns: 28px 34px 28px;
	grid-template-rows: 28px 34px 28px;
	gap: 2px;
}

.dpad-btn {
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	border: none;
	color: #888;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.dpad-btn:hover {
	background: linear-gradient(145deg, #4a4a4a 0%, #353535 100%);
	color: #fff;
}

.dpad-btn:active {
	transform: scale(0.95);
	background: linear-gradient(145deg, #6c5ce7 0%, #5a4bd1 100%);
}

.dpad-up {
	grid-column: 2;
	grid-row: 1;
	border-radius: 8px 8px 0 0;
}

.dpad-left {
	grid-column: 1;
	grid-row: 2;
	border-radius: 8px 0 0 8px;
}

.dpad-ok {
	grid-column: 2;
	grid-row: 2;
	border-radius: 50%;
	background: linear-gradient(145deg, #6c5ce7 0%, #5a4bd1 100%);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
}

.dpad-ok:hover {
	background: linear-gradient(145deg, #7d6ef0 0%, #6c5ce7 100%);
}

.dpad-right {
	grid-column: 3;
	grid-row: 2;
	border-radius: 0 8px 8px 0;
}

.dpad-down {
	grid-column: 2;
	grid-row: 3;
	border-radius: 0 0 8px 8px;
}

/* Navigation Buttons */
.remote-nav-section {
	display: flex;
	justify-content: space-around;
	gap: 10px;
}

.nav-btn {
	flex: 1;
	padding: 8px;
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	border: none;
	border-radius: 8px;
	color: #888;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.nav-btn i {
	font-size: 12px;
}

.nav-btn span {
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.nav-btn:hover {
	background: linear-gradient(145deg, #4a4a4a 0%, #353535 100%);
	color: #fff;
}

.nav-btn:active {
	transform: scale(0.95);
}

/* Playback Buttons */
.remote-playback-section {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.playback-btn {
	width: 28px;
	height: 28px;
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	border: none;
	border-radius: 6px;
	color: #888;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}

.playback-btn:hover {
	color: #fff;
}

.playback-btn:active {
	transform: scale(0.95);
}

.playback-btn.play-pause {
	width: 38px;
	height: 34px;
	border-radius: 17px;
	gap: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.playback-btn.play-pause i {
	font-size: 9px;
}

.playback-btn.play-pause i.fa-pause {
	font-size: 8px;
}

/* Volume Section */
.remote-volume-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.volume-btn {
	width: 28px;
	height: 28px;
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	border: none;
	border-radius: 6px;
	color: #888;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.volume-btn:hover {
	color: #fff;
}

.volume-rocker {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.volume-rocker button {
	width: 30px;
	height: 22px;
	background: linear-gradient(145deg, #3a3a3a 0%, #252525 100%);
	border: none;
	color: #888;
	cursor: pointer;
	transition: all 0.15s ease;
	font-size: 12px;
	font-weight: 600;
}

.volume-rocker .volume-up {
	border-radius: 6px 6px 0 0;
}

.volume-rocker .volume-down {
	border-radius: 0 0 6px 6px;
}

.volume-rocker button:hover {
	color: #fff;
}

/* Keyboard Hint */
.keyboard-hint {
	margin-top: 25px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #666;
	font-size: 12px;
	background: rgba(108, 92, 231, 0.1);
	padding: 10px 20px;
	border-radius: 8px;
}

.keyboard-hint i {
	color: #6c5ce7;
}

/* Empty State */
.roku-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #666;
	text-align: center;
}

.roku-empty-state i {
	font-size: 48px;
	margin-bottom: 15px;
	color: #444;
}

.roku-empty-state h3 {
	font-size: 16px;
	margin-bottom: 8px;
	color: #888;
}

.roku-empty-state p {
	font-size: 12px;
}

/* Loading State */
.roku-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.roku-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(108, 92, 231, 0.2);
	border-top-color: #6c5ce7;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Power Off State */
.tv-screen.powered-off {
	background: #000 !important;
}

.tv-screen.powered-off > *:not(.powered-off-overlay) {
	display: none !important;
}

.powered-off-overlay {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	justify-content: center;
	align-items: center;
	color: #333;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.tv-screen.powered-off .powered-off-overlay {
	display: flex !important;
}

/* Edit Interface */
.edit-interface {
	height: 100%;
	background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
	padding: 20px;
	overflow-y: auto;
}

.edit-panel {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 20px;
}

.edit-panel h3 {
	color: #fff;
	font-size: 16px;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.edit-panel h3 i {
	color: #6c5ce7;
}

.edit-panel p {
	color: #888;
	font-size: 14px;
}

/* Focus pulse animation */
@keyframes pulse-focus {
	0%, 100% {
		box-shadow: 0 0 0 3px #00b8d4;
	}
	50% {
		box-shadow: 0 0 0 5px #00b8d4, 0 0 20px rgba(0, 184, 212, 0.4);
	}
}

.roku-content-card.focused .roku-card-thumbnail {
	animation: pulse-focus 1.5s ease-in-out infinite;
}

/* Dark mode - boost brightness/saturation to compensate for the 0.9 inversion */
html.dark-mode .tv-screen img {
	filter: brightness(1.11) saturate(1.11);
}

html.dark-mode .tv-screen .roku-fullscreen-bg {
	filter: brightness(1.11) saturate(1.11);
}

html.dark-mode .tv-screen .roku-audio-bg {
	filter: brightness(1.11) saturate(1.11);
}

html.dark-mode .preview-info-text p {
	color: #f5f5f5;
}

html.dark-mode .preview-info-text .preview-info-subtext {
	color: #d0d0d0;
}

/* ========================================
   EDIT MODE STYLES
   ======================================== */
.edit-interface {
	height: 100%;
	background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
	overflow-y: auto;
}

.edit-mode-container {
	padding: 20px;
	height: 100%;
}

.edit-mode-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.edit-mode-header-left {
	flex: 1;
}

.edit-mode-header h3 {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 5px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.edit-mode-header h3 i {
	color: #6c5ce7;
}

.edit-mode-header p {
	color: #888;
	font-size: 13px;
	margin: 0;
}

.edit-done-btn {
	background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
	border: none;
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
	white-space: nowrap;
}

.edit-done-btn:hover {
	background: linear-gradient(135deg, #00a085 0%, #009073 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.edit-done-btn i {
	font-size: 12px;
}

.edit-categories-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edit-category-row {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.edit-category-row:hover {
	background: rgba(255, 255, 255, 0.08);
}

.edit-category-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edit-category-reorder {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.edit-reorder-btn {
	width: 28px;
	height: 22px;
	background: rgba(108, 92, 231, 0.2);
	border: none;
	border-radius: 4px;
	color: #6c5ce7;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.edit-reorder-btn:hover:not(:disabled) {
	background: #6c5ce7;
	color: #fff;
}

.edit-reorder-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.edit-reorder-btn i {
	font-size: 10px;
}

.edit-category-info {
	flex: 1;
	min-width: 0;
}

.edit-category-name {
	display: block;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edit-category-count {
	display: block;
	color: #888;
	font-size: 12px;
	margin-top: 2px;
}

.edit-add-content-btn {
	background: rgba(108, 92, 231, 0.2);
	border: 1px solid rgba(108, 92, 231, 0.3);
	color: #a29bfe;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.edit-add-content-btn:hover {
	background: #6c5ce7;
	border-color: #6c5ce7;
	color: #fff;
}

.edit-add-content-btn i {
	font-size: 10px;
}

.edit-category-content {
	display: flex;
	gap: 10px;
	padding: 12px 15px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(108, 92, 231, 0.3) transparent;
}

.edit-category-content::-webkit-scrollbar {
	height: 4px;
}

.edit-category-content::-webkit-scrollbar-thumb {
	background: rgba(108, 92, 231, 0.3);
	border-radius: 2px;
}

.edit-content-item {
	flex-shrink: 0;
	width: 100px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.edit-content-item:hover {
	transform: scale(1.05);
}

.edit-content-thumb {
	width: 100px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #1a1a2e;
	margin-bottom: 6px;
	position: relative;
}

.edit-content-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.edit-remove-content-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	background: rgba(231, 76, 60, 0.9);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.2s ease;
	z-index: 10;
}

.edit-content-item:hover .edit-remove-content-btn {
	opacity: 1;
}

.edit-remove-content-btn:hover {
	background: #c0392b;
	transform: scale(1.1);
}

.edit-content-thumb .no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	font-size: 20px;
}

.edit-content-title {
	display: block;
	color: #ccc;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edit-no-content {
	color: #666;
	font-size: 12px;
	font-style: italic;
	padding: 10px 0;
}

.edit-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #666;
	text-align: center;
	padding: 40px;
}

.edit-empty-state i {
	font-size: 48px;
	margin-bottom: 15px;
	color: #444;
}

.edit-empty-state h3 {
	color: #888;
	font-size: 18px;
	margin: 0 0 8px 0;
}

.edit-empty-state p {
	font-size: 13px;
	margin: 0;
}

/* Content Picker Modal */
.edit-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.edit-modal {
	background: #1a1a2e;
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	max-height: 90%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.edit-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal-header h3 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.edit-modal-header h3 i {
	color: #6c5ce7;
}

.edit-modal-header h3 .modal-series-name {
	color: #a29bfe;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	vertical-align: bottom;
}

.edit-modal-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #888;
	font-size: 16px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.edit-modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.edit-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 15px 20px;
}

.edit-modal-search {
	margin-bottom: 15px;
}

.edit-modal-search input {
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
	transition: all 0.2s ease;
}

.edit-modal-search input:focus {
	border-color: #6c5ce7;
	background: rgba(108, 92, 231, 0.1);
}

.edit-modal-search input::placeholder {
	color: #666;
}

.edit-content-picker-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 300px;
	overflow-y: auto;
}

.edit-content-picker-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.edit-content-picker-item:hover {
	background: rgba(108, 92, 231, 0.15);
}

.edit-content-picker-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #6c5ce7;
	cursor: pointer;
}

.edit-picker-thumb {
	width: 60px;
	height: 34px;
	border-radius: 4px;
	overflow: hidden;
	background: #0d0d1a;
	flex-shrink: 0;
}

.edit-picker-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.edit-picker-thumb .no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	font-size: 14px;
}

.edit-picker-info {
	flex: 1;
	min-width: 0;
}

.edit-picker-title {
	display: block;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edit-picker-type {
	display: block;
	color: #888;
	font-size: 11px;
	text-transform: capitalize;
	margin-top: 2px;
}

.edit-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 15px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-modal-btn {
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

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

.edit-modal-btn.secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.edit-modal-btn.primary {
	background: #6c5ce7;
	border: 1px solid #6c5ce7;
	color: #fff;
}

.edit-modal-btn.primary:hover {
	background: #5a4bd1;
	border-color: #5a4bd1;
}

/* ========================================
   EPISODE EDIT MODE STYLES
   ======================================== */
.edit-episode-actions {
	margin-bottom: 15px;
}

.edit-add-episode-btn {
	background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
	border: none;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.edit-add-episode-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.edit-episodes-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.edit-episode-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	transition: all 0.2s ease;
	cursor: grab;
}

.edit-episode-row:hover {
	background: rgba(255, 255, 255, 0.08);
}

.edit-episode-row.dragging {
	opacity: 0.5;
	background: rgba(108, 92, 231, 0.2);
}

.edit-episode-drag-handle {
	color: #555;
	font-size: 14px;
	cursor: grab;
	padding: 5px;
}

.edit-episode-drag-handle:hover {
	color: #888;
}

.edit-episode-reorder {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.edit-episode-thumb {
	width: 80px;
	height: 45px;
	border-radius: 6px;
	overflow: hidden;
	background: #1a1a2e;
	flex-shrink: 0;
}

.edit-episode-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.edit-episode-thumb .no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	font-size: 18px;
}

.edit-episode-info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.edit-episode-number {
	background: rgba(108, 92, 231, 0.3);
	color: #a29bfe;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.edit-episode-title {
	flex: 1;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edit-episode-duration {
	color: #888;
	font-size: 12px;
	flex-shrink: 0;
}

.edit-remove-episode-btn {
	width: 28px;
	height: 28px;
	background: rgba(231, 76, 60, 0.2);
	border: none;
	border-radius: 50%;
	color: #e74c3c;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.edit-episode-row:hover .edit-remove-episode-btn {
	opacity: 1;
}

.edit-remove-episode-btn:hover {
	background: #e74c3c;
	color: #fff;
}

/* Live Feed Row Styles */
.roku-live-feed-row .roku-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roku-live-feed-row .live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roku-live-feed-row .live-indicator i {
    font-size: 8px;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.roku-live-card {
    position: relative;
}

.roku-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.roku-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

/* Add margin to first category row for spacing from description */
.roku-content-row:first-of-type {
    margin-top: 15px;
}

/* When live feed row is first, still add margin */
.roku-live-feed-row + .roku-content-row {
    margin-top: 10px;
}

/* ============================================
   VIDEO WATERMARK OVERLAY
   ============================================ */
.video-watermark {
    position: absolute;
    z-index: 10;
    padding: 10px;
    pointer-events: none;
}

.video-watermark img {
    display: block;
    opacity: 0.7;
    object-fit: contain;
}

/* Watermark Sizes */
.video-watermark.watermark-small img {
    max-width: 90px;
    max-height: 90px;
}

.video-watermark.watermark-medium img {
    max-width: 130px;
    max-height: 130px;
}

.video-watermark.watermark-large img {
    max-width: 180px;
    max-height: 180px;
}

/* Watermark Positions */
.video-watermark.watermark-top-left {
    top: 0;
    left: 0;
}

.video-watermark.watermark-top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.video-watermark.watermark-top-right {
    top: 0;
    right: 0;
}

.video-watermark.watermark-center-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.video-watermark.watermark-center-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-watermark.watermark-center-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.video-watermark.watermark-bottom-left {
    bottom: 15px;
    left: 0;
}

.video-watermark.watermark-bottom-center {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.video-watermark.watermark-bottom-right {
    bottom: 15px;
    right: 0;
}

/* ============================================
   INTRO VIDEO OVERLAY
   ============================================ */
.intro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.intro-video-overlay.fade-out {
    opacity: 0;
}

.intro-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.intro-video-skip {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.intro-video-skip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.intro-video-skip i {
    font-size: 12px;
}

/* ============================================
   POWER ON SCREEN
   ============================================ */
.power-on-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.power-on-overlay.powering-on {
    background: #fff;
    opacity: 0;
}

.power-on-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a3e 0%, #1a1a2e 100%);
    border: 3px solid #3a3a4e;
    color: #e74c3c;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.power-on-btn:hover {
    transform: scale(1.1);
    border-color: #e74c3c;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(231, 76, 60, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.power-on-btn:active {
    transform: scale(0.95);
}

.power-on-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   LIVE INFO OVERLAY
   ============================================ */
.live-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    z-index: 15;
    pointer-events: none;
}

.live-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

.live-info-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 70%;
}

.live-info-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 50%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   PRICED CONTENT - Store-only indicators
   ======================================== */
.roku-content-card.priced-content {
    position: relative;
}

.roku-content-card.priced-content .roku-card-thumbnail {
    opacity: 0.35;
}

.roku-content-card.priced-content .roku-card-thumbnail img,
.roku-content-card.priced-content .roku-card-thumbnail .no-thumbnail {
    filter: grayscale(60%);
}

.priced-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    font-size: 7px;
    padding: 5px 7px;
    border-radius: 4px;
    text-align: center;
    z-index: 5;
    width: 85%;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    box-sizing: border-box;
}

.priced-badge i {
    margin-right: 3px;
    font-size: 8px;
}
