:root {
    color-scheme: dark;
    --bg: #070b10;
    --panel: #101821;
    --panel-2: #151f2a;
    --line: #273644;
    --text: #f4f7fa;
    --muted: #96a8b8;
    --cyan: #46c7f4;
    --cyan-2: #1b8db7;
    --green: #57d99b;
    --red: #ff6d75;
    --amber: #f6bd5b;
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(40, 92, 126, .27), transparent 34rem),
        radial-gradient(circle at 90% 15%, rgba(21, 111, 141, .16), transparent 28rem),
        var(--bg);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(89, 117, 139, .22);
    background: rgba(7, 11, 16, .78);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand img {
    width: 154px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.brand span {
    color: var(--cyan);
    font-size: .82rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
}

nav a:hover,
.link-button:hover {
    color: var(--text);
}

nav form {
    margin: 0;
}

.link-button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.user-name {
    color: var(--text);
    font-weight: 700;
}

.page-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 54px) 0 80px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h1,
.login-intro h1 {
    margin: 6px 0 10px;
    max-width: 900px;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.page-heading p,
.login-intro p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.eyebrow {
    color: var(--cyan);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(22, 33, 44, .96), rgba(13, 21, 29, .96));
    box-shadow: var(--shadow);
}

.card {
    padding: clamp(20px, 3vw, 32px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 126px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.stat-card strong {
    font-size: 2.5rem;
    letter-spacing: -.05em;
}

.stat-alert {
    border-color: rgba(255, 109, 117, .45);
    background:
        linear-gradient(145deg, rgba(78, 29, 35, .9), rgba(29, 17, 22, .95));
}

.new-badge,
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.new-badge {
    padding: 12px 18px;
    color: #fff;
    background: var(--red);
    box-shadow: 0 10px 30px rgba(255, 109, 117, .28);
}

.count-badge {
    min-width: 40px;
    height: 40px;
    color: var(--cyan);
    border: 1px solid rgba(70, 199, 244, .34);
    background: rgba(70, 199, 244, .08);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr);
    gap: 18px;
}

.artist-dashboard {
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .65fr);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

h2 {
    margin: 5px 0 0;
    font-size: 1.6rem;
    letter-spacing: -.035em;
}

.muted {
    color: var(--muted);
    line-height: 1.55;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #c7d2dc;
    font-size: .9rem;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #344758;
    border-radius: 11px;
    padding: 12px 13px;
    color: var(--text);
    background: #0b1219;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(70, 199, 244, .12);
}

textarea {
    resize: vertical;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #3a5062;
    border-radius: 11px;
    padding: 10px 15px;
    color: var(--text);
    background: #172532;
    font-weight: 800;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
    border-color: #57738a;
}

.button-primary {
    border-color: #2c9dc8;
    color: #031018;
    background: linear-gradient(135deg, #70dbff, #39b9e6);
}

.button-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: .82rem;
}

.notification-list,
.artist-list,
.version-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification,
.artist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #263746;
    border-radius: 13px;
    padding: 15px;
    background: rgba(5, 11, 16, .4);
}

.notification > div,
.artist-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification span,
.artist-row span {
    color: var(--muted);
    font-size: .83rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid #263542;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

td {
    font-size: .92rem;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--amber);
    background: rgba(246, 189, 91, .1);
    font-size: .76rem;
    font-weight: 800;
    text-transform: capitalize;
}

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

.song-card {
    min-height: 116px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #2a3a48;
    border-radius: 15px;
    padding: 18px;
    background: rgba(5, 11, 16, .45);
    transition: border-color .15s, transform .15s, background .15s;
}

.song-card:hover {
    transform: translateY(-2px);
    border-color: rgba(70, 199, 244, .7);
    background: rgba(20, 39, 52, .7);
}

.song-number {
    min-width: 54px;
    color: var(--cyan);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 900;
}

.song-card h3 {
    margin: 0 0 6px;
}

.song-card p {
    margin: 0;
    color: var(--muted);
}

.song-arrow {
    color: var(--cyan);
    font-size: 1.6rem;
}

.version-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    border: 1px solid #2a3b49;
    border-radius: 15px;
    padding: 18px;
    background: rgba(5, 11, 16, .45);
}

.version-number {
    display: grid;
    place-items: center;
    min-height: 74px;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(70, 199, 244, .08);
    font-size: 1.45rem;
    font-weight: 950;
}

.version-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.version-top span {
    color: var(--muted);
    font-size: .82rem;
}

.version-body p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.next-module {
    margin-top: 22px;
    border: 1px dashed rgba(70, 199, 244, .36);
    border-radius: 13px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--muted);
    background: rgba(70, 199, 244, .05);
}

.next-module strong {
    color: var(--cyan);
}

.login-layout {
    min-height: calc(100vh - 190px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, .55fr);
    align-items: center;
    gap: clamp(30px, 7vw, 110px);
}

.login-intro h1 {
    font-size: clamp(3rem, 7vw, 6.7rem);
}

.feature-list {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-list span {
    border: 1px solid rgba(70, 199, 244, .25);
    border-radius: 999px;
    padding: 9px 12px;
    color: #bdd3e2;
    background: rgba(70, 199, 244, .06);
    font-weight: 700;
    font-size: .85rem;
}

.login-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.flash {
    margin-bottom: 20px;
    border: 1px solid rgba(87, 217, 155, .45);
    border-radius: 12px;
    padding: 13px 15px;
    color: #b9f4d6;
    background: rgba(30, 93, 65, .3);
}

.flash-error {
    border-color: rgba(255, 109, 117, .45);
    color: #ffc6ca;
    background: rgba(108, 33, 41, .32);
}

.empty-state {
    padding: 24px;
    border: 1px dashed #334655;
    border-radius: 13px;
    color: var(--muted);
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--cyan);
    font-weight: 800;
}

@media (max-width: 1050px) {
    .dashboard-grid,
    .artist-dashboard,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid,
    .song-grid {
        grid-template-columns: 1fr;
    }

    .version-card {
        grid-template-columns: 1fr;
    }

    .version-top {
        flex-direction: column;
        gap: 5px;
    }

    .brand img {
        width: 130px;
    }
}


/* v0.3 profiles and cinematic Universe28 reveal */

.intro-active {
    overflow: hidden;
}

.intro-reveal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(38, 137, 181, .2),
            transparent 28rem
        ),
        #030507;
}

.intro-reveal img {
    width: min(620px, 72vw);
    max-height: 210px;
    object-fit: contain;
    opacity: 0;
    transform: scale(.82);
    animation:
        intro-logo 2.1s cubic-bezier(.2, .8, .2, 1) .12s both;
}

.intro-reveal span {
    color: rgba(226, 241, 249, .78);
    font-size: clamp(.66rem, 1.5vw, .9rem);
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: 0;
    animation: intro-caption 1.2s ease .85s both;
}

.intro-line {
    width: min(420px, 58vw);
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(70, 199, 244, .9),
            transparent
        );
    transform: scaleX(0);
    animation: intro-line 1.2s ease .62s both;
}

.intro-glow {
    position: absolute;
    width: 44rem;
    height: 44rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(70, 199, 244, .17),
            transparent 66%
        );
    opacity: 0;
    animation: intro-glow 2.2s ease .2s both;
}

.intro-finished {
    pointer-events: none;
    animation: intro-exit .72s ease both;
}

@keyframes intro-logo {
    0% {
        opacity: 0;
        transform: scale(.82);
        filter: brightness(.55);
    }
    42% {
        opacity: 1;
        transform: scale(1.035);
        filter:
            drop-shadow(0 0 34px rgba(70, 199, 244, .34))
            brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter:
            drop-shadow(0 0 18px rgba(70, 199, 244, .2))
            brightness(1);
    }
}

