.bdm-body { margin: 0; background: #14101f; }
.bdm { --ink: #f7f3ff; --soft: #bdb3d6; --card: #211a33; --hot: #ff4f8b; color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; max-width: 1600px; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; background: #14101f; }
.bdm *, .bdm *::before, .bdm *::after { box-sizing: border-box; }
.bdm h1, .bdm h2 { color: var(--ink); line-height: 1.2; margin: 0 0 8px; }
.bdm h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.bdm h2 { font-size: 1.15rem; }
.bdm-head { text-align: center; margin-bottom: 24px; }
.bdm-head p { color: var(--soft); margin: 0 0 14px; }
.bdm a { color: var(--ink); }
.bdm .bdm-button, .bdm .bdm-expand { display: inline-block; background: var(--hot); color: #1a0610; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bdm button:disabled { opacity: .6; cursor: wait; }
.bdm-stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
.bdm-panel { background: var(--card); border-radius: 14px; padding: 16px; }
.bdm-official-panel { display: flex; flex-direction: column; }
.bdm-official { position: relative; aspect-ratio: 16 / 9; margin: auto 0; }
.bdm-official iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.bdm-map-panel { display: flex; flex-direction: column; }
.bdm-map-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bdm-map-head h2 { margin: 0; }
.bdm .bdm-expand { padding: 6px 14px; font-size: .9rem; white-space: nowrap; }
.bdm-count { color: var(--soft); font-weight: 400; }
.bdm-map { flex: 1; min-height: 460px; border-radius: 8px; overflow: hidden; background: #cfe3ea; color: #222; }
.bdm-map-panel.is-big { position: fixed; inset: 0; z-index: 99999; border-radius: 0; }
.bdm .bdm-map a { color: #1d2733; }
html.bdm-locked { overflow: hidden; }
.bdm-add { max-width: 820px; margin: 0 auto 16px; }
.bdm-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bdm-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; margin: 0; }
.bdm-form .bdm-wide { grid-column: 1 / -1; }
.bdm-form input:not([type=checkbox]), .bdm-form select { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-size: 16px; border: 1px solid #5a4d7d; border-radius: 8px; background: #fff; color: #17121f; }
.bdm-form .bdm-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.bdm-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.bdm-form .bdm-trap { position: absolute; left: -9999px; }
.bdm-message { margin: 0; min-height: 1.5em; font-weight: 600; }
.bdm-message.is-error { color: #ffb4b4; }
.bdm-message.is-ok { color: #a5f0b8; }
.bdm-small { color: var(--soft); font-size: .85rem; }
.bdm footer { text-align: center; }
.bdm-dialog { width: min(440px, 94vw); max-height: 92vh; border: 0; border-radius: 14px; padding: 16px; background: var(--card); color: var(--ink); }
.bdm-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.bdm .bdm-close { float: right; background: none; border: 0; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.bdm-dialog h2 { margin-right: 36px; }
.bdm-player iframe { width: 100%; height: min(70vh, 640px); border: 0; border-radius: 8px; background: #000; }
.bdm-player .instagram-media { min-width: 0 !important; width: 100% !important; }
.bdm .bdm-link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 0; }
.bdm-list { list-style: none; margin: 0; padding: 0; }
.bdm-list li { margin: 0 0 8px; }
.bdm .bdm-list button { width: 100%; text-align: left; background: #2f2547; color: var(--ink); border: 0; border-radius: 8px; padding: 12px; font: inherit; cursor: pointer; }
.bdm-reports { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; }
@media (max-width: 900px) {
	.bdm-stage { grid-template-columns: 1fr; }
	.bdm-map { min-height: 360px; }
	.bdm-form { grid-template-columns: 1fr; }
}

/* Story field and About page */
.bdm-form textarea { width: 100%; min-height: 44px; max-height: 200px; padding: 10px; font: inherit; font-size: 16px; line-height: 1.4; border: 1px solid #5a4d7d; border-radius: 8px; background: #fff; color: #17121f; resize: none; overflow-y: auto; }
.bdm-about-photo-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.bdm-about-photo { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 14px; }
.bdm-about-photo-panel p { margin: 0; }
.bdm-about-text h2 { font-size: 1.4rem; margin: 0 0 8px; }
.bdm-about-text h2:not(:first-child) { margin-top: 20px; }
.bdm-about-text p { margin: 0 0 12px; }
.bdm .bdm-back { margin-left: 14px; color: var(--soft); }
.bdm-stories { margin-bottom: 16px; }
.bdm-story-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bdm-story-list li { margin: 0; padding: 14px; background: #2f2547; border-radius: 10px; }
.bdm-story-list blockquote { margin: 0 0 8px; padding: 0; border: 0; font-size: 1rem; color: var(--ink); }
.bdm-story-list cite { color: var(--soft); font-size: .85rem; font-style: normal; }

/* Ordinary pages in the Dance Map style (text page template) */
.bdm-prose { max-width: 820px; margin: 0 auto 16px; padding: 24px; }
.bdm-prose h2 { font-size: 1.3rem; margin: 24px 0 8px; }
.bdm-prose h2:first-child { margin-top: 0; }
.bdm-prose p, .bdm-prose li { color: var(--ink); margin: 0 0 12px; }
.bdm-prose ul { margin: 0 0 12px; padding-left: 22px; }
.bdm-prose strong { color: var(--ink); }

/* Pin card */
.bdm .maplibregl-popup-content { background: #fff; color: #17121f; border-radius: 10px; padding: 14px; }
.bdm-card { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.bdm-card strong { padding-right: 14px; }
.bdm-card-tag { color: #7a5a00; font-weight: 600; font-size: .8rem; }
.bdm .bdm-map a.bdm-card-play { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--hot); color: #1a0610; font-weight: 700; text-decoration: none; }
.bdm .bdm-card-more { align-self: flex-start; background: none; border: 0; padding: 4px 0 0; color: #4a3d6b; text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; }
.bdm-dialog .bdm-item { background: #fff; color: #17121f; border-radius: 10px; padding: 12px; }
.bdm .bdm-dialog a.bdm-card-play { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--hot); color: #1a0610; font-weight: 700; text-decoration: none; }
.bdm .bdm-list button.bdm-card-more { width: auto; background: none; color: #4a3d6b; padding: 4px 0 0; border-radius: 0; }

/* Player window and hover label */
.bdm-label { pointer-events: none; }
.bdm-card-hint { color: #4a3d6b; font-weight: 600; font-size: .8rem; }
.bdm .bdm-list button.bdm-card-play { width: auto; align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--hot); color: #1a0610; font-weight: 700; }
.bdm-dialog.is-wide { width: min(820px, 94vw); }
.bdm-sub { margin: 0 0 10px; color: var(--soft); font-size: .9rem; }
.bdm-player-youtube iframe, .bdm-player-facebook iframe { height: auto; aspect-ratio: 16 / 9; max-height: 70vh; }
