* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: #f6f7f9;
	color: #171717;
	font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
	font: inherit;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.header h1 {
	margin: 0 0 8px;
}

.header p {
	margin: 0;
	color: #666;
}

.exportButton {
	background: #111;
	color: white;
	border: 0;
	border-radius: 8px;
	padding: 12px 20px;
	cursor: pointer;
}

.exportButton:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.toolbar {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.toolbar input {
	flex: 1;
	min-width: 220px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 11px 14px;
	background: white;
}

.toolbar select,
.toolbar button {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
}

.summary {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
}

.channels {
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
}

.channel {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.channel:last-child {
	border-bottom: 0;
}

.channel:hover {
	background: #fafafa;
}

.channel.archived {
	opacity: 0.5;
	cursor: not-allowed;
}

.channelInfo {
	flex: 1;
	min-width: 0;
}

.channelName {
	font-weight: 600;
	margin-bottom: 7px;
}

.channelInfo p {
	margin: 8px 0 0;
	color: #666;
	font-size: 13px;
}

.badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	padding: 4px 7px;
	border-radius: 20px;
	background: #eee;
}

.private {
	background: #fff1dc;
}

.public {
	background: #e8f4ff;
}

.source {
	background: #eee;
}

.archivedBadge {
	background: #ffe8e8;
}

.channelId {
	color: #999;
	font-size: 12px;
	font-family: monospace;
}

.error {
	background: #ffe8e8;
	border: 1px solid #ffc8c8;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.warning {
	background: #fff8e5;
	border: 1px solid #f0d889;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.empty {
	padding: 30px;
	color: #777;
	text-align: center;
}

@media (max-width: 700px) {
	.header {
		align-items: stretch;
		flex-direction: column;
	}

	.exportButton {
		width: 100%;
	}

	.channelId {
		display: none;
	}
}

.exportProgressBox {
	background: white;
	border: 1px solid #e1e4e8;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.progressHeader {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 14px;
}

.progressChannel {
	margin-top: 5px;
	color: #666;
	font-size: 14px;
}

.progressTrack {
	width: 100%;
	height: 12px;
	background: #e9ecef;
	border-radius: 20px;
	overflow: hidden;
}

.progressBar {
	height: 100%;
	background: #111;
	border-radius: 20px;
	transition: width 0.4s ease;
}

.progressDetails {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 12px;
	font-size: 13px;
	color: #666;
}

.downloadButton {
	display: inline-block;
	margin-top: 18px;
	background: #111;
	color: white;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 8px;
	font-weight: 600;
}

.downloadButton:hover {
	opacity: 0.85;
}
.fileMode {
	background: #eef8f0;
	border: 1px solid #b8dfbf;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}
