/* Sample ads for the VUS channel page (kenh-vus.html, design B; versions A and the first design are in backup/FE-vus-versions-20261116.zip), 2026-11-13.
   js/kenh-spots.js writes four sample creatives into every ad slot and turns them over; a slot inside a photo
   ([data-spot-scene]) is mapped onto the real standee or screen in that photo (data-spot-quad, the photo's own pixels).
   The creatives are drawn at a fixed size (tall 360x820, wide 640x360) and scaled onto the slot, so these sizes are in px.
   No real brand: every sample names "Thương hiệu của bạn" (your brand) or TAFA itself. */

/* ------------------------------------------------ a photo with ad slots on it */
.spot-scene { position: relative; overflow: hidden; }
.spot-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-slot { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; pointer-events: none; backface-visibility: hidden; }
.spot-slot[data-spot-shape="tall"] { width: 360px; height: 820px; }
.spot-slot[data-spot-shape="wide"] { width: 640px; height: 360px; }
/* a slot outside a photo fills its box (the script scales it) */
.spot-frame { position: relative; overflow: hidden; }
.spot-frame > .spot-slot { position: absolute; }
/* the slot hides until the script has placed it, so a slot never shows at the page's top-left corner */
.spot-slot:not(.is-placed) { visibility: hidden; }

/* a screen's light: a soft sheen across the creative, and the LCD's glass */
.spot-slot--screen::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(115deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .07) 100%); }
.spot-slot--print::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(90deg, rgb(0 0 0 / .1), rgb(0 0 0 / 0) 12%, rgb(0 0 0 / 0) 88%, rgb(0 0 0 / .12)); }

/* ------------------------------------------------ turning over: the next creative rolls up over the last (a scrolling poster box) */
.spot-stack { position: absolute; inset: 0; }
.spot-stack > .spot { position: absolute; inset: 0; translate: 0 100%; }
.spot-stack > .spot.is-on { translate: 0 0; z-index: 2; }
.spot-stack > .spot.is-off { translate: 0 0; z-index: 1; }
.spot-slot.is-live .spot-stack > .spot.is-on { transition: translate 900ms cubic-bezier(.7, 0, .2, 1); }
/* fade, for a screen changing its picture */
.spot-slot[data-spot-fx="fade"] .spot-stack > .spot { translate: 0 0; opacity: 0; }
.spot-slot[data-spot-fx="fade"] .spot-stack > .spot.is-on { opacity: 1; }
.spot-slot[data-spot-fx="fade"] .spot-stack > .spot.is-off { opacity: 1; }
.spot-slot.is-live[data-spot-fx="fade"] .spot-stack > .spot.is-on { transition: opacity 700ms ease; }

/* tri-vision: the face is cut into upright slats that turn one after another */
.spot-tri { position: absolute; inset: 0; display: flex; perspective: 1400px; }
.spot-tri__slat { position: relative; flex: 1 1 0; height: 100%; transform-style: preserve-3d; }
.spot-tri__face { position: absolute; inset: 0 -0.6px; overflow: hidden; backface-visibility: hidden; }
.spot-tri__face > .spot { position: absolute; top: 0; height: 100%; }
.spot-tri__slat.is-turning { transition: transform 820ms cubic-bezier(.65, 0, .25, 1); }
.spot-tri__slat.is-turning::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / .14), rgb(0 0 0 / 0) 30%, rgb(255 255 255 / .06) 60%, rgb(0 0 0 / .18)); }

