* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #F1F0ED;
    font-family: Arial, sans-serif;
    color: #222;
}

/* LOGIN + SIGN UP — TOP */

.top-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 24px;
}

.top-nav a,
.footer-nav a {
    color: #222;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* MAIN LANDING AREA */

.moonsong-logo {
    width: min(400px, 80vw);
    height: auto;
    display: block;
    margin-bottom: 50px;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
}

/* DISCOVER */

.discover-button {
    background-color: #F1F0ED;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    padding: 16px 24px;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.discover-button img {
    width: min(280px, 65vw);
    height: auto;
    display: block;
}

.discover-button span {
    font-size: 15px;
    letter-spacing: 4px;
    color: #222;
}

/* SWIPE MESSAGE */

.swipe-message {
    margin-top: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* FOOTER */

.footer-nav {
    position: fixed;
    bottom: 25px;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: center;
    gap: 24px;
}

body {
    background-color: #F1F0ED;
}

.landing-page {
    background-image: url("images/moon-background.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: min(850px, 110vw) auto;
    background-attachment: fixed;
}

.creator-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 100px;
}

.creator-button {
    width: 150px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    border-radius: 12px;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);

    padding: 0;
    cursor: pointer;

    text-decoration: none;

}

.produce-button,
.vocalize-button {
    width: 180px;
}

.creator-button img {
    height: 24px;
    width: auto;
    display: block;
}

.login-page {
    min-height: 100vh;
    background: #F1F0ED;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.login-logo {
    width: min(80%, 320px);
    height: auto;
    margin-bottom: 40px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-box h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 8px;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-button,
.signup-button {
    width: 100%;
    padding: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.creator-return {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    margin-top: 14px;
}

.creator-return a {
    color: #000;
    font-weight: 600;
}

.discover-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discover-header-image {
    width: 400px;
    height: auto;
    display: block;
}

.discover-cover {
    width: 500px;
    height: 281px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.discover-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-song-info {
    width: 500px;
    margin: 18px auto 0;
    text-align: center;
}

.discover-song-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.discover-artist-name {
    margin: 4px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.discover-actions {
    width: 500px;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 10px;
}

.pass,
.connect {
    display: flex;
    align-items: center;
    gap: 10px;
}

.divider {
    width: 1px;
    height: 26px;
    background-color: #000;
}

.discover-player {
    width: 500px;
    margin: 38px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-play {
    width: 76px;
    height: 76px;
    border: none;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-size: 30px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 0 0 4px;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.clip-slider {
    width: 400px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.audio-slider {
    flex: 1;
    cursor: pointer;
    accent-color: #b8924b;
}

.clip-slider span {
    width: 34px;
    flex-shrink: 0;
}

.clip-slider span:first-child {
    text-align: right;
}

.clip-slider span:last-child {
    text-align: left;
}

.full-song {
    width: 500px;
    margin: 58px auto 0;
    display: flex;
    justify-content: center;
}

.full-song img {
    width: 174px;
    height: auto;
    display: block;
}

.discover-cover {
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.discover-cover:active {
    cursor: grabbing;
}

.discover-cover img {
    pointer-events: none;
    user-select: none;
}

.pass,
.connect {
    appearance: none;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.pass:active,
.connect:active {
    transform: scale(0.96);
}

.room-page {
    background-color: #F1F0ED;
    margin: 0;
}

.room-content {
    width: calc(100% - 40px);
    max-width: 600px;
    margin: 70px auto 40px;
}

.room-cover,
#roomCover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#roomAudio {
    width: 100%;
}

#roomArtistName {
    margin: 0 0 24px;
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
}

#roomSongTitle {
    margin: 18px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.room-divider {
    display: block;
    width: 100%;
    height: auto;
    margin: 28px 0;
}

.room-now-playing {
    padding: 0 10px;
}

.room-now-playing #roomSongTitle {
    margin: 0 0 14px;
}

.room-now-playing #roomAudio {
    display: block;
    width: 100%;
}

.record-shelf-title {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 24px;
}

/* =========================
   ROOM COLLECTION NAV
========================= */

html {
    scroll-behavior: smooth;
}

.room-collection-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 18px auto 28px;

    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-align: center;
}

.room-collection-nav a {
    color: #171717;
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.room-collection-nav a:hover {
    color: #b08d57;
}

.room-nav-divider {
    color: rgba(23, 23, 23, 0.32);
}


/* =========================
   ROOM COLLECTION TITLES
========================= */

.room-collection-title {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 24px;
}

/* Longer title needs additional natural width */
#instrumentalSamplePack {
    max-width: 420px;
}


/* =========================
   ROOM COLLECTIONS
========================= */

.room-collection {
    width: 100%;
    margin: 0 auto 48px;
}


/* =========================
   ROOM NAV JUMP POSITION
========================= */

#recordShelf,
#fileBox,
#vocalSamplePack,
#instrumentalSamplePack {
    scroll-margin-top: 24px;
}


/* =========================
   ROOM MOBILE
========================= */

@media (max-width: 600px) {

    .room-collection-nav {
        gap: 8px;
        margin-top: 14px;
        margin-bottom: 24px;

        font-size: 0.64rem;
        letter-spacing: 1.1px;
        line-height: 1.8;
    }

    .room-nav-divider {
        opacity: 0.55;
    }

    .room-collection-title {
        width: 92%;
        height: auto;
    }

    #instrumentalSamplePack {
        width: 100%;
        max-width: 420px;
    }

    .room-collection {
        margin-bottom: 46px;
    }
}

.other-songs {
    margin: 0;
    padding: 0 10px 40px;
}

#roomSongList,
#roomVocalizationList,
#roomInstrumentationList {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#roomVocalizationList,
#roomInstrumentationList {
    padding: 0 10px;
    box-sizing: border-box;
}

.room-song-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 16px;
    font-family: "Poppins", sans-serif;
    color: #26231f;
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(166, 126, 55, 0.45);
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.room-song-thumbnail-wrap {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 130px;
    aspect-ratio: 1 / 1;
}

.room-song-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.room-song-sigil {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 16px;
    height: auto;
    z-index: 2;
}

.room-song-name {
    display: block;
    min-width: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.room-song-button:hover .room-song-thumbnail {
    transform: scale(1.025);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
}

.room-song-button:focus-visible {
    outline: 2px solid #A67E37;
    outline-offset: 4px;
}

@media (max-width: 420px) {
    .room-song-button {
        grid-template-columns: minmax(0, 1fr) 105px;
        gap: 14px;
        padding: 13px;
    }

    .room-song-thumbnail-wrap {
        width: 105px;
    }

    .room-song-name {
        font-size: 16px;
    }
}

#roomCover {
    cursor: zoom-in;
}

#coverViewer {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    width: min(1200px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow: visible;
}

#coverViewer::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

#expandedCover {
    display: block;
    width: 100%;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    object-fit: contain;
    border-radius: 12px;
}

