/* =========================================================
   WOLF JACKSON STUDIO - COMPLETE STUDIO STYLES
   ========================================================= */


/* ---------------------------------------------------------
   STUDIO HEADER OVERRIDES
   --------------------------------------------------------- */

.studio-nav .brand img.logo {
    height: 118px;
    width: auto;
    max-width: none;
    transform: translateY(-10px);
}

.studio-nav .nav-links {
    gap: 22px;
}


/* ---------------------------------------------------------
   STUDIO LANDING HERO
   --------------------------------------------------------- */

.studio-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 78% 35%,
            rgba(183, 35, 31, .34),
            transparent 31%
        ),
        linear-gradient(
            90deg,
            #050505,
            #080808 58%,
            #130807
        );
}

.studio-hero-inner {
    padding: 145px 0 76px;
    position: relative;
}

.studio-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.studio-hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: #d5cfc6;
    max-width: 650px;
    line-height: 1.6;
}

.studio-mark {
    position: absolute;
    right: 0;
    top: 20%;
    width: min(24vw, 260px);
    opacity: .06;
    filter: invert(1);
}

.studio-writer {
    position: absolute;
    right: clamp(25px, 6vw, 120px);
    bottom: 0;
    z-index: 2;
    height: min(330px, 34vw);
    width: auto;
    max-width: 48vw;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, .45));
    pointer-events: none;
}


/* ---------------------------------------------------------
   STUDIO LANDING JOIN / LOGIN
   --------------------------------------------------------- */

.studio-join {
    padding: 75px 0 105px;
}

.studio-join-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
}

.studio-pitch h2 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.05em;
    margin: .15em 0 .3em;
}

.studio-steps {
    border-top: 1px solid var(--line);
    margin-top: 30px;
}

.studio-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.studio-step .num {
    color: var(--accent-hi);
    font-weight: 900;
}


/* ---------------------------------------------------------
   REGISTER / LOGIN TABS
   --------------------------------------------------------- */

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.tab {
    padding: 13px;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    color: #777;
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.pane {
    display: none;
}

.pane.active {
    display: block;
}


/* ---------------------------------------------------------
   DISCLAIMER
   --------------------------------------------------------- */

.disclaimer {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    color: #6f6a64;
    font-size: .76rem;
    line-height: 1.7;
}

.disclaimer strong {
    color: #918b84;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}


/* ---------------------------------------------------------
   INTERIOR STUDIO PAGES
   --------------------------------------------------------- */

.studio-page {
    padding: 150px 0 100px;
}

.studio-narrow {
    max-width: 900px;
}

.studio-account-narrow {
    max-width: 600px;
}

.studio-result-narrow {
    max-width: 820px;
    text-align: center;
}

.studio-page h1,
.studio-page-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    text-transform: uppercase;
    letter-spacing: -.06em;
    line-height: .84;
    margin: .12em 0 .25em;
}

.studio-page h1 .outline,
.studio-page-title .outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.3px rgba(255, 255, 255, .58);
}

.studio-result-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: -.05em;
    line-height: .9;
    margin: .18em 0 .35em;
}

.studio-audio {
    width: 100%;
}

.studio-centered-actions {
    justify-content: center;
}

.studio-card-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}


/* ---------------------------------------------------------
   OPENAI WRITING BUTTON STATE
   --------------------------------------------------------- */

#writeBtn.is-working {
    position: relative;
    min-width: 210px;
    pointer-events: none;
    overflow: hidden;
}

#writeBtn.is-working:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .48),
            transparent
        );
    transform: translateX(-120%);
    animation: studioShimmer 1.15s linear infinite;
}

#writeBtn.is-working .btn-label {
    position: relative;
    z-index: 1;
    animation: studioPulse .9s ease-in-out infinite alternate;
}

@keyframes studioShimmer {
    to {
        transform: translateX(120%);
    }
}

