/* =========================================================================
   Stylized Photo/Video Frames (10 styles), Stylized Board Surfaces,
   Video & Audio/Vinyl Board Cards, and Unified Media Picker
   ========================================================================= */

/* ---- 1. STYLIZED BOARD SURFACE THEMES (ADDITIONS — KEEPS EXISTING 4) ---- */
.miro-reader[data-surface="scarlet-velvet"] {
  --miro-bg: #26060b;
  --miro-dot: rgba(255, 214, 206, 0.18);
  --miro-grid-line: rgba(255, 214, 206, 0.08);
  --miro-ui-bg: rgba(30, 6, 11, 0.90);
  --miro-ui-border: rgba(255, 206, 198, 0.22);
  --miro-ui-ink: #fff4f5;
  --miro-accent: #f24b59;
  --miro-accent-bright: #ffd9dc;
}
.miro-reader[data-surface="scarlet-velvet"] .miro-viewport {
  background:
    radial-gradient(ellipse 68% 58% at 50% 42%, rgba(196, 18, 34, 0.56), transparent 72%),
    radial-gradient(ellipse 46% 42% at 18% 82%, rgba(140, 10, 22, 0.36), transparent 65%),
    linear-gradient(160deg, #2d050b 0%, #170306 54%, #0e0204 100%);
}

.miro-reader[data-surface="darkroom-35mm"] {
  --miro-bg: #110508;
  --miro-dot: rgba(255, 118, 102, 0.22);
  --miro-grid-line: rgba(255, 118, 102, 0.09);
  --miro-ui-bg: rgba(18, 6, 9, 0.92);
  --miro-ui-border: rgba(255, 138, 122, 0.22);
  --miro-ui-ink: #ffece8;
  --miro-accent: #ff6e5a;
  --miro-accent-bright: #ffb8ac;
}
.miro-reader[data-surface="darkroom-35mm"] .miro-viewport {
  background:
    radial-gradient(circle at 50% 24%, rgba(212, 34, 26, 0.28), transparent 58%),
    radial-gradient(circle at 80% 78%, rgba(164, 24, 34, 0.22), transparent 56%),
    #0b0305;
}

.miro-reader[data-surface="vogue-editorial"] {
  --miro-bg: #f6f3ec;
  --miro-dot: rgba(22, 18, 20, 0.16);
  --miro-grid-line: rgba(22, 18, 20, 0.065);
  --miro-ui-bg: rgba(252, 250, 246, 0.94);
  --miro-ui-border: rgba(22, 18, 20, 0.14);
  --miro-ui-ink: #171416;
  --miro-accent: #c81928;
  --miro-accent-bright: #9e101c;
}
.miro-reader[data-surface="vogue-editorial"] .miro-viewport {
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(22, 18, 20, 0.07) 50%, transparent 50.08%),
    radial-gradient(ellipse 75% 75% at 50% 50%, #fbf9f4 0%, #eee8dc 100%);
}
.miro-reader[data-surface="vogue-editorial"] .miro-frame__header,
.miro-reader[data-surface="dream-scrapbook"] .miro-frame__header {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(22, 18, 20, 0.14);
  color: #1c181a;
}

.miro-reader[data-surface="dream-scrapbook"] {
  --miro-bg: #eadfce;
  --miro-dot: rgba(138, 64, 78, 0.24);
  --miro-grid-line: rgba(122, 76, 56, 0.10);
  --miro-ui-bg: rgba(248, 240, 228, 0.94);
  --miro-ui-border: rgba(108, 72, 54, 0.20);
  --miro-ui-ink: #2b1e1a;
  --miro-accent: #b8324c;
  --miro-accent-bright: #8c2036;
}
.miro-reader[data-surface="dream-scrapbook"] .miro-viewport {
  background:
    radial-gradient(ellipse 80% 70% at 30% 25%, rgba(255, 232, 234, 0.55), transparent 64%),
    radial-gradient(ellipse 75% 65% at 75% 80%, rgba(214, 184, 146, 0.36), transparent 64%),
    #eadfce;
}

.miro-reader[data-surface="cyber-noir"] {
  --miro-bg: #070612;
  --miro-dot: rgba(235, 193, 194, 0.22);
  --miro-grid-line: rgba(154, 130, 255, 0.11);
  --miro-ui-bg: rgba(12, 10, 24, 0.90);
  --miro-ui-border: rgba(235, 193, 194, 0.22);
  --miro-ui-ink: #f6f2ff;
  --miro-accent: #f08cb4;
  --miro-accent-bright: #ffd4e6;
}
.miro-reader[data-surface="cyber-noir"] .miro-viewport {
  background:
    radial-gradient(ellipse 56% 52% at 22% 24%, rgba(124, 62, 220, 0.24), transparent 68%),
    radial-gradient(ellipse 52% 48% at 82% 76%, rgba(236, 68, 128, 0.22), transparent 68%),
    #070612;
}

.miro-reader[data-surface="video-bg"] {
  --miro-bg: #060509;
  --miro-dot: rgba(255, 255, 255, 0.14);
  --miro-grid-line: rgba(255, 255, 255, 0.055);
}
.miro-reader[data-surface="video-bg"] .miro-viewport {
  background-color: transparent;
}

/* Fullscreen Background Video Layer on Boards */
.reader-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* ---- 2. 10 STYLIZED PHOTO & VIDEO FRAMES ---- */
.miro-photo-card,
.board-photo-card {
  position: relative;
}

/* 1. Classic White Polaroid (default) */
.miro-photo-card[data-style="polaroid"],
.board-photo-card[data-style="polaroid"] {
  background: #f6f2ea;
  padding: 10px 10px 40px;
  border-radius: 3px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44), 0 2px 6px rgba(0, 0, 0, 0.30);
}

