/* Canlı Sonuçlar — kompakt modern live scores */

.hk-front .hk-live-section {
	background: var(--hk-bg, #f4f6fb);
}

.hk-front .hk-live-section.section-space-default {
	padding-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.hk-front .hk-live__panel {
	background: var(--hk-surface, #fff);
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 18px;
	box-shadow: var(--hk-shadow, 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06));
	overflow: hidden;
}

.hk-front .hk-live__head {
	align-items: center;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.hk-front .hk-live__head-main {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
}

.hk-front .hk-live__title {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
}

.hk-front .hk-live__updated {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 10px;
	font-weight: 600;
	padding: 0.28rem 0.6rem;
	white-space: nowrap;
}

.hk-front .hk-live__updated.is-live {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(239, 68, 68, 0.35);
}

.hk-front .hk-live__updated.is-live::before {
	animation: hk-live-pulse 1.4s ease-in-out infinite;
	background: #ef4444;
	border-radius: 50%;
	content: "";
	display: inline-block;
	height: 6px;
	margin-right: 0.35rem;
	vertical-align: middle;
	width: 6px;
}

@keyframes hk-live-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.85); }
}

.hk-front .hk-live__toolbar {
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	display: grid;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
}

.hk-front .hk-live__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hk-front .hk-live__quick-btn {
	background: #f8fafc;
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 999px;
	color: #475569;
	cursor: pointer;
	flex: 1 1 auto;
	font-size: 11px;
	font-weight: 700;
	min-width: 0;
	padding: 0.38rem 0.65rem;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hk-front .hk-live__quick-btn:hover,
.hk-front .hk-live__quick-btn.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}

.hk-front .hk-live__date-row {
	align-items: center;
	display: flex;
	gap: 0.45rem;
}

.hk-front .hk-live__date {
	background: #fff;
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 10px;
	color: #0f172a;
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 600;
	min-height: 36px;
	min-width: 0;
	padding: 0.4rem 0.6rem;
}

.hk-front .hk-live__date:focus {
	border-color: #be123c;
	box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
	outline: none;
}