@keyframes studioPulse {
    from {
        opacity: .55;
    }

    to {
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   STATUS - GENERATION SCREEN
   --------------------------------------------------------- */

.workstage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;

    /* Clears the fixed Studio header */
    padding: 155px 0 55px;

    background:
        radial-gradient(
            circle at 50% 46%,
            rgba(183, 35, 31, .28),
            transparent 29%
        );
}

.workbox {
    width: min(700px, 92vw);
}

.visualizer {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bar {
    width: 9px;
    height: 20px;
    background: #fff;
    border-radius: 999px;
    animation: studioBars 1.05s ease-in-out infinite;
    opacity: .8;
}

.bar:nth-child(2) { animation-delay: .08s; }
.bar:nth-child(3) { animation-delay: .16s; }
.bar:nth-child(4) { animation-delay: .24s; }
.bar:nth-child(5) { animation-delay: .32s; }
.bar:nth-child(6) { animation-delay: .40s; }
.bar:nth-child(7) { animation-delay: .48s; }
.bar:nth-child(8) { animation-delay: .56s; }
.bar:nth-child(9) { animation-delay: .64s; }

@keyframes studioBars {
    0%,
    100% {
        height: 18px;
        opacity: .3;
    }

    45% {
        height: 135px;
        opacity: 1;
    }

    70% {
        height: 48px;
        opacity: .65;
    }
}

.workmsg {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 800;
    margin: 10px 0;
}

.submsg {
    color: #777;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   STATUS - POST GENERATION RESULTS
   --------------------------------------------------------- */

.results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
    text-align: left;
    align-items: stretch;
}

.done .visualizer {
    display: none;
}

.done .workbox {
    width: min(980px, 94vw);
}

.done .workmsg {
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: .9;
    letter-spacing: -.045em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.done .submsg {
    font-size: .84rem;
    letter-spacing: .1em;
    text-transform: none;
    color: #9a948c;
    margin-bottom: 24px;
}

.song-context {
    display: none;
    margin: 0 auto 28px;
    text-align: center;
}

.done .song-context {
    display: block;
}

.song-context .label {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}

.song-context .title {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    color: #e7e0d7;
}


/* ---------------------------------------------------------
   TAKE CARDS
   --------------------------------------------------------- */

.take {
    position: relative;
    min-height: 250px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        linear-gradient(
            145deg,
            rgba(16, 16, 16, .98),
            rgba(11, 11, 11, .98)
        );
    transition: .25s ease;
    overflow: hidden;
}

.take:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(183, 35, 31, .16),
            transparent 32%
        );
    pointer-events: none;
}

.take:hover {
    border-color: rgba(255, 255, 255, .32);
    transform: translateY(-2px);
}

.take.is-playing {
    border-color: rgba(231, 62, 53, .8);
    box-shadow:
        0 0 0 1px rgba(231, 62, 53, .15),
        0 20px 50px rgba(0, 0, 0, .35);
}

.take .take-label {
    position: relative;
    z-index: 1;
    font-size: .67rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7f7972;
    margin-bottom: 6px;
}

.take h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -.04em;
}

.take .take-sub {
    position: relative;
    z-index: 1;
    color: #8e8881;
    font-size: .83rem;
    margin-bottom: 22px;
}

.take audio,
.take form {
    position: relative;
    z-index: 1;
}

.take audio {
    width: 100%;
}

.take .btn {
    width: 100%;
    margin-top: 18px;
}

.keep-note {
    display: none;
    margin-top: 18px;
    color: #68635d;
    font-size: .75rem;
    letter-spacing: .08em;
}

.done .keep-note {
    display: block;
}


/* ---------------------------------------------------------
   RESULT CONTROLS
   --------------------------------------------------------- */

.result-controls {
    display: none;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.done .result-controls {
    display: block;
}

.credit-count {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8f8982;
    margin-bottom: 12px;
}

.start-over {
    background: transparent;
    color: #aaa;
    border: 0;
    padding: 8px 10px;
    font: inherit;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 1px solid #555;
}

.start-over:hover {
    color: #fff;
    border-color: #fff;
}


/* ---------------------------------------------------------
   START OVER MODAL
   --------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(8px);
    z-index: 200;
}

.modal.open {
    display: grid;
}

.modal-card {
    width: min(520px, 94vw);
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        linear-gradient(
            145deg,
            #0c0c0c,
            #121212
        );
    padding: 30px;
    text-align: left;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.modal-card .eyebrow {
    margin-bottom: 10px;
}

.modal-card h3 {
    margin: .15em 0 .35em;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: .95;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.modal-card p {
    color: #aaa49c;
    line-height: 1.65;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn.danger {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .studio-nav .brand img.logo {
        height: 104px;
        width: auto;
        max-width: none;
        transform: translateY(-6px);
    }

    .studio-writer {
        right: 20px;
        height: 220px;
        max-width: 44vw;
        opacity: .9;
    }

    .studio-hero-copy {
        max-width: 58%;
    }

    .studio-page {
        padding-top: 125px;
    }

    .workstage {
        padding-top: 130px;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

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

    .studio-hero-inner {
        padding: 115px 0 62px;
    }

    .studio-mark {
        right: -35px;
    }
}


@media (max-width: 650px) {

    .studio-hero-inner {
        padding-bottom: 250px;
    }

    .studio-hero-copy {
        max-width: 100%;
    }

    .studio-writer {
        right: 50%;
        transform: translateX(50%);
        height: 230px;
        max-width: 90vw;
    }

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

    .done .workmsg {
        font-size: 2.2rem;
    }

    .take {
        padding: 22px;
    }
}


/* =========================================================
   STUDIO v4 - LIBRARY / PUBLIC SHARE PAGES
   ========================================================= */

.song-local-badge {
    display: inline-block;
    margin-top: 14px;
    color: #777;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.result-bottom-actions {
    margin-top: 28px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.share-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 22px 0;
}

.share-url {
    flex: 1 1 320px;
    min-width: 0;
    font-size: .82rem;
    color: #aaa;
}

.song-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 24px 0;
    background: var(--line);
    border: 1px solid var(--line);
}

