.streams-page {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	width: 100%;
}

.streams-player {
	background: #fff;
	border: 1px solid #d9e1ea;
	border-radius: 6px;
	overflow: hidden;
}

.streams-player__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid #e6ebf1;
}

.streams-player__eyebrow {
	color: #687789;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.streams-player__title {
	margin: 2px 0 0;
	font-size: 18px;
	line-height: 1.25;
}

.streams-player__meta {
	color: #687789;
	font-size: 13px;
	line-height: 1.4;
}

.streams-player__body {
	background: #050505;
}

.streams-player__body--loading {
	display: grid;
	min-height: 180px;
	place-items: center;
}

.streams-player__body--loading::after {
	width: 32px;
	height: 32px;
	content: '';
	border: 3px solid rgb(255 255 255 / 30%);
	border-top-color: #fff;
	border-radius: 50%;
	animation: streams-player-spin 0.8s linear infinite;
}

.streams-player__error {
	padding: 32px 16px;
	color: #fff;
	text-align: center;
}

@keyframes streams-player-spin {
	to {
		transform: rotate(360deg);
	}
}

.streams-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	background: #f7f9fb;
	border: 1px solid #dfe6ee;
	border-radius: 6px;
}

.streams-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(150px, 1fr));
	gap: 10px;
	flex: 1;
}

.streams-filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	color: #2f3b49;
	font-size: 13px;
	font-weight: 600;
}

.streams-filter .form-control {
	height: 34px;
}

.streams-view-toggle {
	white-space: nowrap;
}

.streams-empty {
	padding: 18px;
	color: #687789;
	text-align: center;
	background: #fff;
	border: 1px dashed #c8d2de;
	border-radius: 6px;
}

.streams-match-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.streams-match-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	text-align: left;
	background: #fff;
	border: 1px solid #d9e1ea;
	border-radius: 6px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.streams-match-card:hover,
.streams-match-card:focus {
	border-color: #2b7bbb;
	box-shadow: 0 0 0 2px rgba(43, 123, 187, 0.16);
	outline: none;
}

.streams-match-card.is-selected {
	border-color: #1f6fb2;
	box-shadow: 0 0 0 2px rgba(31, 111, 178, 0.24);
}

.streams-match-card__preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: #111820;
	color: #fff;
}

.streams-match-card__preview::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.35)),
		linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 45%);
	pointer-events: none;
}

.streams-match-card__thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.streams-match-card__status {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 7px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	background: #1f6fb2;
	border-radius: 3px;
}

.streams-match-card__live-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	flex: 0 0 auto;
	background: #e21d2f;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.streams-match-card__status--locked {
	background: #8a5a11;
}

.streams-match-card__status--scheduled {
	background: #4f6277;
}

.streams-match-card__status--unavailable {
	background: #8b2f2f;
}

.streams-match-card__status--vod {
	background: #5b4a91;
}

.streams-match-card__play {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: 50%;
}

.streams-match-card__body {
	padding: 10px 11px;
}

.streams-match-card__teams {
	color: #1f2933;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.streams-match-card__meta {
	margin-top: 4px;
	color: #687789;
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.streams-page--list .streams-match-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.streams-page--list .streams-match-card {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: stretch;
}

.streams-page--list .streams-match-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.streams-page--list .streams-match-card__preview {
	min-width: 0;
	min-height: 94px;
	aspect-ratio: auto;
}

@media (max-width: 767px) {
	.streams-player__header,
	.streams-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.streams-filters {
		grid-template-columns: 1fr;
	}

	.streams-view-toggle {
		display: flex;
	}

	.streams-view-toggle .btn {
		flex: 1;
	}

	.streams-page--list .streams-match-card {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.streams-page--list .streams-match-card__preview {
		min-height: 82px;
	}

	.streams-page--list .streams-match-card__status {
		max-width: calc(100% - 16px);
		font-size: 10px;
		white-space: normal;
	}

	.streams-page--list .streams-match-card__play {
		width: 36px;
		height: 36px;
	}
}

.streams-match-card.streams-match-card--filtered-out {
	display: none;
}