/* ------------------------------------------------ the creatives */
.spot { box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; font-family: "Archivo", system-ui, sans-serif; color: #fff; text-align: left; }
.spot--tall { width: 360px; height: 820px; padding: 34px 30px 36px; }
.spot--wide { width: 640px; height: 360px; padding: 30px 34px; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr auto auto auto; column-gap: 18px; }
.spot p { margin: 0; }
.spot__brand { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.spot__brand::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: currentColor; }
.spot__brand img { display: block; height: 34px; width: auto; }
.spot__brand:has(img)::before { display: none; }
.spot__kicker { font-size: 17px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.spot__head { font-size: 56px; font-weight: 600; line-height: .98; letter-spacing: -.03em; font-stretch: 112%; text-wrap: balance; }
.spot__sub { font-size: 20px; line-height: 1.3; opacity: .92; }
.spot__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-size: 19px; font-weight: 600; }
.spot__cta::after { content: "→"; }
.spot__art { position: relative; flex: 1 1 auto; margin: 26px 0; min-height: 0; }
.spot--tall .spot__kicker { margin-bottom: 12px; }
.spot--tall .spot__sub { margin-top: 16px; }
.spot--tall .spot__cta { margin-top: 26px; }
.spot--wide .spot__brand { grid-column: 1; grid-row: 1; }
.spot--wide .spot__art { grid-column: 2; grid-row: 1 / -1; margin: -30px -34px -30px 0; }
.spot--wide .spot__kicker { grid-column: 1; grid-row: 2; align-self: end; margin-bottom: 8px; font-size: 14px; }
.spot--wide .spot__head { grid-column: 1; grid-row: 3; font-size: 40px; }
.spot--wide .spot__sub { grid-column: 1; grid-row: 4; margin-top: 10px; font-size: 16px; }
.spot--wide .spot__cta { grid-column: 1; grid-row: 5; margin-top: 16px; padding: 9px 16px; font-size: 15px; }

/* 1 TAFA red: the space itself is for sale */
.spot--red { background: #d92b21; }
.spot--red .spot__brand { padding: 6px 10px 6px 6px; border-radius: 8px; background: #fff; color: #d92b21; letter-spacing: .06em; }
.spot--red .spot__brand::before { display: none; }
.spot--red .spot__head { font-size: 64px; }
.spot--wide.spot--red .spot__head { font-size: 44px; }
.spot--red .spot__cta { background: #fff; color: #141414; }
.spot--red .spot__art::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(78%, 250px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 14px solid #fff; box-shadow: 0 0 0 22px rgb(255 255 255 / .18), 0 0 0 48px rgb(255 255 255 / .08); }
.spot--red .spot__art::after { content: "100+"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 54px; font-weight: 600; letter-spacing: -.03em; font-stretch: 112%; }
.spot--wide.spot--red .spot__art { background: #141414; }
.spot--wide.spot--red .spot__art::before { width: 150px; border-width: 10px; }
.spot--wide.spot--red .spot__art::after { font-size: 36px; }

/* 2 blue: a nutrition brand */
.spot--blue { background: linear-gradient(170deg, #48a6ff 0%, #1d63d6 70%); }
.spot--blue .spot__cta { background: #ffd23f; color: #0d2f6e; }
.spot--blue .spot__art::before, .spot--blue .spot__art::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0 16%, #e6f2ff 17% 55%, #b9d8ff 100%); box-shadow: 0 20px 40px -14px rgb(0 0 0 / .35); }
.spot--blue .spot__art::before { width: 74%; aspect-ratio: 1; left: 2%; top: 4%; }
.spot--blue .spot__art::after { width: 42%; aspect-ratio: 1; right: 0; bottom: 2%; }
.spot--wide.spot--blue .spot__art::before { width: 70%; left: 4%; top: 12%; }

/* 3 yellow: a learning app */
.spot--yellow { background: #ffcd1f; color: #141414; }
.spot--yellow .spot__cta { background: #141414; color: #fff; }
.spot--yellow .spot__art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0; }
.spot--yellow .spot__art i { border-radius: 22px; }
.spot--yellow .spot__art i:nth-child(1) { background: #d92b21; border-radius: 50%; }
.spot--yellow .spot__art i:nth-child(2) { background: #141414; }
.spot--yellow .spot__art i:nth-child(3) { background: #fff; }
.spot--yellow .spot__art i:nth-child(4) { background: #2a7de1; border-radius: 50% 50% 22px 22px; }
.spot--wide.spot--yellow .spot__art { padding: 26px 26px 26px 0; }

/* 4 green: an education savings plan */
.spot--green { background: #0f5c45; }
.spot--green .spot__cta { background: #b8f2c9; color: #0f3d2e; }
.spot--green .spot__art { display: flex; align-items: flex-end; gap: 12px; padding: 0 6px; }
.spot--green .spot__art i { flex: 1; border-radius: 14px 14px 4px 4px; background: linear-gradient(#7be3a0, #2fae6c); }
.spot--green .spot__art i:nth-child(1) { height: 32%; opacity: .55; }
.spot--green .spot__art i:nth-child(2) { height: 52%; opacity: .7; }
.spot--green .spot__art i:nth-child(3) { height: 74%; opacity: .85; }
.spot--green .spot__art i:nth-child(4) { height: 100%; }
.spot--wide.spot--green .spot__art { padding: 34px 30px 0 0; }

/* a page ad (Umbraco: the page's Ads list, js/kenh-spots.js): the client's image fills the creative, cropped to its shape */
.spot--img { padding: 0; display: block; background: #141414; }
.spot--img img, .lspot--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* an animation in a photo's place (Umbraco: a spot's "Animation" field, js/spot-anim.js): the video covers the photo's box */
video[data-anim] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* the pause button for every turning ad on the page */
.spot-pause { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; background: rgb(20 20 20 / .62); color: #fff; font: 600 13px/1 var(--font-text); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color var(--dur, .2s) ease; }
.spot-pause:hover { background: rgb(20 20 20 / .82); }
.spot-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.spot-pause svg { width: 16px; height: 16px; }
.spot-pause .spot-pause__play { display: none; }
.spot-pause[aria-pressed="true"] .spot-pause__play { display: block; }
.spot-pause[aria-pressed="true"] .spot-pause__stop { display: none; }

/* a page with no ads (Umbraco, js/kenh-spots.js BLANK): the drawn standee shows a plain face */
.spot--blank { padding: 0; background: linear-gradient(180deg, #fff, #f2f2f2); }
