/* Sample ads on the LED screens for the Kênh LED Lớn Miền Tây page (kenh-led-2.html, the version the client chose), 2026-11-16. Behaviour: js/led-spots.js.
   The creatives are drawn at a fixed size (board 800x330, pole 360x500, screen 640x360) and scaled onto the slot, so sizes here are 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; background: #0a0a0a; }
.spot-slot[data-spot-shape="board"] { width: 800px; height: 330px; }
.spot-slot[data-spot-shape="pole"] { width: 360px; height: 500px; }
.spot-slot[data-spot-shape="screen"] { width: 640px; height: 360px; }
.spot-frame { position: relative; overflow: hidden; }
.spot-frame > .spot-slot { position: absolute; }
.spot-slot:not(.is-placed) { visibility: hidden; }
/* an LED face: a fine dot grid and a sheen over the creative */
.spot-slot::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    radial-gradient(circle, rgb(0 0 0 / 0) 0 1.4px, rgb(0 0 0 / .16) 2px) 0 0 / 5px 5px,
    linear-gradient(115deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 36%, rgb(255 255 255 / 0) 72%, rgb(255 255 255 / .06) 100%); }

/* ------------------------------------------------ turning over */
.lspot-stack { position: absolute; inset: 0; }
.lspot-stack > .lspot { position: absolute; inset: 0; translate: 0 100%; }
.lspot-stack > .lspot.is-on { translate: 0 0; z-index: 2; }
.lspot-stack > .lspot.is-off { translate: 0 0; z-index: 1; }
.spot-slot.is-live .lspot-stack > .lspot.is-on { transition: translate 900ms cubic-bezier(.7, 0, .2, 1); }
.spot-slot[data-spot-fx="fade"] .lspot-stack > .lspot { translate: 0 0; opacity: 0; }
.spot-slot[data-spot-fx="fade"] .lspot-stack > .lspot:is(.is-on, .is-off) { opacity: 1; }
.spot-slot.is-live[data-spot-fx="fade"] .lspot-stack > .lspot.is-on { transition: opacity 600ms ease; }