@keyframes intro-caption {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes intro-line {
    to {
        transform: scaleX(1);
    }
}

@keyframes intro-glow {
    0% {
        opacity: 0;
        transform: scale(.65);
    }
    55% {
        opacity: 1;
    }
    100% {
        opacity: .55;
        transform: scale(1.08);
    }
}

@keyframes intro-exit {
    to {
        opacity: 0;
        transform: scale(1.025);
        visibility: hidden;
    }
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.auth-page {
    min-height: calc(100vh - 190px);
    display: grid;
    grid-template-columns:
        minmax(280px, .72fr)
        minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 90px);
}

.auth-copy h1 {
    margin: 8px 0 18px;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.auth-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.field-help {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

.password-note {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

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

@media (max-width: 900px) {
    .auth-page,
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .intro-reveal span {
        letter-spacing: .16em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-reveal {
        display: none;
    }
}

/* v0.3.4 centred login correction */

.login-layout-minimal {
    min-height: calc(100vh - 108px);
    grid-template-columns: minmax(320px, 460px);
    justify-content: center;
    align-items: center;
    gap: 0;
}

.login-card-centered {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .login-layout-minimal {
        min-height: calc(100vh - 64px);
        grid-template-columns: minmax(0, 1fr);
    }
}


/* v0.6 upload and music library */

.warning-banner {
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 190, 81, .34);
    border-radius: 14px;
    background: rgba(94, 62, 14, .3);
    color: #ffd99a;
}

.library-actions {
    display: flex;
    gap: 8px;
}

.album-strip {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 4px;
}

.album-chip {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255,255,255,.025);
}

.album-chip:hover,
.album-chip.active {
    color: var(--text);
    border-color: rgba(80, 204, 247, .5);
    background: rgba(52, 164, 207, .12);
}

.song-library-card {
    min-width: 0;
}

.song-cube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.song-cube {
    position: relative;
    min-height: 250px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(55, 190, 239, .16), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
    transition: transform .2s ease, border-color .2s ease;
}

.song-cube:hover {
    transform: translateY(-5px);
    border-color: rgba(83, 214, 255, .5);
}

.cube-art {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 5px auto 24px;
    transform-style: preserve-3d;
    transform: rotateX(-18deg) rotateY(35deg);
    animation: songCubeFloat 7s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(128, 227, 255, .38);
    background: rgba(46, 166, 211, .08);
    box-shadow: inset 0 0 30px rgba(56, 192, 238, .08);
}

.face-a { transform: translateZ(28px); }
.face-b { transform: rotateY(90deg) translateZ(28px); }
.face-c { transform: rotateX(90deg) translateZ(28px); }

.cube-art strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #c8f4ff;
    font-size: 1.2rem;
    text-shadow: 0 0 24px rgba(66, 198, 242, .8);
}

.cube-copy span {
    color: var(--accent);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.cube-copy h3 {
    margin: 5px 0;
}

.cube-copy p {
    color: var(--muted);
    margin: 0;
}

.song-table-wrap {
    overflow-x: auto;
}

.song-table {
    width: 100%;
}

.version-stack {
    display: grid;
    gap: 18px;
}

.version-detail-card {
    display: grid;
    gap: 20px;
}

.version-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.version-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.version-meta-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.version-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.version-meta-grid strong {
    display: block;
    margin-top: 5px;
}

.track-list {
    display: grid;
    gap: 9px;
}

.track-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 150px auto;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
}

.track-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #bdefff;
    background: rgba(53, 181, 226, .15);
    font-weight: 800;
}

.track-main {
    min-width: 0;
}

.track-main strong,
.track-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-main span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
}

.track-role-form select {
    width: 100%;
}

.upload-state {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.05);
    font-size: .75rem;
    white-space: nowrap;
}

.upload-state.ready {
    color: #a8f7ce;
    background: rgba(38, 162, 100, .13);
}

.ltc-confirm-form {
    display: grid;
    grid-template-columns: 1fr 130px 1.5fr auto;
    gap: 12px;
    align-items: end;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.confirm-check {
    min-height: 45px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
}

.confirm-check input {
    width: auto;
}

.new-version-card {
    margin-top: 18px;
}

.form-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 18px;
}

.upload-drop-card {
    min-width: 0;
}

.upload-drop-zone {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px dashed rgba(91, 219, 255, .35);
    border-radius: 20px;
    background:
        radial-gradient(circle, rgba(45, 172, 218, .14), transparent 42%),
        rgba(255,255,255,.012);
    text-align: center;
}

.upload-drop-zone.dragging {
    border-color: #77ddff;
    background: rgba(49, 175, 222, .12);
}

.upload-drop-zone input {
    display: none;
}

.upload-drop-zone strong {
    font-size: 1.3rem;
}

.upload-drop-zone span {
    color: var(--muted);
}

.upload-orbit {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
    border: 1px solid rgba(91, 220, 255, .4);
    border-radius: 50%;
    box-shadow:
        0 0 0 17px rgba(69, 191, 235, .06),
        0 0 0 34px rgba(69, 191, 235, .03);
    animation: uploadOrbit 3s linear infinite;
}

.upload-role-row {
    margin-top: 14px;
}

.upload-queue {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.upload-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.upload-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.upload-item-head span,
.upload-item small {
    color: var(--muted);
}

.upload-progress {
    height: 5px;
    margin: 9px 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.upload-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2da9df, #84e6ff);
    transition: width .15s linear;
}

.upload-item.complete {
    border-color: rgba(75, 212, 143, .3);
}

.upload-item.failed {
    border-color: rgba(255, 91, 91, .35);
}

.requirements-list {
    display: grid;
    gap: 10px;
}

.requirements-list > div,
.ltc-result {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.requirements-list strong,
.requirements-list span,
.ltc-result span,
.ltc-result strong,
.ltc-result small {
    display: block;
}

.requirements-list span,
.ltc-result span,
.ltc-result small {
    color: var(--muted);
}

.ltc-result {
    margin: 18px 0;
}

.ltc-result strong {
    margin: 5px 0;
    font-size: 1.2rem;
}

@keyframes songCubeFloat {
    0%, 100% { transform: rotateX(-18deg) rotateY(35deg) translateY(0); }
    50% { transform: rotateX(-18deg) rotateY(42deg) translateY(-7px); }
}

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

@media (max-width: 920px) {
    .version-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .track-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .track-role-form,
    .upload-state {
        grid-column: 2;
    }

    .ltc-confirm-form,
    .upload-layout {
        grid-template-columns: 1fr;
    }
}


/* v0.6.1 song-first library */

.library-hero,
.song-page-heading,
.upload-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.library-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switch {
    display: flex;
    gap: 8px;
}

.add-song-button {
    min-width: 150px;
}

.song-library-full {
    width: 100%;
}

.song-cube-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.song-cube-large {
    min-height: 340px;
    padding: 28px;
}

.song-cube-large .cube-art {
    width: 145px;
    height: 145px;
    margin-top: 14px;
    margin-bottom: 34px;
}

.song-cube-large .cube-copy h2 {
    margin: 5px 0 8px;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.cube-status {
    display: inline-flex;
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(73, 191, 235, .12);
    color: #9be5ff;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.empty-song-cube {
    min-height: 340px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(93, 216, 255, .35);
    border-radius: 20px;
    background: rgba(255,255,255,.015);
    color: var(--text);
    cursor: pointer;
}

.empty-song-cube span {
    font-size: 3rem;
    color: var(--accent);
}

.empty-song-cube small {
    color: var(--muted);
}

.song-list-full {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.018);
}

.song-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 24px;
}

.song-modal[hidden] {
    display: none;
}

.song-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 4, 8, .82);
    backdrop-filter: blur(9px);
}

.song-modal-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(82, 204, 247, .28);
    border-radius: 22px;
    background: #111a24;
    box-shadow: 0 35px 100px rgba(0,0,0,.55);
}

.song-modal-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.song-modal-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}

.version-grid {
    display: grid;
    gap: 22px;
}

.version-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.version-card-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 18px;
}

.version-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.version-summary > div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.version-summary span,
.version-summary strong {
    display: block;
}

.version-summary span {
    color: var(--muted);
    font-size: .76rem;
}

.version-summary strong {
    margin-top: 4px;
}

.version-card-footer {
    margin-top: 16px;
}

.ltc-confirm-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr 130px 1.5fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(89, 214, 255, .24);
    border-radius: 14px;
    background: rgba(42, 158, 201, .07);
}

.upload-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, .65fr);
    gap: 22px;
}

.upload-main-panel {
    min-width: 0;
}

.upload-drop-zone-large {
    min-height: 430px;
}

.upload-options {
    margin-top: 16px;
}

.upload-side-panel {
    display: grid;
    align-content: start;
    gap: 14px;
}

.ltc-confirm-preview strong,
.ltc-confirm-preview span {
    display: block;
}

.ltc-confirm-preview strong {
    margin: 9px 0 4px;
    font-size: 1.45rem;
}

.upload-finish-button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .library-hero,
    .song-page-heading,
    .upload-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .library-toolbar {
        justify-content: space-between;
    }

    .upload-workspace,
    .ltc-confirm-card {
        grid-template-columns: 1fr;
    }

    .version-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v0.6.2: cache-busted song library and three-step modal creator */

.library-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 30px;
}

.library-topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: .95;
}

.library-actions-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.segmented-control {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
}

.segmented-control button {
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.segmented-control button.active {
    background: rgba(91, 211, 250, .16);
    color: #c9f3ff;
}

.add-song-hero span {
    font-size: 1.2rem;
    line-height: 1;
}

.library-canvas {
    min-height: 62vh;
}

.song-cube-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.song-tile {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 27%, rgba(56, 193, 239, .16), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.song-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 218, 255, .5);
}

.song-orbital-cube {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 18px auto 35px;
    transform-style: preserve-3d;
    transform: rotateX(-18deg) rotateY(36deg);
    animation: u28SongCube 7s ease-in-out infinite;
}

.song-cube-plane {
    position: absolute;
    inset: 23px;
    border: 1px solid rgba(132, 231, 255, .42);
    background: rgba(54, 184, 230, .07);
    box-shadow: inset 0 0 35px rgba(71, 203, 245, .08);
}

.plane-front { transform: translateZ(36px); }
.plane-side { transform: rotateY(90deg) translateZ(36px); }
.plane-top { transform: rotateX(90deg) translateZ(36px); }

.song-orbital-cube strong {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #d5f7ff;
    font-size: 1.35rem;
    text-shadow: 0 0 24px rgba(83, 214, 255, .8);
}

.song-tile-copy small {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.song-tile-copy h2 {
    margin: 7px 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.song-tile-copy p {
    margin: 0;
    color: var(--muted);
}

.add-first-song-tile {
    border-style: dashed;
    font: inherit;
    cursor: pointer;
}

.add-song-symbol {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    margin: 30px auto 48px;
    border: 1px solid rgba(106, 222, 255, .35);
    border-radius: 28px;
    background: rgba(50, 171, 216, .07);
    color: #adf0ff;
    font-size: 4rem;
    font-weight: 200;
}

.song-list-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.018);
}

.song-wizard {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.song-wizard[hidden],
.wizard-step[hidden] {
    display: none !important;
}

.song-wizard-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 5, 10, .84);
    backdrop-filter: blur(16px);
}