/* 2. Noir Black Polaroid */
.miro-photo-card[data-style="polaroid-noir"],
.board-photo-card[data-style="polaroid-noir"] {
  background: linear-gradient(160deg, #1a1821 0%, #0e0d12 100%);
  padding: 10px 10px 42px;
  border-radius: 3px;
  border: 1px solid rgba(255, 226, 227, 0.22);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.miro-photo-card[data-style="polaroid-noir"] .board-photo-card__tag,
.board-photo-card[data-style="polaroid-noir"] .board-photo-card__tag { color: #ffe2e3; }
.miro-photo-card[data-style="polaroid-noir"] .board-photo-card__num,
.board-photo-card[data-style="polaroid-noir"] .board-photo-card__num { color: rgba(255, 226, 227, 0.56); }

/* 3. Museum Gilded Gold Frame */
.miro-photo-card[data-style="gilded"],
.board-photo-card[data-style="gilded"] {
  background: linear-gradient(135deg, #e7c882 0%, #b88b3b 28%, #f3dca0 52%, #8d6321 78%, #d4af64 100%);
  padding: 15px 15px 40px;
  border-radius: 4px;
  border: 2px solid #f7e3b0;
  box-shadow:
    inset 0 0 0 4px #5e3f12,
    inset 0 0 0 8px #d7b269,
    0 22px 52px rgba(0, 0, 0, 0.68);
}
.miro-photo-card[data-style="gilded"] img,
.miro-photo-card[data-style="gilded"] video,
.board-photo-card[data-style="gilded"] img {
  box-shadow: 0 0 0 3px #1b140d, inset 0 2px 10px rgba(0, 0, 0, 0.5);
}
.miro-photo-card[data-style="gilded"] .board-photo-card__tag,
.board-photo-card[data-style="gilded"] .board-photo-card__tag { color: #1f1407; }
.miro-photo-card[data-style="gilded"] .board-photo-card__num,
.board-photo-card[data-style="gilded"] .board-photo-card__num { color: rgba(31, 20, 7, 0.65); }

/* 4. 35mm Cinema Film Strip */
.miro-photo-card[data-style="film-35mm"],
.board-photo-card[data-style="film-35mm"] {
  background: #100f13;
  padding: 24px 12px 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.72);
}
.miro-photo-card[data-style="film-35mm"]::before,
.miro-photo-card[data-style="film-35mm"]::after,
.board-photo-card[data-style="film-35mm"]::before,
.board-photo-card[data-style="film-35mm"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 245, 232, 0.85) 0 11px,
    transparent 11px 22px
  );
  opacity: 0.72;
}
.miro-photo-card[data-style="film-35mm"]::before,
.board-photo-card[data-style="film-35mm"]::before { top: 7px; }
.miro-photo-card[data-style="film-35mm"]::after,
.board-photo-card[data-style="film-35mm"]::after { bottom: 6px; }
.miro-photo-card[data-style="film-35mm"] .board-photo-card__cap,
.board-photo-card[data-style="film-35mm"] .board-photo-card__cap { bottom: 16px; }
.miro-photo-card[data-style="film-35mm"] .board-photo-card__tag,
.board-photo-card[data-style="film-35mm"] .board-photo-card__tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6b256;
}
.miro-photo-card[data-style="film-35mm"] .board-photo-card__num,
.board-photo-card[data-style="film-35mm"] .board-photo-card__num { color: #f6b256; }

/* 5. Scarlet Velvet Couture Frame */
.miro-photo-card[data-style="scarlet-velvet"],
.board-photo-card[data-style="scarlet-velvet"] {
  background: radial-gradient(circle at 30% 20%, #d41c2c 0%, #8e0d19 60%, #4d050c 100%);
  padding: 13px 13px 42px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 212, 190, 0.56);
  box-shadow:
    inset 0 0 0 3px rgba(255, 214, 178, 0.24),
    0 20px 50px rgba(154, 12, 24, 0.52),
    0 12px 26px rgba(0, 0, 0, 0.58);
}
.miro-photo-card[data-style="scarlet-velvet"] .board-photo-card__tag,
.board-photo-card[data-style="scarlet-velvet"] .board-photo-card__tag { color: #fff1f0; }
.miro-photo-card[data-style="scarlet-velvet"] .board-photo-card__num,
.board-photo-card[data-style="scarlet-velvet"] .board-photo-card__num { color: rgba(255, 224, 216, 0.72); }

/* 6. Frosted Acrylic / Crystal Glass */
.miro-photo-card[data-style="acrylic-glass"],
.board-photo-card[data-style="acrylic-glass"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06) 55%, rgba(255, 226, 227, 0.16));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 11px 11px 38px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 22px 48px rgba(0, 0, 0, 0.48);
}
.miro-photo-card[data-style="acrylic-glass"] img,
.miro-photo-card[data-style="acrylic-glass"] video,
.board-photo-card[data-style="acrylic-glass"] img { border-radius: 8px; }
.miro-photo-card[data-style="acrylic-glass"] .board-photo-card__tag,
.board-photo-card[data-style="acrylic-glass"] .board-photo-card__tag { color: #ffffff; text-shadow: 0 1px 6px rgba(0,0,0,0.65); }
.miro-photo-card[data-style="acrylic-glass"] .board-photo-card__num,
.board-photo-card[data-style="acrylic-glass"] .board-photo-card__num { color: rgba(255, 255, 255, 0.72); }

/* 7. Brushed Silver Chrome Gallery Frame */
.miro-photo-card[data-style="silver-chrome"],
.board-photo-card[data-style="silver-chrome"] {
  background: linear-gradient(135deg, #f1f4f9 0%, #a8b0be 28%, #ffffff 50%, #838b98 76%, #dce2eb 100%);
  padding: 12px 12px 38px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  box-shadow: inset 0 0 0 2px rgba(32, 36, 44, 0.35), 0 20px 48px rgba(0, 0, 0, 0.55);
}
.miro-photo-card[data-style="silver-chrome"] .board-photo-card__tag,
.board-photo-card[data-style="silver-chrome"] .board-photo-card__tag { color: #16181f; }
.miro-photo-card[data-style="silver-chrome"] .board-photo-card__num,
.board-photo-card[data-style="silver-chrome"] .board-photo-card__num { color: rgba(22, 24, 31, 0.6); }

/* 8. Torn Paper / Scrapbook Cutout */
.miro-photo-card[data-style="torn-paper"],
.board-photo-card[data-style="torn-paper"] {
  background: #f5efe3;
  padding: 12px 12px 36px;
  border-radius: 2px;
  clip-path: polygon(
    0% 2%, 5% 0%, 11% 2%, 18% 0.5%, 26% 2%, 34% 0%, 42% 1.8%, 50% 0.4%, 59% 2%, 67% 0%, 75% 1.8%, 84% 0.4%, 92% 2%, 100% 0.5%,
    99% 14%, 100% 28%, 98.8% 45%, 100% 64%, 99% 82%, 100% 98%,
    93% 99.6%, 85% 98%, 76% 99.8%, 68% 98.2%, 59% 99.6%, 50% 98%, 41% 99.8%, 32% 98.2%, 23% 99.6%, 14% 98%, 6% 99.5%, 0% 98%,
    1% 83%, 0% 65%, 1.2% 46%, 0% 26%, 1% 12%
  );
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

/* 9. Retro VHS / CRT Monitor Frame */
.miro-photo-card[data-style="vhs-crt"],
.board-photo-card[data-style="vhs-crt"] {
  background: linear-gradient(180deg, #23222b 0%, #141319 100%);
  padding: 22px 12px 34px;
  border-radius: 12px;
  border: 2px solid #3c3a47;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.72);
}
.miro-photo-card[data-style="vhs-crt"]::before,
.board-photo-card[data-style="vhs-crt"]::before {
  content: "● REC · PLAY ▸";
  position: absolute;
  top: 6px;
  left: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #ff4757;
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.75);
  pointer-events: none;
}
.miro-photo-card[data-style="vhs-crt"] img,
.miro-photo-card[data-style="vhs-crt"] video,
.board-photo-card[data-style="vhs-crt"] img {
  border-radius: 6px;
  filter: contrast(1.06) saturate(1.12);
}
.miro-photo-card[data-style="vhs-crt"] .board-photo-card__tag,
.board-photo-card[data-style="vhs-crt"] .board-photo-card__tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #82f5b2;
  letter-spacing: 0.08em;
}
.miro-photo-card[data-style="vhs-crt"] .board-photo-card__num,
.board-photo-card[data-style="vhs-crt"] .board-photo-card__num { color: rgba(130, 245, 178, 0.65); }

/* 10. Clean Frameless (subtle hairline) */
.miro-photo-card[data-style="clean"],
.board-photo-card[data-style="clean"] {
  padding: 0;
  background: #0d0c11;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.miro-photo-card[data-style="clean"] .board-photo-card__cap,
.board-photo-card[data-style="clean"] .board-photo-card__cap { display: none; }

/* 11. Pure Frameless (zero border, zero padding, pure floating media) */
.miro-photo-card[data-style="frameless"],
.board-photo-card[data-style="frameless"] {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}
.miro-photo-card[data-style="frameless"] .board-photo-card__cap,
.board-photo-card[data-style="frameless"] .board-photo-card__cap { display: none; }

/* 12. Custom Color Line Frame (border thickness & color customizable!) */
.miro-photo-card[data-style="line"],
.board-photo-card[data-style="line"] {
  padding: 0;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  border: var(--frame-w, 2.5px) solid var(--frame-color, #ffe2e3);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--frame-color, #ffe2e3) 30%, transparent),
    0 16px 38px rgba(0, 0, 0, 0.48);
}
.miro-photo-card[data-style="line"] .board-photo-card__cap,
.board-photo-card[data-style="line"] .board-photo-card__cap { display: none; }

/* ---- 2B. MEDIA SHAPES (FOR BOTH VIDEO & PHOTO CARDS) ---- */
.miro-photo-card[data-shape="rect"] {
  border-radius: 2px;
}
.miro-photo-card[data-shape="rect"] .miro-video-wrap,
.miro-photo-card[data-shape="rect"] img,
.miro-photo-card[data-shape="rect"] video { border-radius: 1px; }

.miro-photo-card[data-shape="rounded"] {
  border-radius: 22px;
  overflow: hidden;
}
.miro-photo-card[data-shape="rounded"] .miro-video-wrap,
.miro-photo-card[data-shape="rounded"] img,
.miro-photo-card[data-shape="rounded"] video { border-radius: 16px; }

.miro-photo-card[data-shape="pill"] {
  border-radius: 999px;
  overflow: hidden;
}
.miro-photo-card[data-shape="pill"] .miro-video-wrap,
.miro-photo-card[data-shape="pill"] img,
.miro-photo-card[data-shape="pill"] video { border-radius: 999px; }

.miro-photo-card[data-shape="circle"] {
  border-radius: 50%;
  overflow: hidden;
}
.miro-photo-card[data-shape="circle"] .miro-video-wrap,
.miro-photo-card[data-shape="circle"] img,
.miro-photo-card[data-shape="circle"] video {
  aspect-ratio: 1 / 1 !important;
  border-radius: 50%;
}

.miro-photo-card[data-shape="oval"] {
  border-radius: 50%;
  overflow: hidden;
}
.miro-photo-card[data-shape="oval"] .miro-video-wrap,
.miro-photo-card[data-shape="oval"] img,
.miro-photo-card[data-shape="oval"] video { border-radius: 50%; }

.miro-photo-card[data-shape="arch"] {
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
}
.miro-photo-card[data-shape="arch"] .miro-video-wrap,
.miro-photo-card[data-shape="arch"] img,
.miro-photo-card[data-shape="arch"] video { border-radius: 999px 999px 10px 10px; }

.miro-photo-card[data-shape="blob"] {
  border-radius: 62% 38% 54% 46% / 44% 58% 42% 56%;
  overflow: hidden;
}
.miro-photo-card[data-shape="blob"] .miro-video-wrap,
.miro-photo-card[data-shape="blob"] img,
.miro-photo-card[data-shape="blob"] video {
  border-radius: 62% 38% 54% 46% / 44% 58% 42% 56%;
}

/* Keep video controls centered & visible inside circular/oval/pill/blob shapes */
.miro-photo-card[data-shape="circle"] .miro-video-ctrls,
.miro-photo-card[data-shape="oval"] .miro-video-ctrls,
.miro-photo-card[data-shape="pill"] .miro-video-ctrls,
.miro-photo-card[data-shape="blob"] .miro-video-ctrls {
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
}
.miro-photo-card[data-shape="circle"] .miro-media-badge,
.miro-photo-card[data-shape="oval"] .miro-media-badge,
.miro-photo-card[data-shape="pill"] .miro-media-badge,
.miro-photo-card[data-shape="arch"] .miro-media-badge,
.miro-photo-card[data-shape="blob"] .miro-media-badge {
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
}
/* Hide polaroid caption when user picks curved/masked shape on frameless/line/clean */
.miro-photo-card[data-shape="circle"] .board-photo-card__cap,
.miro-photo-card[data-shape="oval"] .board-photo-card__cap,
.miro-photo-card[data-shape="pill"] .board-photo-card__cap,
.miro-photo-card[data-shape="blob"] .board-photo-card__cap {
  display: none;
}

/* ---- 2C. CUSTOM STICKERS TRAY & LINE COLOR SWATCHES ---- */
.line-color-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.line-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 0;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.line-swatch-dot:hover { transform: scale(1.12); border-color: #ffffff; }
.line-swatch-dot.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(235, 193, 194, 0.72);
}

.shape-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.shape-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 9px;
  padding: 7px 6px;
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shape-btn:hover { border-color: rgba(235, 193, 194, 0.55); background: rgba(235, 193, 194, 0.10); }
.shape-btn.is-active { border-color: #ffe2e3; background: rgba(235, 193, 194, 0.20); }
.shape-btn__icon {
  width: 28px;
  height: 22px;
  border: 1.8px solid currentColor;
  display: block;
  opacity: 0.88;
}

.bs-sticker-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(235, 193, 194, 0.52);
  background: rgba(235, 193, 194, 0.09);
  color: #ffe2e3;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.bs-sticker-upload:hover {
  background: rgba(235, 193, 194, 0.18);
  border-color: #ffe2e3;
}
.bs-decor-grid--custom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.bs-decor-btn--custom {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.bs-decor-btn--custom .bs-decor-btn__prev {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-decor-btn--custom .bs-decor-btn__prev img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.bs-decor-btn--custom > span:nth-of-type(2) {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-sticker-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 10, 16, 0.84);
  color: #ff9ca8;
  font-size: 10px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.14s ease, background 0.14s ease;
}
.bs-decor-btn--custom:hover .bs-sticker-del { opacity: 1; }
.bs-sticker-del:hover { background: #e01826; color: #fff; }

/* Board Surface Opacity Support */
.miro-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(4, 4, 7, var(--miro-bg-dim, 0));
}

/* ---- 3. VIDEO CARD ON BOARD ---- */
.miro-video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #07060a;
}
.miro-photo-card video {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  object-fit: cover;
  background: #07060a;
}
.miro-video-ctrls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(8, 7, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.86;
  transition: opacity 0.18s ease;
}
.miro-photo-card:hover .miro-video-ctrls { opacity: 1; }
.miro-video-btn {
  appearance: none;
  border: 0;
  padding: 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s ease;
}
.miro-video-btn svg { width: 13px; height: 13px; display: block; }
.miro-video-btn:hover { background: rgba(255, 226, 227, 0.30); transform: scale(1.06); }
.miro-media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 7, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #ffe2e3;
  pointer-events: none;
}

/* ---- 4. AUDIO / VINYL MUSIC CARD ON BOARD ---- */
.miro-item--audio,
.miro-item--video {
  pointer-events: auto;
}
.miro-audio-card {
  position: relative;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(20, 16, 26, 0.94), rgba(10, 8, 14, 0.96));
  border: 1px solid rgba(235, 193, 194, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #faf5f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.miro-audio-card[data-skin="cassette"] {
  background: linear-gradient(155deg, #f3e9d8 0%, #e4d4bc 100%);
  color: #201715;
  border: 2px solid #c9b598;
  border-radius: 12px;
}
.miro-audio-card[data-skin="apple-glass"] {
  background: rgba(8, 8, 11, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
}
.miro-audio-card[data-skin="scarlet"] {
  background: linear-gradient(145deg, #b81220 0%, #5c060e 100%);
  border: 1px solid rgba(255, 214, 200, 0.42);
  color: #fff5f5;
}

.miro-audio-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.miro-audio-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 50%, #ffe2e3 0 6px, #121018 6.5px 11px, #241d2b 12px 20px, #121018 21px 100%);
  border: 1.5px solid rgba(255, 226, 227, 0.36);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.miro-audio-disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}
.miro-audio-disc::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b0a0f;
  border: 2px solid #ffe2e3;
  z-index: 2;
}
.miro-audio-card.is-playing .miro-audio-disc {
  animation: hm-spin 4.5s linear infinite;
}

.miro-audio-meta {
  flex: 1;
  min-width: 0;
}
.miro-audio-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.miro-audio-artist {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  margin-top: 3px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.miro-audio-play {
  appearance: none;
  border: 0;
  padding: 0;
  line-height: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffe2e3;
  color: #0b090e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(235, 193, 194, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}
.miro-audio-play svg { width: 17px; height: 17px; display: block; }
.miro-audio-play:hover { transform: scale(1.08); background: #fff; }
.miro-audio-card[data-skin="cassette"] .miro-audio-play {
  background: #201715;
  color: #f6efe4;
}

.miro-audio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  opacity: 0.78;
}
.miro-audio-seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(128, 128, 148, 0.32);
  outline: none;
  cursor: pointer;
}
.miro-audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- 5. FRAME PICKER & LAYOUT POPOVER GRIDS ---- */
.frame-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.frame-swatch-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.14s ease;
}
.frame-swatch-btn:hover {
  border-color: rgba(235, 193, 194, 0.55);
  background: rgba(235, 193, 194, 0.10);
  transform: translateY(-1px);
}
.frame-swatch-btn.is-active {
  border-color: #ffe2e3;
  background: rgba(235, 193, 194, 0.18);
}
.frame-swatch-prev {
  width: 48px;
  height: 36px;
  border-radius: 3px;
  display: block;
}

.layout-preset-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.layout-preset-card:hover {
  border-color: rgba(235, 193, 194, 0.6);
  background: rgba(235, 193, 194, 0.12);
}
.layout-preset-card__name {
  font-size: 12.5px;
  font-weight: 600;
}
.layout-preset-card__desc {
  font-size: 10.5px;
  opacity: 0.72;
  line-height: 1.35;
}

/* ---- 6. UNIFIED MEDIA PICKER TABS ---- */
.media-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.media-tab-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 245, 246, 0.78);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}
.media-tab-btn:hover { border-color: rgba(235, 193, 194, 0.5); color: #fff; }
.media-tab-btn.is-active {
  background: rgba(235, 193, 194, 0.22);
  border-color: #ffe2e3;
  color: #ffe2e3;
}
.media-thumb--video video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #08070c;
}
.media-thumb--audio {
  justify-content: center;
  min-height: 112px;
  background: linear-gradient(145deg, rgba(32, 22, 34, 0.9), rgba(14, 12, 18, 0.95));
}
.media-thumb__audio-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
