/* LOS Digital — standalone showreel for main-layout pages (sector pages).
   A scoped copy of the device frames and showreel rules in landing.css, which
   the homepage and /website-preview keep using. Markup: views/los/site/_showreel.php */

.showreel {
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #EEF0F8;
  --ink-2: #B6BDD1;
  --mute: #7E879F;
  --mint: #5DE2B3;
  --grad: linear-gradient(100deg, #D6D2FF 0%, #A9A3EE 40%, #8FD0FF 100%);
  --head: inherit;
  --body: inherit;
  color: var(--ink);
}
.showreel *, .showreel *::before, .showreel *::after { box-sizing: border-box; }
.showreel img { max-width: 100%; }

.showreel .win { position: relative; width: 88%; border-radius: 12px; background: #0E1322; border: 1px solid rgba(255, 255, 255, 0.13); box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; overflow: hidden; }
.showreel .win-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; background: linear-gradient(180deg, #171C2C, #121726); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.showreel .win-dots { display: flex; gap: 5px; flex-shrink: 0; }
.showreel .win-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3A4055; }
.showreel .win-dots i:nth-child(1) { background: #FF5F57; } .showreel .win-dots i:nth-child(2) { background: #FEBC2E; } .showreel .win-dots i:nth-child(3) { background: #28C840; }
.showreel .win-url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; margin-right: 28px; height: 19px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--mute); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.showreel .win-url svg { width: 10px; height: 10px; color: var(--mint); flex-shrink: 0; }
.showreel .win-url b { color: var(--ink); font-weight: 600; }
.showreel .win-url span { overflow: hidden; text-overflow: ellipsis; }
.showreel .scr { position: relative; overflow: hidden; background: #fff; }
.showreel .win .scr { aspect-ratio: 1200 / 750; }
.showreel .phone { position: absolute; right: 0; bottom: -7%; width: 29%; padding: 4px; border-radius: 20px; background: linear-gradient(160deg, #2A3042, #0B0E16 40%); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8); }
.showreel .phone-in { position: relative; border-radius: 16px; overflow: hidden; background: #000; }
.showreel .phone .scr { aspect-ratio: 390 / 844; }
.showreel .island { position: absolute; z-index: 3; top: 5px; left: 50%; transform: translateX(-50%); width: 30%; height: 9px; border-radius: 9px; background: #000; }
@media (min-width: 600px) { .showreel .win-bar { height: 36px; } .showreel .win-url { font-size: 12px; height: 22px; } .showreel .win-dots i { width: 10px; height: 10px; } .showreel .phone { padding: 6px; border-radius: 30px; } .showreel .phone-in { border-radius: 24px; } .showreel .island { top: 8px; height: 14px; } }
@media (min-width: 992px) { .showreel .win { width: 100%; border-radius: 14px; } .showreel .phone { right: -22px; bottom: -44px; width: 27%; } }

.showreel .reel { display: flex; flex-direction: column; gap: 22px; }
.showreel .reel-tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.showreel .reel-tabs::-webkit-scrollbar { display: none; }
.showreel .reel-tab { flex: 0 0 auto; min-width: 168px; scroll-snap-align: start; text-align: left; cursor: pointer; padding: 12px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-family: var(--body); transition: all 0.25s; position: relative; }
.showreel .reel-tab:hover { border-color: var(--line-2); }
.showreel .reel-tab.on { border-color: rgba(171, 165, 238, 0.55); background: rgba(171, 165, 238, 0.08); color: var(--ink); }
.showreel .reel-name { display: block; font-family: var(--head); font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; }
.showreel .reel-town { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.showreel .reel-bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.showreel .reel-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.showreel .reel-tab.on .reel-bar i { animation: reelBar var(--reel-dur, 9s) linear forwards; }
.showreel .reel.paused .reel-tab.on .reel-bar i { animation-play-state: paused; }
@keyframes reelBar { to { width: 100%; } }
.showreel .reel-stage { position: relative; padding-bottom: 28px; }
.showreel .win--reel { width: 86%; }
.showreel .reel-scr { position: relative; overflow: hidden; background: #fff; }
.showreel .win--reel .reel-scr { aspect-ratio: 16 / 10; }
.showreel .phone--reel { right: 0; bottom: 0; width: 25%; }
.showreel .phone--reel .reel-scr { aspect-ratio: 390 / 844; }
.showreel .reel-scr img { display: block; width: 100%; height: auto; transform: translateY(0); }
/* Each frame scrolls on its own as soon as its picture is ready (showreel.js
   adds .run); a short pause at the top, then straight into the scroll. */
.showreel .reel-scr img.run { animation: reelScroll var(--reel-dur, 9s) cubic-bezier(0.4, 0, 0.25, 1) forwards; }
.showreel .reel.paused .reel-scr img { animation-play-state: paused; }
@keyframes reelScroll { 0%, 5% { transform: translateY(0); } 100% { transform: translateY(var(--dist, 0px)); } }
.showreel .reel-visit { display: inline-block; align-self: center; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.showreel .reel-visit:hover { color: var(--ink); border-color: var(--line-2); }
@media (min-width: 992px) {
  .showreel .reel { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: "tabs stage" "visit stage"; gap: 14px 56px; align-items: start; }
  .showreel .reel-tabs { grid-area: tabs; flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .showreel .reel-tab { min-width: 0; padding: 16px 18px 18px; }
  .showreel .reel-stage { grid-area: stage; padding-bottom: 40px; }
  .showreel .reel-visit { grid-area: visit; align-self: start; justify-self: start; }
  .showreel .phone--reel { right: -10px; width: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  .showreel .reel-scr img.run, .showreel .reel-tab.on .reel-bar i { animation: none; }
}
