.music-track-qr-action,
#music-feature-qr {
    color: #8feaff;
}

.music-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100800;
    display: grid;
    place-items: center;
    padding: 14px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(10px);
}

.music-qr-modal[hidden] {
    display: none !important;
}

.music-qr-card {
    width: min(100%, 460px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(6, 217, 255, .42);
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(6, 171, 212, .13), rgba(0, 0, 0, .04)),
        rgba(10, 15, 20, .98);
    color: #fff;
    box-shadow: 0 0 30px rgba(6, 217, 255, .18), 0 24px 70px rgba(0, 0, 0, .62);
}

.music-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.music-qr-header small {
    color: rgba(232, 251, 255, .58);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.music-qr-header h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.music-qr-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
}

.music-qr-types {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.music-qr-type {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 1px solid rgba(6, 171, 212, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    color: #eafcff;
    text-align: left;
    cursor: pointer;
}

.music-qr-type > i {
    width: 31px;
    height: 31px;
    display: grid;
    flex: 0 0 31px;
    place-items: center;
    border-radius: 9px;
    background: rgba(3, 125, 156, .16);
    color: #8feaff;
}

.music-qr-type span {
    display: grid;
    gap: 2px;
}

.music-qr-type strong {
    font-size: 12px;
}

.music-qr-type small {
    color: rgba(232, 251, 255, .58);
    font-size: 10px;
}

.music-qr-type.active {
    border-color: rgba(143, 234, 255, .68);
    background: rgba(3, 125, 156, .14);
}

.music-qr-type:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.music-qr-create {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(6, 217, 255, .55);
    border-radius: 11px;
    background: linear-gradient(180deg, #0a9bc2, #037d9c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.music-qr-create:disabled {
    opacity: .6;
    cursor: wait;
}

.music-qr-status {
    min-height: 18px;
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
}

.music-qr-status.info {
    color: #bfefff;
}

.music-qr-status.success {
    color: #8fffc1;
}

.music-qr-status.error {
    color: #ffb0b0;
}

.music-qr-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(6, 171, 212, .24);
    border-radius: 12px;
    background: rgba(6, 171, 212, .05);
}

.music-qr-result[hidden] {
    display: none !important;
}

.music-qr-image-frame {
    width: 170px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
}

.music-qr-image-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.music-qr-link-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
}

.music-qr-link-row a {
    min-width: 0;
    max-width: calc(100% - 36px);
    overflow: hidden;
    color: #8feaff !important;
    font-size: 10px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-qr-link-row button,
.music-qr-copy {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #bff5ff;
    font-size: 16px;
    cursor: pointer;
}

.music-qr-link-row button.copied,
.music-qr-copy.copied {
    color: #8fffc1;
}

.music-qr-action-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.music-qr-action,
.mqr-btn,
.nftp-actions a,
.nftp-actions button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(143, 234, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #dffaff;
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.music-qr-action:hover,
.mqr-btn:hover,
.nftp-actions a:hover,
.nftp-actions button:hover {
    border-color: rgba(143, 234, 255, .62);
    color: #fff;
}

body.music-qr-open {
    overflow: hidden;
}

.mqr-page,
.nftp-page {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    padding: 22px;
    background: radial-gradient(circle at 50% 0, rgba(8, 176, 208, .2), transparent 38%), #071014;
    color: #eafcff;
}

.mqr-card,
.nftp-card {
    width: min(100%, 940px);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(8, 217, 255, .34);
    border-radius: 18px;
    background: rgba(9, 17, 22, .97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

.nftp-card {
    grid-template-columns: 230px minmax(0, 1fr);
}

.mqr-cover,
.nftp-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #101b20;
}

.nftp-cover {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.mqr-cover img,
.nftp-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mqr-cover-empty,
.nftp-cover-empty {
    height: 100%;
    display: grid;
    place-items: center;
    color: #6a858c;
    font-size: 46px;
}

.mqr-copy,
.nftp-main {
    min-width: 0;
}

.mqr-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mqr-kicker,
.nftp-kicker {
    color: #8feaff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mqr-title {
    margin: 7px 0 4px;
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.02;
}

.nftp-title {
    margin: 6px 0 3px;
    font-size: 27px;
}

.mqr-artist,
.nftp-artist {
    color: #a9c0c7;
    font-size: 16px;
}

.mqr-actions,
.nftp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 19px;
}

.mqr-play,
.nftp-primary {
    border: 0;
    background: linear-gradient(180deg, #15c6ef, #037d9c);
    color: #fff;
}

.mqr-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.mqr-wide {
    min-width: 180px;
}

.mqr-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.mqr-platform {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #bfefff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 760;
}

.mqr-platform.spotify {
    color: #9ef5b4;
}

.mqr-platform.apple_music {
    color: #f3f6ff;
}

.mqr-platform.youtube {
    color: #ffb8b8;
}

.mqr-meta,
.nftp-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    color: #8299a1;
    font-size: 11px;
}

.mqr-meta span,
.nftp-summary span {
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.mqr-status,
.nftp-status-line {
    min-height: 18px;
    margin-top: 10px;
    color: #8fffc1;
    font-size: 11px;
}

.mqr-audio {
    display: none;
}

.nftp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.nftp-status.ok {
    color: #8fffc1;
    border: 1px solid rgba(53, 208, 127, .35);
    background: rgba(53, 208, 127, .12);
}

.nftp-status.warn {
    color: #ffe09a;
    border: 1px solid rgba(255, 190, 61, .32);
    background: rgba(255, 190, 61, .1);
}

.nftp-status.bad {
    color: #ffb0b0;
    border: 1px solid rgba(255, 105, 105, .35);
    background: rgba(255, 105, 105, .12);
}

.nftp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 18px;
    margin-top: 17px;
}

.nftp-section {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.nftp-section h2 {
    margin: 0 0 10px;
    font-size: 13px;
}

.nftp-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.nftp-facts div {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 11px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.nftp-facts div:last-child {
    border-bottom: 0;
}

.nftp-facts dt {
    color: #8299a1;
    font-size: 10px;
}

.nftp-facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
}

.nftp-checks {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nftp-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.nftp-check-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: 10px;
}

.nftp-check.ok .nftp-check-icon {
    color: #8fffc1;
    background: rgba(53, 208, 127, .12);
}

.nftp-check.warning .nftp-check-icon {
    color: #ffe09a;
    background: rgba(255, 190, 61, .11);
}

.nftp-check.error .nftp-check-icon {
    color: #ffb0b0;
    background: rgba(255, 105, 105, .11);
}

.nftp-check strong {
    display: block;
    font-size: 11px;
}

.nftp-check small {
    display: block;
    margin-top: 2px;
    color: #8299a1;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.nftp-secondary {
    color: #bff5ff;
    background: rgba(3, 125, 156, .13);
}

.nftp-errors {
    margin: 12px 0 0;
    padding: 10px 10px 10px 28px;
    border: 1px solid rgba(255, 105, 105, .18);
    border-radius: 10px;
    color: #dca5a5;
    background: rgba(255, 105, 105, .045);
    font-size: 9px;
}

.nftp-note {
    margin-top: 12px;
    color: #6f878e;
    font-size: 9px;
    line-height: 1.5;
}

.light-theme .music-qr-card,
body.light-theme .music-qr-card,
.light-theme .mqr-card,
body.light-theme .mqr-card,
.light-theme .nftp-card,
body.light-theme .nftp-card {
    border-color: rgba(3, 125, 156, .24);
    background: rgba(255, 255, 255, .96);
    color: #102027;
    box-shadow: 0 18px 55px rgba(8, 49, 58, .18);
}

.light-theme .music-qr-type,
body.light-theme .music-qr-type,
.light-theme .music-qr-result,
body.light-theme .music-qr-result,
.light-theme .nftp-section,
body.light-theme .nftp-section,
.light-theme .mqr-meta span,
body.light-theme .mqr-meta span,
.light-theme .nftp-summary span,
body.light-theme .nftp-summary span {
    border-color: rgba(3, 125, 156, .16);
    background: rgba(3, 125, 156, .045);
    color: #102027;
}

.light-theme .music-qr-header small,
body.light-theme .music-qr-header small,
.light-theme .music-qr-type small,
body.light-theme .music-qr-type small,
.light-theme .mqr-artist,
body.light-theme .mqr-artist,
.light-theme .nftp-artist,
body.light-theme .nftp-artist,
.light-theme .mqr-meta,
body.light-theme .mqr-meta,
.light-theme .nftp-summary,
body.light-theme .nftp-summary,
.light-theme .nftp-facts dt,
body.light-theme .nftp-facts dt,
.light-theme .nftp-check small,
body.light-theme .nftp-check small,
.light-theme .nftp-note,
body.light-theme .nftp-note {
    color: #4f6972;
}

.light-theme .music-qr-close,
body.light-theme .music-qr-close,
.light-theme .music-qr-action,
body.light-theme .music-qr-action,
.light-theme .mqr-btn,
body.light-theme .mqr-btn,
.light-theme .nftp-actions a,
body.light-theme .nftp-actions a,
.light-theme .nftp-actions button,
body.light-theme .nftp-actions button {
    border-color: rgba(3, 125, 156, .24);
    background: rgba(3, 125, 156, .07);
    color: #0a6075;
}

@media (max-width: 820px) {
    .mqr-card,
    .nftp-card {
        grid-template-columns: 1fr;
    }

    .mqr-cover,
    .nftp-cover {
        width: min(100%, 300px);
        margin: auto;
    }

    .nftp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .mqr-page,
    .nftp-page {
        padding: 10px;
    }

    .mqr-card,
    .nftp-card {
        padding: 14px;
        border-radius: 14px;
    }

    .mqr-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mqr-wide {
        min-width: 0;
    }

    .music-qr-action-row {
        grid-template-columns: 1fr;
    }

    .nftp-facts div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
