/* Stevie's clips (order 78): the Watch strip, the in-card player, the flyout pair, the phone corner bar (as Pulse's)
   and a product page's film. The clip always sits on the site's dark panel colour, so her light room never reads as
   a hole in the page. Behaviour: wwwroot/js/clips.js. */
:root { --clip-panel: #15120e; --clip-raised: #241f19; --clip-line: rgba(217, 149, 42, .24); --clip-cream: #f0e9db;
        --clip-text: #c9c1b1; --clip-stone: #9a9385; --clip-amber: #d9952a; --clip-ink: #1b1307; }

[data-clip-strip]:not([data-clip-ready]), [data-clip-flyout]:not([data-clip-ready]) { display: none; }

/* The Watch strip under a card's picture (56 px). */
[data-clip-strip] { border-bottom: 1px solid #d9cfbb; background: #f3ecdd; }
[data-clip-strip][data-clip-tone="dark"] { border: 1px solid #3a2c1f; border-radius: 10px; background: var(--clip-panel); }
.clip-chip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px 8px 10px; border: 0;
             background: transparent; color: var(--clip-ink); font: inherit; text-align: left; cursor: pointer; }
.clip-chip img { flex: none; width: 30px; height: 40px; object-fit: cover; border-radius: 5px; background: var(--clip-panel); }
.clip-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.clip-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.clip-t i { font-style: normal; color: #87520a; margin-right: 2px; }
.clip-watched { margin-left: 8px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; font-style: normal; font-family: 'IBM Plex Mono', monospace;
                font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.clip-lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; line-height: 1.35; color: #6b6150; }
[data-clip-tone="dark"] .clip-chip { color: var(--clip-cream); }
[data-clip-tone="dark"] .clip-t i { color: var(--clip-amber); }
[data-clip-tone="dark"] .clip-lbl, .clip-player .clip-lbl, .clip-fly .clip-lbl, .clip-film-host .clip-lbl { color: var(--clip-stone); }
.clip-chip:hover .clip-t { text-decoration: underline; text-underline-offset: 3px; }
.clip-chip:focus-visible, .clip-player button:focus-visible, .clip-film-play:focus-visible { outline: 2px solid var(--clip-amber); outline-offset: 2px; }

/* The player. */
.clip-player { display: flex; gap: 14px; background: var(--clip-panel); color: var(--clip-cream);
               font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 14px; line-height: 1.4; }
.clip-vid { position: relative; flex: none; }
.clip-vid video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #000; }
.clip-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.clip-head { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #efb350; }
.clip-cap { min-height: 2.8em; font-size: 14px; line-height: 1.4; color: var(--clip-cream); font-style: italic; }
.clip-cap.off { visibility: hidden; }
.clip-ctl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.clip-ctl button { font: inherit; font-size: 12px; font-weight: 600; color: var(--clip-cream); background: var(--clip-raised); border: 1px solid var(--clip-line);
                   border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.clip-ctl button.pri, .clip-ctl button[aria-pressed="true"] { background: var(--clip-amber); color: var(--clip-ink); border-color: var(--clip-amber); }
.clip-ctl .clip-x { margin-left: auto; min-width: 34px; font-size: 16px; line-height: 1; }

/* Wide screens: the card's picture flips to the player, inside the card's own frame; nothing on the page moves. */
[data-clip-stage] { display: none; }
[data-clip-stage][data-on] { display: block; position: absolute; inset: 0; z-index: 4; background: var(--clip-panel); }
.clip-player.card { position: absolute; inset: 0; padding: 10px; }
.clip-player.card .clip-vid { height: 100%; aspect-ratio: 9 / 16; }
.clip-player.card .clip-side { padding: 4px 4px 2px 0; }

/* The previous-work flyout: her clip in the column beside the tool's film. */
.clip-fly { display: flex; flex-direction: column; gap: 10px; }
.clip-fly .clip-chip { padding: 0; flex-direction: column; align-items: stretch; gap: 10px; color: var(--clip-cream); }
.clip-fly .clip-chip img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 8px; border: 1px solid #2a251e; }
.clip-fly .clip-t i { color: var(--clip-amber); }
.clip-fly[data-on] .clip-chip img { display: none; }
.clip-player.flyout { flex-direction: column; gap: 10px; }
.clip-player.flyout .clip-vid { width: 100%; aspect-ratio: 9 / 16; }
.clip-player.flyout .clip-head { display: none; }
.clip-pair { display: grid; gap: 0 28px; align-items: start; }
/* /previous's "How this works" panels with the tool's film and her clip (bradawl-0140): the homepage flyout's widths. */
.fly.fly-clip { width: min(780px, 100vw); }
.fly-clip .clip-pair { grid-template-columns: minmax(0, 1fr) 200px; }
/* Narrow flyouts: her clip first, as a compact Watch strip (it plays in the corner bar there). */
@media (max-width: 759.98px) {
  #dc-root .clip-pair { grid-template-columns: minmax(0, 1fr) !important; }
  #dc-root .clip-pair > :last-child { order: -1; position: static !important; }
  .fly-clip .clip-pair { grid-template-columns: minmax(0, 1fr); }
  .fly-clip .clip-pair > :last-child { order: -1; position: static !important; }
  .clip-fly .clip-chip { flex-direction: row; align-items: center; gap: 12px; }
  .clip-fly .clip-chip img { width: 30px; height: 40px; aspect-ratio: auto; border-radius: 5px; }
}

/* Phones (under 1024 px): Pulse's corner bar, fixed to the bottom, the clip bottom-right at 108 px, the captions and
   controls to its left, the label line under them. */
.clip-player.corner { position: fixed; z-index: 1100; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
                      flex-direction: row-reverse; align-items: flex-end; gap: 10px; padding: 8px; border: 1px solid var(--clip-line);
                      border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.clip-player.corner .clip-vid { flex: 0 0 108px; }
.clip-player.corner .clip-vid video { height: auto; aspect-ratio: 9 / 16; }
.clip-player.corner .clip-head { display: none; }
.clip-player.corner .clip-cap { font-size: 13px; }

/* A product page's film: one landscape film under the header, played in place. */
.p-film { padding: 8px 0 0; }
.clip-film-host { max-width: 1040px; margin: 0 auto; padding: 12px; border: 1px solid var(--line-2, #3e372c); border-radius: 14px; background: var(--clip-panel); }
.clip-film-idle { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.clip-film-idle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 22px; border: 0; border-radius: 999px;
                  background: var(--clip-amber); color: var(--clip-ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
                  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.clip-film-host[data-on] .clip-film-idle { display: none; }
.clip-film-host > .clip-lbl { margin: 10px 2px 0; }
.clip-player.film { flex-direction: column; gap: 10px; }
.clip-player.film .clip-vid { width: 100%; aspect-ratio: 16 / 9; }
.clip-player.film .clip-vid video { object-fit: contain; }
.clip-player.film .clip-head, .clip-player.film .clip-lbl { display: none; }
.clip-player.film .clip-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.clip-player.film .clip-cap { flex: 1 1 320px; min-height: 2.8em; }
.clip-player.film .clip-ctl { margin-top: 0; }
.clip-player.card .clip-lbl { display: none; }   /* the strip under the picture carries it */
.clip-fly[data-on] .clip-chip .clip-lbl { display: none; }   /* the player under it carries it */

/* The side-by-side films' controls (order 84b; Claude Design's "Version 1", cards 1a, 1b and 1c). Drawn by
   wwwroot/js/film-bar.js into [data-film-bar], which sits over the film in its box. */
[data-film-bar] { position: absolute; inset: 0; z-index: 2; pointer-events: none; container-type: inline-size;
                  font-family: 'IBM Plex Sans', system-ui, sans-serif; }
[data-film-bar]:not([data-film-ready]) { display: none; }
.fb-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(10, 9, 7, .82)); }
.fb-cap { position: absolute; left: 50%; transform: translateX(-50%); bottom: 58px; margin: 0; max-width: 78%; padding: 5px 12px; border-radius: 6px;
          background: rgba(12, 11, 9, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fbf7ef; font-size: .95rem;
          line-height: 1.35; text-align: center; letter-spacing: .005em; }
.fb-cap[hidden] { display: none; }
.fb-big { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0;
          background: rgba(233, 166, 58, .95); color: #1b1307; cursor: pointer; display: flex; align-items: center; justify-content: center;
          box-shadow: 0 8px 24px rgba(0, 0, 0, .45); pointer-events: auto; }
.fb-big[hidden] { display: none; }
.fb-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.fb-btn { flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 11, 9, .55);
          -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fbf7ef; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fb-btn:hover { background: rgba(12, 11, 9, .8); border-color: rgba(255, 255, 255, .4); }
.fb-seek { position: relative; flex: 1; min-width: 0; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.fb-rail { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.fb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #efb350; }
.fb-knob { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fbf7ef;
           box-shadow: 0 0 0 3px rgba(239, 179, 80, .35); }
.fb-time { flex: none; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: rgba(251, 247, 239, .78); font-variant-numeric: tabular-nums; }
.fb-cc { flex: none; height: 30px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 11, 9, .55);
         color: rgba(251, 247, 239, .8); cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: .66rem; font-weight: 500; letter-spacing: .06em; }
.fb-cc[aria-pressed="true"] { border-color: transparent; background: rgba(251, 247, 239, .92); color: #17140f; }
.fb-cc:hover { border-color: rgba(255, 255, 255, .55); }
.fb-pill { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 10px; border-radius: 999px; border: 0; background: #e9a63a;
           color: #1b1307; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px -4px rgba(233, 166, 58, .7); }
.fb-pill:hover { background: #f3b955; }
[data-film-bar] button:focus-visible, .fb-seek:focus-visible { outline: 2px solid #efb350; outline-offset: 2px; }
/* Narrow films (a phone): the same bar, every touch target 40 px or more; the progress bar takes its own row above the
   buttons so it keeps a usable length. */
@container (max-width: 520px) {
  .fb-bar { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; gap: 4px 8px; }
  .fb-seek { order: -1; flex: 1 0 100%; height: 40px; }
  .fb-btn { width: 40px; height: 40px; }
  .fb-time { margin-right: auto; }
  .fb-cc { height: 40px; min-width: 40px; }
  .fb-pill { height: 40px; }
  .fb-cap { bottom: 100px; max-width: 90%; font-size: .85rem; }
}
/* A product page's film in its box, with the same bar (order 84b). */
.film-box { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