#closeCoverViewer {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

/* Connections page */

.connections-page {
    min-height: 100vh;
    margin: 0;
    background-color: #F1F0ED;
    color: #111;
    font-family: "Poppins", sans-serif;
}

.connections-header {
    position: relative;
    padding: 72px 20px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.connections-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 5px;
}

.connections-back {
    position: absolute;
    top: 26px;
    left: 20px;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none;
}

.connections-list {
    display: grid;
    gap: 24px;
    max-width: 380px;
    margin: 28px auto;
    padding: 0 20px 40px;
}

.connection-card {
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.connection-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.connection-card div {
    padding: 18px;
    text-align: center;
}

.connection-card h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.connection-card p {
    margin: 0;
    font-size: 14px;
}

.room-now-playing {
    display: grid;
    grid-template-columns: 1fr 140px;
    grid-template-rows: auto auto;
    column-gap: 24px;
    align-items: center;
    width: 100%;
}

.room-now-playing-thumbnail-wrap {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;

    width: 140px;
    height: 140px;
}

.room-now-playing-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.room-now-playing-sigil {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 16px;
    height: auto;
    z-index: 2;
}

#roomSongTitle {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 12px;
}

#roomAudio {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
}

.room-song-info {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.room-song-duration,
.room-song-date {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================
   THE STUDIO
========================= */

.studio-page {
    margin: 0;
    min-height: 100vh;
    background-color: #F1F0ED;
    font-family: "Poppins", sans-serif;
    color: #171717;
}

.studio-content {
    width: 100%;
    padding-bottom: 80px;
}

.studio-header {
    display: block;
    width: 100%;
    height: auto;

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 78%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 78%,
        transparent 100%
    );
}

.studio-section {
    width: calc(100% - 40px);
    max-width: 680px;
    margin: 20px auto 0;
    padding: 35px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #e2e2df,
        #f8f7f4
    );

    border-top: 3px solid #b08d57;
    border-radius: 14px;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.studio-section h1 {
    margin: 0 0 30px;
    text-align: center;

    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 8px;
}

#uploadSongForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#uploadSongForm label {
    margin-top: 12px;

    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#uploadSongForm input,
#uploadSongForm textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;

    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;

    color: #171717;
    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 8px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#uploadSongForm input:focus,
#uploadSongForm textarea:focus {
    border-color: #b08d57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16);
}

#uploadSongForm textarea {
    resize: vertical;
}

.studio-submit-button {
    margin-top: 25px;
    padding: 15px 20px;

    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 3px;

    color: #ffffff;
    background-color: #171717;

    border: none;
    border-radius: 9px;
    cursor: pointer;

    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.studio-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 19px rgba(0, 0, 0, 0.28);
}