.song-wizard-panel {
    position: relative;
    width: min(860px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(93, 214, 255, .28);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0, rgba(49, 170, 215, .1), transparent 34%),
        #111923;
    box-shadow: 0 35px 120px rgba(0, 0, 0, .72);
}

.song-wizard-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.song-wizard-header h2 {
    margin: 5px 0 6px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.song-wizard-header p {
    margin: 0;
    color: var(--muted);
}

.song-wizard-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}

.wizard-progress {
    height: 4px;
    margin: 24px 0 26px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}

.wizard-progress i {
    display: block;
    width: 33%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38b3e3, #9aeaff);
    transition: width .28s ease;
}

.wizard-details-form {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 16px;
}

.wizard-details-form label:last-of-type,
.wizard-details-form .wizard-error,
.wizard-details-form .wizard-next {
    grid-column: 1 / -1;
}

.wizard-details-form small {
    color: var(--muted);
}

.wizard-error {
    padding: 12px 14px;
    border: 1px solid rgba(255, 101, 101, .35);
    border-radius: 12px;
    background: rgba(118, 30, 39, .25);
    color: #ffb7bc;
}

.wizard-song-summary {
    display: flex;
    align-items: baseline;
    gap: 11px;
    margin-bottom: 16px;
}

.wizard-song-summary span,
.wizard-song-summary small {
    color: var(--muted);
}

.wizard-song-summary strong {
    font-size: 1.2rem;
}

.wizard-upload-drop {
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(98, 218, 255, .4);
    border-radius: 20px;
    background:
        radial-gradient(circle, rgba(47, 174, 219, .12), transparent 42%),
        rgba(255,255,255,.012);
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}

.wizard-upload-drop.dragging {
    border-color: #a4eeff;
    background: rgba(61, 190, 236, .12);
}

.wizard-upload-drop input {
    display: none;
}

.wizard-upload-drop strong {
    font-size: 1.25rem;
}

.wizard-upload-drop span {
    color: var(--muted);
}

.wizard-upload-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
    border: 1px solid rgba(105, 224, 255, .35);
    border-radius: 50%;
    color: #a9efff;
    font-size: 2rem;
}

.wizard-role-select {
    display: block;
    margin-top: 15px;
}

.wizard-role-select select {
    margin-top: 7px;
}

.wizard-upload-queue {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.wizard-upload-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.018);
}

.wizard-upload-item strong,
.wizard-upload-item small {
    display: block;
}

.wizard-upload-item small,
.wizard-upload-item > span {
    color: var(--muted);
}

.wizard-upload-item.complete {
    border-color: rgba(71, 210, 141, .32);
}

.wizard-upload-item.failed {
    border-color: rgba(255, 92, 92, .38);
}

.wizard-item-progress {
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}

.wizard-item-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #36b2e2, #9eeaff);
}

.wizard-upload-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.wizard-upload-footer span {
    color: var(--muted);
}

.ltc-confirm-hero {
    padding: 30px;
    border: 1px solid rgba(90, 216, 255, .26);
    border-radius: 20px;
    background: rgba(44, 163, 205, .07);
    text-align: center;
}

.ltc-confirm-hero small,
.ltc-confirm-hero strong,
.ltc-confirm-hero span {
    display: block;
}

.ltc-confirm-hero small,
.ltc-confirm-hero span {
    color: var(--muted);
}

.ltc-confirm-hero strong {
    margin: 8px 0 5px;
    color: #c9f5ff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(2rem, 6vw, 4.4rem);
    letter-spacing: .04em;
    text-shadow: 0 0 25px rgba(78, 210, 250, .38);
}

.wizard-confirm-form {
    display: grid;
    grid-template-columns: 1.2fr .7fr;
    gap: 15px;
    margin-top: 18px;
}

.wizard-confirm-check,
.wizard-confirm-actions {
    grid-column: 1 / -1;
}

.wizard-confirm-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
}

.wizard-confirm-check input {
    width: auto;
}

.wizard-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wizard-open {
    overflow: hidden;
}

@keyframes u28SongCube {
    0%, 100% { transform: rotateX(-18deg) rotateY(36deg) translateY(0); }
    50% { transform: rotateX(-18deg) rotateY(44deg) translateY(-8px); }
}

@media (max-width: 760px) {
    .library-topbar,
    .library-actions-v2 {
        align-items: stretch;
        flex-direction: column;
    }

    .wizard-details-form,
    .wizard-confirm-form {
        grid-template-columns: 1fr;
    }

    .wizard-details-form label,
    .wizard-details-form .wizard-error,
    .wizard-details-form .wizard-next,
    .wizard-confirm-check,
    .wizard-confirm-actions {
        grid-column: auto;
    }

    .wizard-upload-footer,
    .wizard-confirm-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


/* v0.6.6 stereo LTC + audio upload controls */

.wizard-upload-options,
.upload-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.wizard-upload-options label,
.upload-options-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.wizard-upload-options small,
.upload-options-grid small {
    color: var(--muted);
    line-height: 1.45;
}

.ltc-confirm-hero em {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(99, 220, 255, .28);
    border-radius: 999px;
    background: rgba(53, 183, 228, .08);
    color: #b8efff;
    font-style: normal;
    font-size: .82rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .wizard-upload-options,
    .upload-options-grid {
        grid-template-columns: 1fr;
    }
}


/* v0.6.7 Google Drive OAuth connection */
.drive-connect-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 22px 24px;
    border: 1px solid rgba(88, 201, 241, .23);
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 50%, rgba(53, 177, 221, .11), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.drive-connect-card.drive-connected {
    border-color: rgba(66, 213, 143, .3);
    background:
        radial-gradient(circle at 8% 50%, rgba(54, 205, 135, .09), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}

.drive-connect-main,
.drive-connect-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.drive-connect-main h2 {
    margin: 4px 0 5px;
}

.drive-connect-main p {
    margin: 0;
    color: var(--muted);
}

.drive-connect-main p strong {
    color: var(--text);
}

.drive-error {
    color: #ffb3b9 !important;
}

.drive-mark {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 52px;
}

.drive-mark span {
    position: absolute;
    width: 34px;
    height: 10px;
    border-radius: 999px;
    background: rgba(122, 225, 255, .82);
    box-shadow: 0 0 18px rgba(70, 199, 239, .28);
}

.drive-mark span:nth-child(1) {
    top: 8px;
    left: 12px;
    transform: rotate(60deg);
}

.drive-mark span:nth-child(2) {
    bottom: 8px;
    left: 2px;
    transform: rotate(-60deg);
}

.drive-mark span:nth-child(3) {
    bottom: 3px;
    right: 0;
}

.drive-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #92edbd;
    font-weight: 800;
}

.drive-state i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5ad898;
    box-shadow: 0 0 14px rgba(78, 218, 148, .7);
}

.button-danger {
    border-color: rgba(255, 103, 113, .27);
    color: #ffb1b7;
}

@media (max-width: 850px) {
    .drive-connect-card,
    .drive-connect-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .drive-connect-actions .button,
    .drive-connect-actions form,
    .drive-connect-actions form .button {
        width: 100%;
        justify-content: center;
    }
}


/* v0.6.9 — isolated song version and uploaded-file layout */

.song-version-list {
    display: grid;
    gap: 24px;
}

.song-version-card {
    display: block;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(61, 183, 229, .055),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .03),
            rgba(255, 255, 255, .012)
        );
}

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

.song-version-identity h2 {
    margin: 4px 0 0;
    font-size: 2rem;
}

.song-version-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.song-version-status {
    max-width: 210px;
    padding: 7px 11px;
    line-height: 1.15;
    text-align: center;
}

.song-version-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.song-version-summary > div {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .018);
}

.song-version-summary span,
.song-version-summary strong {
    display: block;
}

