/* "Try it here" (src/demos/*.js): a Glide window with a row of demo buttons above it. Colours are the site's (style.css). */
.gd-try { margin-top: 30px; }
.gd-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; }
.gd-tab { font: inherit; font-size: 14px; font-weight: 600; color: var(--text-1); background: var(--bg-2); border: 1px solid var(--line); border-radius: 40px; padding: 9px 16px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.gd-tab:hover { border-color: var(--line-strong); color: var(--text-0); }
.gd-tab.on { background: var(--mint); color: #04211b; border-color: var(--mint); }
.gd-win { position: relative; background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; overflow: clip; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 225, 187, 0.06); }
.gd-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; }
.gd-dots { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; margin-right: 34px; opacity: 0.85; }
.gd-title { color: var(--text-0); font-weight: 600; }
.gd-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.gd-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint-glow); animation: gd-blink 1.6s ease-in-out infinite; }
@keyframes gd-blink { 50% { opacity: 0.35; } }
.gd-stage { padding: 22px; min-height: 460px; }
.gd-wait { color: var(--text-2); padding: 110px 0; text-align: center; }

/* two columns: the controls, then the picture (stacked on a phone: the picture first) */
.gd-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 26px; align-items: start; }
.gd-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gd-view { display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 0; }
@media (max-width: 880px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); }
  .gd-view { order: -1; }
  .gd-stage { padding: 16px; }
}
.gd-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; }
.gd-hint, .gd-note, .gd-small { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }
.gd-note { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.gd-small { text-align: center; }

/* controls */
.gd-input { font: inherit; font-size: 15px; color: var(--text-0); background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; }
.gd-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.gd-words, .gd-chips, .gd-swatches, .gd-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-word, .gd-chip, .gd-item { font: inherit; font-size: 13px; line-height: 1.3; color: var(--text-1); background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.gd-word:hover, .gd-chip:hover, .gd-item:hover { border-color: var(--line-strong); color: var(--text-0); }
.gd-word.on { color: #04211b; background: var(--mint); border-color: var(--mint); }
.gd-chip.on, .gd-item.on { color: var(--text-0); border-color: var(--mint); background: var(--mint-soft); }
.gd-chip.more { color: var(--mint); border-style: dashed; }
.gd-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; padding-right: 4px; }
.gd-item { text-align: left; }
.gd-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg-1); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.gd-swatch.on { box-shadow: 0 0 0 2px var(--text-0); }
.gd-btn { font: inherit; font-size: 14px; font-weight: 700; color: #04211b; background: var(--mint); border: 1px solid var(--mint); border-radius: 40px; padding: 9px 18px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.gd-btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(0, 225, 187, 0.4); }
.gd-btn.ghost { color: var(--text-0); background: transparent; border-color: var(--line-strong); }
.gd-btn.ghost:hover { box-shadow: none; border-color: var(--text-2); }
.gd-btn[disabled] { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.gd-slider { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.gd-slider-top { display: flex; justify-content: space-between; color: var(--text-1); }
.gd-slider b { color: var(--text-0); }
.gd-slider input { accent-color: var(--mint); width: 100%; }
.gd-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }

.gd-btn.small { font-size: 12px; padding: 6px 12px; }
.gd-seg { display: inline-flex; background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; gap: 3px; }
.gd-segbtn { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 9px; padding: 7px 12px; cursor: pointer; flex: 1; }
.gd-segbtn.on { color: #04211b; background: var(--mint); }
.gd-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.gd-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-1); }
.gd-select { font: inherit; font-size: 14px; color: var(--text-0); background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; width: 100%; }
.gd-select:focus { outline: none; border-color: var(--mint); }
.gd-tick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); cursor: pointer; }
.gd-tick input { accent-color: var(--mint); width: 16px; height: 16px; }
.gd-colour { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); cursor: pointer; }
.gd-colour input { width: 34px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }
.gd-inline { font-size: 14px; color: var(--text-1); margin-right: 4px; }
.gd-row { align-items: center; gap: 12px; }
.gd-tune { display: flex; flex-direction: column; gap: 10px; }
.gd-looks { gap: 5px; }
.gd-looks .gd-chip { font-size: 12px; padding: 5px 9px; }
.gd-sticky { position: sticky; top: 96px; }
/* A phone (2026-11-17): the picture sits above 2,000+ px of settings, so it used to scroll away while you changed one.
   try.js marks it .gd-pin and, once most of it has left the screen, .gd-mini: a small copy that stays in the top right
   corner. The grid becomes a column flexbox there, because a sticky grid item cannot leave its own row. */
