/* --------------------------------------------------------------------------
   Live Darshan video embed
   Responsive click-to-play facade: the poster image loads with the page and
   the YouTube player is only injected once the visitor actually clicks.

   Deliberately resilient to wp-admin editing: the play button is drawn with
   CSS pseudo-elements (not a <span> in the content) and the poster is matched
   as "any <img> inside the box" rather than by class. Swapping the image in
   the editor rewrites its classes and strips extra markup, which previously
   made the play button disappear.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   No image hover motion anywhere on the Live Darshan page
   The images on this page (DTH/Cable TV notices, ad banners) are static
   reference graphics, not clickable cards, so the site-wide modern-ui image
   hover lift/zoom does not belong here. Targeted by class/wrapper - NOT by a
   specific image ID - so replacing any image in the editor keeps it static
   permanently (an earlier per-ID fix broke the moment the image was swapped).
   This file loads only on the live page and after modern-ui.css, so it wins.
   -------------------------------------------------------------------------- */
#top .avia-image-container img,
#top .avia_image,
#top .avia-gallery img {
	transition: none !important;
}
#top .avia-image-container:hover img,
#top .avia-image-container:focus img,
#top .avia-gallery img:hover {
	transform: none !important;
	box-shadow: none !important;
}

.sai-video-wrap {
	max-width: 860px;
	margin: 0 auto;
}

/* 16:9 responsive box (padding-ratio technique - works everywhere, unlike
   aspect-ratio which needs a modern browser) */
.sai-video {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	background: #000;
	border-radius: 0;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 10px 34px rgba(43, 33, 24, 0.28);
}

/* Poster: any image dropped in here by the editor, plus the injected player */
.sai-video img,
.sai-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	margin: 0;
	padding: 0;
	display: block;
}

/* Poster stays static - no zoom/brightness motion. Forced off because the
   theme applies a global image transition that would otherwise animate it. */
.sai-video img {
	object-fit: cover;
	transition: none !important;
}
.sai-video:hover img,
.sai-video:focus img {
	transform: none !important;
	filter: none !important;
}

/* ---- Play button (pure CSS: rounded plate + white triangle) ---- */
.sai-video::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 58px;
	border-radius: 14px;
	background: rgba(20, 10, 14, 0.72);
	transition: background 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
	z-index: 2;
	pointer-events: none;
}
.sai-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
	transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
	z-index: 3;
	pointer-events: none;
}

/* Hover / keyboard-focus feedback: tint + scale up */
.sai-video:hover::before,
.sai-video:focus::before {
	background: var(--sai-maroon, #94151c);
	transform: translate(-50%, -50%) scale(1.08);
}
.sai-video:hover::after,
.sai-video:focus::after {
	transform: translate(-40%, -50%) scale(1.08);
}

/* Once the player is injected, hide the button */
.sai-video[data-loaded="1"]::before,
.sai-video[data-loaded="1"]::after {
	display: none;
}

/* No gold/orange ring around the frame at all - it was showing on click.
   Keyboard users still get a clear indicator because :focus tints and scales
   the play button (rules above), so removing the outline costs no
   accessibility. */
.sai-video:focus,
.sai-video:focus-visible {
	outline: none;
}

/* Scale the play button down on small screens */
@media only screen and (max-width: 767px) {
	.sai-video::before {
		width: 64px;
		height: 45px;
		border-radius: 11px;
	}
	.sai-video::after {
		border-width: 9px 0 9px 15px;
	}
}

/* --------------------------------------------------------------------------
   Live Darshan timings
   Replaces the old flat blue (#20359e) block of run-on text with two cards -
   one per schedule - so the morning/evening slots are scannable at a glance.
   Thursday is highlighted because it is the special day for Shirdi Sai.
   -------------------------------------------------------------------------- */

.sai-timings {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	max-width: 720px;
	margin: 26px auto 0;
	text-align: left;
}

.sai-timing-card {
	position: relative;
	flex: 1 1 260px;
	max-width: 320px;
	background: #fff;
	border: 1px solid rgba(192, 146, 54, 0.3);
	border-top: 3px solid var(--sai-gold, #c09236);
	border-radius: var(--sai-radius, 14px);
	box-shadow: var(--sai-shadow-sm, 0 2px 8px rgba(43, 33, 24, 0.08));
	padding: 22px 24px 18px;
	transition: transform 0.3s var(--sai-ease, ease), box-shadow 0.3s var(--sai-ease, ease);
}
.sai-timing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sai-shadow-md, 0 8px 28px rgba(43, 33, 24, 0.14));
}

/* Thursday - the special day */
.sai-timing-card-featured {
	border-top-color: var(--sai-maroon, #94151c);
	background: linear-gradient(180deg, #fffdf8 0%, #fff 55%);
}

/* Positioned in the corner so it does not push the card's content down -
   that would knock the two cards' rows out of alignment with each other. */
.sai-timing-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-block;
	background: linear-gradient(135deg, var(--sai-gold, #c09236), var(--sai-saffron, #cb6c23));
	color: #fff;
	font-family: 'montserrat-bold', 'Helvetica Neue', Arial, sans-serif;
	font-size: 10px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
}
/* keep the day name clear of the badge */
.sai-timing-card-featured .sai-timing-day {
	padding-right: 96px;
}

.sai-timing-day {
	display: block;
	font-family: 'lora-regular', Georgia, serif;
	font-size: 22px;
	color: var(--sai-plum, #541331);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(192, 146, 54, 0.28);
}

.sai-timing-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
}
.sai-timing-row + .sai-timing-row {
	border-top: 1px dashed rgba(192, 146, 54, 0.25);
}

.sai-slot-label {
	position: relative;
	padding-left: 18px;
	font-family: 'montserrat-bold', 'Helvetica Neue', Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: var(--sai-gold-dark, #a87b20);
	white-space: nowrap;
}
/* small dot marker: warm for morning, deep for evening */
.sai-slot-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f0b429, var(--sai-saffron, #cb6c23));
}
.sai-timing-row:last-child .sai-slot-label::before {
	background: linear-gradient(135deg, var(--sai-plum, #541331), var(--sai-maroon, #94151c));
}

.sai-slot-time {
	font-family: 'montserrat-regular', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	color: var(--sai-ink, #2b2118);
	white-space: nowrap;
}

.sai-timings-note {
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--sai-gold-dark, #a87b20);
	margin: 16px 0 0;
}

@media only screen and (max-width: 767px) {
	.sai-timings {
		gap: 16px;
		margin-top: 20px;
	}
	.sai-timing-card {
		flex: 1 1 100%;
		max-width: 100%;
		padding: 18px 20px 14px;
	}
	.sai-timing-day {
		font-size: 20px;
	}
	.sai-slot-time {
		font-size: 14px;
	}
}