.song-version-summary span {
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.song-version-summary strong {
    overflow: hidden;
    margin-top: 6px;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-track-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.song-track-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.song-track-heading h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.song-track-add-link {
    color: var(--cyan);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.song-track-add-link:hover {
    text-decoration: underline;
}

.song-track-list {
    display: grid;
    gap: 10px;
}

.song-track-row {
    display: grid;
    grid-template-columns:
        46px
        minmax(0, 1fr)
        minmax(180px, 235px);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(4, 10, 15, .44);
}

.song-track-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(93, 214, 255, .12);
    border-radius: 11px;
    background: rgba(53, 181, 226, .14);
    color: #c4f2ff;
    font-weight: 900;
}

.song-track-copy {
    min-width: 0;
}

.song-track-copy strong,
.song-track-copy span,
.song-track-copy small {
    display: block;
    min-width: 0;
}

.song-track-copy strong {
    overflow: hidden;
    font-size: .96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-track-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
}

.song-track-copy small {
    margin-top: 3px;
    color: #87cce3;
    font-size: .75rem;
}

.song-track-role-form {
    min-width: 0;
}

.song-track-role-form label {
    gap: 5px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.song-track-role-form select {
    width: 100%;
    min-width: 0;
}

.song-track-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 76px;
    border: 1px dashed rgba(93, 214, 255, .3);
    border-radius: 14px;
    background: rgba(53, 181, 226, .025);
    color: var(--text);
    text-decoration: none;
}

.song-track-empty span {
    color: var(--cyan);
    font-size: 1.6rem;
}

.song-ltc-card {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.25fr)
        minmax(170px, .8fr)
        125px
        minmax(190px, .9fr)
        auto;
    gap: 14px;
    align-items: end;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(89, 214, 255, .22);
    border-radius: 15px;
    background: rgba(42, 158, 201, .055);
}

.song-ltc-heading h3 {
    margin: 4px 0 5px;
    font-size: 1.08rem;
}

.song-ltc-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.song-ltc-check {
    min-height: 44px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: .82rem;
    text-transform: none;
    letter-spacing: 0;
}

.song-ltc-check input {
    flex: 0 0 auto;
    width: auto;
}

@media (max-width: 980px) {
    .song-version-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .song-ltc-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .song-ltc-heading,
    .song-ltc-check {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .song-version-card {
        padding: 18px;
    }

    .song-version-header,
    .song-track-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .song-version-header-actions {
        justify-content: flex-start;
    }

    .song-track-row,
    .song-ltc-card {
        grid-template-columns: 1fr;
    }

    .song-track-icon {
        width: 38px;
        height: 38px;
    }

    .song-track-role-form,
    .song-ltc-heading,
    .song-ltc-check {
        grid-column: auto;
    }
}


/* v0.7.0 — manager accounts and truthful upload processing states */

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.button:disabled,
.button[aria-disabled="true"],
.button-waiting {
    transform: none !important;
    border-color: #35424d !important;
    color: #74818c !important;
    background: #172029 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: .72;
}

.upload-completion-state {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .018);
    font-size: .84rem;
    text-align: center;
}

.upload-item.processing,
.wizard-upload-item.processing {
    border-color: rgba(82, 193, 235, .28);
}

.upload-item.analysing,
.wizard-upload-item.analysing {
    border-color: rgba(246, 189, 91, .4);
    background: rgba(246, 189, 91, .045);
}

.upload-item.analysing .upload-progress i,
.wizard-upload-item.analysing .wizard-item-progress i {
    width: 100% !important;
    background:
        linear-gradient(
            90deg,
            #3bb8e8 0%,
            #a5edff 42%,
            #3bb8e8 78%,
            #a5edff 100%
        );
    background-size: 220% 100%;
    animation: u28UploadCalculating 1.25s linear infinite;
}

@keyframes u28UploadCalculating {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

.manager-heading {
    align-items: end;
}

.manager-readonly-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(102, 214, 250, .26);
    border-radius: 999px;
    color: #a8eaff;
    background: rgba(65, 182, 224, .07);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.manager-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

.manager-artist-card {
    min-height: 180px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, rgba(52, 185, 232, .1), transparent 42%),
        rgba(255, 255, 255, .018);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.manager-artist-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 215, 255, .5);
}

.manager-card-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(96, 216, 255, .25);
    border-radius: 18px;
    color: #c5f3ff;
    background: rgba(55, 177, 220, .11);
    font-size: 1.2rem;
    font-weight: 900;
}

.manager-artist-card h2 {
    margin: 5px 0 7px;
}

.manager-artist-card p {
    margin: 0;
    color: var(--muted);
}

.manager-card-arrow {
    color: var(--cyan);
    font-size: 1.55rem;
}

.manager-empty {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px dashed rgba(92, 210, 250, .3);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, .012);
    text-align: center;
}

.manager-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 1.1rem;
}

.manager-song-status {
    display: inline-flex;
    margin-top: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #a9ebff;
    background: rgba(65, 182, 224, .09);
    font-size: .72rem;
    font-weight: 800;
}

.manager-track-role {
    justify-self: end;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .018);
    font-size: .76rem;
    font-weight: 800;
}

.manager-track-empty {
    color: var(--muted);
    pointer-events: none;
}

.manager-ltc-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(89, 214, 255, .22);
    border-radius: 15px;
    background: rgba(42, 158, 201, .055);
}

.manager-ltc-readout strong {
    display: block;
    margin-top: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.35rem;
}

.manager-ltc-readout > span {
    color: var(--muted);
}

.artist-member-list {
    display: grid;
    gap: 7px;
    margin-top: 11px;
}

.artist-member-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .016);
}

.artist-member-chip > span {
    color: #aebbc6;
    font-size: .78rem;
}

.manager-remove {
    color: #ff9aa1;
    font-size: .75rem;
}

@media (max-width: 720px) {
    .manager-heading,
    .manager-ltc-readout {
        align-items: stretch;
        flex-direction: column;
    }

    .manager-artist-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .manager-card-arrow {
        display: none;
    }

    .manager-track-role {
        justify-self: start;
    }
}


/* v0.7.1 — basic role signup, artist codes and stable checkboxes */

.signup-shell {
    width: min(760px, 100%);
    margin: 0 auto;
}

.signup-heading {
    margin-bottom: 22px;
}

.signup-heading h1 {
    margin: 5px 0 8px;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.signup-heading p {
    margin: 0;
    color: var(--muted);
}

.signup-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(51, 184, 229, .09),
            transparent 36%
        ),
        rgba(255, 255, 255, .018);
}

.signup-role-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.signup-role-card {
    min-height: 148px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 4px 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    color: var(--text);
    background: rgba(255, 255, 255, .015);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}

.signup-role-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 211, 251, .42);
}

.signup-role-card.active {
    border-color: rgba(91, 218, 255, .68);
    background: rgba(54, 180, 226, .095);
    box-shadow: inset 0 0 0 1px rgba(91, 218, 255, .12);
}

.signup-role-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(93, 216, 255, .25);
    border-radius: 13px;
    color: #c7f4ff;
    background: rgba(55, 180, 224, .12);
    font-weight: 950;
}

.signup-role-card strong {
    align-self: end;
    font-size: 1rem;
}

.signup-role-card small {
    align-self: start;
    color: var(--muted);
    line-height: 1.35;
}

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

.signup-fields label:nth-last-child(1) {
    grid-column: 1 / -1;
}

.signup-submit {
    width: 100%;
    margin-top: 20px;
}

.artist-manager-code {
    min-width: 200px;
    display: grid;
    gap: 2px;
    padding: 10px 13px;
    border: 1px solid rgba(92, 212, 251, .24);
    border-radius: 13px;
    background: rgba(52, 177, 221, .06);
}

.artist-manager-code span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.artist-manager-code strong {
    color: #c9f4ff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .98rem;
    letter-spacing: .06em;
}

.artist-manager-code small {
    color: var(--muted);
    font-size: .68rem;
}

.manager-code-connect {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .016);
}

.manager-code-connect h2 {
    margin: 5px 0 6px;
}

.manager-code-connect p {
    margin: 0;
    color: var(--muted);
}

.manager-code-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

/* Reset the global text-input styling for checkboxes. */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px;
    margin: 0;
    padding: 0 !important;
    display: grid;
    place-content: center;
    border: 1px solid #526879;
    border-radius: 5px;
    color: #061118;
    background: #0b1219;
    box-shadow: none;
    cursor: pointer;
    transition:
        border-color .12s ease,
        background .12s ease;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform .1s ease;
}

input[type="checkbox"]:checked {
    border-color: #67d4f7;
    background: #67d4f7;
}

input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible {
    border-color: #8ce5ff;
    box-shadow: 0 0 0 3px rgba(70, 199, 244, .13);
    outline: none;
}

@media (max-width: 760px) {
    .signup-role-choice,
    .signup-fields,
    .manager-code-connect,
    .manager-code-form {
        grid-template-columns: 1fr;
    }

    .signup-fields label:nth-last-child(1) {
        grid-column: auto;
    }

    .library-actions-v2 {
        width: 100%;
    }

    .artist-manager-code {
        width: 100%;
    }
}


