:root{
  --mbd-bg:#071228;
  --mbd-bg-2:#0b1834;
  --mbd-card:rgba(12,20,42,.76);
  --mbd-card-2:rgba(255,255,255,.05);
  --mbd-border:rgba(255,255,255,.10);
  --mbd-text:#d9e3ff;
  --mbd-text-strong:#ffffff;
  --mbd-muted:#a9b8dd;
  --mbd-glow-1:rgba(255,87,210,.32);
  --mbd-glow-2:rgba(82,121,255,.26);
  --mbd-glow-3:rgba(73,223,196,.18);
  --mbd-button:#ffffff;
  --mbd-button-text:#081124;
  --mbd-alert:rgba(122,24,44,.28);
  --mbd-alert-border:rgba(255,112,142,.36);
  --mbd-shadow:0 22px 70px rgba(0,0,0,.34);
  --mbd-accent-1:#ff57d2;
  --mbd-accent-2:#5279ff;
  --mbd-accent-3:#49dfc4;
  --mbd-player-surface:rgba(255,255,255,.10);
  --mbd-player-surface-2:rgba(255,255,255,.03);
  --mbd-player-surface-3:rgba(255,255,255,.08);
  --mbd-player-border:rgba(255,255,255,.10);
  --mbd-player-label-bg:rgba(73,223,196,.18);
  --mbd-footer-bg:rgba(255,255,255,.06);
}

body.mbd-song-page{
  min-height:100vh;
  background:
    radial-gradient(circle at top left,var(--mbd-glow-2),transparent 32%),
    radial-gradient(circle at top right,var(--mbd-glow-1),transparent 28%),
    linear-gradient(180deg,var(--mbd-bg),var(--mbd-bg-2));
  color:var(--mbd-text);
}

body.mbd-song-page[data-mbd-theme="light"]{
  --mbd-bg:#eef4ff;
  --mbd-bg-2:#dfe9ff;
  --mbd-card:rgba(255,255,255,.74);
  --mbd-card-2:rgba(255,255,255,.62);
  --mbd-border:rgba(19,48,95,.10);
  --mbd-text:#183053;
  --mbd-text-strong:#0f1d33;
  --mbd-muted:#566b92;
  --mbd-glow-1:rgba(255,92,214,.20);
  --mbd-glow-2:rgba(82,121,255,.14);
  --mbd-glow-3:rgba(73,223,196,.13);
  --mbd-button:#101b33;
  --mbd-button-text:#ffffff;
  --mbd-alert:rgba(255,226,234,.92);
  --mbd-alert-border:rgba(217,75,104,.26);
  --mbd-shadow:0 20px 60px rgba(62,88,138,.16);
}

.mbd-page-wrap{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 56px;
}

.mbd-song-shell{padding:18px 0}

.mbd-song-card{
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  background:linear-gradient(180deg,var(--mbd-card),rgba(255,255,255,.02));
  border:1px solid var(--mbd-player-border);
  border-radius:28px;
  box-shadow:var(--mbd-shadow);
  padding:22px;
}

.mbd-toolbar,
.mbd-song-top,
.mbd-status-grid,
.mbd-download-row,
.mbd-player-ui,
.mbd-player-times{
  display:flex;
}

.mbd-toolbar,
.mbd-song-top,
.mbd-download-row,
.mbd-player-ui{
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

.mbd-toolbar{margin-bottom:18px}

.mbd-badge,
.mbd-status-box,
.mbd-countdown-wrap,
.mbd-player-card,
.mbd-lyrics-card,
.mbd-alert{
  border:1px solid var(--mbd-player-border);
  background:var(--mbd-player-surface-3);
  border-radius:22px;
}

.mbd-badge{
  padding:12px 18px;
  font-weight:700;
  color:var(--mbd-text-strong);
}

.mbd-theme-toggle{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.mbd-theme-toggle__track{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--mbd-player-surface-3);
  border:1px solid var(--mbd-player-border);
  color:var(--mbd-text-strong);
}

.mbd-theme-toggle__thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg,#ffffff,#b8ccff);
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}

