/* Block Add/Remove Admin */
.block-admin-card {
	background: #fff3e0;
	border: 2px solid #ff9800;
	margin-top: 40px;
	margin-bottom: 20px;
}
.block-admin-card h3 {
	color: #ff9800;
	text-align: center;
	margin-bottom: 18px;
}
.block-row {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	gap: 10px;
}
.block-name-input {
	font-size: 1em;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #ff9800;
	width: 120px;
}
.remove-block-btn {
	background: #ff9800;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 4px 12px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}
.remove-block-btn:hover {
	background: #e65100;
}
.block-btn {
	background: linear-gradient(90deg, #ff9800 60%, #fff3e0 100%);
	color: #fff;
	border: 1px solid #ff9800;
	margin-top: 10px;
	font-weight: 600;
	border-radius: 4px;
	padding: 8px 18px;
	cursor: pointer;
}
/* Responsive Design */
@media (max-width: 900px) {
	.results-grid, #history-section {
		max-width: 100vw;
		width: 100vw;
		padding: 0 2vw;
	}
	.admin-card, .yellow-admin-card, .history-admin-card {
		min-width: unset;
		max-width: 98vw;
		width: 98vw;
		padding: 10px 2vw;
	}
	.game-block, .yellow-block {
		font-size: 0.95em;
		min-width: 0;
		padding: 8px 0 8px 0;
	}
	#history-table th, #history-table td {
		font-size: 0.95em;
		padding: 6px 0;
	}
}
@media (max-width: 600px) {
	.results-grid, #history-section {
		max-width: 100vw;
		width: 100vw;
		padding: 0 1vw;
	}
	.results-row {
		flex-direction: column;
		gap: 0;
	}
	.game-block, .yellow-block {
		margin: 8px 0;
		width: 98vw;
		min-width: 0;
		font-size: 0.92em;
	}
	#history-table th, #history-table td {
		font-size: 0.92em;
		padding: 5px 0;
	}
	.header, .sub-header {
		font-size: 1.3em;
		padding: 10px 0;
	}
	.history-title {
		font-size: 1.1em;
		padding: 8px 0 6px 0;
	}
}
#history-table th:first-child, #history-table td:first-child {
	width: 48px;
	min-width: 32px;
	max-width: 60px;
	padding-left: 0;
	padding-right: 0;
}
/* History Admin Panel */
.history-admin-card {
	background: #e3f2fd;
	border: 2px solid #039be5;
	margin-top: 40px;
}
.history-admin-card h3 {
	color: #039be5;
	text-align: center;
	margin-bottom: 18px;
}
.history-btn {
	background: linear-gradient(90deg, #039be5 60%, #e3f2fd 100%);
	color: #fff;
	border: 1px solid #039be5;
	margin-top: 10px;
}
#historyInputs label {
	display: inline-block;
	margin: 0 10px 10px 0;
	font-size: 1em;
	color: #039be5;
	font-weight: 600;
}
#historyInputs input {
	font-size: 1em;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #039be5;
	width: 90px;
	margin-left: 4px;
}
/* History Table Styles */
#history-section {
	margin: 40px auto 0 auto;
	max-width: 98vw;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 12px #0002;
	padding: 0 0 30px 0;
}
.history-title {
	background: #039be5;
	color: #fff;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
	margin: 0 0 0 0;
	padding: 12px 0 10px 0;
	letter-spacing: 0.04em;
}
.history-table-wrapper {
	overflow-x: auto;
	margin: 0 auto;
	width: 98%;
}
#history-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
	font-size: 1.1em;
	background: #fff;
}
#history-table th, #history-table td {
	border: 2px solid #222;
	padding: 8px 0;
	text-align: center;
}
#history-table th {
	background: #ffb300;
	color: #222;
	font-size: 1.1em;
	font-weight: bold;
}
#history-table .history-time-row th {
	background: #e53935;
	color: #fff;
	font-size: 1.1em;
	font-weight: bold;
}
#history-table tr:nth-child(even) td {
	background: #f3eaff;
}
#history-table tr:nth-child(odd) td {
	background: #fff;
}
body { font-family: Arial, sans-serif; background: #fff; margin: 0; padding: 0; text-align: center; }
.header { background: #c00; color: #fff; font-size: 2.5em; padding: 20px 0; letter-spacing: 0.1em; }
.sub-header { background: #065a4e; color: #fff; font-size: 1.5em; padding: 10px 0; }
.date-time { color: #c2185b; font-size: 1.2em; margin: 20px 0 10px 0; }
.live-title { font-weight: bold; font-size: 1.2em; margin: 10px 0; }
.live-sub { font-size: 1em; color: #222; margin-bottom: 20px; }
.results { font-size: 2em; margin: 20px 0; }
.red { color: #e60000; font-weight: bold; }
.green { color: #009900; font-weight: bold; }

.game-block {
	margin-bottom: 28px;
}
.results-grid {
	display: flex;
	flex-direction: column;
	gap: 0px;
	width: 100%;
	max-width: 950px;
	margin: 0 auto;
}
.results-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 0px;
}
.yellow-block {
	background: #fff9c4;
	border: 1px solid #000;
	min-height: 120px;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	padding: 12px 0 10px 0;
	box-sizing: border-box;
	margin: 8px;
	border-radius: 10px;
	box-shadow: 0 2px 8px #0001;
}
.game-title {
	color: #1a237e;
	font-weight: bold;
	font-size: 1em;
	margin-bottom: 2px;
	text-transform: uppercase;
}
.game-time {
	color: #e60000;
	font-size: 0.6em;
	margin-bottom: 2px;
}
.game-kal-aaj {
	font-size: 1em;
	color: #222;
	margin-bottom: 2px;
}
.game-results {
	font-size: 1.1em;
	margin-top: 2px;
	display: flex;
	align-items: center;
}
.kal {
	color: #222;
	font-weight: bold;
	margin-right: 8px;
}
.aaj {
	color: #0d47a1;
	font-weight: bold;
	margin-left: 8px;
}
.arrow-anim {
	display: flex;
	align-items: center;
	margin: 0 4px;
}
 .arrow-bg {
	display: inline-block;
	color: #e53935;
	background: none;
	font-size: 1.5em;
	font-weight: bold;
	animation: arrow-move 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
	box-shadow: none;
}
@keyframes arrow-move {
	0% { transform: translateX(0); }
	100% { transform: translateX(10px); }
}


/* Admin Panel Styles */
.admin-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}
.admin-card {
	background: #fff;
	padding: 40px 32px 32px 32px;
	border-radius: 16px;
	box-shadow: 0 4px 24px #0002;
	min-width: 340px;
	max-width: 95vw;
	margin-top: 30px;
}
.admin-card .header {
	background: none;
	color: #065a4e;
	font-size: 2em;
	margin-bottom: 24px;
	padding: 0;
	letter-spacing: 0.05em;
}
.yellow-admin-card {
	background: #fffde7;
	border: 2px solid #ffe082;
	margin-top: 40px;
}
.yellow-admin-card h3 {
	color: #bfa100;
	text-align: center;
	margin-bottom: 18px;
}
.fixed-form-group {
	background: #fff9c4;
	border: 1px solid #ffe082;
	border-radius: 8px;
	padding: 12px 18px 8px 18px;
	margin-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	justify-content: space-between;
}
.fixed-form-group label {
	font-size: 1em;
	color: #bfa100;
	font-weight: 600;
	margin-right: 10px;
}
.fixed-form-group input {
	font-size: 1em;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #bfa100;
	width: 110px;
}
.yellow-btn {
	background: linear-gradient(90deg, #ffe082 60%, #fffde7 100%);
	color: #bfa100;
	border: 1px solid #bfa100;
	margin-top: 10px;
}
.form-group {
	margin-bottom: 22px;
}
.form-group label {
	display: block;
	font-size: 1.1em;
	color: #065a4e;
	margin-bottom: 6px;
	font-weight: 600;
}
.form-group input {
	width: 100%;
	padding: 10px 12px;
	font-size: 1.1em;
	border: 1px solid #b2bec3;
	border-radius: 6px;
	outline: none;
	transition: border 0.2s;
}
.form-group input:focus {
	border: 1.5px solid #065a4e;
}
.admin-btn {
	width: 100%;
	padding: 12px 0;
	font-size: 1.1em;
	background: linear-gradient(90deg, #065a4e 60%, #0abde3 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	margin-top: 10px;
	box-shadow: 0 2px 8px #0001;
	transition: background 0.2s;
}
.admin-btn:hover {
	background: linear-gradient(90deg, #0abde3 0%, #065a4e 100%);
}
#status {
	margin-top: 18px;
	font-size: 1.1em;
	color: #065a4e;
	text-align: center;
}