/* v0.8.0 — exclusive library views, albums and song identity artwork */
[data-library-panel][hidden], .simple-modal[hidden] { display: none !important; }
.library-browser { min-height: 60vh; }
.library-browser-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; padding:14px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.018); }
.library-toolbar-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.library-kind-control button span { margin-left:5px; color:#82dffb; font-size:.74rem; }
.library-panel { width:100%; }
.library-table td, .library-table th { vertical-align:middle; }
.library-list-title { display:flex; align-items:center; gap:12px; color:var(--text); text-decoration:none; }
.library-list-title > span:last-child { display:grid; gap:3px; }
.library-list-title small { color:var(--muted); font-weight:500; }
.mini-song-icon, .mini-album-icon { position:relative; flex:0 0 34px; width:34px; height:34px; border:1px solid rgba(100,218,255,.28); border-radius:9px; background:rgba(50,178,223,.08); overflow:hidden; }
.album-cube-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; }
.album-tile { min-height:340px; display:flex; flex-direction:column; justify-content:space-between; padding:28px; border:1px solid var(--line); border-radius:24px; color:var(--text); text-decoration:none; background:radial-gradient(circle at 50% 25%,rgba(78,193,235,.14),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); transition:.18s ease; }
.album-tile:hover { transform:translateY(-5px); border-color:rgba(91,218,255,.5); }
.album-tile small { color:var(--accent); font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.album-tile h2 { margin:7px 0; font-size:clamp(1.45rem,2vw,2rem); }
.album-tile p { margin:0; color:var(--muted); }
.album-empty-tile { font:inherit; text-align:left; border-style:dashed; cursor:pointer; }
.album-stack-art { position:relative; width:160px; height:150px; margin:15px auto 38px; }
.album-stack-art i { position:absolute; inset:18px 12px; border:1px solid rgba(140,231,255,.34); border-radius:14px; background:rgba(45,157,201,.09); transform:rotate(-8deg); }
.album-stack-art i:nth-child(2){transform:rotate(7deg) translate(7px,-4px)} .album-stack-art i:nth-child(3){transform:none; background:linear-gradient(145deg,rgba(92,213,250,.16),rgba(255,255,255,.025))}
.album-stack-art strong { position:absolute; inset:0; display:grid; place-items:center; color:#d3f7ff; font-size:1.7rem; text-shadow:0 0 26px rgba(83,214,255,.75); }
.album-art-1 .album-stack-art i:nth-child(3), .mini-album-icon.album-art-1{background:linear-gradient(135deg,rgba(71,203,245,.22),rgba(90,79,214,.11))}.album-art-2 .album-stack-art i:nth-child(3),.mini-album-icon.album-art-2{background:linear-gradient(135deg,rgba(50,214,160,.18),rgba(47,139,215,.12))}.album-art-3 .album-stack-art i:nth-child(3),.mini-album-icon.album-art-3{background:linear-gradient(135deg,rgba(231,136,76,.18),rgba(70,188,228,.12))}.album-art-4 .album-stack-art i:nth-child(3),.mini-album-icon.album-art-4{background:linear-gradient(135deg,rgba(196,82,193,.15),rgba(74,188,229,.13))}.album-art-5 .album-stack-art i:nth-child(3),.mini-album-icon.album-art-5{background:linear-gradient(135deg,rgba(220,202,74,.13),rgba(50,177,219,.12))}
.simple-modal { position:fixed; inset:0; z-index:1100; display:grid; place-items:center; padding:22px; }
.simple-modal-backdrop { position:absolute; inset:0; border:0; background:rgba(0,5,10,.84); backdrop-filter:blur(14px); }
.simple-modal-card { position:relative; width:min(520px,100%); display:grid; gap:16px; padding:25px; border:1px solid rgba(93,214,255,.28); border-radius:22px; background:#111923; box-shadow:0 30px 100px rgba(0,0,0,.7); }
.simple-modal-card header { display:flex; justify-content:space-between; gap:18px; }.simple-modal-card h2{margin:4px 0}.simple-modal-card p{margin:0;color:var(--muted)}
.optional-label { color:var(--muted); font-weight:500; font-size:.72rem; }
.song-cover-visual { width:180px; height:180px; margin:0 auto 25px; border:1px solid rgba(127,226,255,.3); border-radius:24px; background-size:cover; background-position:center; box-shadow:0 20px 50px rgba(0,0,0,.28); }
.song-icon-glyph { position:absolute; inset:0; pointer-events:none; }
.song-icon-rings .song-icon-glyph::before { content:"";position:absolute;inset:34px;border:1px solid rgba(143,235,255,.7);border-radius:50%;box-shadow:0 0 0 16px rgba(143,235,255,.15),0 0 0 32px rgba(143,235,255,.06)}
.song-icon-pulse .song-icon-glyph::before { content:"⌁";position:absolute;inset:0;display:grid;place-items:center;color:#9feeff;font-size:68px;transform:rotate(-8deg)}
.song-icon-star .song-icon-glyph::before { content:"✦";position:absolute;inset:0;display:grid;place-items:center;color:#b6f2ff;font-size:62px}
.song-icon-wave .song-icon-glyph::before { content:"≈";position:absolute;inset:0;display:grid;place-items:center;color:#aaf0ff;font-size:78px}
.song-icon-grid .song-icon-glyph::before { content:"";position:absolute;inset:35px;background-image:linear-gradient(rgba(149,238,255,.45) 1px,transparent 1px),linear-gradient(90deg,rgba(149,238,255,.45) 1px,transparent 1px);background-size:18px 18px}
.song-icon-flare .song-icon-glyph::before { content:"✺";position:absolute;inset:0;display:grid;place-items:center;color:#b8f4ff;font-size:62px}
.song-icon-prism .song-icon-glyph::before { content:"△";position:absolute;inset:0;display:grid;place-items:center;color:#aff1ff;font-size:72px}
.song-icon-bolt .song-icon-glyph::before { content:"ϟ";position:absolute;inset:0;display:grid;place-items:center;color:#baf4ff;font-size:70px}
.song-icon-orbit .song-icon-glyph::before { content:"◎";position:absolute;inset:0;display:grid;place-items:center;color:#b3f1ff;font-size:70px;transform:rotate(20deg)}
.song-icon-signal .song-icon-glyph::before { content:"▥";position:absolute;inset:0;display:grid;place-items:center;color:#aaf0ff;font-size:65px}
.song-icon-cross .song-icon-glyph::before { content:"×";position:absolute;inset:0;display:grid;place-items:center;color:#baf4ff;font-size:76px;font-weight:200}
.song-icon-cube .song-icon-glyph::before { content:"◇";position:absolute;inset:0;display:grid;place-items:center;color:#baf4ff;font-size:70px}
.song-identity-panel { display:grid; grid-template-columns:130px minmax(180px,.55fr) minmax(360px,1.5fr); gap:20px; align-items:center; margin-bottom:25px; padding:20px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.018); }
.song-identity-preview { position:relative; width:120px; height:120px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(94,216,255,.3); border-radius:20px; background:radial-gradient(circle,rgba(61,189,232,.16),rgba(255,255,255,.02)); background-size:cover; background-position:center; }
.song-identity-preview strong { position:relative; z-index:2; color:#d6f8ff; text-shadow:0 0 18px rgba(69,201,244,.8); }.song-identity-preview.has-image strong{align-self:end;margin-bottom:10px;padding:4px 7px;border-radius:8px;background:rgba(0,0,0,.55)}
.song-identity-copy { display:grid; gap:5px; }.song-identity-copy span{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.song-identity-copy strong{font-size:1.1rem}.song-identity-copy small{color:var(--muted)}
.song-edit-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; align-items:end; }.compact-edit-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.compact-edit-form label{margin:0}.compact-edit-form small{display:block;color:var(--muted);font-size:.68rem}.artwork-upload-form{grid-column:span 2}.danger-link{color:#ff999f}.visually-hidden-kind{display:none!important}
@media(max-width:900px){.library-browser-toolbar,.library-toolbar-actions{align-items:stretch;flex-direction:column}.song-identity-panel{grid-template-columns:1fr}.song-identity-preview{margin:auto}.song-edit-tools{grid-template-columns:1fr}.artwork-upload-form{grid-column:auto}.compact-edit-form{grid-template-columns:1fr}}


/* v0.8.1 — unique kinetic song identities; no pasted centre glyphs */
.song-icon-glyph,
.song-orbital-cube,
.song-cube-plane {
    display: none !important;
}

.song-kinetic-visual {
    --song-delay: 0s;
    position: relative;
    isolation: isolate;
    width: 190px;
    height: 190px;
    margin: 0 auto 25px;
    display: grid;
    place-items: center;
    overflow: hidden;
    perspective: 700px;
    transform: translateZ(0);
}

.song-motion-stage {
    position: absolute;
    inset: 5px;
    display: block;
    transform-style: preserve-3d;
}

.song-kinetic-visual > strong {
    position: relative;
    z-index: 20;
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(175, 241, 255, .18);
    border-radius: 10px;
    color: #d8f8ff;
    background: rgba(5, 15, 23, .42);
    box-shadow: 0 0 28px rgba(83, 214, 255, .28);
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: .045em;
    text-shadow: 0 0 20px rgba(91, 219, 255, .75);
    backdrop-filter: blur(5px);
}

.motion-layer {
    position: absolute;
    display: block;
    transform-origin: center;
    pointer-events: none;
}

.song-tile:hover .song-kinetic-visual {
    filter: brightness(1.16) saturate(1.08);
}

/* 1 — the one true wireframe cube */
.song-motion-cube .song-motion-stage {
    inset: 18px;
    animation: u28CubeStage 9s ease-in-out infinite var(--song-delay);
}
.song-motion-cube .motion-layer {
    inset: 31px;
    border: 1px solid rgba(137, 232, 255, .52);
    background: rgba(57, 187, 231, .055);
    box-shadow: inset 0 0 30px rgba(73, 207, 246, .07);
}
.song-motion-cube .motion-a { transform: translateZ(42px); }
.song-motion-cube .motion-b { transform: rotateY(90deg) translateZ(42px); }
.song-motion-cube .motion-c { transform: rotateX(90deg) translateZ(42px); }
.song-motion-cube .motion-d {
    inset: 50px;
    border-color: rgba(177, 242, 255, .24);
    transform: rotateX(52deg) rotateZ(45deg);
    animation: u28CubeCore 4.5s ease-in-out infinite var(--song-delay);
}
.song-motion-cube .motion-e {
    inset: 4px;
    border: 0;
    background: radial-gradient(circle, rgba(86, 216, 255, .18), transparent 63%);
    filter: blur(8px);
}

/* 2 — radar rings and a travelling scan */
.song-motion-rings .song-motion-stage {
    animation: u28RingBreathe 6s ease-in-out infinite var(--song-delay);
}
.song-motion-rings .motion-a,
.song-motion-rings .motion-b,
.song-motion-rings .motion-c {
    inset: 25px;
    border: 1px solid rgba(151, 237, 255, .58);
    border-radius: 50%;
}
.song-motion-rings .motion-b { inset: 43px; animation: u28RingReverse 8s linear infinite var(--song-delay); }
.song-motion-rings .motion-c { inset: 61px; border-style: dashed; animation: u28RingSpin 5s linear infinite var(--song-delay); }
.song-motion-rings .motion-d {
    inset: 19px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 79%, rgba(105, 223, 255, .48) 90%, transparent 100%);
    animation: u28RingSpin 4s linear infinite var(--song-delay);
    -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 49% 51%, transparent 52%);
            mask: radial-gradient(circle, transparent 0 48%, #000 49% 51%, transparent 52%);
}
.song-motion-rings .motion-e {
    inset: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 229, 255, .28), transparent 68%);
    animation: u28RingPing 2.7s ease-out infinite var(--song-delay);
}

/* 3 — waveform made from moving light bands */
.song-motion-pulse .song-motion-stage {
    inset: 22px 12px;
    overflow: hidden;
}
.song-motion-pulse .motion-layer {
    left: -15%;
    width: 130%;
    height: 30px;
    border-top: 1px solid rgba(145, 235, 255, .62);
    border-bottom: 1px solid rgba(145, 235, 255, .18);
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(86, 217, 255, .25));
}
.song-motion-pulse .motion-a { top: 24px; animation: u28WavePass 4.8s ease-in-out infinite var(--song-delay); }
.song-motion-pulse .motion-b { top: 52px; animation: u28WavePass 3.7s ease-in-out infinite reverse var(--song-delay); opacity: .76; }
.song-motion-pulse .motion-c { top: 80px; animation: u28WavePass 5.6s ease-in-out infinite var(--song-delay); opacity: .58; }
.song-motion-pulse .motion-d { top: 108px; animation: u28WavePass 4.2s ease-in-out infinite reverse var(--song-delay); opacity: .38; }
.song-motion-pulse .motion-e {
    inset: 22px 35px;
    border-left: 1px solid rgba(141, 235, 255, .28);
    border-right: 1px solid rgba(141, 235, 255, .28);
    animation: u28PulseGate 2.4s ease-in-out infinite var(--song-delay);
}

/* 4 — nova: expanding rays, not a star icon */
.song-motion-star .song-motion-stage {
    animation: u28NovaDrift 8s linear infinite var(--song-delay);
}
.song-motion-star .motion-a,
.song-motion-star .motion-b,
.song-motion-star .motion-c,
.song-motion-star .motion-d {
    inset: 28px 86px;
    background: linear-gradient(transparent, rgba(156, 239, 255, .78), transparent);
    filter: blur(.2px) drop-shadow(0 0 7px rgba(103, 222, 255, .34));
}
.song-motion-star .motion-b { transform: rotate(45deg); }
.song-motion-star .motion-c { transform: rotate(90deg); }
.song-motion-star .motion-d { transform: rotate(135deg); }
.song-motion-star .motion-e {
    inset: 61px;
    border: 1px solid rgba(176, 243, 255, .35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 242, 255, .45), rgba(82, 209, 247, .06) 35%, transparent 68%);
    animation: u28NovaPulse 2.8s ease-in-out infinite var(--song-delay);
}

/* 5 — liquid wave field */
.song-motion-wave .song-motion-stage { overflow: hidden; }
.song-motion-wave .motion-layer {
    left: -42px;
    width: 250px;
    height: 94px;
    border: 1px solid rgba(145, 235, 255, .54);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.song-motion-wave .motion-a { top: 18px; animation: u28LiquidWave 6.3s ease-in-out infinite var(--song-delay); }
.song-motion-wave .motion-b { top: 48px; animation: u28LiquidWave 5.1s ease-in-out infinite reverse var(--song-delay); opacity: .72; }
.song-motion-wave .motion-c { top: 79px; animation: u28LiquidWave 7.2s ease-in-out infinite var(--song-delay); opacity: .48; }
.song-motion-wave .motion-d {
    inset: 15px;
    border: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(68, 195, 237, .1) 66%, transparent);
    animation: u28WaveGlow 3.3s ease-in-out infinite var(--song-delay);
}
.song-motion-wave .motion-e { display: none; }

/* 6 — moving perspective grid */
.song-motion-grid .song-motion-stage {
    inset: 28px 10px 16px;
    overflow: hidden;
    transform: perspective(330px) rotateX(58deg);
    transform-origin: center bottom;
    background-image:
        linear-gradient(rgba(135, 230, 255, .34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 230, 255, .34) 1px, transparent 1px);
    background-size: 24px 24px;
    animation: u28GridTravel 3s linear infinite var(--song-delay);
    -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 80%, transparent);
            mask-image: linear-gradient(transparent, #000 26%, #000 80%, transparent);
}
.song-motion-grid .motion-a {
    left: 50%; top: 0; bottom: 0;
    border-left: 1px solid rgba(187, 245, 255, .55);
}
.song-motion-grid .motion-b {
    left: 8%; right: 8%; top: 49%;
    border-top: 1px solid rgba(187, 245, 255, .38);
}
.song-motion-grid .motion-c,
.song-motion-grid .motion-d,
.song-motion-grid .motion-e { display: none; }

/* 7 — lens flare and sweeping light planes */
.song-motion-flare .song-motion-stage { overflow: hidden; }
.song-motion-flare .motion-a,
.song-motion-flare .motion-b,
.song-motion-flare .motion-c {
    left: -38px;
    right: -38px;
    height: 1px;
    top: 50%;
    background: linear-gradient(90deg, transparent, rgba(163, 241, 255, .85), transparent);
    box-shadow: 0 0 13px rgba(93, 220, 255, .34);
}
.song-motion-flare .motion-a { transform: rotate(18deg); animation: u28FlareSweep 4.7s ease-in-out infinite var(--song-delay); }
.song-motion-flare .motion-b { transform: rotate(-42deg); animation: u28FlareSweep 6.1s ease-in-out infinite reverse var(--song-delay); opacity: .7; }
.song-motion-flare .motion-c { transform: rotate(82deg); animation: u28FlareSweep 5.3s ease-in-out infinite var(--song-delay); opacity: .46; }
.song-motion-flare .motion-d {
    inset: 55px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 248, 255, .8) 0 3%, rgba(92, 218, 255, .24) 14%, transparent 65%);
    animation: u28FlareCore 2.2s ease-in-out infinite var(--song-delay);
}
.song-motion-flare .motion-e {
    inset: 12px;
    border: 1px solid rgba(136, 232, 255, .16);
    border-radius: 50%;
    animation: u28RingSpin 12s linear infinite var(--song-delay);
}

/* 8 — rotating triangular prism */
.song-motion-prism .song-motion-stage {
    inset: 24px;
    animation: u28PrismTurn 8s ease-in-out infinite var(--song-delay);
}
.song-motion-prism .motion-a,
.song-motion-prism .motion-b,
.song-motion-prism .motion-c {
    inset: 20px 28px;
    border: 1px solid rgba(147, 236, 255, .54);
    clip-path: polygon(50% 0, 100% 100%, 0 100%, 50% 0);
    background: linear-gradient(135deg, rgba(77, 204, 245, .08), transparent 55%);
}
.song-motion-prism .motion-b { transform: translate(22px, 8px); opacity: .52; }
.song-motion-prism .motion-c { transform: translate(-18px, 17px) rotate(180deg); opacity: .34; }
.song-motion-prism .motion-d {
    left: 50%; top: 20px; bottom: 20px;
    border-left: 1px solid rgba(173, 242, 255, .38);
}
.song-motion-prism .motion-e {
    left: 24px; right: 24px; top: 50%;
    border-top: 1px solid rgba(173, 242, 255, .22);
}

/* 9 — crossing energy beams */
.song-motion-bolt .song-motion-stage { overflow: hidden; }
.song-motion-bolt .motion-layer {
    left: -48px;
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(164, 241, 255, .9), transparent);
    box-shadow: 0 0 12px rgba(86, 218, 255, .4);
}
.song-motion-bolt .motion-a { top: 38px; transform: rotate(22deg); animation: u28BeamPass 3.7s linear infinite var(--song-delay); }
.song-motion-bolt .motion-b { top: 76px; transform: rotate(-31deg); animation: u28BeamPass 4.6s linear infinite reverse var(--song-delay); }
.song-motion-bolt .motion-c { top: 114px; transform: rotate(12deg); animation: u28BeamPass 5.2s linear infinite var(--song-delay); opacity: .62; }
.song-motion-bolt .motion-d { top: 142px; transform: rotate(-53deg); animation: u28BeamPass 4.1s linear infinite reverse var(--song-delay); opacity: .4; }
.song-motion-bolt .motion-e {
    inset: 35px;
    border: 1px solid rgba(142, 233, 255, .2);
    transform: rotate(45deg);
    animation: u28BeamCore 3s ease-in-out infinite var(--song-delay);
}

/* 10 — orbital mechanics with travelling particles */
.song-motion-orbit .motion-a,
.song-motion-orbit .motion-b,
.song-motion-orbit .motion-c {
    inset: 27px;
    border: 1px solid rgba(145, 235, 255, .45);
    border-radius: 50%;
}
.song-motion-orbit .motion-a { transform: rotateX(68deg); animation: u28OrbitOne 6s linear infinite var(--song-delay); }
.song-motion-orbit .motion-b { transform: rotateY(68deg) rotateZ(35deg); animation: u28OrbitTwo 7.5s linear infinite reverse var(--song-delay); }
.song-motion-orbit .motion-c { inset: 53px; border-style: dashed; animation: u28RingSpin 8s linear infinite var(--song-delay); }
.song-motion-orbit .motion-d,
.song-motion-orbit .motion-e {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bff5ff;
    box-shadow: 0 0 14px rgba(117, 230, 255, .9);
}
.song-motion-orbit .motion-d { left: 17px; top: 50%; animation: u28ParticleOne 5s ease-in-out infinite var(--song-delay); }
.song-motion-orbit .motion-e { right: 25px; top: 32px; animation: u28ParticleTwo 6.4s ease-in-out infinite var(--song-delay); }

/* 11 — animated signal/equalizer field */
.song-motion-signal .song-motion-stage {
    inset: 30px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.song-motion-signal .motion-layer {
    position: relative;
    width: 12px;
    height: 90px;
    border: 1px solid rgba(145, 235, 255, .35);
    border-radius: 999px;
    background: linear-gradient(to top, rgba(75, 202, 242, .45), rgba(144, 236, 255, .08));
    transform-origin: bottom;
}
.song-motion-signal .motion-a { animation: u28Signal 1.8s ease-in-out infinite var(--song-delay); }
.song-motion-signal .motion-b { animation: u28Signal 2.4s ease-in-out infinite .2s; }
.song-motion-signal .motion-c { animation: u28Signal 1.55s ease-in-out infinite .4s; }
.song-motion-signal .motion-d { animation: u28Signal 2.1s ease-in-out infinite .1s; }
.song-motion-signal .motion-e { animation: u28Signal 1.7s ease-in-out infinite .55s; }

/* 12 — crossing translucent planes */
.song-motion-cross .song-motion-stage {
    animation: u28PlaneField 9s ease-in-out infinite var(--song-delay);
}
.song-motion-cross .motion-layer {
    left: 20px;
    right: 20px;
    top: 50%;
    height: 42px;
    border: 1px solid rgba(145, 235, 255, .4);
    background: linear-gradient(90deg, transparent, rgba(78, 203, 243, .1), transparent);
}
.song-motion-cross .motion-a { transform: rotate(22deg); }
.song-motion-cross .motion-b { transform: rotate(-37deg); opacity: .7; }
.song-motion-cross .motion-c { transform: rotate(79deg); opacity: .46; }
.song-motion-cross .motion-d {
    inset: 49px;
    width: auto;
    height: auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 225, 255, .18), transparent 68%);
    animation: u28NovaPulse 3.2s ease-in-out infinite var(--song-delay);
}
.song-motion-cross .motion-e { display: none; }

/* Compact previews used in the list and song page */
.mini-song-motion {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 1px solid rgba(100, 218, 255, .24);
    border-radius: 10px;
    background: rgba(50, 178, 223, .055);
}
.mini-song-motion .motion-layer { transform: scale(.28); transform-origin: center; }
.mini-song-motion.song-motion-rings .motion-a,
.mini-song-motion.song-motion-rings .motion-b,
.mini-song-motion.song-motion-rings .motion-c {
    inset: 7px;
    border: 1px solid rgba(151, 237, 255, .55);
    border-radius: 50%;
}
.mini-song-motion.song-motion-rings .motion-b { inset: 12px; }
.mini-song-motion.song-motion-rings .motion-c { inset: 16px; }
.mini-song-motion.song-motion-cube::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(145, 235, 255, .55);
    transform: rotate(30deg) skewY(-8deg);
}
.mini-song-motion:not(.song-motion-rings):not(.song-motion-cube)::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(145, 235, 255, .45);
    border-radius: 50%;
    animation: u28MiniIdentity 3s ease-in-out infinite;
}

.song-identity-preview.song-kinetic-visual {
    width: 120px;
    height: 120px;
    margin: 0;
    border: 1px solid rgba(109, 222, 255, .22);
    border-radius: 18px;
    background: radial-gradient(circle at 50% 45%, rgba(60, 192, 236, .08), transparent 68%);
}
.song-identity-preview.song-kinetic-visual > strong {
    min-width: 48px;
    height: 28px;
    font-size: .92rem;
}
.song-identity-preview.has-image strong {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 44px;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(3, 10, 16, .68);
    color: #e1f9ff;
    font-size: .75rem;
    text-align: center;
}

@keyframes u28CubeStage {
    0%, 100% { transform: rotateX(-20deg) rotateY(32deg) translateY(2px); }
    50% { transform: rotateX(-8deg) rotateY(66deg) translateY(-7px); }
}
@keyframes u28CubeCore {
    0%, 100% { transform: rotateX(52deg) rotateZ(45deg) scale(.86); opacity: .35; }
    50% { transform: rotateX(52deg) rotateZ(135deg) scale(1.08); opacity: .78; }
}
@keyframes u28RingSpin { to { transform: rotate(360deg); } }
@keyframes u28RingReverse { to { transform: rotate(-360deg) scaleX(.78); } }
@keyframes u28RingBreathe { 0%,100% { transform: scale(.9); } 50% { transform: scale(1.04); } }
@keyframes u28RingPing { 0% { transform: scale(.4); opacity:.8; } 75%,100% { transform:scale(1.5); opacity:0; } }
@keyframes u28WavePass { 0%,100% { transform: translateX(-12px) scaleY(.55) rotate(-4deg); } 50% { transform: translateX(14px) scaleY(1.35) rotate(4deg); } }
@keyframes u28PulseGate { 0%,100% { transform:scaleX(.45); opacity:.25; } 50% { transform:scaleX(1); opacity:.8; } }
@keyframes u28NovaDrift { to { transform: rotate(360deg); } }
@keyframes u28NovaPulse { 0%,100% { transform:scale(.72); opacity:.45; } 50% { transform:scale(1.12); opacity:1; } }
@keyframes u28LiquidWave { 0%,100% { transform:translateX(-18px) rotate(-8deg) scaleY(.65); } 50% { transform:translateX(18px) rotate(7deg) scaleY(1.08); } }
@keyframes u28WaveGlow { 0%,100% { opacity:.2; transform:translateY(14px); } 50% { opacity:.75; transform:translateY(-10px); } }
@keyframes u28GridTravel { to { background-position: 0 24px, 0 0; } }
@keyframes u28FlareSweep { 0%,100% { translate:-45px -18px; opacity:.22; } 50% { translate:45px 18px; opacity:1; } }
@keyframes u28FlareCore { 0%,100% { transform:scale(.58); opacity:.45; } 50% { transform:scale(1.16); opacity:1; } }
@keyframes u28PrismTurn { 0%,100% { transform:rotateY(-24deg) rotateZ(-3deg); } 50% { transform:rotateY(34deg) rotateZ(7deg); } }
@keyframes u28BeamPass { 0% { translate:-90px 0; opacity:0; } 18% { opacity:1; } 82% { opacity:1; } 100% { translate:90px 0; opacity:0; } }
@keyframes u28BeamCore { 0%,100% { transform:rotate(45deg) scale(.65); opacity:.18; } 50% { transform:rotate(135deg) scale(1.08); opacity:.65; } }
@keyframes u28OrbitOne { to { transform:rotateX(68deg) rotateZ(360deg); } }
@keyframes u28OrbitTwo { to { transform:rotateY(68deg) rotateZ(-325deg); } }
@keyframes u28ParticleOne { 0%,100% { transform:translate(0,-42px); } 50% { transform:translate(145px,42px); } }
@keyframes u28ParticleTwo { 0%,100% { transform:translate(-18px,8px); opacity:.4; } 50% { transform:translate(-112px,92px); opacity:1; } }
@keyframes u28Signal { 0%,100% { transform:scaleY(.28); opacity:.38; } 50% { transform:scaleY(1); opacity:.95; } }
@keyframes u28PlaneField { 0%,100% { transform:rotateX(0) rotateY(0) scale(.86); } 50% { transform:rotateX(22deg) rotateY(-28deg) scale(1.04); } }
@keyframes u28MiniIdentity { 0%,100% { transform:scale(.7) rotate(0); opacity:.4; } 50% { transform:scale(1) rotate(180deg); opacity:.9; } }

@media (prefers-reduced-motion: reduce) {
    .song-kinetic-visual *,
    .mini-song-motion * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* v0.8.4 — cleaner song detail page */

.song-page-heading-clean {
    margin-bottom: 24px;
}

.song-settings-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(72, 190, 231, .07),
            transparent 34%
        ),
        rgba(255, 255, 255, .015);
}

.song-settings-artwork {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.song-settings-preview {
    position: relative;
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(94, 216, 255, .28);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at center,
            rgba(66, 190, 231, .14),
            rgba(7, 15, 22, .96)
        );
    background-position: center;
    background-size: cover;
}

.song-settings-preview > strong {
    position: relative;
    z-index: 3;
    align-self: end;
    margin-bottom: 13px;
    padding: 4px 7px;
    border-radius: 7px;
    color: #dbf8ff;
    background: rgba(2, 10, 15, .74);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .72rem;
}

.song-settings-preview.has-image .song-motion-stage {
    display: none;
}

.song-settings-artwork-copy {
    display: grid;
    gap: 3px;
}

.song-settings-artwork-copy > span,
.song-setting-label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.song-settings-artwork-copy > strong {
    overflow: hidden;
    color: var(--text);
    font-size: .93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-settings-artwork-copy > small {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.35;
}

.song-settings-body {
    min-width: 0;
}

.song-settings-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.song-settings-heading h2 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.song-settings-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    text-align: right;
}

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

.song-setting-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: end;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .016);
}