.studio-submit-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .studio-section {
        width: calc(100% - 24px);
        padding: 25px 20px;
    }

    .studio-section h1 {
        font-size: 1.05rem;
        letter-spacing: 5px;
    }
}

/* Studio contributor credits */

.contributors-section {
    margin: 28px 0 5px;
    padding: 25px;

    border: 1px solid rgba(23, 23, 23, 0.14);
    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.35);
}

.contributors-section legend {
    padding: 0 12px;

    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 4px;
}

.contributors-help {
    margin: 0 0 22px;

    color: #66625c;
    font-size: 0.82rem;
    line-height: 1.5;
}

.contributor-field {
    margin-bottom: 24px;
}

.contributor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;

    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#uploadSongForm .self-credit {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;

    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;

    cursor: pointer;
}

#uploadSongForm .self-credit input {
    width: 17px;
    height: 17px;
    margin: 0;

    accent-color: #b08d57;
    cursor: pointer;
}

.additional-contributor {
    margin-bottom: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.additional-heading {
    display: block;
    margin-bottom: 10px;

    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.additional-contributor input + input {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .contributors-section {
        padding: 20px 15px;
    }

    .contributor-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

.discover-offering-section {
    margin-top: 70px;
    margin-bottom: 100px;
}

.discover-offering-box {
    padding: 45px 40px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.discover-song-field {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 24px;
}

.discover-song-field label {
    font-weight: 600;
    letter-spacing: 3px;
}

#discoverSongSelect {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    font: inherit;
    background: #ffffff;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
}

/* Lyrics Discover Manager */

.discover-lyrics-field {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 24px;
}

.discover-lyrics-field label {
    font-weight: 600;
    letter-spacing: 3px;
}

#discoverLyricsSelect {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;

    font: inherit;
    background: #ffffff;

    border: 1px solid #b8b8b8;
    border-radius: 6px;
}

.discover-lyrics-editor {
    margin-top: 35px;
}

#discoverLyricsExcerpt {
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;
    padding: 16px;

    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;

    color: #171717;
    background: #ffffff;

    border: 1px solid #b8b8b8;
    border-radius: 8px;
    outline: none;

    resize: vertical;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#discoverLyricsExcerpt:focus {
    border-color: #b08d57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16);
}

.discover-clip-editor {
    margin-top: 45px;
}

.discover-clip-editor audio,
#discoverClipStart {
    width: 100%;
}

@media (max-width: 600px) {
    .discover-offering-box {
        padding: 35px 24px;
    }

    .discover-song-field,
    .discover-lyrics-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.clip-start-button {
    display: block;
    margin: 18px 0 32px 0;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #555b60;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
}

.clip-start-button:hover {
    opacity: 0.85;
}

.discover-clip-instructions {
    margin: 28px 0 18px;
}

/* =========================
   STUDIO WORK TYPE
========================= */

.studio-work-type {
    text-align: center;
}

.studio-work-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.studio-work-type-options button,
#studioCoverUpload {
    padding: 18px 14px;

    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;

    color: #171717;
    background: rgba(255, 255, 255, 0.65);

    border: 1px solid rgba(23, 23, 23, 0.16);
    border-radius: 9px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.studio-work-type-options button:hover,
#studioCoverUpload:hover {
    transform: translateY(-2px);
    border-color: #b08d57;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}


/* =========================
   SELECTED WORK
========================= */

.studio-work-selected {
    padding: 18px 22px;
}

.studio-selected-work {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.studio-selected-work-placeholder {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 6px;
}

.studio-choose-again {
    flex-shrink: 0;

    padding: 9px 13px;

    font-family: "Poppins", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1.5px;

    color: #171717;
    background: transparent;

    border: 1px solid rgba(23, 23, 23, 0.28);
    border-radius: 7px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.studio-choose-again:hover {
    border-color: #b08d57;
    background-color: rgba(255, 255, 255, 0.55);
}


/* =========================
   STUDIO CREATOR FORMS
========================= */

#addLyricsForm,
#addVocalizationForm,
#addInstrumentationForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#addLyricsForm label,
#addVocalizationForm label,
#addInstrumentationForm label {
    margin-top: 12px;

    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#addLyricsForm input,
#addLyricsForm textarea,
#addVocalizationForm input,
#addVocalizationForm textarea,
#addInstrumentationForm input,
#addInstrumentationForm textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 15px;

    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;

    color: #171717;
    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 8px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#addLyricsForm input:focus,
#addLyricsForm textarea:focus,
#addVocalizationForm input:focus,
#addVocalizationForm textarea:focus,
#addInstrumentationForm input:focus,
#addInstrumentationForm textarea:focus {
    border-color: #b08d57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16);
}

#studioLyricsText {
    min-height: 320px;
    resize: vertical;
    line-height: 1.7;
}


/* =========================
   STUDIO REVEAL
========================= */

.studio-reveal {
    animation: studioReveal 0.8s ease both;
}

@keyframes studioReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   STUDIO MOBILE
========================= */

@media (max-width: 600px) {

    .studio-work-type-options {
        grid-template-columns: 1fr;
    }

    .studio-selected-work {
        gap: 12px;
    }

    .studio-selected-work-placeholder {
        font-size: 0.76rem;
        letter-spacing: 2.5px;
    }

    .studio-choose-again {
        font-size: 0.58rem;
        letter-spacing: 1px;
        padding: 8px 10px;
    }

    #studioLyricsText {
        min-height: 260px;
    }
}