.hk-front .hk-live__btn {
	background: linear-gradient(145deg, #e11d48 0%, #be123c 100%);
	border: none;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(225, 29, 72, 0.2);
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	min-height: 36px;
	padding: 0.4rem 0.85rem;
	white-space: nowrap;
}

.hk-front .hk-live__summary {
	background: #f8fafc;
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	color: #64748b;
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 600;
	gap: 0.45rem 0.85rem;
	padding: 0.45rem 0.75rem;
}

.hk-front .hk-live__summary strong {
	color: #0f172a;
}

.hk-front .hk-live__summary-live {
	color: #dc2626;
}

.hk-front .hk-live__loading {
	align-items: center;
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	justify-content: center;
	padding: 1.5rem 0.75rem;
}

.hk-front .hk-live__loading.is-visible {
	display: flex;
}

.hk-front .hk-live__spinner {
	animation: hk-live-spin 0.8s linear infinite;
	border: 2px solid #e2e8f0;
	border-radius: 50%;
	border-top-color: #be123c;
	height: 28px;
	width: 28px;
}

@keyframes hk-live-spin {
	to { transform: rotate(360deg); }
}

.hk-front .hk-live__loading-text {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
}

.hk-front .hk-live__content {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.55rem;
}

.hk-front .hk-live__empty,
.hk-front .hk-live__error {
	align-items: center;
	background: #f8fafc;
	border: 1px dashed var(--hk-border, #e2e8f0);
	border-radius: 12px;
	color: #64748b;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	justify-content: center;
	min-height: 120px;
	padding: 1rem;
	text-align: center;
}

.hk-front .hk-live__empty-title,
.hk-front .hk-live__error-title {
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 800;
}

.hk-front .hk-live__league {
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
}

.hk-front .hk-live__league-head {
	align-items: center;
	background: #f1f5f9;
	border-bottom: 1px solid var(--hk-border, #e2e8f0);
	color: #0f172a;
	display: flex;
	font-size: 11px;
	font-weight: 800;
	gap: 0.45rem;
	justify-content: space-between;
	padding: 0.42rem 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hk-front .hk-live__league-count {
	background: #fff;
	border: 1px solid var(--hk-border, #e2e8f0);
	border-radius: 999px;
	color: #64748b;
	font-size: 10px;
	font-weight: 700;
	padding: 0.12rem 0.45rem;
	text-transform: none;
}

.hk-front .hk-live__matches {
	display: flex;
	flex-direction: column;
}

.hk-front .hk-live__match {
	border-top: 1px solid #f1f5f9;
	transition: background 0.12s ease;
}

.hk-front .hk-live__match:first-child {
	border-top: none;
}

.hk-front .hk-live__match:hover {
	background: #fafafa;
}

.hk-front .hk-live__match-row {
	align-items: center;
	display: grid;
	gap: 0.35rem 0.45rem;
	grid-template-columns: 58px minmax(0, 1fr) 46px minmax(0, 1fr);
	grid-template-areas: "meta home score away";
	padding: 0.42rem 0.55rem;
}

.hk-front .hk-live__meta {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	grid-area: meta;
	min-width: 0;
}

.hk-front .hk-live__badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.2;
	padding: 0.14rem 0.38rem;
	text-transform: uppercase;
	width: fit-content;
}

.hk-front .hk-live__match.is-live .hk-live__badge {
	background: #fef2f2;
	color: #dc2626;
}

.hk-front .hk-live__match.is-finished .hk-live__badge {
	background: #f1f5f9;
	color: #64748b;
}

.hk-front .hk-live__match.is-upcoming .hk-live__badge {
	background: #eff6ff;
	color: #1d4ed8;
}

.hk-front .hk-live__stage {
	color: #94a3b8;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hk-front .hk-live__match.is-live .hk-live__stage {
	color: #dc2626;
	font-weight: 700;
}

.hk-front .hk-live__team {
	color: #0f172a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hk-front .hk-live__team.is-home {
	grid-area: home;
	text-align: right;
}

.hk-front .hk-live__team.is-away {
	grid-area: away;
	text-align: left;
}

.hk-front .hk-live__score {
	border-radius: 8px;
	color: #fff;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	grid-area: score;
	justify-self: center;
	line-height: 1;
	min-width: 40px;
	padding: 0.28rem 0.38rem;
	text-align: center;
}

.hk-front .hk-live__match.is-live .hk-live__score {
	background: #dc2626;
}

.hk-front .hk-live__match.is-finished .hk-live__score {
	background: #475569;
}

.hk-front .hk-live__match.is-upcoming .hk-live__score {
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
}

@media (min-width: 768px) {
	.hk-front .hk-live__toolbar {
		align-items: center;
		grid-template-columns: 1fr auto;
	}

	.hk-front .hk-live__quick {
		flex-wrap: nowrap;
	}

	.hk-front .hk-live__quick-btn {
		flex: 0 0 auto;
	}

	.hk-front .hk-live__date-row {
		justify-content: flex-end;
	}

	.hk-front .hk-live__date {
		flex: 0 1 170px;
	}

	.hk-front .hk-live__matches {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hk-front .hk-live__match {
		border-top: none;
		border-right: 1px solid #f1f5f9;
	}

	.hk-front .hk-live__match:nth-child(-n+2) {
		border-top: none;
	}

	.hk-front .hk-live__match:nth-child(odd) {
		border-right: 1px solid #f1f5f9;
	}

	.hk-front .hk-live__match:nth-child(even) {
		border-right: none;
	}

	.hk-front .hk-live__match:nth-child(n+3) {
		border-top: 1px solid #f1f5f9;
	}
}

@media (max-width: 767px) {
	.hk-front .hk-live-section.section-space-default {
		padding-bottom: 0.75rem;
		padding-top: 0.75rem;
	}

	.hk-front .hk-live-section .container {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.hk-front .hk-live__panel {
		border-left: none;
		border-radius: 14px;
		border-right: none;
	}

	.hk-front .hk-live__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.4rem;
		padding: 0.75rem 0.85rem;
	}

	.hk-front .hk-live__title {
		font-size: 1rem;
	}

	.hk-front .hk-live__updated {
		font-size: 9px;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.hk-front .hk-live__toolbar {
		background: #fff;
		gap: 0.45rem;
		padding: 0.55rem 0.65rem;
		position: sticky;
		top: 0;
		z-index: 5;
	}

	.hk-front .hk-live__quick {
		display: grid;
		gap: 0.35rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.hk-front .hk-live__quick-btn {
		font-size: 12px;
		min-height: 38px;
		padding: 0.45rem 0.35rem;
	}

	.hk-front .hk-live__date-row {
		width: 100%;
	}

	.hk-front .hk-live__date {
		font-size: 14px;
		min-height: 40px;
	}

	.hk-front .hk-live__btn {
		min-height: 40px;
		min-width: 72px;
		padding-inline: 1rem;
	}

	.hk-front .hk-live__summary {
		font-size: 10px;
		gap: 0.35rem 0.55rem;
		justify-content: center;
		padding: 0.4rem 0.55rem;
	}

	.hk-front .hk-live__summary > span {
		background: #fff;
		border: 1px solid var(--hk-border, #e2e8f0);
		border-radius: 999px;
		padding: 0.18rem 0.5rem;
	}

	.hk-front .hk-live__content {
		gap: 0.45rem;
		padding: 0.45rem;
	}

	.hk-front .hk-live__league {
		border-radius: 10px;
	}

	.hk-front .hk-live__league-head {
		font-size: 10px;
		padding: 0.38rem 0.55rem;
	}

	.hk-front .hk-live__league-head > span:first-child {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hk-front .hk-live__match.is-live {
		background: linear-gradient(90deg, rgba(254, 242, 242, 0.65) 0%, transparent 100%);
	}

	.hk-front .hk-live__match-row {
		gap: 0.25rem 0.4rem;
		grid-template-areas:
			"home score away"
			"meta meta meta";
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		padding: 0.5rem 0.55rem 0.42rem;
	}

	.hk-front .hk-live__meta {
		align-items: center;
		flex-direction: row;
		gap: 0.35rem;
		grid-area: meta;
		justify-content: center;
	}

	.hk-front .hk-live__team.is-home {
		grid-area: home;
		text-align: right;
	}

	.hk-front .hk-live__score {
		align-self: center;
		font-size: 13px;
		grid-area: score;
		min-width: 44px;
		padding: 0.32rem 0.42rem;
	}

	.hk-front .hk-live__team.is-away {
		grid-area: away;
		text-align: left;
	}

	.hk-front .hk-live__team {
		font-size: 12px;
		line-height: 1.15;
	}

	.hk-front .hk-live__stage {
		font-size: 10px;
		max-width: 220px;
	}

	.hk-front .hk-live__badge {
		font-size: 10px;
		padding: 0.18rem 0.45rem;
	}
}
