.nft-media-studio {
    margin: 0 0 22px;
    padding: 20px;
    background:
        radial-gradient(circle at 8% 0%, rgba(39, 220, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(18, 23, 29, 0.98), rgba(8, 11, 15, 0.98));
    border: 1px solid rgba(39, 220, 255, 0.26);
    border-radius: 18px;
    box-shadow: 0 0 22px rgba(39, 220, 255, 0.07);
}

.nft-studio-title-header {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    margin: 22px 0 0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background:
        linear-gradient(90deg, rgba(3, 125, 156, 0.54), rgba(3, 125, 156, 0.16)),
        rgba(8, 14, 18, 0.96);
    border: 2px solid #037d9c;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 16px rgba(3, 125, 156, 0.48),
        0 10px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
}

.nft-studio-title-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 32%);
    pointer-events: none;
}

.nft-studio-title-header > div,
.nft-studio-title-status {
    position: relative;
    z-index: 1;
}

.nft-studio-title-label {
    display: block;
    margin-bottom: 5px;
    color: #8feeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.nft-studio-title-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

.nft-studio-title-header p {
    max-width: 820px;
    margin: 6px 0 0;
    color: #e8fbff;
    line-height: 1.45;
}

.nft-studio-title-status {
    padding: 7px 12px;
    color: #7dff9d;
    background: rgba(93, 255, 154, 0.12);
    border: 1px solid rgba(93, 255, 154, 0.42);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.nft-studio-title-header + .nft-media-studio {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.nft-media-studio[hidden] {
    display: none;
}

.nft-media-studio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.nft-media-studio-header > div > span,
.nft-studio-collection span {
    color: #27dcff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.nft-media-studio h3 {
    margin: 5px 0;
    color: #ffffff;
}

.nft-media-studio p {
    margin: 0;
    color: #a9dce5;
}

.nft-studio-collection {
    min-width: 190px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}

.nft-studio-collection strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.78rem;
    text-overflow: ellipsis;
}

.nft-media-studio-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
    gap: 18px;
}

.nft-studio-file-label {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px;
    color: #c8f4fb;
    text-align: center;
    background: rgba(39, 220, 255, 0.045);
    border: 1px dashed rgba(39, 220, 255, 0.42);
    border-radius: 14px;
    cursor: pointer;
}

.nft-studio-file-label input {
    display: none;
}

.nft-studio-file-label i {
    color: #27dcff;
    font-size: 1.8rem;
}

.nft-studio-file-label span {
    color: #8dbec8;
    font-size: 0.78rem;
}

.nft-studio-preview-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nft-studio-preview-card {
    min-width: 0;
}

.nft-studio-preview-label {
    display: block;
    margin-bottom: 6px;
    color: #8feeff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nft-studio-preview {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    color: #8dbec8;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 12px;
}

.nft-studio-preview img,
.nft-studio-preview video {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.nft-studio-preview audio {
    width: calc(100% - 24px);
}

.nft-studio-cover-preview img {
    height: 150px;
    object-fit: cover;
}

.nft-studio-preview-filename {
    max-width: calc(100% - 20px);
    overflow: hidden;
    color: #b9eaf2;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nft-studio-fields {
    display: grid;
    gap: 12px;
}

.nft-studio-fields label {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.nft-studio-fields small {
    display: block;
    margin-top: 6px;
    color: #8dbec8;
    font-size: 0.72rem;
    font-weight: 500;
}

.nft-studio-fields input,
.nft-studio-fields textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(8, 12, 16, 0.94);
    border: 1px solid rgba(39, 220, 255, 0.24);
    border-radius: 11px;
    box-sizing: border-box;
}

.nft-studio-fields textarea {
    min-height: 76px;
    resize: vertical;
}

.nft-studio-publish-btn {
    min-height: 44px;
    color: #031014;
    background: linear-gradient(135deg, #27dcff, #63ffb0);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.nft-studio-publish-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.nft-studio-status {
    min-height: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.nft-studio-status.error {
    color: #ffaaaa;
}

.nft-studio-status.success {
    color: #7dff9d;
}

.nft-studio-result {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(39, 220, 255, 0.07);
    border: 1px solid rgba(39, 220, 255, 0.25);
    border-radius: 12px;
}

.nft-studio-result[hidden] {
    display: none;
}

.nft-studio-result span {
    display: block;
    margin-bottom: 5px;
    color: #8dbec8;
    font-size: 0.72rem;
}

.nft-studio-result code {
    color: #7cecff;
    overflow-wrap: anywhere;
}

.nft-studio-result button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #59e8ff;
    background: rgba(39, 220, 255, 0.06);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.nft-studio-result button i {
    font-size: 1.18rem;
}

.nft-studio-result button:hover {
    background: rgba(39, 220, 255, 0.14);
    color: #9fffd0;
    transform: translateY(-1px);
}

.nft-studio-result button.copied {
    color: #0b1712;
    background: linear-gradient(135deg, #63ffb0, #27dcff);
}

.nft-studio-mint-link {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #071114;
    background: linear-gradient(135deg, #27dcff, #63ffb0);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nft-studio-mint-link span,
.nft-studio-mint-link i {
    color: #071114;
}

.nft-studio-assets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.nft-studio-asset {
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
}

.nft-studio-asset strong,
.nft-studio-asset code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nft-studio-asset-status {
    display: inline-flex;
    margin-top: 9px;
    padding: 4px 8px;
    color: #ffd56a;
    background: rgba(255, 195, 74, 0.1);
    border: 1px solid rgba(255, 195, 74, 0.25);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.nft-studio-asset-status.minted {
    color: #7dff9d;
    background: rgba(93, 255, 154, 0.1);
    border-color: rgba(93, 255, 154, 0.3);
}

.nft-studio-asset-status.burned {
    color: #ffaaaa;
    background: rgba(255, 84, 84, 0.1);
    border-color: rgba(255, 84, 84, 0.3);
}

.nft-studio-delete-draft {
    width: 100%;
    margin-top: 10px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffb1b1;
    background: rgba(255, 72, 72, 0.08);
    border: 1px solid rgba(255, 72, 72, 0.24);
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
}

.nft-studio-delete-draft:hover {
    color: #ffffff;
    background: rgba(255, 72, 72, 0.18);
}

.nft-studio-asset strong {
    color: #ffffff;
}

.nft-studio-asset code {
    margin-top: 5px;
    color: #27dcff;
    font-size: 0.72rem;
}

@media (max-width: 800px) {
    .nft-studio-title-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nft-media-studio-grid {
        grid-template-columns: 1fr;
    }

    .nft-media-studio-header {
        flex-direction: column;
    }

    .nft-studio-collection {
        width: 100%;
        box-sizing: border-box;
    }

    .nft-studio-assets {
        grid-template-columns: 1fr;
    }

    .nft-studio-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Linked music release: audio and cover are reused automatically. */
.nft-media-studio.has-linked-music-track .nft-studio-file-label {
    background: rgba(93, 255, 154, 0.055);
    border-color: rgba(93, 255, 154, 0.42);
}

.nft-media-studio.has-linked-music-track .nft-studio-file-label i,
.nft-media-studio.has-linked-music-track .nft-studio-file-label strong {
    color: #7dff9d;
}

.nft-media-studio.has-linked-music-track .nft-studio-file-label span {
    color: #9ddfb4;
}

.nft-studio-preview-filename.is-linked {
    color: #7dff9d;
    font-weight: 800;
}

/* v10: embedded Paxor Music system mint */
.nft-system-mint-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(99, 255, 176, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(99, 255, 176, 0.055), rgba(39, 220, 255, 0.035)),
        rgba(7, 12, 15, 0.92);
}

.nft-system-mint-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.nft-system-mint-kicker {
    color: #63ffb0;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.nft-system-mint-header h4 {
    margin: 5px 0 6px;
    color: #ffffff;
    font-size: 1.04rem;
}

.nft-system-mint-header p {
    max-width: 760px;
    margin: 0;
    color: #94a9b2;
    line-height: 1.55;
}

.nft-system-contract-state {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #ffcf75;
    background: rgba(255, 188, 67, 0.09);
    border: 1px solid rgba(255, 188, 67, 0.22);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.nft-system-contract-state.ready {
    color: #72ffae;
    background: rgba(77, 255, 151, 0.08);
    border-color: rgba(77, 255, 151, 0.24);
}

.nft-system-contract-state.error {
    color: #ff9f9f;
    background: rgba(255, 80, 80, 0.08);
    border-color: rgba(255, 80, 80, 0.22);
}

.nft-system-contract-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nft-system-contract-grid > div {
    min-width: 0;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
}

.nft-system-contract-grid span,
.nft-system-mint-result span {
    display: block;
    margin-bottom: 5px;
    color: #71858e;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nft-system-contract-grid strong,
.nft-system-contract-grid a,
.nft-system-contract-grid code {
    display: block;
    overflow: hidden;
    color: #d8f7eb;
    font-size: 0.79rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nft-system-contract-grid a {
    color: #4fe8ff;
    text-decoration: none;
}

.nft-system-mint-fields {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
}

.nft-system-mint-fields label {
    display: grid;
    gap: 7px;
    color: #dce8ec;
    font-size: 0.78rem;
    font-weight: 800;
}

.nft-system-mint-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.23);
    border: 1px solid rgba(99, 255, 176, 0.18);
    border-radius: 10px;
    outline: none;
}

.nft-system-mint-fields input:focus {
    border-color: rgba(99, 255, 176, 0.62);
    box-shadow: 0 0 0 3px rgba(99, 255, 176, 0.08);
}

.nft-system-mint-fields small {
    color: #6f838c;
    font-weight: 600;
    line-height: 1.45;
}

.nft-system-mint-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nft-system-mint-status {
    min-height: 20px;
    margin: 0;
    color: #8fa4ad;
    font-size: 0.78rem;
}

.nft-system-mint-status.success { color: #72ffae; }
.nft-system-mint-status.error { color: #ff9f9f; }

.nft-system-mint-button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #06130e;
    background: linear-gradient(135deg, #63ffb0, #27dcff);
    border: 0;
    border-radius: 12px;
    font-weight: 950;
    cursor: pointer;
}

.nft-system-mint-button:disabled {
    color: #78868b;
    background: #1b272b;
    cursor: not-allowed;
    opacity: 0.72;
}

.nft-system-mint-result {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px;
}

.nft-system-mint-result > div {
    padding: 11px 12px;
    background: rgba(99, 255, 176, 0.055);
    border: 1px solid rgba(99, 255, 176, 0.18);
    border-radius: 10px;
}

.nft-system-mint-result strong,
.nft-system-mint-result a {
    color: #72ffae;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 800px) {
    .nft-system-mint-header,
    .nft-system-mint-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nft-system-contract-grid,
    .nft-system-mint-fields,
    .nft-system-mint-result {
        grid-template-columns: 1fr;
    }
}
