/*
   LuckyBet777 — Watch Live card
   The video-style card for a cnf_watchlive row: admin-uploaded thumbnail
   (plain gradient when none), play button, title and subtitle. Shared by
   the home page rail (pages/home.css) and the /watch-live listing
   (pages/watchlive-list.css), so the two can never drift apart. Layout
   (rail vs grid) belongs to each page.
*/

.watch-live-card {
	position: relative;
	background: linear-gradient(135deg, #1a0533 0%, #0a0a26 100%);
	border-radius: 0.875rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.watch-live-frame {
	position: relative;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.watch-live-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.watch-live-play {
	position: relative;
	z-index: 1;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffd44a, #e8a317);
	border: 0.1875rem solid rgba(var(--gold-rgb), 0.3);
	color: #0a0a0d;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

/* Live now: red ring + LIVE tag on the thumbnail (design: live-page-categories). */
.watch-live-card.is-live {
	outline: 0.0625rem solid rgba(var(--red-rgb), 0.55);
	outline-offset: -0.0625rem;
}

.watch-live-live-badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
	padding: 0.1875rem 0.5rem;
	border-radius: 0.3125rem;
	background: var(--red);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.watch-live-live-dot {
	width: 0.3125rem;
	height: 0.3125rem;
	border-radius: 50%;
	background: #fff;
	animation: live-pulse 1.4s ease-in-out infinite;
}

.watch-live-info {
	padding: 0.625rem 0.75rem;
	background: rgba(0, 0, 0, 0.4);
}

.watch-live-card-title {
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 0.125rem;
	transition: color 0.25s ease;
}

.watch-live-sub {
	color: var(--gold-text);
	font-size: 0.625rem;
}

/* ── Hover / keyboard focus ──
   Everything stays inside the card: the home rail scrolls on x, which clips
   overflow on y too, so a lift or outer glow would be cut off. */
.watch-live-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0 0 0 0.0938rem rgba(var(--gold-rgb), 0.85);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.watch-live-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

@media (hover: hover) {
	.watch-live-card:hover .watch-live-thumb {
		transform: scale(1.07);
		filter: brightness(1.08);
	}

	.watch-live-card:hover .watch-live-frame::after,
	.watch-live-card:hover::after {
		opacity: 1;
	}

	.watch-live-card:hover .watch-live-play {
		transform: scale(1.15);
		box-shadow: 0 0 0 0.375rem rgba(var(--gold-rgb), 0.18), 0 0.25rem 1.25rem rgba(var(--gold-rgb), 0.55);
	}

	.watch-live-card:hover .watch-live-card-title {
		color: var(--gold-text);
	}
}

.watch-live-card:focus-visible {
	outline: none;
}

.watch-live-card:focus-visible::after,
.watch-live-card:focus-visible .watch-live-frame::after {
	opacity: 1;
}

.watch-live-card:focus-visible .watch-live-play {
	transform: scale(1.15);
}

/* Shared pulse: drives .watch-live-dot and .live-txn-dot in pages/home.css. */
@keyframes live-pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.3;
	}
}
