/* Dialogue.Dance video frames. Decoration AROUND the player.
   Nothing in here touches the footage: no crop, no filter, no overlay on the
   video, no transform. The video keeps its own aspect ratio and its own box.
   Paul named classic wood grain and rainbow swirls, so these have character.
   String Lights palette as of 2026-11-25. No gold or silver: those belong to
   School For Lovers. Pure CSS and one small inline SVG. No images, no
   dependencies, no animation.

   The wood, the velvet and the rainbow keep their own colours on purpose: a
   wood frame that is not wood-coloured is not a wood frame, and these are
   pictures of materials rather than uses of the palette. What did move is the
   ornate frame, which was built out of the old house colour, and the confetti
   dots, which were built out the old crimson. */

.vframe {
  --vf-pad: 13px;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vframe__plate {
  display: block;
  padding: var(--vf-pad);
  position: relative;
}

/* The player inside a frame keeps the geometry app.css gives it. Nothing
   here resizes, crops or re-fits the video. */
.vframe .door-video {
  border-radius: 6px;
  display: block;
}

@media (max-width: 420px) {
  .vframe { --vf-pad: 10px; }
}

/* ---- Classic Wood. Traditional grain, mitred bevel. ---- */
.vframe--classic-wood .vframe__plate {
  --vf-pad: 15px;
  background-color: #6b4423;
  background-image:
    linear-gradient(180deg, rgba(255, 244, 222, .16), rgba(0, 0, 0, .22)),
    repeating-linear-gradient(92deg,
      #6b4423 0 3px, #7d5230 3px 7px, #5c3a1e 7px 9px,
      #8a5c37 9px 13px, #674021 13px 16px);
  box-shadow:
    inset 0 0 0 1px rgba(33, 25, 30, .45),
    inset 0 2px 5px rgba(255, 244, 222, .2),
    inset 0 -2px 5px rgba(0, 0, 0, .3);
}

.vframe--classic-wood .door-video {
  box-shadow: 0 0 0 2px #3c2512, 0 0 10px rgba(0, 0, 0, .45);
}

/* ---- Ornate. A carved frame with scrollwork, in the SFL palette.
        Gold was NOT used: brand rules keep gold with School For Lovers. ---- */
.vframe--ornate .vframe__plate {
  --vf-pad: 18px;
  background-color: #10353F;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cg fill='none' stroke='%23FFF7EC' stroke-opacity='.34' stroke-width='1.3'%3E%3Cpath d='M0 17h5c0-6 6-6 6 0s6 6 6 0'/%3E%3Cpath d='M17 0v5c6 0 6 6 0 6s-6 6 0 6'/%3E%3Ccircle cx='28' cy='28' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 247, 236, .2), rgba(0, 0, 0, .3));
  box-shadow:
    inset 0 0 0 2px rgba(255, 247, 236, .55),
    inset 0 0 0 7px rgba(16, 53, 63, .9),
    inset 0 0 14px rgba(0, 0, 0, .4);
}

.vframe--ornate .door-video {
  box-shadow: 0 0 0 2px rgba(255, 247, 236, .75);
}

/* ---- Rainbow Swirl. Colour all the way round. Static, never animated. ---- */
.vframe--rainbow-swirl .vframe__plate {
  --vf-pad: 14px;
  background-image: conic-gradient(from 210deg,
    #C6452E, #F26A1B, #F2B01E, #0E6E62, #2f6f78,
    #123A6B, #C9186B, #C6452E);
}

.vframe--rainbow-swirl .door-video {
  box-shadow: 0 0 0 3px #FFF9F0;
}

/* ---- Confetti. Little dots. ---- */
.vframe--confetti-dots .vframe__plate {
  --vf-pad: 15px;
  background-color: #FFF9F0;
  background-image:
    radial-gradient(circle at 12% 18%, #C9186B 0 3px, transparent 3px),
    radial-gradient(circle at 76% 9%, #0E6E62 0 2.5px, transparent 2.5px),
    radial-gradient(circle at 34% 82%, #F26A1B 0 3px, transparent 3px),
    radial-gradient(circle at 90% 66%, #123A6B 0 2.5px, transparent 2.5px),
    radial-gradient(circle at 56% 42%, #F2B01E 0 2px, transparent 2px),
    radial-gradient(circle at 5% 60%, #16809F 0 2.5px, transparent 2.5px);
  background-size: 54px 54px, 47px 47px, 61px 61px, 43px 43px, 71px 71px, 58px 58px;
  box-shadow: inset 0 0 0 1px rgba(16, 53, 63, .18);
}

.vframe--confetti-dots .door-video {
  box-shadow: 0 0 0 1px rgba(16, 53, 63, .35);
}

/* ---- Velvet Mat. A deep mount with a soft sheen. ---- */
.vframe--velvet-mat .vframe__plate {
  --vf-pad: 19px;
  background-color: #283a35;
  background-image:
    linear-gradient(118deg, rgba(255, 247, 236, .17) 0 38%, rgba(0, 0, 0, .2) 62%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .035) 0 2px, rgba(0, 0, 0, .035) 2px 4px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .35);
}

.vframe--velvet-mat .door-video {
  box-shadow: 0 0 0 2px rgba(255, 247, 236, .6);
}

/* ---- Hairline. One thin line, for people who want quiet. Theme-aware. ---- */
.vframe--hairline {
  box-shadow: none;
}

.vframe--hairline .vframe__plate {
  --vf-pad: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.vframe--hairline .door-video {
  box-shadow: 0 0 0 1px var(--line);
}

/* ---- The picker, on the member's own profile. ---- */
.frame-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}

.frame-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 9px 11px;
  border: 1px solid var(--control-edge);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.frame-choice[aria-pressed='true'] {
  border-color: var(--cta);
  box-shadow: inset 0 0 0 1px var(--cta);
}

.frame-choice:focus-visible {
  outline: 3px solid var(--trust);
  outline-offset: 2px;
}

.frame-choice-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* A small stand-in for a video, so each choice shows its own frame. */
.frame-swatch {
  flex: 0 0 auto;
  width: 46px;
  border-radius: 8px;
  box-shadow: none;
}

.frame-swatch .vframe__plate {
  --vf-pad: 5px;
}

.frame-swatch-fill {
  display: block;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(160deg, #3A4446, #1C1A1B);
}

/* No frame has nothing to show, so the swatch shows the bare stand-in. */
.frame-swatch.vframe--none .vframe__plate {
  --vf-pad: 0px;
}

/* Nothing in this file animates. If that ever changes, it stops here. */
@media (prefers-reduced-motion: reduce) {
  .vframe, .vframe__plate, .frame-swatch { animation: none !important; transition: none !important; }
}

/* A paid choice shown to a member without the perk. Inert on purpose: it is
   visibly not a button, so nobody taps it and wonders why nothing happened. */
.frame-choice.is-locked {
  cursor: default;
  opacity: .62;
  border-style: dashed;
  background: var(--surface-2);
}