/*Phases begins */

.phases-portal-link {
    display: block;
    width: min(90%, 700px);
    margin: 90px auto 40px;
    line-height: 0;
}

.phases-portal-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    
}

.phases-header {
    width: 100%;
    display: flex;
    justify-content: center;
}

.phases-header-image {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.phases-main {
    width: min(calc(100% - 32px), 950px);
    margin: 70px auto 120px;
}

.phases-main section {
    margin-bottom: 90px;
}

.phases-main h1,
.phases-main h2,
.phases-main h3 {
    margin-top: 0;
}

.phases-main h1,
.phases-main h2 {
    text-align: center;
    letter-spacing: 2px;
}

.phases-introduction {
    text-align: center;
}

.phases-introduction h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 30px;
}

.phases-introduction p {
    max-width: 720px;
    margin: 0 auto 18px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* MOON1 projection */

.phases-goal {
    padding: 55px 30px;
    color: #f1f0ed;
    background: #000;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.phases-goal h2 {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 30px;
}

.phases-goal-numbers {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Live counters */

.phases-progress h2 {
    margin-bottom: 35px;
}

.phases-counter {
    margin: 20px 0;
    padding: 35px 20px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.phases-counter p {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
}

.phases-counter > p > span:first-child {
    font-size: 1.35em;
}

.counter-goal {
    font-weight: 500;
}

/* Producers and Lunars */

.phases-now {
    text-align: center;
}

.phases-now h2 {
    margin-bottom: 35px;
}

.phases-enter-card {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 700px);
    margin: 0 auto;
    padding: 28px;
    background: #f1f0ed;
    border: 2px outset #c9a04f;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.phases-enter-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* News and announcements */

.phases-news h2 {
    margin-bottom: 35px;
}

.phases-announcement {
    padding: 35px;
    color: #f1f0ed;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.phases-announcement h3 {
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.phases-announcement p {
    margin: 0;
    line-height: 1.7;
}

.phases-news {
    width: 100%;
    max-width: 700px;
    margin: 90px auto;
}

.phases-news .news-line {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 7px;
    margin: 0 auto;
    object-fit: fill;
}

@media (max-width: 600px) {
    .phases-main {
        margin-top: 45px;
        margin-bottom: 80px;
    }

    .phases-main section {
        margin-bottom: 65px;
    }

    .phases-goal,
    .phases-counter,
    .phases-announcement {
        padding: 28px 20px;
    }

    .phases-enter-card {
        padding: 18px;
    }

    .phases-goal-numbers span {
        display: block;
        margin: 8px 0;
    }
}

.news-content {
    padding: 45px 30px;
}

.news-content h2 {
    margin-top: 0;
    color: #00cfff;
}

.news-announcements-title {
    display: block;
    width: min(100%, 500px);
    height: auto;
    margin: 0 auto 40px;
}

.news-archives {
    display: block;
    width: fit-content;
    margin: 35px 0 0 auto;
    padding: 10px 16px;

    color: #ffffff;
    background: #000000;
    border: 1px solid #00cfff;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
}

/* =========================
   PRODUCER PAGE
========================= */

.producer-page {
    width: 100%;
}

.producer-header {
    display: block;
    width: 100%;
    height: auto;

    /* Blend bottom of header into page */
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 88%,
        transparent 100%
    );
}

/* Producer page introduction */

.producer-introduction {
    width: min(calc(100% - 32px), 900px);
    margin: 48px auto 80px;
    font-family: "Poppins", sans-serif;
}

.producer-introduction h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.producer-introduction p,
.producer-introduction li {
    font-size: 1.3rem;
    line-height: 1.8;
}

.producer-introduction ol {
    margin: 30px 0;
    padding-left: 2rem;
}

.producer-introduction li {
    margin-bottom: 12px;
}

/* Producer page answer images */

.producer-answers {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 80px;
}

.producer-answers img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 36px;
}

/* Producer answer pieces */

.producer-answer-piece > p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 0 0 24px;
}

.producer-answer-message p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Divider between answer pieces */

.producer-divider {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 60px auto;
}

.producer-page-record-shelf-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px auto 40px;
}

/* ========================================
   DISCOVER ROLE CHOOSER
======================================== */

