/* Base Styles */
:root {
	--bg-color: #0A0A0A;
	--surface-color: #111111;
	--border-color: #222222;
	--text-primary: #FFFFFF;
	--text-secondary: #888888;
	--hover-surface: #1A1A1A;
	--active-bg: #FFFFFF;
	--active-text: #000000;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	color: var(--text-primary);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* App Container */
.live-channel-app {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	flex: 1;
}

/* Header Slogan */
.header-slogan {
	padding: 20px 20px 0;
	text-align: center;
	color: var(--text-primary);
	font-size: 1.1rem;
}

.header-slogan p {
	margin: 0 0 10px 0;
}

.header-slogan p:last-child {
	margin-bottom: 0;
}

/* Channel Selector */
.channel-selector {
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
	gap: 15px;
	scrollbar-width: none; /* Firefox */
	border-bottom: 1px solid var(--border-color);
}
.channel-selector::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Edge */
}

.channel-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: var(--surface-color);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
	font-size: 16px;
	outline: none;
}

.channel-btn:hover {
	background-color: var(--hover-surface);
}

.channel-btn.active {
	background-color: var(--active-bg);
	color: var(--active-text);
	border-color: var(--active-bg);
}

.channel-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
}

/* Player Container */
.player-container {
	padding: 20px;
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#live-player {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Error State */
.player-error {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(10, 10, 10, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
	text-align: center;
	padding: 20px;
	z-index: 10;
}

.player-error[hidden] {
	display: none !important;
}

.player-error p {
	font-size: 1.5rem;
	margin: 0 0 10px 0;
	font-weight: 600;
}

.player-error span {
	font-size: 1rem;
	color: var(--text-secondary);
}

/* Empty State Message */
.empty-state-message {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-secondary);
	font-size: 1.2rem;
}