body.mbd-song-page[data-mbd-theme="light"] .mbd-theme-toggle__thumb{
  background:linear-gradient(135deg,#ffe484,#ffc14d);
}

.mbd-song-top{
  align-items:flex-start;
  gap:22px;
  flex-wrap:wrap;
}

.mbd-song-title{
  margin:0;
  color:var(--mbd-text-strong);
  font-size:min(var(--mbd-title-size, 56px), clamp(2rem,4vw,3.6rem));
  line-height:1;
}

.mbd-song-subtitle{
  margin:18px 0 0;
  font-size:1.3rem;
  color:var(--mbd-text-strong);
  font-weight:700;
}

.mbd-status-grid{
  flex-wrap:wrap;
  gap:14px;
}

.mbd-status-box{
  min-width:180px;
  padding:18px;
}

.mbd-status-box span{
  display:block;
  color:var(--mbd-muted);
  font-size:.9rem;
  margin-bottom:10px;
  font-weight:700;
}

.mbd-status-box strong{
  color:var(--mbd-text-strong);
  font-size:1.1rem;
}

.mbd-countdown-wrap{
  margin-top:18px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

.mbd-countdown-label{
  color:var(--mbd-muted);
  font-weight:700;
}

.mbd-countdown{
  color:var(--mbd-text-strong);
  font-size:clamp(1.05rem,3vw,2rem);
  font-weight:800;
  letter-spacing:.02em;
}

.mbd-player-card{
  margin-top:18px;
  padding:18px;
}

.mbd-player-stage{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  border:1px solid var(--mbd-player-border);
  background:
    radial-gradient(circle at 30% 45%,var(--mbd-accent-1),transparent 28%),
    radial-gradient(circle at 74% 35%,var(--mbd-accent-2),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.01)),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(0deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:auto,auto,auto,38px 100%,100% 38px;
}

.mbd-visualizer{
  display:block;
  width:100%;
  height:280px;
}

.mbd-player-stage__overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:18px;
  pointer-events:none;
}

.mbd-player-stage__label{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  background:var(--mbd-player-label-bg);
  color:#fff;
  font-size:.82rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.mbd-player-ui{
  margin-top:16px;
  gap:14px;
}

.mbd-control-btn{
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:18px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
  color:var(--mbd-text-strong);
  font-size:1.25rem;
  font-weight:700;
  cursor:pointer;
}

.mbd-player-main{
  flex:1 1 auto;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
}

.mbd-player-times{
  justify-content:space-between;
  margin-bottom:10px;
  font-size:.9rem;
  color:var(--mbd-text-strong);
  font-weight:700;
}

.mbd-progress,
.mbd-volume{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--mbd-accent-1),var(--mbd-accent-2));
  outline:none;
}

.mbd-progress::-webkit-slider-thumb,
.mbd-volume::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.24);
  cursor:pointer;
}

.mbd-progress::-moz-range-thumb,
.mbd-volume::-moz-range-thumb{
  width:18px;
  height:18px;
  border:0;
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.24);
  cursor:pointer;
}

.mbd-volume{
  width:140px;
  flex:0 0 140px;
}

.mbd-download-row{
  margin-top:18px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.mbd-download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 22px;
  border-radius:18px;
  text-decoration:none;
  font-weight:800;
  background:var(--mbd-button);
  color:var(--mbd-button-text);
}

.mbd-download-note{
  flex:1 1 260px;
  color:var(--mbd-muted);
  line-height:1.6;
}

.mbd-alert{
  margin-top:18px;
  padding:18px;
  background:var(--mbd-alert);
  border-color:var(--mbd-alert-border);
  color:var(--mbd-text-strong);
  font-weight:700;
}

.mbd-lyrics-card{
  margin-top:18px;
  padding:20px;
}

.mbd-section-title{
  color:var(--mbd-text-strong);
  font-weight:800;
  font-size:1.1rem;
  margin-bottom:12px;
}

.mbd-lyrics-text,
.mbd-lyrics-text p{
  color:var(--mbd-text);
  line-height:1.9;
  white-space:normal;
}

.mbd-lyrics-text p{margin:0 0 1em}
.mbd-lyrics-text p:last-child{margin-bottom:0}



.mbd-song-footer{
  margin-top:20px;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid var(--mbd-player-border);
  background:var(--mbd-footer-bg);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:14px 18px;
}

.mbd-song-footer__text{
  color:var(--mbd-text-strong);
  font-weight:700;
}

.mbd-song-footer__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