@media (max-width: 880px) {
  .gd-sticky { position: static; }
  .gd-grid { display: flex; flex-direction: column; align-items: stretch; }
  .gd-sticky.gd-pin { position: sticky; top: calc(72px - var(--gd-up, 0px)); z-index: 5; transform-origin: top right; transition: transform .28s ease; }
  .gd-sticky.gd-pin > * { transition: opacity .2s ease; }
  .gd-sticky.gd-mini { transform: translate(6px, calc(var(--gd-up, 0px) + 10px)) scale(0.42); pointer-events: none; }
  .gd-sticky.gd-mini > :first-child { margin-left: auto; margin-right: 0; box-shadow: 0 0 0 3px rgba(0, 225, 187, 0.55), 0 24px 70px rgba(0, 0, 0, 0.85); }
  .gd-sticky.gd-mini > :not(:first-child) { opacity: 0; }
}
@media (max-width: 880px) and (prefers-reduced-motion: reduce) { .gd-sticky.gd-pin, .gd-sticky.gd-pin > * { transition: none; } }
.gd-wide { max-width: 100%; }

/* pictures */
.gd-screen { position: relative; width: min(320px, 74vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d0e11; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.gd-screen.wide { width: 100%; border-radius: 14px; }
.gd-screen.square { width: min(420px, 100%); border-radius: 16px; }
.gd-screen .gd-shot, .gd-screen .gd-own, .gd-screen .gd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-phone { width: min(300px, 72vw); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d0e11; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.gd-canvas { width: 100%; height: 100%; display: block; }
.gd-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0d0e11; border: 1px solid var(--line-strong); position: relative; }
.gd-clip { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.gd-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-timeline { width: 100%; height: 6px; border-radius: 3px; background: var(--bg-3); position: relative; }
.gd-head { position: absolute; top: -5px; width: 2px; height: 16px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 8px var(--mint-glow); }

/* Rough Cut: the talk as a waveform with its words, the cuts over it, the pieces left after, the list */
.gd-wide-view { align-items: stretch; }
.gd-input-s { font-size: 14px; padding: 9px 12px; }
.gd-rc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gd-rc-sum { font-size: 15px; font-weight: 600; color: var(--text-0); }
.gd-rc-track { position: relative; height: 110px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gd-rc-wave { position: absolute; left: 0; right: 0; top: 14px; height: 84px; display: flex; align-items: center; gap: 1px; padding: 0 2px; }
.gd-rc-wave i { flex: 1; background: var(--mint); opacity: 0.7; border-radius: 2px; min-height: 2px; }
.gd-rc-cuts { position: absolute; inset: 0; }
.gd-rc-cut { position: absolute; top: 0; bottom: 0; background: rgba(255, 107, 107, 0.22); border-left: 1px solid rgba(255, 107, 107, 0.7); border-right: 1px solid rgba(255, 107, 107, 0.7); transition: left .25s, width .25s; }
.gd-rc-cut.said { background: rgba(255, 176, 46, 0.25); border-color: rgba(255, 176, 46, 0.8); }
.gd-rc-text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-0); }
.gd-rc-word.gone { color: #ff8a8a; text-decoration: line-through; opacity: 0.8; }
.gd-rc-after { display: flex; flex-direction: column; gap: 6px; }
.gd-rc-lane { display: flex; align-items: center; height: 40px; gap: 0; }
.gd-rc-piece { height: 100%; background: var(--mint-soft); border: 1px solid var(--mint); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-0); min-width: 6px; animation: gd-in .35s ease-out both; }
.gd-rc-piece.punch { background: rgba(123, 115, 250, 0.22); border-color: var(--violet); }
.gd-rc-fade { width: 10px; height: 60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); flex: none; }
@keyframes gd-in { from { transform: scaleX(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.gd-rc-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.gd-rc-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.gd-rc-row:not(.cut) { opacity: 0.6; }
.gd-rc-time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.gd-rc-what { color: var(--text-1); }

.gd-num { width: 64px; padding: 6px 8px; }
.gd-anchor-grid { display: grid; grid-template-columns: repeat(3, 38px); gap: 4px; }
.gd-anchor-grid .gd-btn { padding: 5px 0; }
.gd-tb-item.stair { background: rgba(208, 133, 249, 0.3); border-color: var(--lilac); }

/* Clip presets: Smoothness, as a picture of more or fewer keyframes */
.gd-keys { position: relative; height: 14px; margin: -4px 6px 0; }
.gd-keys i { position: absolute; top: 2px; width: 9px; height: 9px; margin-left: -4px; background: var(--text-1); transform: rotate(45deg); border-radius: 1px; }
.gd-frame { cursor: crosshair; }
.gd-chip[disabled] { opacity: 0.35; cursor: default; }

/* shared bits of the later demos */
.gd-seg-wrap { flex-wrap: wrap; }
.gd-ai { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(123, 115, 250, 0.06); }
.gd-settings { display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
.gd-greyed { opacity: 0.4; pointer-events: none; }
.gd-anchor { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); pointer-events: none; }
.gd-anchor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--mint); }
.gd-layer-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #04211b; background: var(--mint); padding: 3px 8px; border-radius: 6px; }

/* Auto-pilot */
.gd-ap-tl { position: relative; display: flex; gap: 3px; height: 46px; }
.gd-ap-clip { position: relative; background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; min-width: 20px; }
.gd-ap-clip span { position: absolute; left: 6px; top: 4px; font-size: 11px; color: var(--text-2); }
.gd-ap-move { position: absolute; bottom: 5px; height: 12px; background: var(--mint); border-radius: 4px; box-shadow: 0 0 10px var(--mint-glow); }
.gd-ap-tl .gd-head { top: -4px; height: 54px; }
.gd-ap-list { max-height: 210px; }

/* Beats */
.gd-shot-b { position: absolute; inset: 0; }
.gd-beats-star { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 700; color: #04211b; background: var(--amber); padding: 3px 8px; border-radius: 6px; }
.gd-beats-strip { position: relative; height: 90px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gd-beats-bars { position: absolute; left: 0; right: 0; top: 22px; bottom: 8px; display: flex; align-items: flex-end; gap: 1px; padding: 0 2px; }
.gd-beats-bars i { flex: 1; background: var(--violet); opacity: 0.55; border-radius: 2px 2px 0 0; }
.gd-beats-marks, .gd-beats-cuts, .gd-beats-parts { position: absolute; inset: 0; pointer-events: none; }
.gd-beats-mark { position: absolute; top: 18px; bottom: 0; width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 6px var(--mint-glow); }
.gd-beats-mark.big { width: 3px; background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 46, 0.7); }
.gd-beats-cut { position: absolute; top: 0; height: 16px; width: 2px; margin-left: -1px; background: #ff6b6b; }
.gd-beats-part { position: absolute; top: 3px; font-size: 11px; font-weight: 700; color: var(--text-1); padding-left: 6px; border-left: 1px solid var(--line-strong); }
.gd-beats-strip .gd-head { top: 0; height: 100%; }

/* Toolbox */
.gd-tb-group { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gd-tb-row { flex-wrap: wrap; gap: 6px; }
.gd-emoji { font-size: 20px; line-height: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 5px 7px; cursor: pointer; }
.gd-emoji:hover { border-color: var(--mint); }
.gd-colour-in { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }
.gd-tb-phone { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform .35s ease, box-shadow .2s; }
.gd-tb-phone .gd-shot { object-fit: contain; }
.gd-tb-still, .gd-tb-pic { position: absolute; width: 34%; right: 4%; bottom: 6%; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.gd-tb-pic { width: 16%; left: 4%; right: auto; background: #fff; }
.gd-tb-matte { position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: multiply; }
.gd-tb-text { position: absolute; left: 0; right: 0; top: 10%; text-align: center; font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(16px, 3.2vw, 34px); color: #fff; text-transform: uppercase; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; }
.gd-tb-emoji { position: absolute; left: 50%; top: 40%; font-size: clamp(30px, 6vw, 64px); transform: translate(-50%, -50%); }
.gd-tb-emoji.pop { animation: gd-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes gd-pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
.gd-tb-guide { position: absolute; inset: 0; pointer-events: none; }
.gd-tb-guide.safe::before { content: ""; position: absolute; inset: 5%; border: 2px dashed rgba(255, 255, 255, 0.75); }
.gd-tb-guide.safe::after { content: ""; position: absolute; inset: 10%; border: 2px dashed rgba(0, 225, 187, 0.85); }
.gd-tb-guide.shorts::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 31.6%; transform: translateX(-50%); border-left: 2px dashed rgba(255, 255, 255, 0.85); border-right: 2px dashed rgba(255, 255, 255, 0.85); background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.35) 70%); }
.gd-tb-guide.end::after { content: ""; position: absolute; right: 6%; top: 18%; width: 30%; height: 60%; border: 2px dashed rgba(255, 255, 255, 0.85); border-radius: 8px; }
.gd-tb-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 70%; }
.gd-tb-badges span { font-size: 10px; font-weight: 700; color: #04211b; background: var(--mint); padding: 2px 6px; border-radius: 5px; }
.gd-tb-screen.looping[data-loop="over"] .gd-tb-phone { animation: gd-loop 1.2s infinite; }
.gd-tb-screen.looping[data-loop="back"] .gd-tb-phone { animation: gd-loop 1.2s infinite alternate; }
.gd-tb-screen.loop-linear .gd-tb-phone { animation-timing-function: linear; }
@keyframes gd-loop { from { transform: scale(0.5); } to { transform: scale(0.62); } }
.gd-tb-tl { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.gd-tb-lane { display: flex; align-items: center; gap: 6px; height: 24px; }
.gd-tb-lab { width: 38px; flex: none; font-size: 11px; font-weight: 700; color: var(--text-2); }
.gd-tb-body, .gd-tb-ruler { position: relative; flex: 1; height: 100%; }
.gd-tb-ruler { background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 14.2857%); cursor: pointer; border-radius: 4px; }
.gd-tb-item { position: absolute; top: 2px; bottom: 2px; background: rgba(0, 121, 252, 0.4); border: 1px solid rgba(0, 121, 252, 0.8); border-radius: 4px; font-size: 10px; color: #fff; padding: 0 4px; overflow: hidden; white-space: nowrap; }
.gd-tb-item.phone { background: rgba(123, 115, 250, 0.35); border-color: var(--violet); }
.gd-tb-item.freeze, .gd-tb-item.pic, .gd-tb-item.emoji, .gd-tb-item.text, .gd-tb-item.matte { background: rgba(255, 176, 46, 0.35); border-color: var(--amber); z-index: 1; }
.gd-tb-item.flash { background: #ff6b6b; border-color: #ff6b6b; }
.gd-tb-item.late { background: rgba(255, 107, 107, 0.3); border-color: #ff6b6b; }
.gd-tb-item.ok, .gd-tb-item.cam { background: rgba(0, 225, 187, 0.28); border-color: var(--mint); }
.gd-tb-item.cam.b { background: rgba(208, 133, 249, 0.3); border-color: var(--lilac); }
.gd-tb-item.cam.w { background: rgba(255, 255, 255, 0.15); border-color: var(--text-2); }
.gd-tb-mark { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; background: var(--mint); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.gd-tb-mark.bad { background: #ff4d4d; }
.gd-tb-ph { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--mint); box-shadow: 0 0 8px var(--mint-glow); margin-left: 8px; pointer-events: none; }
.gd-tb-info { margin: 0; white-space: pre-wrap; font: 13px/1.6 "Inter", sans-serif; color: var(--text-1); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 60px; }

/* States */
.gd-st-ready { display: flex; flex-direction: column; gap: 6px; }
.gd-st-sec { font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.gd-st-screen { background: #1b1d24; background-image: radial-gradient(circle at 30% 30%, rgba(0, 225, 187, 0.12), transparent 60%), radial-gradient(circle at 70% 70%, rgba(123, 115, 250, 0.14), transparent 60%); cursor: crosshair; }
.gd-st-clip { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.gd-st-line { position: relative; height: 26px; background: var(--bg-0); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.gd-st-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--text-2); transform: rotate(45deg); border-radius: 2px; }
.gd-st-dot.on { background: var(--mint); box-shadow: 0 0 8px var(--mint-glow); }
.gd-st-ease { position: absolute; top: 9px; height: 6px; background: rgba(0, 225, 187, 0.3); border-radius: 3px; }
.gd-st-line .gd-head { top: 0; height: 100%; }

/* ── Captions: Decorative, Animated and Fast (2026-11-15) ── */
.gd-modes { display: flex; width: 100%; }
.gd-modes .gd-segbtn { flex: 1; padding: 9px 10px; font-size: 14px; }
.gd-mode-panel { display: flex; flex-direction: column; gap: 10px; }
.gd-mode-panel[hidden] { display: none; }
.gd-sub { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.gd-sub[hidden] { display: none; }
.gd-wrap { flex-wrap: wrap; }
.gd-for { font-size: 12.5px; font-weight: 600; color: var(--mint); margin: 0; padding: 6px 10px; border-left: 3px solid var(--mint); background: var(--mint-soft); border-radius: 6px; }
.gd-titles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gd-titles-all { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 420px; overflow-y: auto; padding-right: 4px; }
.gd-title { font: inherit; display: flex; flex-direction: column; gap: 4px; padding: 5px; color: var(--text-1); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; min-width: 0; }
.gd-title:hover { border-color: var(--line-strong); color: var(--text-0); }
.gd-title.on { border-color: var(--mint); background: var(--mint-soft); color: var(--text-0); }
.gd-title-pic { position: relative; display: block; width: 100%; aspect-ratio: 250 / 130; background: #121318; border-radius: 6px; overflow: hidden; }
.gd-title-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gd-title.playing .gd-title-pic img { visibility: hidden; }
.gd-strip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background-repeat: no-repeat; pointer-events: none; }
.gd-title-name { font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-title.preview-only { cursor: default; }
.gd-title.preview-only .gd-title-name::after { content: " · preview"; color: var(--text-3, #7b8191); }
.gd-more { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.gd-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-1); }
.gd-more[open] > summary { margin-bottom: 8px; }
.gd-try [hidden] { display: none !important; }
