/* Post Ad v2 — media viewer + thumbnails with the same skin as the public site (live/assets/css/media-skin.css: the
   JustSigns / JustDisplay media skin). Viewer rules copied from the site file; the thumbnail rules give the dashboard's
   thumbnails the site's round glass play button (yellow on hover) and the length tag. Local fonts only (Nunito). */

.jsms-tag{position:absolute;z-index:3;display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 7px;border-radius:6px;background:#0f1115c4;color:#fff;
  font:700 11.5px/1 Nunito,system-ui,sans-serif;letter-spacing:.02em;font-variant-numeric:tabular-nums;pointer-events:none;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.jsms-dur{right:8px;bottom:8px}
.jsms-tag svg{width:1.1em;height:1.1em}
.jsms-warn{left:50%;top:50%;transform:translate(-50%,calc(-50% + 42px));color:#ffb020}

/* Thumbnails (media boxes, premium card, review card): the site's ad-card play button and length tag */
.jsms-thumb{position:relative;display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:#0f1115;cursor:zoom-in;overflow:hidden;font:inherit;color:inherit}
.jsms-thumb.is-video{cursor:pointer}
.jsms-thumb-media{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1);-webkit-user-drag:none;user-select:none}
.jsms-thumb:hover .jsms-thumb-media{transform:scale(1.03)}
.jsms-thumb:focus-visible{outline:3px solid var(--yellow,#f6bb26);outline-offset:-3px}
.jsms-play{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.jsms-play svg{box-sizing:border-box;width:clamp(36px,30%,56px);height:auto;aspect-ratio:1;padding:13px 11px 13px 15px;border-radius:50%;
  background:#0f1115a6;color:#fff;border:1px solid #ffffff40;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:transform .2s,background .2s,color .2s,border-color .2s}
.jsms-thumb:hover .jsms-play svg,.jsms-thumb:focus-visible .jsms-play svg{transform:scale(1.08);background:var(--yellow,#f6bb26);color:#141414;border-color:var(--yellow,#f6bb26)}
.jsms-thumb.is-broken .jsms-play{opacity:.55}

/* Viewer: the file on a screen of its own shape (horizontal TV with a foot, vertical screen with a base) */
html.jsms-lb-open{overflow:hidden}
.jsms-lb{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;color:#edf0f4;font-family:Nunito,system-ui,sans-serif;
  background:radial-gradient(ellipse at 50% 42%,#1c2029f5,#060709fa 72%);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:jsms-in .18s ease-out}
.jsms-lb[hidden]{display:none}
@keyframes jsms-in{from{opacity:0}}
.jsms-lb-top{display:flex;align-items:center;gap:16px;padding:14px 18px 6px}
.jsms-lb-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.jsms-lb-info b{font:700 16px/1.3 Nunito,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jsms-lb-info span{font-size:12.5px;color:#aab3c0;font-variant-numeric:tabular-nums}
.jsms-lb-acts{display:flex;gap:8px}
.jsms-lb-btn,.jsms-lb-nav{display:grid;place-items:center;padding:0;border:1px solid #ffffff26;background:#ffffff10;color:#fff;cursor:pointer;font:inherit;
  transition:background .15s,color .15s,border-color .15s}
.jsms-lb-btn{width:42px;height:42px;border-radius:12px}
.jsms-lb-btn svg{width:18px;height:18px}
.jsms-lb-btn[hidden],.jsms-lb-nav[hidden]{display:none}
.jsms-lb-btn.jsms-lb-ad[hidden]{display:none}   /* no "View ad" here (the site rule below would show it again) */
.jsms-lb-btn.jsms-lb-ad{width:auto;display:inline-flex;align-items:center;gap:8px;padding:0 14px 0 16px;font:700 14px/1 Nunito,system-ui,sans-serif;white-space:nowrap}
.jsms-lb-btn:hover,.jsms-lb-nav:hover,.jsms-lb-btn:focus-visible,.jsms-lb-nav:focus-visible{background:var(--yellow,#f6bb26);color:#141414;border-color:var(--yellow,#f6bb26);outline:none}
.jsms-lb-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:22px;padding:6px 14px 22px;position:relative}
.jsms-lb-nav{flex:none;width:50px;height:50px;border-radius:50%}
.jsms-lb-nav svg{width:22px;height:22px}
.jsms-lb-device{margin:0;display:flex;flex-direction:column;align-items:center}
.jsms-lb-screen{position:relative;box-sizing:content-box;background:#000;border:12px solid #0b0c0e;border-radius:16px;overflow:hidden;
  box-shadow:0 0 0 1px #ffffff26,inset 0 0 0 1px #ffffff12,0 40px 90px -30px #000;transition:width .25s,height .25s}
.jsms-lb-device.is-land .jsms-lb-screen{border-bottom-width:20px}
.jsms-lb-device.is-land .jsms-lb-screen::after{content:"";position:absolute;left:50%;bottom:-13px;width:6px;height:6px;margin-left:-3px;border-radius:50%;
  background:var(--yellow,#f6bb26);box-shadow:0 0 8px #f6bb26aa}
.jsms-lb-device.is-port .jsms-lb-screen{border-width:10px 10px 16px;border-radius:14px}
.jsms-lb-stand{display:block;background:linear-gradient(#1a1d22,#0b0c0e);box-shadow:0 10px 18px -6px #000}
.jsms-lb-device.is-land .jsms-lb-stand{width:min(26%,240px);height:16px;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%);border-radius:0 0 6px 6px}
.jsms-lb-device.is-port .jsms-lb-stand{width:70%;height:10px;border-radius:0 0 10px 10px}
.jsms-lb-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;display:block;-webkit-user-drag:none;user-select:none}
.jsms-lb-spin{position:absolute;top:50%;left:50%;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;border:3px solid #ffffff2a;border-top-color:var(--yellow,#f6bb26);
  animation:jsms-spin .8s linear infinite;z-index:1;opacity:0;pointer-events:none;transition:opacity .2s}
.jsms-lb-screen.is-loading .jsms-lb-spin{opacity:1}
@keyframes jsms-spin{to{transform:rotate(360deg)}}
.jsms-lb-msg{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:#0b0d10}
.jsms-lb-msg[hidden]{display:none}
.jsms-lb-msg svg{width:34px;height:34px;color:#ffb020}
.jsms-lb-msg p{margin:0;max-width:420px;font-size:14px;line-height:1.5;color:#d6dbe3}
@media (max-width:639px){
  .jsms-lb-top{padding:10px 12px 4px;gap:10px}
  .jsms-lb-btn{width:38px;height:38px}
  .jsms-lb-btn.jsms-lb-ad{padding:0 10px 0 12px;font-size:13px}
  .jsms-lb-stage{padding:4px 12px 16px}
  .jsms-lb-nav{position:absolute;top:50%;z-index:3;width:40px;height:40px;margin-top:-20px;background:#000a}
  .jsms-lb-prev{left:6px}.jsms-lb-next{right:6px}
  .jsms-lb-screen{border-width:8px;border-radius:12px}
  .jsms-lb-device.is-land .jsms-lb-screen{border-bottom-width:14px}
}
@media (prefers-reduced-motion:reduce){.jsms-lb,.jsms-lb *,.jsms-play svg,.jsms-thumb-media{transition:none!important;animation:none!important}}
