/* Eshgh Spotlight, full screen (owner's notes). The stage plays in four phases set by makers.js on [data-phase]:
   dark (the page dims to a deep green night), light (a soft, magical green spotlight comes on and finds the logo, with
   a different move each time: [data-move]), logo (the logo glows green in the light) and ad (the logo opens straight
   into the business's full-screen ad while the light hands over to it; never a black screen in between). A side
   already shown on this visit comes back quickly ([data-pace="quick"]); Play again plays the full show. */
.spot-show { position: relative; padding: 0 0 40px; }
.spot-show .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spot-stage { --spot-green: #2cee79; /* Always the magical Radio Eshgh green (owner), never the shop's color. */ --spot-light: color-mix(in srgb, var(--spot-green) 72%, #dcffec); --spot-x: 50%; --spot-y: 56%; --spot-r: clamp(52px, 8.5vmin, 90px); position: relative; height: calc(100svh - 64px); min-height: 560px; max-height: 1100px; overflow: hidden; isolation: isolate; background: #010604; color: #f6fff9; }
.spot-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 0%, rgb(44 238 121 / .05), transparent 70%); }

/* Darkness over the page, never flat black: a deep green night that the light, then the ad, lift. */
.spot-dark { position: absolute; inset: 0; z-index: 3; background: radial-gradient(85% 75% at var(--spot-x) 62%, #03130b 0%, #010604 55%, #000 100%); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.spot-stage[data-phase="dark"] .spot-dark { opacity: 1; }
.spot-stage[data-phase="light"] .spot-dark, .spot-stage[data-phase="logo"] .spot-dark { opacity: .94; transition-duration: .9s; }
.spot-stage[data-phase="ad"] .spot-dark { opacity: 0; transition: opacity 1.2s ease .25s; }

/* The light, rebuilt (owner's note: calm and precise, like a keynote reveal, nothing silly or loose). A soft aura of
   Radio Eshgh green opens behind the logo with two heartbeats, and the logo comes into focus; then two rings pulse out
   of it like a heartbeat before the ad opens. Owner, October 29, 2026: "Remove this Spotlight line; only that
   spotlight effect is attractive", so there is no line across the stage any more. Three variations ([data-move]):
   line (the aura opens from the center), rise (it rises into place) and bloom (it blooms out a little further).
   Only transform, opacity and filter move. */
.spot-rig { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.spot-stage[data-phase="light"] .spot-rig, .spot-stage[data-phase="logo"] .spot-rig { opacity: 1; }
/* The light stays on while the ad opens and only then fades, so it hands over to the ad instead of cutting to dark. */
.spot-stage[data-phase="ad"] .spot-rig { opacity: 0; transition: opacity .8s ease .3s; }
.spot-aura { position: absolute; left: var(--spot-x); top: var(--spot-y); width: min(72vmin, 660px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.2); background: radial-gradient(closest-side, color-mix(in srgb, var(--spot-light) 36%, transparent), color-mix(in srgb, var(--spot-green) 13%, transparent) 55%, transparent 72%); opacity: 0; filter: blur(4px); will-change: transform, opacity; }
.spot-ring { position: absolute; left: var(--spot-x); top: var(--spot-y); width: clamp(120px, 20vmin, 210px); aspect-ratio: 1; border-radius: 34%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--spot-light) 70%, transparent), 0 0 26px color-mix(in srgb, var(--spot-green) 40%, transparent); opacity: 0; }
.spot-stage[data-phase="light"] .spot-aura { animation: spot-aura-open 1.3s cubic-bezier(.16, 1, .3, 1) both; }
/* Two heartbeats as it opens (a quick double beat, then settled). */
@keyframes spot-aura-open { 0%, 30% { transform: translate(-50%, -50%) scale(.15); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; } 72% { transform: translate(-50%, -50%) scale(.97); } 84% { transform: translate(-50%, -50%) scale(1.025); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.spot-stage[data-phase="light"][data-move="rise"] .spot-aura { animation-name: spot-aura-rise; }
@keyframes spot-aura-rise { 0%, 20% { transform: translate(-50%, -32%) scale(.4); opacity: 0; } 58% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; } 72% { transform: translate(-50%, -50%) scale(.97); } 84% { transform: translate(-50%, -50%) scale(1.025); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.spot-stage[data-phase="light"][data-move="bloom"] .spot-aura { animation-name: spot-aura-bloom; }
@keyframes spot-aura-bloom { 0% { transform: translate(-50%, -50%) scale(.1); opacity: 0; } 45% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(.95); } 76% { transform: translate(-50%, -50%) scale(1.03); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.spot-stage[data-phase="logo"] .spot-aura { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.spot-stage[data-phase="logo"] .spot-ring { animation: spot-ring-out 1.15s cubic-bezier(.2, .8, .2, 1) both; }
.spot-stage[data-phase="logo"] .spot-ring-2 { animation-delay: .26s; }
@keyframes spot-ring-out { 0% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }
.spot-stage[data-phase="ad"] .spot-aura { opacity: 0; transform: translate(-50%, -50%) scale(1.6); transition: opacity .8s ease, transform 1s cubic-bezier(.3, .6, .2, 1); }

/* The logo waits in the dark, glows green in the light (a soft rim and halo), then opens into the ad. */
.spot-logo { position: absolute; left: var(--spot-x); top: var(--spot-y); z-index: 6; width: clamp(120px, 20vmin, 210px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(.86); display: grid; place-items: center; border-radius: 34%; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--spot-green) 30%, #12281d), color-mix(in srgb, var(--spot-green) 12%, #0b1912)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 24px 60px -28px rgb(0 0 0 / .5); opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .8s ease; }
.spot-logo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
/* The logo shows once it has decoded (makers.js); until then the tile is lit green glass, never an empty dark tile. */
.spot-logo.is-decoded img { opacity: 1; }
.spot-initial { font-family: var(--heading, inherit); font-size: clamp(56px, 9vmin, 96px); font-weight: 500; color: var(--tint-deep, #8fffc8); }
.spot-initial svg { width: 56%; height: auto; color: var(--tint-vivid, #00f47b); }
.spot-stage[data-phase="light"] .spot-logo { opacity: .55; filter: blur(10px); transform: translate(-50%, -50%) scale(.92); transition: opacity 1s cubic-bezier(.16, 1, .3, 1) .45s, filter 1s cubic-bezier(.16, 1, .3, 1) .45s, transform 1s cubic-bezier(.16, 1, .3, 1) .45s; }
/* Into focus with a small, firm spring (no wobble). */
.spot-stage[data-phase="logo"] .spot-logo { filter: blur(0); transition: opacity .45s ease, filter .45s ease, transform .55s cubic-bezier(.34, 1.4, .64, 1), box-shadow .6s ease; }
.spot-stage[data-phase="logo"] .spot-logo, .spot-stage[data-phase="ad"] .spot-logo { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 0 0 1px color-mix(in srgb, var(--spot-light) 55%, transparent), 0 0 34px 4px color-mix(in srgb, var(--spot-green) 42%, transparent), 0 0 90px 18px color-mix(in srgb, var(--spot-green) 18%, transparent); }
/* Into the ad: the logo grows a little and dissolves while the ad opens from right where it is. */
/* (It keeps its green glow while it dissolves, so nothing goes dark at the hand-over.) */
.spot-stage[data-phase="ad"] .spot-logo { opacity: 0; transform: translate(-50%, -50%) scale(1.7); transition: opacity .6s ease .1s, transform .9s cubic-bezier(.3, .6, .2, 1), box-shadow .8s ease; }

/* The ad: sits above the darkness and opens out of the lit logo to fill the screen, so the screen goes straight from
   the light to the ad's own photo and colors (never a black screen in between). Behind the logo it is already a
   logo-sized circle, so the first frame of the opening is the ad, not the dark. */
.spot-scene { position: absolute; inset: 0; z-index: 4; clip-path: circle(0px at var(--spot-x) var(--spot-y)); opacity: 0; transition: opacity .35s ease, clip-path 0s linear .35s; background: radial-gradient(70% 70% at var(--spot-x) var(--spot-y), color-mix(in srgb, var(--spot-green) 40%, #0c2418) 0%, color-mix(in srgb, var(--spot-green) 18%, #08160f) 55%, #06100b 100%); }
/* The circle is never a dark disk: it is invisible while the stage dims (it fades out, then closes), fades in with the
   logo's glow, and opens on the lit scene. */
.spot-stage[data-phase="logo"] .spot-scene { opacity: 1; clip-path: circle(var(--spot-r) at var(--spot-x) var(--spot-y)); transition: opacity .3s ease .7s, clip-path .2s ease .7s; }
.spot-stage[data-phase="ad"] .spot-scene { opacity: 1; clip-path: circle(150% at var(--spot-x) var(--spot-y)); transition: clip-path 1.05s cubic-bezier(.3, .55, .15, 1), opacity .3s ease; }
/* Until the photo has decoded the circle shows the scene's own soft green light (above), never a dark placeholder;
   then the photo fades in (owner: "that black circle that appears has a problem"). */
.spot-ad-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); opacity: 0; transition: opacity .6s ease; }
.spot-scene.is-decoded > .spot-ad-photo { opacity: 1; }
.spot-stage[data-phase="ad"] .spot-ad-photo { animation: spot-kenburns 24s ease-out both, spot-lift 1.2s ease-out both; }
@keyframes spot-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
/* The darkness lifts into the photo: it starts a little dim and green-lit, then comes up to its own colors. */
@keyframes spot-lift { from { filter: brightness(.7) saturate(1.15); } to { filter: none; } }
.spot-ad-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .45) 42%, transparent 72%), linear-gradient(0deg, rgb(0 0 0 / .7) 0%, transparent 45%), radial-gradient(60% 50% at 30% 100%, color-mix(in srgb, var(--tint, #00f47b) 25%, transparent), transparent); }
/* The dark shade that keeps the words readable comes in after the circle has opened, so the opening circle is light. */
.spot-ad-shade, .spot-ad-empty.has-photo::before { opacity: 0; transition: opacity .7s ease; }
.spot-stage[data-phase="ad"] .spot-ad-shade, .spot-stage[data-phase="ad"] .spot-ad-empty.has-photo::before { opacity: 1; transition-delay: .45s; }
.spot-ad-copy { position: absolute; left: clamp(20px, 6vw, 96px); bottom: max(clamp(70px, 10vh, 120px), var(--spot-player-clear, 0px)); width: min(640px, calc(100% - 40px)); display: grid; gap: 14px; }
.spot-ad-copy > * { opacity: 0; transform: translateY(18px); }
.spot-stage[data-phase="ad"] .spot-ad-copy > * { animation: spot-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(1) { animation-delay: .55s; } .spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(2) { animation-delay: .65s; } .spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(3) { animation-delay: .75s; } .spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(4) { animation-delay: .85s; } .spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(5) { animation-delay: .95s; } .spot-stage[data-phase="ad"] .spot-ad-copy > :nth-child(n+6) { animation-delay: 1.05s; }
@keyframes spot-rise { to { opacity: 1; transform: none; } }
.spot-ad-brand { display: flex; align-items: center; gap: 12px; }
.spot-ad-logo { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.spot-ad-logo img { width: 100%; height: 100%; object-fit: cover; } .spot-ad-logo .spot-initial { font-size: 24px; }
.spot-ad-brand .mk-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--tint-deep, #a8f5ca); }
.spot-ad-copy h2 { margin: 0; font-family: var(--heading, inherit); font-size: clamp(42px, 7vw, 104px); font-weight: 500; line-height: .98; letter-spacing: -.05em; text-wrap: balance; text-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.spot-ad-line { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgb(255 255 255 / .82); }
.spot-ad-offer { margin: 0; display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 10px 16px; border-radius: 999px; font-weight: 600; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.spot-ad-items { display: flex; gap: 10px; flex-wrap: wrap; }
.spot-ad-item { display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgb(0 0 0 / .35); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.spot-ad-item i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 11px; background-size: cover; background-position: center; background-color: rgb(255 255 255 / .08); }
.spot-ad-item b { font-size: 13.5px; font-weight: 600; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spot-ad-item span { font-size: 13px; color: rgb(255 255 255 / .7); }
.spot-ad-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.spot-ad-fine { margin: 0; font-size: 12.5px; color: rgb(255 255 255 / .55); }
.spot-ad-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(50% 50% at 50% 60%, rgb(0 244 123 / .12), transparent); }
.spot-ad-empty h2 { margin: 0; font-family: var(--heading, inherit); font-size: clamp(30px, 4vw, 52px); font-weight: 500; letter-spacing: -.04em; }
.spot-ad-empty p { margin: 0 0 6px; color: rgb(255 255 255 / .7); }

/* Top bar over the stage: which week, the Partners / Eshgh Makers switch, play again. */
.spot-bar { position: absolute; top: 18px; left: 50%; z-index: 8; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: calc(100% - 32px); }
.spot-bar .spot-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #9ff5c8; text-shadow: 0 1px 10px rgb(0 0 0 / .6); }
.spot-bar .mk-spot-tabs { margin: 0; }
.spot-replay { position: absolute; right: 0; top: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 18px; color: #fff; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); cursor: pointer; opacity: 0; transition: opacity .4s; }
.spot-stage[data-phase="ad"] .spot-replay { opacity: 1; }
.spot-replay:focus-visible { outline: 2px solid #8ff5c0; outline-offset: 3px; opacity: 1; }
.spot-show .spot-cta { margin: 24px auto 0; width: min(1240px, calc(100% - 32px)); }

@media (max-width: 760px) {
	.spot-stage { height: calc(100svh - 56px); min-height: 600px; --spot-y: 50%; }
	.spot-ad-shade { background: linear-gradient(0deg, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .1) 75%), radial-gradient(80% 40% at 50% 100%, color-mix(in srgb, var(--tint, #00f47b) 22%, transparent), transparent); }
	/* Above the radio player at its real height (makers.js measures it into --spot-player-clear), with the safe area. */
	.spot-ad-copy { bottom: max(90px, var(--spot-player-clear, 0px), calc(90px + env(safe-area-inset-bottom, 0px))); gap: 10px; }
	.spot-ad-items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.spot-ad-item { grid-template-columns: 40px auto; padding-right: 12px; } .spot-ad-item i { width: 40px; height: 40px; } .spot-ad-item b { display: none; } .spot-ad-item span { grid-row: 1 / 3; align-self: center; font-weight: 600; color: #fff; }
	.spot-replay { top: auto; bottom: -50px; }
}
@media (prefers-reduced-motion: reduce) {
	.spot-dark, .spot-rig, .spot-logo, .spot-scene, .spot-replay { transition: none !important; }
	.spot-stage * { animation: none !important; }
	.spot-ad-copy > * { opacity: 1; transform: none; }
}
body.quiet-motion .spot-stage * { animation: none !important; }
body.quiet-motion .spot-ad-copy > * { opacity: 1; transform: none; }

/* While the data is still on its way (for example right after a skip): a calm loading line instead of a blank ad. */
.spot-ad-loading p { margin: 0; color: rgb(255 255 255 / .72); }
.spot-loading-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tint-vivid, #00f47b); box-shadow: 0 0 18px var(--tint-vivid, #00f47b); animation: spot-loading 1.2s ease-in-out infinite; }
@keyframes spot-loading { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
/* Phones: small round buttons keep their look but get a 44 px touch area. */
@media (max-width: 760px) {
	.spot-replay::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .spot-loading-dot { animation: none; } }

/* Going back to a side already shown on this visit: the same look, quicker (makers.js sets data-pace="quick"). */
.spot-stage[data-pace="quick"] .spot-dark { transition-duration: .18s; }
.spot-stage[data-pace="quick"][data-phase="ad"] .spot-dark { transition: opacity .45s ease; }
.spot-stage[data-pace="quick"] .spot-logo { transition-duration: .3s; }
.spot-stage[data-pace="quick"][data-phase="ad"] .spot-logo { transition: opacity .35s ease, transform .5s cubic-bezier(.6, 0, .2, 1), box-shadow .45s ease; }
.spot-stage[data-pace="quick"] .spot-scene { transition-duration: .55s; }
.spot-stage[data-pace="quick"][data-phase="ad"] .spot-ad-copy > * { animation-duration: .45s; animation-delay: .15s; }

/* Spotlight with no business this week: a Radio Eshgh photo behind the message, dimmed so the words stay clear. */
.spot-ad-empty.has-photo { background: transparent; overflow: hidden; }
.spot-ad-empty.has-photo > * { position: relative; z-index: 1; }
.spot-ad-empty > .spot-ad-empty-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.spot-scene.is-decoded .spot-ad-empty > .spot-ad-empty-photo { opacity: .5; }
.spot-ad-empty.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 50% 55%, rgb(5 7 6 / .55), rgb(5 7 6 / .85)); }
