:root {
    --bg: #08060d;
    --panel: #100b19;
    --purple: #a855f7;
    --light-purple: #c084fc;
    --text: #eee5f7;
    --muted: #81748f;
    --border: rgba(168, 85, 247, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, #21102f 0%, transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.music-header {
    min-height: 75px;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 6, 13, 0.9);
}

.back-btn {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
}

.back-btn:hover {
    color: var(--light-purple);
}

.music-logo {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2px;
}

.music-logo span {
    color: var(--purple);
}

.system-status {
    color: #b78aff;
    font-size: 10px;
    letter-spacing: 1px;
}

.music-container {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 65px 0;
}

.music-hero {
    text-align: center;
    margin-bottom: 55px;
}

.eyebrow {
    color: var(--purple);
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.music-hero h1 {
    font-size: clamp(36px, 8vw, 65px);
    letter-spacing: 5px;
    margin-bottom: 12px;
}

.music-hero h1 span {
    color: var(--purple);
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.music-hero > p:last-child {
    color: var(--muted);
    font-size: 13px;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.studio-card {
    position: relative;
    min-height: 205px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #160e21, #0d0913);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.25s ease;
}

.studio-card:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(120, 40, 200, 0.12);
}

.card-number {
    color: #7542a5;
    font-size: 11px;
    letter-spacing: 2px;
}

.studio-card h2 {
    margin: 22px 0 10px;
    font-size: 17px;
    letter-spacing: 1px;
}

.studio-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.studio-card button,
.primary-action {
    background: rgba(168, 85, 247, 0.1);
    color: var(--light-purple);
    border: 1px solid var(--purple);
    border-radius: 5px;
    padding: 11px 16px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.studio-card button:hover,
.primary-action:hover {
    background: var(--purple);
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.workspace {
    margin-top: 30px;
    min-height: 180px;
    padding: 30px;
    background: rgba(16, 11, 25, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.workspace-placeholder {
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    padding-top: 40px;
}

@media (max-width: 600px) {
    .music-header {
        flex-wrap: wrap;
    }

    .music-logo {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .music-container {
        padding: 45px 0;
    }

    .music-hero {
        margin-bottom: 35px;
    }

    .studio-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .studio-card {
        min-height: 185px;
        padding: 23px;
    }

    .workspace {
        padding: 20px;
    }
}

/* MUSIC STUDIO INPUTS */
.workspace input,
.workspace textarea {
    display: block;
    width: 100%;
    margin: 14px 0;
    padding: 13px 15px;
    box-sizing: border-box;
    background: #09070f;
    color: #eee5f7;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: 0.2s ease;
}

.workspace input:focus,
.workspace textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.workspace input::placeholder,
.workspace textarea::placeholder {
    color: #746480;
}

.workspace textarea {
    resize: vertical;
    line-height: 1.6;
}

/* WORKSPACE BUTTONS */
.workspace .primary-action,
.workspace .delete-music {
    margin: 8px 8px 8px 0;
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border: 1px solid #9333ea;
    border-radius: 5px;
    padding: 11px 16px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

.workspace .primary-action:hover,
.workspace .delete-music:hover {
    background: #9333ea;
    color: white;
}

/* FULLSCREEN WORKSPACE */
.workspace.workspace-active {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 85px 7% 40px;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at top, #21102f, transparent 55%),
        #08060d;
    border: none;
    border-radius: 0;
}

/* CLOSE BUTTON */
.workspace-close {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 10000;
    width: 42px;
    height: 42px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid #9333ea;
    border-radius: 6px;
    color: #d8b4fe;
    font-size: 25px;
    cursor: pointer;
}

/* LIBRARY ITEMS */
.library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    background: #100b19;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 7px;
}

.library-item strong {
    color: #e9d5ff;
}

.library-item a {
    color: #c084fc;
    text-decoration: none;
    font-size: 11px;
}

@media (max-width: 600px) {
    .workspace.workspace-active {
        padding: 85px 20px 30px;
    }

    .library-item {
        align-items: flex-start;
        flex-direction: column;
    }
}