.song-stats > div {
    background: #0b0b0b;
    padding: 18px 12px;
    text-align: center;
}

.song-stats strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: #fff;
}

.song-stats span {
    display: block;
    margin-top: 8px;
    font-size: .62rem;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #777;
}


/* Library */

.library-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 42px;
}

.library-title {
    margin: .14em 0 .18em !important;
}

.library-head p {
    max-width: 700px;
    margin-bottom: 0;
    line-height: 1.6;
}

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

.library-song {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.library-song-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

.library-song h2 {
    margin: 7px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.song-status {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #777;
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.song-status.live {
    border-color: rgba(231, 62, 53, .45);
    color: #e7a7a2;
    background: rgba(183, 35, 31, .08);
}

.library-audio {
    margin-bottom: 4px;
}

.library-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.library-actions .btn {
    padding: 11px 15px;
    font-size: .66rem;
}

.library-date {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #5f5a55;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.library-empty {
    max-width: 650px;
}


/* Public shared song */

.public-song-page {
    min-height: 100vh;
    padding: 165px 0 110px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 32%, rgba(183,35,31,.22), transparent 32%);
}

.public-song-shell {
    width: min(calc(100% - 30px), 820px);
}

.public-song-card {
    text-align: center;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(11,11,11,.96), rgba(16,16,16,.96));
    padding: clamp(28px, 6vw, 64px);
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.public-song-card h1 {
    margin: .15em 0 .15em;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.public-song-intro {
    margin: 0 auto 30px;
    color: #aaa49c;
}

.public-song-player {
    margin: 12px 0;
}

.public-listen-progress {
    min-height: 22px;
    margin: 12px 0 22px;
    color: #777;
    font-size: .74rem;
    letter-spacing: .06em;
}

.public-stats {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, 1fr);
}

.public-share-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.public-song-note {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: #5f5a55;
    font-size: .72rem;
    line-height: 1.7;
}


@media (max-width: 850px) {

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

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


@media (max-width: 650px) {

    .song-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        margin: 20px 0;
    }

    .song-stats > div {
        min-width: 0;
        padding: 14px 4px 13px;
    }

    .song-stats strong {
        font-size: 1.28rem;
    }

    .song-stats span {
        margin-top: 7px;
        font-size: .52rem;
        line-height: 1.2;
        letter-spacing: .07em;
        white-space: nowrap;
    }

    .share-box {
        align-items: stretch;
        flex-direction: column;
    }

    .share-box .btn {
        width: 100%;
    }

    .public-song-page {
        padding-top: 135px;
    }
}


/* =========================================================
   v4.1 - SAVE / PUBLISH PROCESSING UX
   ========================================================= */

.save-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 155px 20px 70px;
    background:
        radial-gradient(
            circle at 50% 43%,
            rgba(183,35,31,.26),
            transparent 30%
        );
}

.save-box {
    width: min(720px, 94vw);
}

.save-visualizer {
    margin: 4px auto 0;
}

.save-title {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.save-song-name {
    margin-top: 16px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    color: #d9d2c9;
}

.save-message {
    min-height: 28px;
    margin: 18px 0 20px;
    color: #8d8780;
    font-size: .84rem;
    letter-spacing: .05em;
}

.save-progress-line {
    width: min(420px, 80vw);
    height: 2px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255,255,255,.1);
}

.save-progress-line span {
    display: block;
    width: 38%;
    height: 100%;
    background: #fff;
    animation: studioSaveLine 1.4s ease-in-out infinite;
}

@keyframes studioSaveLine {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(300%); }
}

.save-error {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(231,62,53,.35);
    background: rgba(183,35,31,.07);
}

.save-error p {
    color: #d7c4c2;
}

.save-error .btn {
    margin: 5px;
}

.btn:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