.discover-role-area {
    width: min(90%, 900px);
    margin: 20px auto 28px;
}

/* Initial chooser */

.discover-role-chooser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.discover-role-chooser[hidden] {
    display: none;
}

.discover-choose-label {
    font-weight: 700;
    letter-spacing: 3px;
}

.discover-choose-arrow {
    margin-right: 8px;
    font-size: 13px;
}

.discover-role-option {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 6px 2px;

    font: inherit;
    letter-spacing: inherit;
    color: #111;

    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.discover-role-option:hover {
    transform: translateY(-2px);
    opacity: 0.6;
}

.discover-role-divider {
    font-weight: 400;
    opacity: 0.35;
}

/* Selected role */

.discover-role-selected {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discover-role-selected[hidden] {
    display: none;
}

.discover-selected-role-image {
    display: block;
    width: 180px;
    max-width: 42%;
    height: auto;
}

.discover-choose-again {
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 7px 15px;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #222;

    cursor: pointer;
}

/* ========================================
   LANDING PAGE MEMBERSHIP PATHS
======================================== */

.membership-paths {
    width: min(90%, 650px);
    margin: 110px auto 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.membership-path {
    display: block;
    padding: 24px 28px;

    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);

    text-align: center;
    text-decoration: none;
    color: #111;

    transition: transform 0.18s ease,
                box-shadow 0.18s ease;
}

.membership-path:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.13);
}

.membership-path strong {
    display: block;
    margin-bottom: 10px;

    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
}

.membership-path span {
    display: block;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.creator-signup-message {
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 24px;
}

.creator-role-images {
    margin-top: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.creator-role-images img {
    display: block;
    width: min(60%, 200px);
    height: auto;
}

.login-page > a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.creator-show-message {
    margin: 28px 0 0;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.creator-signup-sigil {
    display: block;
    width: 50px;
    height: auto;
    margin: 24px auto 0;
}

/* ========================================
   STUDIO WORK TYPE
======================================== */

.studio-work-type {
    text-align: center;
}

.studio-work-type-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.studio-work-type-options button,
#studioCoverUpload {
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    border-radius: 20px;
    padding: 9px 16px;

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;

    cursor: pointer;
}

.studio-work-type-options button:hover,
#studioCoverUpload:hover {
    transform: translateY(-2px);
}

/* Discover end of queue */

.discover-queue-end {
    max-width: 650px;
    margin: 70px auto;
    padding: 45px 30px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.discover-queue-end h2 {
    margin: 0 0 35px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
}

.discover-queue-end-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.discover-queue-end-actions button {
    padding: 12px 20px;
    border: 1px solid #c7a84b;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
}

/* CONNECTIONS PAGE ROLE SECTIONS */

.connections-main {
    width: min(calc(100% - 32px), 950px);
    margin: 0 auto;
}

.connections-role-section {
    margin-top: 70px;
    scroll-margin-top: 30px;
}

.connections-role-image {
    display: block;
    max-width: 320px;
    width: 70%;
    height: auto;
    margin-bottom: 25px;
}

.connections-divider {
    display: block;
    width: 100%;
    height: auto;
    margin: 25px 0;
}

.connections-list {
    min-height: 50px;
    padding: 15px 0;
}

#producer-connections .connections-role-image {
    width: 220px;
}

#vocalist-connections .connections-role-image {
    width: 210px;
}

#lyricist-connections .connections-role-image {
    width: 200px;
}

#instrumentalist-connections .connections-role-image {
    width: 320px;
}

/* CONNECTIONS ROLE NAVIGATION */

