/* Общие стили */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}

/* Шапка */
header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	padding: 1rem 0;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

header h1 {
	text-align: center;
	font-size: 2rem;
}

header a {
	color: #4a5568;
	text-decoration: none;
	transition: color 0.3s ease;
}

header a:hover {
	color: #667eea;
}

/* Основной контент */
main {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.container,
.room-container {
	background: white;
	border-radius: 15px;
	padding: 2rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Карточки комнат */
.rooms-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.room-card {
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.3s ease;
	background: #f7fafc;
}

.room-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border-color: #667eea;
}

.room-card h3 {
	color: #2d3748;
	margin-bottom: 1rem;
}

.protected {
	color: #e53e3e;
	font-weight: bold;
}

.public {
	color: #38a169;
	font-weight: bold;
}

.join-btn {
	display: inline-block;
	background: #667eea;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 25px;
	text-decoration: none;
	margin-top: 1rem;
	transition: all 0.3s ease;
}

.join-btn:hover {
	background: #5a67d8;
	transform: scale(1.05);
}

/* Видео контейнер */
#video-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 2rem 0;
}

.video-wrapper {
	position: relative;
	background: #1a202c;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.video-label {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.9rem;
}

/* Кнопки управления */
#controls {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}

.btn-success {
	background: #48bb78;
	color: white;
}

.btn-success:hover {
	background: #38a169;
}

.btn-danger {
	background: #f56565;
	color: white;
}

.btn-danger:hover {
	background: #e53e3e;
}

.btn-secondary {
	background: #a0aec0;
	color: white;
}

.btn-secondary:hover {
	background: #718096;
}

.btn:disabled {
	background: #cbd5e0;
	cursor: not-allowed;
	transform: none !important;
}

/* Статус */
.status-box {
	background: #edf2f7;
	border: 2px solid #cbd5e0;
	border-radius: 10px;
	padding: 1rem;
	text-align: center;
	margin: 1rem 0;
	font-weight: 600;
}

/* Информационные блоки */
.info-box,
.instruction {
	background: #f7fafc;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.5rem;
	margin: 2rem 0;
}

.info-box h3,
.instruction h3 {
	color: #2d3748;
	margin-bottom: 1rem;
}

.info-box ol,
.instruction ul {
	margin-left: 1.5rem;
}

.info-box li,
.instruction li {
	margin-bottom: 0.5rem;
}

.no-rooms {
	text-align: center;
	padding: 3rem;
	background: #f7fafc;
	border: 2px dashed #cbd5e0;
	border-radius: 10px;
	margin: 2rem 0;
}

.admin-link {
	display: inline-block;
	background: #667eea;
	color: white;
	padding: 1rem 2rem;
	border-radius: 25px;
	text-decoration: none;
	margin-top: 1rem;
	font-weight: 600;
}

.admin-link:hover {
	background: #5a67d8;
}

/* Подвал */
footer {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	text-align: center;
	padding: 1.5rem;
	margin-top: 3rem;
	color: #4a5568;
}

/* Адаптивность */
@media (max-width: 768px) {
	#video-container {
		grid-template-columns: 1fr;
	}

	.rooms-list {
		grid-template-columns: 1fr;
	}

	#controls {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 300px;
	}

	header h1 {
		font-size: 1.5rem;
	}
}