/* bracket.css — стили для bracket.html */

.bracket-table {
	width: 100%;
	border-collapse: collapse;
	margin: 2em auto;
	background: #232323;
	border: 2px solid #bfa76a;
	border-radius: 12px;
	overflow: hidden;
}

.bracket-table th {
	background: #bfa76a;
	color: #232323;
	padding: 15px 10px;
	text-align: center;
	font-weight: bold;
	font-size: 16px;
	border-bottom: 2px solid #bfa76a;
}

.bracket-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #393939;
	vertical-align: middle;
	text-align: center;
}

.bracket-table tr:hover {
	background: #393939;
}

.participant {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 5px;
	border-radius: 8px;
}

.participant:hover {
	background: #bfa76a;
	color: #232323;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #bfa76a;
}

.participant-name {
	font-weight: bold;
	color: #ffe7a0;
}

.participant:hover .participant-name {
	color: #232323;
}

.match-cell {
	background: #393939;
	border-radius: 8px;
	padding: 10px;
	margin: 5px 0;
	border: 1px solid #bfa76a;
}

.match-number {
	font-size: 12px;
	color: #bfa76a;
	margin-bottom: 5px;
}

.round-header {
	background: linear-gradient(135deg, #bfa76a, #ffe7a0);
	color: #232323;
	font-weight: bold;
	text-align: center;
	padding: 15px;
	font-size: 18px;
}

.loading {
	text-align: center;
	padding: 2em;
	color: #ffe7a0;
	font-size: 18px;
}

.error {
	text-align: center;
	padding: 2em;
	color: #ff6b6b;
	font-size: 18px;
}

.empty-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	background: #2d2d2d;
	border: 1px dashed #bfa76a;
	border-radius: 8px;
	color: #bfa76a;
	font-size: 28px;
	font-weight: bold;
	margin: 5px 0;
}

.bracket-scroll {
	overflow-x: auto;
	max-width: 100%;
}
.bracket-table {
	min-width: 900px;
}

@media (max-width: 768px) {
	.bracket-table {
		font-size: 12px;
	}
	.avatar {
		width: 30px;
		height: 30px;
	}
	.participant {
		gap: 5px;
	}
	.bracket-table th,
	.bracket-table td {
		padding: 5px;
	}
}

.modal-bg {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0; top: 0; width: 100vw; height: 100vh;
	background: rgba(0,0,0,0.6);
	align-items: center;
	justify-content: center;
	border-radius: 0;
}
.modal-bg.active { display: flex; }
.modal-window {
	background: #232323;
	border: 2px solid #bfa76a;
	border-radius: 0;
	padding: 32px 24px 24px 24px;
	min-width: 280px;
	max-width: 90vw;
	box-shadow: 0 8px 32px rgba(0,0,0,0.4);
	text-align: center;
	position: relative;
}
.modal-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #bfa76a;
	margin-bottom: 16px;
}
.modal-nick {
	font-size: 1.5em;
	color: #ffe7a0;
	font-family: inherit;
	margin-bottom: 16px;
}
.modal-tg {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 18px;
	background: #229ED9;
	color: #fff;
	border-radius: 8px;
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	transition: background 0.2s;
}
.modal-tg:hover { background: #157bb8; }
.modal-smule {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 18px;
	background: #7c3aed;
	color: #fff;
	border-radius: 8px;
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	transition: background 0.2s;
	margin-left: 8px;
}
.modal-smule:hover { background: #5b21b6; }
.modal-close {
	position: absolute;
	right: 4px;
	top: 4px;
	font-size: 1.7em;
	color: #ffe7a0;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	filter: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	z-index: 10;
	transition: color 0.2s;
	padding: 0;
	line-height: 1;
}
.modal-close:hover {
	color: #ff6b6b;
} 