: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;
    }
}