.song-setting-control label {
    min-width: 0;
    margin: 0;
}

.song-setting-save {
    min-width: 74px;
}

.song-artwork-control {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        minmax(150px, .45fr)
        minmax(320px, 1.4fr)
        auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .016);
}

.song-artwork-control > div {
    display: grid;
    gap: 4px;
}

.song-artwork-control small {
    color: var(--muted);
    font-size: .72rem;
}

.song-artwork-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-width: 0;
}

.song-artwork-picker {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0 !important;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(4, 10, 15, .48);
    cursor: pointer;
}

.song-artwork-picker input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.song-artwork-picker > span:last-child {
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button-danger-soft {
    border-color: rgba(255, 125, 135, .24);
    color: #ff9ba2;
    background: rgba(255, 91, 105, .055);
}

.button-danger-soft:hover {
    border-color: rgba(255, 125, 135, .5);
    background: rgba(255, 91, 105, .1);
}

.song-settings-readonly {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

.song-settings-readonly > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .016);
}

.song-settings-readonly span,
.song-settings-readonly strong {
    display: block;
}

.song-settings-readonly span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.song-settings-readonly strong {
    margin-top: 5px;
}

.song-version-card-clean {
    padding: 22px;
}

.song-version-card-clean .song-version-header {
    align-items: center;
    margin-bottom: 17px;
}