/* ------------------------------------------------ the creatives */
.lspot { box-sizing: border-box; overflow: hidden; font-family: "Archivo", system-ui, sans-serif; color: #fff; text-align: left; }
.lspot p { margin: 0; }
.lspot__brand { display: inline-flex; justify-self: start; align-self: start; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lspot__brand::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: currentColor; }
.lspot__brand img { display: block; height: 36px; width: auto; }
.lspot__brand:has(img)::before { display: none; }
.lspot__kicker { font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.lspot__head { font-weight: 600; line-height: .98; letter-spacing: -.03em; font-stretch: 115%; text-wrap: balance; }
.lspot__sub { line-height: 1.3; opacity: .92; }
.lspot__cta { display: inline-flex; align-items: center; gap: 10px; justify-self: start; align-self: start; padding: 12px 22px; border-radius: 999px; font-size: 19px; font-weight: 600; }
.lspot__cta::after { content: "→"; }
.lspot__art { position: relative; display: block; }
.lspot__art i { position: absolute; display: block; }

/* board: words on the left, the picture on the right */
.lspot--board { width: 800px; height: 330px; padding: 28px 36px; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr auto auto auto; column-gap: 26px; }
.lspot--board .lspot__brand { grid-column: 1; grid-row: 1; }
.lspot--board .lspot__art { grid-column: 2; grid-row: 1 / -1; margin: -28px -36px -28px 0; }
.lspot--board .lspot__kicker { grid-column: 1; grid-row: 2; align-self: end; margin-bottom: 8px; font-size: 15px; }
.lspot--board .lspot__head { grid-column: 1; grid-row: 3; font-size: 50px; }
.lspot--board .lspot__sub { grid-column: 1; grid-row: 4; margin-top: 10px; font-size: 18px; }
.lspot--board .lspot__cta { grid-column: 1; grid-row: 5; margin-top: 14px; padding: 9px 18px; font-size: 16px; }
/* screen (16:9): the same, a little taller */
.lspot--screen { width: 640px; height: 360px; padding: 30px 32px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr auto auto auto; column-gap: 20px; }
.lspot--screen .lspot__brand { grid-column: 1; grid-row: 1; }
.lspot--screen .lspot__art { grid-column: 2; grid-row: 1 / -1; margin: -30px -32px -30px 0; }
.lspot--screen .lspot__kicker { grid-column: 1; grid-row: 2; align-self: end; margin-bottom: 8px; font-size: 14px; }
.lspot--screen .lspot__head { grid-column: 1; grid-row: 3; font-size: 44px; }
.lspot--screen .lspot__sub { grid-column: 1; grid-row: 4; margin-top: 10px; font-size: 16px; }
.lspot--screen .lspot__cta { grid-column: 1; grid-row: 5; margin-top: 14px; padding: 8px 16px; font-size: 15px; }
/* pole: stacked */
.lspot--pole { width: 360px; height: 500px; padding: 26px 26px 28px; display: flex; flex-direction: column; }
.lspot--pole .lspot__art { flex: 1 1 auto; margin: 16px 0; }
.lspot--pole .lspot__kicker { font-size: 14px; margin-bottom: 8px; }
.lspot--pole .lspot__head { font-size: 40px; }
.lspot--pole .lspot__sub { display: none; }
.lspot--pole .lspot__cta { margin-top: 16px; padding: 10px 18px; font-size: 16px; }

/* 1 TAFA red: the space itself is for sale */
.lspot--red { background: #d92b21; }
.lspot--red .lspot__brand { padding: 6px 10px 6px 6px; border-radius: 8px; background: #fff; }
.lspot--red .lspot__cta { background: #fff; color: #141414; }
.lspot--red .lspot__art { background: #141414; }
.lspot--pole.lspot--red .lspot__art { background: none; }
.lspot--red .lspot__art i:nth-child(1) { left: 50%; top: 50%; width: min(70%, 190px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 12px solid #d92b21; box-shadow: 0 0 0 18px rgb(217 43 33 / .3), 0 0 0 40px rgb(217 43 33 / .12); }
.lspot--pole.lspot--red .lspot__art i:nth-child(1) { border-color: #fff; box-shadow: 0 0 0 16px rgb(255 255 255 / .2); width: 150px; }
.lspot--red .lspot__art i:nth-child(2)::after { content: "176"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 46px; font-weight: 600; letter-spacing: -.03em; font-stretch: 115%; font-style: normal; }
.lspot--red .lspot__art i:nth-child(2) { inset: 0; }
.lspot--board.lspot--red .lspot__head { font-size: 46px; }

/* 2 blue: phones and electronics */
.lspot--blue { background: linear-gradient(160deg, #3b9bff 0%, #1450c8 75%); }
.lspot--blue .lspot__cta { background: #ffd23f; color: #0d2f6e; }
.lspot--blue .lspot__art i { border-radius: 26px; background: linear-gradient(160deg, #1b1f2a, #3a4152); box-shadow: inset 0 0 0 6px #0c0e14, 0 24px 40px -16px rgb(0 0 0 / .5); }
.lspot--blue .lspot__art i::after { content: ""; position: absolute; inset: 14px; border-radius: 16px; background: linear-gradient(200deg, #ffd23f, #ff7a3d 55%, #e2387a); }
.lspot--blue .lspot__art i:nth-child(1) { width: 38%; height: 78%; left: 16%; top: 14%; rotate: -8deg; }
.lspot--blue .lspot__art i:nth-child(2) { width: 38%; height: 78%; left: 46%; top: 8%; rotate: 6deg; }
.lspot--blue .lspot__art i:nth-child(3) { display: none; }

/* 3 yellow: a cold drink */
.lspot--yellow { background: #ffcd1f; color: #141414; }
.lspot--yellow .lspot__cta { background: #141414; color: #fff; }
.lspot--yellow .lspot__art i:nth-child(1) { width: 34%; height: 76%; left: 33%; top: 12%; border-radius: 22px 22px 18px 18px; background: linear-gradient(90deg, #b5180f, #e8392c 40%, #ff6b5c 55%, #b5180f); box-shadow: 0 24px 40px -14px rgb(0 0 0 / .35); }
.lspot--yellow .lspot__art i:nth-child(1)::before { content: ""; position: absolute; left: 10%; right: 10%; top: 30%; height: 26%; border-radius: 6px; background: #fff; }
.lspot--yellow .lspot__art i:nth-child(2), .lspot--yellow .lspot__art i:nth-child(3) { border-radius: 50%; background: rgb(255 255 255 / .75); }
.lspot--yellow .lspot__art i:nth-child(2) { width: 13%; aspect-ratio: 1; left: 12%; top: 22%; }
.lspot--yellow .lspot__art i:nth-child(3) { width: 9%; aspect-ratio: 1; left: 76%; top: 62%; }

/* 4 green: a bank's home loan */
.lspot--green { background: #0f5c45; }
.lspot--green .lspot__cta { background: #b8f2c9; color: #0f3d2e; }
.lspot--green .lspot__art i:nth-child(1) { left: 20%; right: 20%; bottom: 14%; height: 44%; border-radius: 6px; background: linear-gradient(#7be3a0, #2fae6c); }
.lspot--green .lspot__art i:nth-child(2) { left: 14%; right: 14%; bottom: 56%; height: 30%; background: #b8f2c9; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lspot--green .lspot__art i:nth-child(3) { left: 42%; width: 16%; bottom: 14%; height: 24%; border-radius: 6px 6px 0 0; background: #0f5c45; }

/* a page ad (Umbraco: the page's Ads list, js/led-spots.js): the client's image fills the creative, cropped to its shape */
.lspot--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 currentColor; 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/led-spots.js BLANK): the drawn pole screens are switched off */
.lspot--blank { padding: 0; background: #141414; }
