:root {
  --reel-veil: rgb(247 241 249 / .29);
  --reel-rose: #ff6cbf;
  --reel-action: #78264f;
  --reel-rose-glass: rgb(255 108 191 / .12);
  --reel-surface: rgb(247 250 254 / .92);
  --reel-glint: rgb(255 255 255 / .78);
  --reel-ink: #242733;
  --reel-shadow: rgb(56 72 96 / .19);
}
:root[data-theme=dark] {
  --reel-veil: rgb(114 101 122 / .18);
  --reel-action: #ffd4eb;
  --reel-rose-glass: rgb(255 108 191 / .10);
  --reel-surface: rgb(56 62 77 / .94);
  --reel-glint: rgb(224 233 249 / .33);
  --reel-ink: #fff;
  --reel-shadow: rgb(13 18 30 / .20);
}
.reel-glass, .reel-viewer::backdrop {
  background: radial-gradient(ellipse at 65% 35%,var(--reel-rose-glass),transparent 65%), var(--reel-veil);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  backdrop-filter: blur(7px) saturate(112%);
}
.reel-glass {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s 240ms;
}
.reel-glass.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.reel-viewer {
  box-sizing: border-box; position: fixed; inset: 0; z-index: 9999;
  width: min(calc(100vw - 26px),calc((100dvh - 36px) * 9 / 16));
  height: fit-content; max-width: none; max-height: none; padding: 0; margin: auto;
  border: 0; border-radius: clamp(14px,1.55vw,24px);
  font: 550 16px/1.4 var(--body);
  color: var(--reel-ink); background: var(--reel-surface);
  box-shadow: 0 0 0 1px var(--reel-glint), 0 0 0 4px var(--reel-rose-glass), 0 16px 50px var(--reel-shadow);
  overflow: hidden;
}
.reel-viewer video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain;
}
.reel-viewer[data-preview] video { cursor: pointer; }
.reel-viewer header, .reel-viewer footer {
  position: absolute; z-index: 1; inset-inline: 0;
  display: flex; align-items: center; gap: 5px; padding: 10px; pointer-events: none;
}
.reel-viewer header { top: 0; justify-content: space-between; align-items: flex-start; }
.reel-viewer footer { bottom: 56px; }
.reel-viewer h2, .reel-viewer :is(button,footer a,output) {
  font: inherit; line-height: 1.25; color: var(--reel-ink);
  background: var(--reel-surface);
  border: 0; border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--reel-glint), 0 2px 10px var(--reel-shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.reel-viewer h2 {
  margin: 0; padding: 8px 13px; max-width: 74%; text-wrap: pretty;
  font-size: clamp(15px, 1.1vw, 17px); font-weight: 600; letter-spacing: normal;
}
.reel-viewer :is(button,footer a) { pointer-events: auto; cursor: pointer; }
.reel-viewer button { flex: none; min-width: 40px; min-height: 40px; padding: 0 8px; font-size: 19px; }
.reel-viewer footer a { margin-right: auto; padding: 9px 12px; text-decoration: none; font-size: 14px; }
.reel-viewer output { padding: 7px 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.reel-viewer :is(button,a):focus-visible { outline: 2px solid var(--reel-action); outline-offset: -3px; box-shadow: 0 0 0 2px var(--reel-rose); }
.reel-viewer [data-watch] { display: none; }
.reel-viewer[data-preview] footer { display: none; }
.reel-viewer[data-preview] [data-watch] {
  display: block; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  padding: 8px 15px; white-space: nowrap; font-size: 14px; color: var(--reel-action);
}
@media (hover: hover) {
  .reel-viewer :is(button,footer a):hover { color: var(--reel-action); background: color-mix(in srgb,var(--reel-surface) 89%,var(--reel-rose)); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-glass { transition: none; }
}
@media (max-width: 760px) {
  .hs-work__list a:has(.reel-inline-preview) { position: relative; }
  .hs-work__list video.reel-inline-preview { position: absolute; display: block; pointer-events: none; object-fit: cover; }
}
.story.is-pinned .ring-failed .hs-work__list a {
  display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; column-gap: 10px;
}
.story.is-pinned .ring-failed .hs-work__img { width: 38px; height: 38px; display: block; object-fit: cover; grid-row: 1 / 3; }


.reel-viewer[open] {
  display:grid; grid-template-columns:minmax(0, 9fr) minmax(0, 10fr);
  width:min(95vw,calc(93dvh * 1.1875),930px); max-height:94dvh;
  overflow:clip; align-items:center;
}
.reel-screen { position:relative; min-width:0; min-height:0; background:#171419; }
.reel-note { min-width:0; padding:clamp(18px,2.7vw,42px); }
.reel-note > small { color:var(--reel-action); font:650 12px/1.2 var(--body); letter-spacing:.055em; }
.reel-note h3 { font:normal clamp(26px,3vw,46px)/1.03 Georgia,serif; letter-spacing:-.045em; margin:10px 0 16px; text-wrap:balance; }
.reel-note p { font:450 16px/1.45 var(--body); margin:0; }
.reel-rates { margin-top:clamp(12px,2.5vh,26px); border-top:1px solid color-mix(in srgb,currentColor 18%,transparent); padding-top:12px; }
.reel-rates > span { display:block; font-size:13px; }
.reel-options { margin:8px 0; }
.reel-options > div { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:16px; padding:8px 0; border-bottom:1px solid color-mix(in srgb,currentColor 13%,transparent); }
.reel-options dt { font:500 14px/1.35 var(--body); }
.reel-options dd { margin:0; font:650 16px/1.2 var(--body); font-variant-numeric:tabular-nums; }
.reel-note { color:var(--reel-ink); }
.reel-note h3 { font:550 clamp(25px,2.5vw,38px)/1.07 var(--body); margin-top:0; }
:root[data-theme=dark] .reel-viewer { background:#242127; }
@media (max-width:650px) and (orientation:portrait) {
 .reel-viewer[open] { width:min(94vw,460px); height:min(95dvh,850px); grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; align-items:stretch; }
 .reel-viewer video { height:100%; }
 .reel-note { padding:12px 18px; }
 .reel-note h3 { font-size:24px; margin:4px 0 6px; }
 .reel-note p { font-size:14px; line-height:1.35; }
 .reel-rates { margin-top:9px; padding-top:7px; }
 .reel-options { margin:4px 0; }
}
@media (max-height:550px) and (orientation:landscape) {
 .reel-viewer[open] { width:min(95vw,780px); height:95dvh; grid-template-columns: minmax(0,.68fr) minmax(0,1fr); }
 .reel-screen,.reel-viewer video { height:100%; }
 .reel-note { padding:10px 18px; }
 .reel-note h3 { font-size:24px; margin:4px 0; }
 .reel-note p { font-size:14px; }
 .reel-rates { margin-top:8px; padding-top:6px; }
}
@media (max-height:550px) and (orientation:landscape) {
  .reel-viewer[open] { grid-template-rows:minmax(0,1fr); }
  .reel-options > div { padding:4px 0; }
}

.reel-options dt b { font-weight:700; margin-inline-end:.35em }
.reel-checkout { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; font:500 12px/1.25 var(--body) }
.reel-checkout button { background:#ff6cbf; color:#281520; font:650 14px/1.25 var(--body); min-height:36px; padding:7px 14px; box-shadow:none }
.reel-viewer[data-preview] .reel-checkout button { display:none }