.mbd-song-footer__links a{
  color:var(--mbd-muted);
  text-decoration:none;
  font-weight:700;
}

.mbd-song-footer__links a:hover{
  color:var(--mbd-text-strong);
}

@media (max-width: 900px){
  .mbd-player-ui{
    flex-wrap:wrap;
    align-items:stretch;
  }

  .mbd-volume{
    width:100%;
    flex:1 1 100%;
  }
}

@media (max-width: 640px){
  .mbd-page-wrap{
    width:min(100% - 18px, 100%);
    padding-top:10px;
  }

  .mbd-song-card{padding:16px;border-radius:22px}

  .mbd-countdown-wrap,
  .mbd-song-top,
  .mbd-toolbar,
  .mbd-download-row,
  .mbd-song-footer{
    flex-direction:column;
    align-items:stretch;
  }

  .mbd-status-box{min-width:0}
  .mbd-visualizer{height:220px}
  .mbd-control-btn{width:52px;height:52px;flex-basis:52px}
}

.mbd-player-card{
  background:
    linear-gradient(180deg, var(--mbd-player-surface), var(--mbd-player-surface-2)),
    radial-gradient(circle at 15% 20%, var(--mbd-accent-1), transparent 24%),
    radial-gradient(circle at 85% 10%, var(--mbd-accent-2), transparent 24%),
    var(--mbd-card-2);
}

.mbd-karaoke-card{
  margin-top:16px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.mbd-karaoke-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.mbd-karaoke-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:var(--mbd-player-surface);
  color:var(--mbd-text-strong);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.mbd-karaoke-hint{
  color:var(--mbd-muted);
  font-size:.92rem;
  font-weight:700;
}

.mbd-karaoke-current{
  min-height:84px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.36rem;
  font-size:clamp(1.1rem, 2.2vw, 1.7rem);
  line-height:1.6;
  color:var(--mbd-text-strong);
  font-weight:800;
}

.mbd-karaoke-word{
  opacity:.35;
  transition:opacity .18s ease, transform .18s ease, text-shadow .18s ease, color .18s ease;
}

.mbd-karaoke-word.is-sung{
  opacity:1;
  color:#fff;
  transform:translateY(-1px);
  text-shadow:0 0 16px rgba(255,87,210,.34), 0 0 24px rgba(82,121,255,.20);
}

body.mbd-song-page[data-mbd-theme="light"] .mbd-karaoke-word.is-sung{
  color:#10203b;
  text-shadow:0 0 14px rgba(255,87,210,.18), 0 0 18px rgba(82,121,255,.14);
}

.mbd-karaoke-next{
  margin-top:6px;
  color:var(--mbd-muted);
  font-size:1rem;
  line-height:1.7;
  min-height:1.7em;
}

@media (max-width: 640px){
  .mbd-karaoke-current{
    min-height:70px;
    font-size:1.05rem;
  }
}


.mbd-song-identity{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}

.mbd-recipient-photo-wrap{
  width:256px;
  height:256px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
  box-shadow:0 16px 32px rgba(0,0,0,.16);
}

.mbd-recipient-photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.mbd-stage-video{
  display:block;
  width:100%;
  height:280px;
  object-fit:cover;
  background:#000;
}

.mbd-player-stage{
  min-height:280px;
}

.mbd-player-stage:has(.mbd-stage-video){
  background:#05070e;
}

body.mbd-song-page[data-mbd-theme="light"] .mbd-player-stage__label{
  color:#10203b;
}

@media (max-width: 820px){
  .mbd-song-identity{
    flex-direction:column;
    align-items:flex-start;
  }

  .mbd-recipient-photo-wrap{
    width:200px;
    height:200px;
  }
}

@media (max-width: 640px){
  .mbd-recipient-photo-wrap{
    width:160px;
    height:160px;
    border-radius:22px;
  }

  .mbd-stage-video,
  .mbd-visualizer,
  .mbd-player-stage{
    height:220px;
    min-height:220px;
  }
}

.mbd-ticker{
  margin-bottom:18px;
  padding:12px 0;
  border:1px solid var(--mbd-player-border);
  border-radius:18px;
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
  overflow:hidden;
}

.mbd-ticker__viewport{
  display:flex;
  width:max-content;
  min-width:100%;
  animation:mbdTickerMove 28s linear infinite;
}

.mbd-ticker__track{
  display:flex;
  align-items:center;
  gap:14px;
  padding-right:14px;
  white-space:nowrap;
}

.mbd-ticker__item{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--mbd-player-border);
  color:var(--mbd-text-strong);
  text-decoration:none;
  font-weight:700;
}