.song-version-card-clean .song-version-identity h2 {
    margin-top: 2px;
    font-size: 1.8rem;
}

.song-version-card-clean .song-track-section {
    margin-top: 18px;
    padding-top: 17px;
}

.song-version-card-clean .song-track-heading {
    margin-bottom: 10px;
}

.song-version-card-clean .song-track-heading h3 {
    font-size: 1rem;
}

.song-ltc-card-clean {
    display: grid;
    grid-template-columns: minmax(245px, .75fr) minmax(0, 1.7fr);
    gap: 22px;
    align-items: center;
    padding: 16px;
}

.song-ltc-card-clean .song-ltc-heading {
    padding-right: 20px;
    border-right: 1px solid rgba(89, 214, 255, .16);
}

.song-ltc-card-clean .song-ltc-heading h3 {
    margin: 4px 0;
}

.song-ltc-fields {
    display: grid;
    grid-template-columns:
        minmax(170px, .9fr)
        110px
        minmax(230px, 1.2fr)
        auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.song-ltc-fields label {
    margin: 0;
}

.song-ltc-fields .song-ltc-check {
    align-self: end;
    min-height: 42px;
}

@media (max-width: 1050px) {
    .song-settings-card {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .song-settings-preview {
        width: 132px;
        height: 132px;
    }

    .song-artwork-control {
        grid-template-columns: 1fr;
    }

    .song-ltc-card-clean {
        grid-template-columns: 1fr;
    }

    .song-ltc-card-clean .song-ltc-heading {
        padding-right: 0;
        padding-bottom: 13px;
        border-right: 0;
        border-bottom: 1px solid rgba(89, 214, 255, .16);
    }
}

@media (max-width: 760px) {
    .song-settings-card {
        grid-template-columns: 1fr;
    }

    .song-settings-artwork {
        flex-direction: row;
        align-items: center;
    }

    .song-settings-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .song-settings-heading p {
        text-align: left;
    }

    .song-settings-grid,
    .song-settings-readonly,
    .song-ltc-fields {
        grid-template-columns: 1fr;
    }

    .song-artwork-upload {
        grid-template-columns: 1fr;
    }
}


/* v0.8.6 — safe song deletion */

.song-danger-zone {
    margin: 0 0 24px;
    border: 1px solid rgba(255, 111, 122, .22);
    border-radius: 16px;
    background: rgba(255, 75, 91, .025);
}

.song-danger-zone > summary {
    padding: 13px 16px;
    color: #d99399;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
    list-style-position: inside;
}

.song-danger-zone[open] > summary {
    border-bottom: 1px solid rgba(255, 111, 122, .16);
}

.song-danger-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr);
    gap: 22px;
    align-items: end;
    padding: 16px;
}

