/* =========================================================
   Music Greetings Public — стеклянный стиль RELAX
   Отдельный файл: не затрагивает оформление формы заказов.
   ========================================================= */
#music-greetings-public,
#music-greetings-public * { box-sizing: border-box; }

#music-greetings-public {
    width: 100%;
    margin: 18px 0;
    color: #fff;
    font-family: inherit;
}

.mgp-shell {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(89,75,70,.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(24,35,43,.18);
}

.mgp-track { position: relative; width: 100%; }
.mgp-card { display: none; width: 100%; min-width: 0; animation: mgpFade .28s ease; }
.mgp-card.is-active { display: block; }
@keyframes mgpFade { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mgp-card-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) 132px;
    gap: 14px;
    align-items: center;
}
.mgp-info { min-width: 0; }
.mgp-kicker {
    margin-bottom: 7px;
    color: #ffe2a9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.mgp-users {
    margin-bottom: 9px;
    color: rgba(255,255,255,.84);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.mgp-song-title {
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.mgp-artist {
    margin-top: 4px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.mgp-sticker-preview {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 5px;
    width: 132px;
    min-height: 118px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.mgp-sticker-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    background: rgba(255,255,255,.12);
}
.mgp-no-stickers {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    border: 1px dashed rgba(255,255,255,.3);
    border-radius: 13px;
    color: rgba(255,255,255,.7);
    font-size: 30px;
}
.mgp-sticker-more {
    position: absolute;
    align-self: end;
    justify-self: end;
    margin: 0 5px 5px 0;
    padding: 3px 7px;
    border-radius: 20px;
    background: rgba(35,49,57,.78);
    color: #fff;
    font-size: 11px;
}

.mgp-player {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 15px;
    background: rgba(38,57,65,.34);
}
.mgp-play {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg,#ffe6a9,#e5a744);
    color: #58402a;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.17);
}
.mgp-progress-wrap { flex: 1 1 auto; min-width: 0; }
.mgp-progress {
    display: block;
    width: 100%;
    height: 5px;
    margin: 5px 0 7px;
    border-radius: 10px;
    accent-color: #ffd27b;
    cursor: pointer;
}
.mgp-times { display: flex; justify-content: space-between; gap: 8px; color: rgba(255,255,255,.78); font-size: 11px; font-variant-numeric: tabular-nums; }
.mgp-volume { display: flex; flex: 0 0 94px; align-items: center; gap: 6px; color: #fff; }
.mgp-volume-icon { font-size: 15px; }
.mgp-volume input { width: 65px; height: 4px; accent-color: #ffd27b; cursor: pointer; }

.mgp-message-wrap { margin-top: 12px; text-align: center; }
.mgp-expand {
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.mgp-message {
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    background: rgba(35,49,57,.27);
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.mgp-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 13px; }
.mgp-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.mgp-counter { color: rgba(255,255,255,.8); font-size: 12px; font-variant-numeric: tabular-nums; }
.mgp-empty { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(89,75,70,.35); color: #fff; text-align: center; }

.mgp-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(18,28,35,.76);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.mgp-modal-dialog {
    position: relative;
    width: min(100%,460px);
    max-height: min(90vh,760px);
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;
    background: rgba(89,75,70,.88);
    box-shadow: 0 15px 50px rgba(0,0,0,.35);
    text-align: center;
}
.mgp-modal-close {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 9px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 27px;
    cursor: pointer;
}
.mgp-modal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 25px 30px 5px;
    touch-action: pan-y;
}
.mgp-modal-stage img {
    display: block;
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: 12px;
}
.mgp-modal-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 42px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
.mgp-modal-prev { left: 0; }
.mgp-modal-next { right: 0; }
.mgp-modal-counter { margin-top: 9px; color: rgba(255,255,255,.8); font-size: 12px; }
.mgp-modal-comment {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.mgp-modal-comment[hidden] { display: none; }

@media (max-width: 520px) {
    .mgp-shell { padding: 13px; border-radius: 19px; }
    .mgp-card-top { grid-template-columns: minmax(0,1fr) 112px; gap: 9px; }
    .mgp-sticker-preview { width: 112px; min-height: 100px; }
    .mgp-no-stickers { min-height: 100px; }
    .mgp-song-title { font-size: 16px; }
    .mgp-users { font-size: 12px; }
    .mgp-artist { font-size: 12px; }
    .mgp-player { gap: 8px; padding: 9px; }
    .mgp-play { flex-basis: 36px; width: 36px; height: 36px; }
    .mgp-volume { flex-basis: 65px; gap: 4px; }
    .mgp-volume input { width: 42px; }
}
@media (max-width: 360px) {
    .mgp-card-top { grid-template-columns: minmax(0,1fr) 92px; }
    .mgp-sticker-preview { width: 92px; min-height: 84px; }
    .mgp-no-stickers { min-height: 84px; }
    .mgp-volume { flex-basis: 24px; }
    .mgp-volume input { display: none; }
}