.connections-role-nav {
    width: min(90%, 900px);
    margin: 20px auto 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;

    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.connections-role-nav a {
    padding: 6px 2px;

    color: #111;
    text-decoration: none;

    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.connections-role-nav a:hover {
    transform: translateY(-2px);
    opacity: 0.6;
}

.connections-role-nav a:not(:last-child)::after {
    content: "|";
    margin-left: 14px;
    font-weight: 400;
    opacity: 0.35;
}

.disconnect-button {
    display: block;
    width: fit-content;
    margin: 10px 14px 14px auto;
    padding: 5px 9px;

    font-family: "Poppins", sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;

    border: none;
    border-radius: 6px;
    background: #f1f0ed;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.room-empty-message {
    display: block;
    width: 100%;
    text-align: center;
    font-family: "Poppins", sans-serif;
}


/* Lyrics reader popup */
.lyrics-reader {
    width: min(90vw, 560px);
    max-height: 80vh;
    margin: auto;
    box-sizing: border-box;
    padding: 36px 26px 30px;
    overflow-y: auto;

    border: 0;
    border-radius: 18px;
    background: #f1f0ed;
    color: #26231f;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    font-family: "Poppins", sans-serif;
}

.lyrics-reader::backdrop {
    background: rgba(23, 23, 23, 0.3);
}

.lyrics-reader h2 {
    text-align: center;
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.lyrics-reader-credit {
    text-align: center;
    margin: 0 0 20px;
    font-size: 0.75rem;
}

.lyrics-reader-credit:empty {
    display: none;
}

/* Shared text styling */
.lyrics-reader-text,
.discover-lyrics-preview {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: normal;
}



.lyrics-reader-close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.8rem;
    cursor: pointer;
}

/* DISCOVER excerpt */
.discover-lyrics-preview {
    width: min(90%, 650px);
    margin: 28px auto;
    padding: 28px;
    background: #f1f0ed;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Full Lyrics image link */
.full-lyrics-label {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin: 30px auto 80px;
}

#fullSongLink .full-lyrics-label img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Artist Room File Box */
#roomLyricsList {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 10px;
}

/* Hidden elements */
.discover-lyrics-preview[hidden],
.discover-player[hidden],
.clip-slider[hidden],
.room-now-playing[hidden],
.full-lyrics-label[hidden],
#fullSongLink img[hidden] {
    display: none;
}

/* Account access: keep Studio concealed until identity has been checked. */
.auth-pending .studio-content { visibility: hidden; }
.account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 0 0 24px; font-size: .85rem; }
.account-bar button { font: inherit; cursor: pointer; padding: 8px 16px; border: 1px solid #b59a62; border-radius: 20px; background: white; }
.account-bar a { color: inherit; }
#authMessage { line-height: 1.6; font-size: .9rem; }
.auth-error { color: #9b2424; }
#authForm button:disabled { opacity: .6; cursor: wait; }
.studio-storage-note { font-size: .8rem; text-align: center; margin: 16px auto 24px; max-width: 500px; }
.auth-pending #authForm { visibility: hidden; }
.awaiting-confirmation #authMessage {
    margin: 24px 0;
    padding: 24px;
    background: #f1f0ed;
    border: 1px solid #b59a62;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.awaiting-confirmation #authMessage a { display: block; margin-top: 20px; color: inherit; font-weight: 600; }
.awaiting-confirmation .creator-role-images,
.awaiting-confirmation .creator-signup-message { display: none; }

#roomCoverPlaceholder {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 32px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    text-align: center;
}
#roomCoverPrompt { margin: 0; font: 500 1rem/1.7 "Poppins", sans-serif; }
#roomStudioLink:not([hidden]) {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 24px;
    border: 1px solid #b59a62;
    border-radius: 24px;
    background: white;
    color: inherit;
    font: 500 .85rem "Poppins", sans-serif;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
#roomCover[hidden], #roomCoverPlaceholder[hidden],
#roomCoverPrompt[hidden], #roomStudioLink[hidden] { display: none; }
.room-loading .room-content { visibility: hidden; }
#roomLoadMessage { margin: 70px auto; max-width: 600px; padding: 20px; text-align: center; }

.room-work-action,
.room-artwork-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    min-width: 0;
}
.room-work-action { align-self: stretch; justify-content: center; width: 100%; }
.room-artwork-button { cursor: zoom-in; border-radius: 7px; }
.room-work-action:focus-visible,
.room-artwork-button:focus-visible { outline: 2px solid #a67e37; outline-offset: 4px; }
.room-song-sigil, .room-now-playing-sigil { pointer-events: none; }

/* Artist Room cover controls */
.studio-cover-section { font-family: "Poppins", sans-serif; text-align: center; }
.studio-cover-section h2 { margin: 0 0 22px; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; }
#studioCoverStatus { font-size: .85rem; font-weight: 400; line-height: 1.6; }
#studioCoverStatus:empty { display: none; }
#studioCoverPreview { display: block; max-width: 100%; width: 360px; max-height: 280px; object-fit: contain; margin: 24px auto 0; border-radius: 10px; }
#studioCoverPreview[hidden] { display: none; }

/* Keep the Room shortcut comfortably inside the Studio edge. */
#openArtistRoom { margin: 20px 24px 12px; }

/* Artist-designed Room atmosphere */
.studio-design-section { font-family: "Poppins", sans-serif; text-align: center; }
.studio-design-section h2 { font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; }
.studio-design-intro { max-width: 440px; margin: 0 auto 26px; font-size: .85rem; line-height: 1.8; }
.studio-design-section fieldset { min-width: 0; margin: 0 0 24px; padding: 20px 16px; border: 1px solid #d6d1c8; border-radius: 12px; }
.studio-design-section legend { padding: 0 10px; font-size: .95rem; }
.studio-design-colors { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.studio-design-section label { font-size: .85rem; }
.studio-design-colors label { display: flex; align-items: center; gap: 12px; }
.studio-design-section input[type="color"] { width: 48px; height: 38px; padding: 3px; border: 1px solid #bab3a6; border-radius: 7px; background: white; cursor: pointer; }
.studio-design-atmosphere > label { display: flex; justify-content: space-between; margin: 24px 0 10px; }
.studio-design-section input[type="range"] { display: block; box-sizing: border-box; width: 100%; accent-color: #a67e37; }
.studio-design-help { font-size: .75rem; font-weight: 400; line-height: 1.8; margin: 14px 0; }
.studio-design-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; }
.studio-design-actions .studio-submit-button { margin: 0; width: auto; }
.studio-design-actions [hidden] { display: none; }
#studioDesignStatus { font-size: .85rem; line-height: 1.7; margin-bottom: 0; }
#studioDesignStatus:empty { display: none; }
.studio-design-preview {
    --room-background: #f1f0ed;
    --room-accent: #a67e37;
    --room-dim: .35;
    --room-atmosphere: none;
    padding: 32px 22px;
    border-radius: 14px;
    background-color: var(--room-background);
    background-image: linear-gradient(rgb(0 0 0 / var(--room-dim)), rgb(0 0 0 / var(--room-dim))), var(--room-atmosphere);
    background-size: cover;
    background-position: center;
}
.studio-design-preview:not(:has(.studio-design-preview-cover img)) { min-height: 280px; }
.studio-design-preview-content { padding: 24px; border-radius: 12px; background: #f1f0ed; color: #26231f; box-shadow: 0 6px 20px #0002; }
.studio-design-preview-label { font-size: .6rem; letter-spacing: 2px; }
.studio-design-preview h3 { margin: 12px 0 20px; font-size: 1.3rem; }
.studio-design-preview-cover { display: grid; place-items: center; min-height: 100px; background: white; border-radius: 8px; font-size: .8rem; overflow: hidden; }
.studio-design-preview-cover img { display: block; width: 100%; height: auto; }
.studio-design-preview-work { display: grid; gap: 10px; margin-top: 20px; padding: 18px; background: white; border: 1px solid var(--room-accent); border-radius: 10px; }
.studio-design-preview-work strong { font-size: .9rem; }
.studio-design-preview-work span { font-size: .75rem; line-height: 1.7; }
.room-designed {
    background-color: var(--room-background, #f1f0ed);
    background-image: linear-gradient(rgb(0 0 0 / var(--room-dim, 0)), rgb(0 0 0 / var(--room-dim, 0))), var(--room-atmosphere, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.room-designed .room-content { box-sizing: border-box; max-width: 648px; padding: 24px; background: #f1f0ed; color: #26231f; border-radius: 16px; box-shadow: 0 8px 30px #0002; }
.room-designed .room-song-button { border-color: var(--room-accent); }
.room-designed #roomStudioLink { border-color: var(--room-accent); }
.room-designed .room-collection-nav a:hover { color: var(--room-accent); }
.room-designed .room-work-action:focus-visible,
.room-designed .room-artwork-button:focus-visible { outline-color: var(--room-accent); }
@media (max-width: 600px) {
    .room-designed { background-attachment: scroll; }
    .room-designed .room-content { width: calc(100% - 24px); padding: 18px 12px; }
    .studio-design-preview { padding: 24px 12px; }
    .studio-design-preview-content { padding: 18px 12px; }
}


.studio-room-link { margin-top: 20px; }


#manageWorkSection [hidden] { display: none; }
#manageWorkSection > p { line-height: 1.6; }
#manageWorkSelect { width: 100%; margin: 12px 0; padding: 12px; font: inherit; }
#manageWorkSection form { margin-top: 24px; }
#manageWorkSection form label { display: block; margin-top: 18px; }
#manageWorkSection form input:not([type="file"]),
#manageWorkSection textarea { width: 100%; box-sizing: border-box; padding: 12px; font: inherit; }
#manageWorkSection button:disabled { opacity: .5; cursor: not-allowed; }
#studioWorkSelected { scroll-margin-top: 20px; }

#manageWorkSection [data-manage-role][aria-pressed="true"] { border-color: #b08d57; background-color: #fff; box-shadow: 0 0 0 2px #b08d57; }

#manageWorkSection .manage-work-label {
    display: block;
    margin: 28px 0 8px;
    font-family: "Allura", "Segoe Script", cursive;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.25;
}


/* Artist profile picture */
.profile-picture {
    display: block;
    width: min(200px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 18px auto;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.profile-picture[hidden], .room-profile[hidden] { display: none; }
.room-profile { text-align: center; margin: 0 auto 32px; padding-top: 32px; }
#roomProfilePrompt { display: inline-block; padding: 24px; color: inherit; font: 14px/1.6 "Poppins", sans-serif; }
#roomProfilePrompt[hidden] { display: none; }
.studio-profile-help { margin: 12px 0 0; font-size: .8rem; line-height: 1.6; }

/* Room decoration choices */
.studio-decoration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.studio-decoration-card { text-align: left; background: rgba(255,255,255,.7); }
.studio-decoration-card legend { font-size: .85rem; font-weight: 500; }
.studio-decoration-preview { display: block; width: 100%; height: 96px; object-fit: contain; margin: 10px auto 20px; }
.studio-decoration-card label { display: block; font-size: .8rem; margin-bottom: 8px; }
.studio-decoration-card select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #bbb; border-radius: 8px; font: inherit; background: #fff; color: #222; }
.studio-decoration-card button { margin-top: 16px; }
#studioDecorationsStatus { font-size: .85rem; line-height: 1.6; }
#studioDecorationsStatus:empty { display: none; }

/* Artist declarations beneath the profile picture */
.room-artist-statement {
    max-width: 540px;
    margin: 0 auto 36px;
    padding: 0 20px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.room-artist-statement[hidden] { display: none; }
.studio-statement-section h2 { text-align: center; }
#studioStatementForm label { display: block; margin: 16px 0 8px; }
#studioStatementText {
    display: block;
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    line-height: 1.6;
    border: 1px solid rgba(23, 23, 23, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    resize: vertical;
}
#studioStatementText:focus {
    outline: 2px solid #b08d57;
    outline-offset: 2px;
}

/* Optional opening quotation artwork */
.room-statement-quotes {
    display: block;
    width: min(110px, 35%);
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto 16px;
}
.room-statement-quotes[hidden],
.studio-decoration-card [hidden] { display: none; }
.studio-decoration-card .studio-quotes-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    margin: 12px 0;
}
.studio-quotes-toggle input { flex-shrink: 0; margin-top: 5px; accent-color: #a67e37; }

/* Profile shapes, accent borders, and optional transparent artwork overlays */
.profile-frame {
    --profile-frame-scale: 1;
    position: relative;
    /* Reserve horizontal and vertical space without shrinking the normal photo. */
    width: min(200px, calc(100% / var(--profile-frame-scale)));
    aspect-ratio: 1;
    margin: calc(30px + 100px * (var(--profile-frame-scale) - 1)) auto;
    overflow: visible;
}
.profile-frame > .profile-picture {
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}
.profile-frame[data-shape="square"] > .profile-picture { border-radius: 0; }
.profile-frame[data-shape="rounded"] > .profile-picture { border-radius: 12px; }
.profile-frame[data-shape="circle"] > .profile-picture { border-radius: 50%; }
.profile-frame.has-accent-border > .profile-picture {
    border: 0;
    outline: 3px solid var(--room-accent, #a67e37);
    outline-offset: 0;
}
.profile-frame-artwork {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% * var(--profile-frame-scale));
    height: calc(100% * var(--profile-frame-scale));
    max-width: none;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
}
.profile-frame-artwork[hidden], .profile-frame:has(> .profile-picture[hidden]):not(.studio-profile-frame-preview) { display: none; }
.studio-profile-frame-preview {
    background: repeating-conic-gradient(#e8e6e1 0% 25%, #fff 0% 50%) 50% / 20px 20px;
}
.studio-profile-frame-preview[data-shape="rounded"] { border-radius: 12px; }
.studio-profile-frame-preview[data-shape="circle"] { border-radius: 50%; }



/* A legacy cover reserves the recommended shape until saved image preparation
   supplies its exact proportions. New uploads use their own metadata. */
#roomCover { aspect-ratio: 3 / 2; object-fit: contain; }

.room-statement-quotes { height: auto; }


/* Keep Discover centered within narrow screens without clipping its content. */
.discover-with-atmosphere .discover-header-image {
    max-width: calc(100% - 32px);
}
.discover-with-atmosphere .discover-cover,
.discover-with-atmosphere .discover-song-info,
.discover-with-atmosphere .discover-actions,
.discover-with-atmosphere .discover-player,
.discover-with-atmosphere .full-song {
    width: min(500px, calc(100% - 32px));
}
.discover-with-atmosphere .discover-cover {
    height: auto;
    aspect-ratio: 500 / 281;
}
.discover-with-atmosphere .discover-cover img {
    display: block;
}
.discover-with-atmosphere .discover-song-info {
    overflow-wrap: anywhere;
}
.discover-with-atmosphere .clip-slider {
    width: min(400px, calc(100% - 32px));
}
.discover-with-atmosphere .audio-slider {
    min-width: 0;
}
.discover-with-atmosphere .discover-queue-end {
    width: min(650px, calc(100% - 32px));
}
.studio-discover-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    text-decoration: none;
}
@media (max-width: 540px) {
    .discover-with-atmosphere .discover-actions {
        gap: 16px;
        font-size: 14px;
        letter-spacing: 2px;
    }
}

/* Let phone visitors scroll the final action above browser toolbars. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .discover-with-atmosphere #discoverContent {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }
    .discover-with-atmosphere .full-song {
        margin-top: 28px;
    }
}