.song-danger-content strong {
    display: block;
    margin-bottom: 5px;
    color: #ffd3d6;
}

.song-danger-content p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

.song-delete-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.song-delete-form label {
    margin: 0;
}

.button-danger {
    border-color: rgba(255, 105, 117, .5);
    color: #fff1f2;
    background: rgba(199, 48, 62, .72);
}

.button-danger:hover {
    border-color: rgba(255, 135, 145, .8);
    background: rgba(222, 57, 72, .9);
}

@media (max-width: 760px) {
    .song-danger-content,
    .song-delete-form {
        grid-template-columns: 1fr;
    }
}


/* v0.8.7 — non-blocking Drive cleanup warning */

.flash-warning {
    border-color: rgba(255, 194, 92, .45);
    color: #ffe0a3;
    background: rgba(112, 75, 19, .32);
}


/* v0.9.3 — mandatory MFA lockdown */

.lockdown-note {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid rgba(87, 214, 255, .18);
    border-radius: 12px;
    background: rgba(71, 189, 227, .04);
}

.lockdown-note strong {
    color: #dff8ff;
    font-size: .82rem;
}

.lockdown-note span {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.45;
}

.security-auth-layout {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 34px 0;
}

.security-auth-card {
    width: min(100%, 560px);
    display: grid;
    gap: 22px;
    padding: 26px;
}

.security-auth-card h1 {
    margin: 5px 0 7px;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.security-auth-card p,
.security-auth-card small {
    color: var(--muted);
    line-height: 1.55;
}

.mfa-setup-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.mfa-qr {
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
}

.mfa-qr img {
    display: block;
    width: 100%;
    height: auto;
}

.mfa-manual {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.mfa-manual > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mfa-manual code {
    overflow-wrap: anywhere;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #dff8ff;
    background: rgba(0, 0, 0, .28);
    font-size: .84rem;
    letter-spacing: .075em;
}

.security-recovery-card {
    width: min(100%, 650px);
}

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

.recovery-code-grid code {
    display: block;
    padding: 11px;
    border: 1px solid rgba(90, 215, 255, .18);
    border-radius: 10px;
    color: #e4faff;
    background: rgba(0, 0, 0, .25);
    font-size: .93rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-align: center;
}

.security-warning {
    padding: 12px 14px;
    border: 1px solid rgba(255, 190, 80, .28);
    border-radius: 11px;
    color: #ffdda0;
    background: rgba(112, 71, 10, .22);
    font-size: .78rem;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .mfa-setup-grid,
    .recovery-code-grid {
        grid-template-columns: 1fr;
    }

    .mfa-qr {
        width: min(100%, 230px);
        justify-self: center;
    }
}
\n\n/* v0.9.4 — editable album identities */\n\n.album-kinetic-visual {\n    margin-bottom: 28px;\n    border: 1px solid rgba(96, 218, 255, .11);\n    border-radius: 24px;\n    background:\n        radial-gradient(circle at 50% 45%, rgba(62, 193, 237, .08), transparent 68%),\n        rgba(4, 11, 17, .24);\n}\n\n.album-kinetic-visual > strong {\n    display: none;\n}\n\n.album-tile .album-kinetic-visual {\n    width: 190px;\n    height: 190px;\n}\n\n.album-tile:hover .album-kinetic-visual {\n    filter: brightness(1.16) saturate(1.08);\n}\n\n.album-mini-motion {\n    background: rgba(52, 181, 224, .07);\n}\n\n.album-detail-hero {\n    display: grid;\n    grid-template-columns: 150px minmax(0, 1fr) auto;\n    gap: 24px;\n    align-items: center;\n    margin-bottom: 22px;\n    padding: 22px;\n    border: 1px solid var(--line);\n    border-radius: 22px;\n    background:\n        radial-gradient(circle at 0 20%, rgba(70, 195, 236, .08), transparent 34%),\n        rgba(255, 255, 255, .014);\n}\n\n.album-detail-visual .album-page-visual {\n    width: 132px;\n    height: 132px;\n    margin: 0;\n    border-radius: 18px;\n}\n\n.album-detail-copy h1 {\n    margin: 5px 0 7px;\n}\n\n.album-detail-copy p {\n    margin: 0;\n    color: var(--muted);\n}\n\n.album-settings-card {\n    display: grid;\n    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.5fr);\n    gap: 26px;\n    align-items: end;\n    margin-bottom: 22px;\n    padding: 20px;\n    border: 1px solid var(--line);\n    border-radius: 18px;\n    background: rgba(255, 255, 255, .014);\n}\n\n.album-settings-card h2 {\n    margin: 4px 0 6px;\n    font-size: 1.25rem;\n}\n\n.album-settings-card p {\n    margin: 0;\n    color: var(--muted);\n    font-size: .8rem;\n    line-height: 1.5;\n}\n\n.album-settings-form {\n    display: grid;\n    grid-template-columns: minmax(180px, 1.15fr) minmax(150px, .8fr) minmax(170px, .9fr) auto;\n    gap: 11px;\n    align-items: end;\n}\n\n.album-settings-form label {\n    min-width: 0;\n    margin: 0;\n}\n\n@media (max-width: 900px) {\n    .album-settings-card,\n    .album-settings-form {\n        grid-template-columns: 1fr 1fr;\n    }\n\n    .album-settings-form .button {\n        width: 100%;\n    }\n}\n\n@media (max-width: 680px) {\n    .album-detail-hero,\n    .album-settings-card,\n    .album-settings-form {\n        grid-template-columns: 1fr;\n    }\n\n    .album-detail-visual {\n        display: none;\n    }\n}\n

/* v0.11.0 — Desktop API admin entry */
.desktop-api-admin-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 17px;
    border: 1px solid rgba(82, 202, 226, .20);
    border-radius: 16px;
    background: rgba(63, 170, 196, .035);
}
.desktop-api-admin-link h2 { margin: 4px 0; }
.desktop-api-admin-link p { margin: 0; color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) {
    .desktop-api-admin-link { align-items: flex-start; flex-direction: column; }
}