.song-direction-summary {
    margin: 18px 0 24px;
    padding: 12px 14px;
    border-left: 2px solid var(--accent);
    background: rgba(255,255,255,.03);
    color: #918b84;
    font-size: .78rem;
    line-height: 1.5;
}

.song-direction-summary strong {
    color: #d9d3cb;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
}

.queue-position {
    margin: 22px auto 4px;
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.035);
    color: #dcd5cc;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.queue-position[hidden] {
    display: none !important;
}


@media (max-width: 650px) {
    .save-stage {
        padding-top: 125px;
    }
}

/* =========================================================
   GUIDED SONGWRITING WORKFLOW
   ========================================================= */
.studio-workflow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    margin: 0 0 28px;
}
.studio-workflow-step {
    border-top: 2px solid rgba(255,255,255,.12);
    padding: 9px 3px 0;
    color: #69635d;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-align: center;
}
.studio-workflow-step.active {
    border-color: var(--accent-hi);
    color: #fff;
}
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}
.analysis-box {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    padding: 20px;
}
.analysis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.analysis-head strong {
    font-size: .76rem;
    letter-spacing: .12em;
}
.analysis-head span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    color: #c9c1b7;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.analysis-box p,
.analysis-summary p,
.rewrite-plan p {
    margin: 0;
    line-height: 1.65;
    color: #cbc5bd;
}
.rewrite-plan { margin-top: 18px; }
.production-note {
    padding: 17px 18px;
    margin: 6px 0 22px;
    border-left: 3px solid var(--accent-hi);
    background: rgba(255,255,255,.03);
    color: #a9a29a;
    line-height: 1.55;
}
@media (max-width: 720px) {
    .studio-workflow { gap: 3px; }
    .studio-workflow-step { font-size: .53rem; letter-spacing: .04em; }
    .analysis-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   SONGWRITING PROCESSING STATES
   --------------------------------------------------------- */

.studio-process-btn.is-working {
    position: relative;
    min-width: 210px;
    pointer-events: none;
    overflow: hidden;
}

.studio-process-btn.is-working:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
    transform: translateX(-120%);
    animation: studioShimmer 1.15s linear infinite;
}

.studio-process-btn.is-working .btn-label {
    position: relative;
    z-index: 1;
    animation: studioPulse .9s ease-in-out infinite alternate;
}

.btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.studio-processing {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
}

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

.studio-processing strong,
.studio-processing span {
    display: block;
}

.studio-processing strong {
    color: #fff;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.studio-processing span {
    margin-top: 3px;
    color: #918b84;
    font-size: .76rem;
}

.studio-processing-mark {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid rgba(255,255,255,.22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: studioProcessingSpin .75s linear infinite;
}

@keyframes studioProcessingSpin {
    to { transform: rotate(360deg); }
}


/* =========================================================
   WOLF STUDIO CUSTOM AUDIO PLAYER
   Replaces browser-native controls so download/speed menus are not exposed.
   ========================================================= */

.wolf-player {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    box-sizing: border-box;
    transition: border-color .18s ease, background .18s ease;
}

.wolf-player.is-playing {
    border-color: rgba(231,62,53,.52);
    background: linear-gradient(180deg, rgba(183,35,31,.11), rgba(255,255,255,.025));
}

.wolf-player-audio {
    display: none !important;
}

.wolf-player-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    background: #b7231f;
    color: #fff;
    font: inherit;
    font-size: .92rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: transform .16s ease, background .16s ease;
}

.wolf-player-toggle:hover {
    transform: scale(1.04);
    background: #cf2c26;
}

.wolf-player-toggle:focus-visible,
.wolf-player-progress:focus-visible {
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 3px;
}

.wolf-player-progress {
    width: 100%;
    min-width: 0;
    height: 4px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    cursor: pointer;
    accent-color: #b7231f;
}

.wolf-player-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.wolf-player-progress::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 50%;
    background: #f4f1eb;
    box-shadow: 0 0 0 3px rgba(183,35,31,.18);
}

.wolf-player-progress::-moz-range-track {
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.wolf-player-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #f4f1eb;
}

.wolf-player-time {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: #8f8982;
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.wolf-player-sep {
    opacity: .55;
}

.take .wolf-player {
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.library-song .wolf-player {
    margin-bottom: 4px;
}

.public-song-card .wolf-player {
    margin: 12px 0;
    text-align: left;
}

@media (max-width: 520px) {
    .wolf-player {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 9px 10px;
        padding: 10px 11px;
    }

    .wolf-player-toggle {
        width: 38px;
        height: 38px;
        grid-row: 1 / span 2;
    }

    .wolf-player-time {
        grid-column: 2;
        justify-self: end;
        font-size: .66rem;
    }
}