.mbd-ticker__item::before{
  content:'•';
  margin-right:8px;
  color:var(--mbd-accent-3);
}

@keyframes mbdTickerMove{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

.mbd-pin-gate{
  margin-bottom:18px;
  padding:20px;
  border-radius:24px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
}

.mbd-pin-gate__head h2{
  margin:12px 0 8px;
  color:var(--mbd-text-strong);
  font-size:clamp(1.2rem,2.5vw,1.8rem);
}

.mbd-pin-gate__head p{
  margin:0;
  color:var(--mbd-muted);
  line-height:1.7;
}

.mbd-pin-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:var(--mbd-player-label-bg);
  color:var(--mbd-text-strong);
  font-weight:800;
}

.mbd-pin-form{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.mbd-pin-inputs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.mbd-pin-digit{
  width:52px;
  height:60px;
  border-radius:16px;
  border:1px solid var(--mbd-player-border);
  background:rgba(255,255,255,.08);
  color:var(--mbd-text-strong);
  text-align:center;
  font-size:1.4rem;
  font-weight:800;
  outline:none;
}

.mbd-pin-digit:focus{
  border-color:var(--mbd-accent-2);
  box-shadow:0 0 0 3px rgba(82,121,255,.16);
}

.mbd-download-btn--unlock{
  border:0;
  cursor:pointer;
}

.mbd-song-media-column{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.mbd-pdf-card{
  width:256px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
}

.mbd-pdf-card__label{
  color:var(--mbd-muted);
  font-size:.84rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.mbd-pdf-card__name{
  margin-top:10px;
  color:var(--mbd-text-strong);
  font-weight:800;
  word-break:break-word;
}

.mbd-pdf-card__actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mbd-pdf-card__actions a{
  color:var(--mbd-text-strong);
  text-decoration:none;
  font-weight:700;
}

.mbd-pdf-card__actions a:hover{
  color:var(--mbd-accent-3);
}

@media (max-width: 820px){
  .mbd-pdf-card{
    width:200px;
  }
}

@media (max-width: 640px){
  .mbd-ticker__viewport{
    animation-duration:34s;
  }

  .mbd-pin-form,
  .mbd-pin-inputs{
    width:100%;
  }

  .mbd-pin-digit{
    width:44px;
    height:54px;
  }

  .mbd-pdf-card{
    width:160px;
    border-radius:18px;
  }
}

.mbd-stage-slideshow{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:inherit;
}

.mbd-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease, transform 5s ease;
  transform:scale(1.04);
}

.mbd-slide.is-active{
  opacity:1;
  transform:scale(1);
}

.mbd-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.mbd-player-stage:has(.mbd-stage-slideshow){
  background:#050816;
}

@media (max-width: 767px){
  .mbd-stage-slideshow,
  .mbd-slide,
  .mbd-slide img{
    border-radius:22px;
  }
}


.mbd-dedication-card{
  width:256px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
  color:var(--mbd-text-strong);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.mbd-dedication-card__text p{
  margin:0 0 10px;
  line-height:1.7;
  color:var(--mbd-text-strong);
}

.mbd-dedication-card__text p:last-child{
  margin-bottom:0;
}

.mbd-dedication-card__heading{
  margin-top:16px;
  font-weight:800;
  color:var(--mbd-text-strong);
}

.mbd-dedication-card__names{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--mbd-muted);
  font-weight:700;
}

@media (max-width:820px){
  .mbd-dedication-card{
    width:200px;
  }
}

@media (max-width:640px){
  .mbd-dedication-card{
    width:160px;
    border-radius:18px;
    padding:14px;
  }
}


/* v2.1.1 layout refinements */
.mbd-song-layout{
  display:grid;
  grid-template-columns:minmax(240px,280px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.mbd-song-sidebar{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.mbd-song-maincol{
  min-width:0;
}

.mbd-song-header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}

.mbd-song-heading{
  min-width:0;
  flex:1 1 auto;
}

.mbd-song-title{
  line-height:.95;
  letter-spacing:-.03em;
  margin:6px 0 0;
}

.mbd-song-subtitle{
  margin:20px 0 0;
}

.mbd-status-grid{
  justify-content:flex-end;
  flex:0 0 auto;
}

.mbd-status-box{
  min-width:166px;
}

.mbd-recipient-photo-wrap,
.mbd-dedication-card,
.mbd-pdf-card{
  border:1px solid var(--mbd-player-border);
  background:linear-gradient(180deg,var(--mbd-player-surface),var(--mbd-player-surface-2));
  border-radius:22px;
  overflow:hidden;
}

.mbd-recipient-photo-wrap{
  padding:0;
}

.mbd-recipient-photo{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.mbd-dedication-card,
.mbd-pdf-card{
  padding:18px 18px 16px;
}

.mbd-dedication-card__text p{
  margin:0 0 .55em;
  line-height:1.45;
}

.mbd-dedication-card__text p:last-child{
  margin-bottom:0;
}

.mbd-dedication-card__heading{
  margin-top:14px;
  font-weight:800;
  color:var(--mbd-text-strong);
}

.mbd-dedication-card__names{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
  color:var(--mbd-muted);
  font-weight:700;
}

.mbd-pdf-card__label{
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--mbd-muted);
}

.mbd-pdf-card__name{
  margin-top:10px;
  color:var(--mbd-text-strong);
  font-weight:800;
  line-height:1.45;
}

.mbd-pdf-card__actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
}

.mbd-pdf-card__actions a{
  color:var(--mbd-text-strong);
  text-decoration:none;
  font-weight:700;
}

.mbd-player-card,
.mbd-lyrics-card,
.mbd-song-footer{
  margin-top:0;
}

.mbd-download-row,
.mbd-lyrics-card,
.mbd-song-footer{
  margin-top:18px;
}

@media (max-width: 980px){
  .mbd-song-layout{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

  .mbd-song-maincol{
    order:1;
  }

  .mbd-song-sidebar{
    order:2;
    max-width:none;
  }

  .mbd-song-header-row{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    margin-bottom:14px;
  }

  .mbd-status-grid{
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .mbd-page-wrap{
    width:min(100% - 14px, 100%);
    padding-top:6px;
    padding-bottom:28px;
  }

  .mbd-song-layout{
    gap:14px;
  }

  .mbd-song-card{
    padding:14px;
  }

  .mbd-song-title{
    font-size:min(var(--mbd-title-size, 56px), clamp(1.9rem, 10vw, 2.7rem));
    line-height:.98;
  }

  .mbd-song-subtitle{
    margin-top:12px;
    font-size:1.08rem;
  }

  .mbd-status-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .mbd-status-box{
    width:100%;
    min-width:0;
    padding:14px;
  }

  .mbd-recipient-photo-wrap img{
    max-height:260px;
  }

  .mbd-dedication-card,
  .mbd-pdf-card,
  .mbd-lyrics-card,
  .mbd-player-card{
    padding:14px;
  }

  .mbd-toolbar{
    margin-bottom:14px;
  }
}

/* v2.3.1 title + mobile cleanup */
.mbd-song-title:empty{
  display:none;
}

@media (max-width: 980px){
  .mbd-song-sidebar{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .mbd-recipient-photo-wrap,
  .mbd-dedication-card,
  .mbd-pdf-card{
    width:100%;
    max-width:none;
  }
}

@media (max-width: 640px){
  .mbd-song-layout{
    display:flex;
    flex-direction:column;
    gap:14px;
  }

  .mbd-song-maincol{
    order:1;
  }

  .mbd-song-sidebar{
    order:2;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    width:100%;
  }

  .mbd-recipient-photo-wrap,
  .mbd-dedication-card,
  .mbd-pdf-card,
  .mbd-song-footer{
    width:100%;
    max-width:none;
  }

  .mbd-recipient-photo-wrap{
    max-width:220px;
  }

  .mbd-song-title{
    margin-top:0;
  }

  .mbd-song-header-row{
    margin-bottom:12px;
  }

  .mbd-player-card,
  .mbd-lyrics-card,
  .mbd-song-footer,
  .mbd-dedication-card,
  .mbd-pdf-card{
    border-radius:18px;
  }

  .mbd-song-footer{
    padding:16px 14px;
  }

  .mbd-song-footer__links{
    gap:10px;
  }
}
