/* ============================================================
   Tuneify.NET — "Neon Bloom" theme
   Dark glass UI, violet→pink gradients, animated everything.
   ============================================================ */

:root {
    --acc1:         #8b5cf6;
    --acc2:         #ec4899;
    --acc3:         #22d3ee;
    --grad:         linear-gradient(120deg, var(--acc1), var(--acc2));
    --grad-soft:    linear-gradient(120deg, rgba(139,92,246,.18), rgba(236,72,153,.18));
    --bg:           #0d0d15;
    --bg-side:      #0a0a10;
    --glass:        rgba(255,255,255,.04);
    --glass-hi:     rgba(255,255,255,.09);
    --stroke:       rgba(255,255,255,.08);
    --text:         #f4f2ff;
    --text-dim:     #a3a0b8;
    --text-faint:   #625f78;
    --player-h:     90px;
    --side-w:       240px;
    --radius:       14px;
    --shadow-glow:  0 8px 32px rgba(139,92,246,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; }
img { display: block; }

::selection { background: rgba(139,92,246,.45); }

/* ------------------------------------------------ layout */

.app { display: flex; height: calc(100vh - var(--player-h)); }

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
}

/* ambient colour blobs drifting behind the content */
.main::before, .main::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}
.main::before {
    top: -160px; right: -80px;
    background: var(--acc1);
    animation: blobA 18s ease-in-out infinite alternate;
}
.main::after {
    top: 120px; left: -140px;
    background: var(--acc2);
    opacity: .22;
    animation: blobB 22s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate(-90px, 110px) scale(1.25); } }
@keyframes blobB { to { transform: translate(120px, -60px) scale(.85); } }

.topbar, .content { position: relative; z-index: 1; }

.content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 30px 56px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,.4) transparent;
}
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--acc1), var(--acc2));
    border-radius: 5px;
    border: 2px solid var(--bg);
}

/* ------------------------------------------------ entrance animations */

.shelf { animation: rise .5s ease both; }
.shelf:nth-of-type(2) { animation-delay: .06s; }
.shelf:nth-of-type(3) { animation-delay: .12s; }
.shelf:nth-of-type(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.grid > .card { animation: pop .45s ease both; }
.grid > .card:nth-child(3n) { animation-delay: .05s; }
.grid > .card:nth-child(3n+1) { animation-delay: .1s; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ------------------------------------------------ sidebar */

.side {
    width: var(--side-w);
    flex-shrink: 0;
    background: var(--bg-side);
    border-right: 1px solid var(--stroke);
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    padding: 0 8px;
}
.logo em {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    margin-left: 1px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(139,92,246,.6)); }

.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px 12px 12px 4px;
    color: var(--text-dim);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: color .2s, background .2s;
}
.side-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity .2s;
}
.side-nav a:hover { color: var(--text); }
.side-nav a:hover::before { opacity: 1; }
.side-nav a.active {
    color: var(--text);
    background: var(--grad-soft);
    box-shadow: inset 0 0 0 1px rgba(139,92,246,.35);
}
.side-nav a.active svg {
    color: var(--acc1);
    filter: drop-shadow(0 0 6px rgba(139,92,246,.8));
}
.side-nav a > * { position: relative; }
.side-nav svg { width: 22px; height: 22px; transition: transform .2s; }
.side-nav a:hover svg { transform: scale(1.12); }

.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    transition: border-color .2s, box-shadow .2s;
}
.side-user:hover { border-color: rgba(139,92,246,.5); box-shadow: 0 0 18px rgba(139,92,246,.15); }
.side-user-badge {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(236,72,153,.5);
}
.side-user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.side-logout { color: var(--text-faint); display: grid; place-items: center; transition: color .2s, transform .2s; }
.side-logout:hover { color: var(--acc2); transform: translateX(2px); }
.side-logout svg { width: 18px; height: 18px; }

.side-foot {
    margin-top: 12px;
    padding: 12px 10px 0;
    border-top: 1px solid var(--stroke);
    color: var(--text-faint);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.side-foot-small { font-size: 11px; }

/* ------------------------------------------------ topbar */

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 30px 6px;
}

.topbar-nav { display: flex; gap: 8px; }
.topbar-nav button {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    color: var(--text-dim);
    transition: all .2s;
}
.topbar-nav button:hover {
    color: var(--text);
    border-color: rgba(139,92,246,.6);
    box-shadow: 0 0 14px rgba(139,92,246,.25);
}
.topbar-nav svg { width: 18px; height: 18px; }

.topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px 18px;
    width: min(400px, 100%);
    color: var(--text-dim);
    transition: all .25s;
}
.topbar-search:focus-within {
    border-color: transparent;
    background:
        linear-gradient(#15151f, #15151f) padding-box,
        var(--grad) border-box;
    color: var(--text);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}
.topbar-search input {
    background: none;
    border: 0;
    outline: 0;
    color: var(--text);
    width: 100%;
    font-size: 14px;
}
.topbar-search input::placeholder { color: var(--text-faint); }

/* ------------------------------------------------ headings & shelves */

.greeting {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 20px 0 6px;
    background: linear-gradient(120deg, #fff 40%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-title { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; margin: 22px 0 18px; }

.shelf { margin-top: 36px; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.shelf-head h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 6px;
}
.shelf-head h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 42px; height: 3px;
    border-radius: 2px;
    background: var(--grad);
    box-shadow: 0 0 10px rgba(236,72,153,.5);
}
.shelf-count { color: var(--text-faint); font-size: 13px; }

.muted { color: var(--text-dim); max-width: 60ch; }
.fineprint { margin-top: 26px; color: var(--text-faint); font-size: 12px; }

/* ------------------------------------------------ card grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 20px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 15px;
    position: relative;
    transition: transform .25s cubic-bezier(.2,.8,.3,1.2), border-color .25s, box-shadow .25s, background .25s;
    backdrop-filter: blur(6px);
}
.card:hover {
    background: var(--glass-hi);
    border-color: rgba(139,92,246,.45);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 24px rgba(139,92,246,.18);
}

.card-art { position: relative; margin-bottom: 13px; }
.card-art img, .card-art-empty {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    transition: transform .3s;
}
.card:hover .card-art img { transform: scale(1.03); }
.card-round .card-art img { border-radius: 50%; }
.card-round .card-art::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--grad);
    opacity: 0;
    z-index: -1;
    transition: opacity .25s;
}
.card-round:hover .card-art::after { opacity: .8; filter: blur(10px); }
.card-art-empty {
    display: grid;
    place-items: center;
    background: var(--grad-soft);
    color: var(--text-faint);
    font-size: 40px;
}

.card-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 46px;
    height: 46px;
    border-radius: 15px 15px 15px 4px;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(236,72,153,.45);
    opacity: 0;
    transform: translateY(10px) scale(.8) rotate(-90deg);
    transition: all .25s cubic-bezier(.2,.8,.3,1.3);
}
.card:hover .card-play { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
.card-play svg { width: 20px; height: 20px; }

.card-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-sub {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------ track rows */

.tlist { display: flex; flex-direction: column; gap: 2px; }

.trow {
    display: grid;
    grid-template-columns: 40px minmax(220px, 4fr) minmax(140px, 3fr) 110px;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.trow:hover {
    background: var(--glass-hi);
    border-color: var(--stroke);
    color: var(--text);
    transform: translateX(4px);
}
.trow.playing {
    color: var(--text);
    background: var(--grad-soft);
    border-color: rgba(139,92,246,.35);
}
.trow.playing .trow-name {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.trow-num { width: 26px; text-align: center; position: relative; font-variant-numeric: tabular-nums; }

/* animated equalizer shown on the currently playing row */
.trow.playing .trow-index { visibility: hidden; }
.trow.playing .trow-num::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--acc1), var(--acc2)) 2px 100% / 3px 40%,
        linear-gradient(var(--acc2), var(--acc1)) 8px 100% / 3px 90%,
        linear-gradient(var(--acc3), var(--acc1)) 14px 100% / 3px 60%,
        linear-gradient(var(--acc1), var(--acc2)) 20px 100% / 3px 75%;
    background-repeat: no-repeat;
    animation: eq .9s ease-in-out infinite alternate;
}
@keyframes eq {
    0%   { background-size: 3px 30%, 3px 80%, 3px 50%, 3px 65%; }
    50%  { background-size: 3px 90%, 3px 40%, 3px 100%, 3px 55%; }
    100% { background-size: 3px 55%, 3px 100%, 3px 35%, 3px 90%; }
}

.trow-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: var(--text);
    display: none;
}
.trow-play svg { width: 15px; height: 15px; }
.trow:hover .trow-index, .trow.playing:hover .trow-num::before { visibility: hidden; }
.trow:hover .trow-play { display: block; }

.trow-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow-main img {
    width: 44px; height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s;
}
.trow:hover .trow-main img { transform: scale(1.06); box-shadow: 0 4px 14px rgba(139,92,246,.35); }
.trow-text { display: flex; flex-direction: column; min-width: 0; }
.trow-name {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trow-artist { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-album { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trow-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.trow-time { font-size: 13px; font-variant-numeric: tabular-nums; }

.heart { color: var(--text-faint); opacity: 0; transition: all .2s; display: grid; place-items: center; }
.trow:hover .heart, .player .heart { opacity: 1; }
.heart:hover { color: var(--acc2); transform: scale(1.2); }
.heart.liked { color: var(--acc2); opacity: 1; animation: heartbeat .35s ease; }
.heart svg { width: 17px; height: 17px; }
.heart.liked svg { fill: var(--acc2); filter: drop-shadow(0 0 6px rgba(236,72,153,.7)); }
@keyframes heartbeat { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* ------------------------------------------------ hero (artist / album / playlist) */

.hero {
    margin: 0 -30px;
    padding: 80px 30px 30px;
    background-size: cover;
    background-position: center 30%;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-detail {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    padding-top: 64px;
    margin-top: -8px;
    background: linear-gradient(160deg, rgba(139,92,246,.25), rgba(236,72,153,.08) 55%, transparent);
}
.hero-cover {
    width: 200px; height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 40px rgba(139,92,246,.25);
    animation: coverFloat 6s ease-in-out infinite;
}
@keyframes coverFloat { 50% { transform: translateY(-8px) rotate(.5deg); } }
.hero-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--acc3);
}
.hero-name {
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-desc { color: var(--text-dim); margin-top: 10px; max-width: 70ch; }
.hero-meta { color: #d8d5ea; margin-top: 12px; font-weight: 500; }

.btn-big {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    background: var(--grad);
    background-size: 180% 100%;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 32px;
    border-radius: 14px 14px 14px 5px;
    box-shadow: 0 8px 24px rgba(139,92,246,.4);
    transition: all .25s;
}
.btn-big:hover {
    background-position: 90% 0;
    transform: translateY(-2px);
    border-radius: 14px 14px 5px 14px;
    box-shadow: 0 12px 32px rgba(236,72,153,.5);
}
.btn-big:active { transform: scale(.97); }
.btn-big svg { width: 16px; height: 16px; }

/* ------------------------------------------------ chips (search browse) */

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chip {
    background: var(--glass);
    border: 1px solid var(--stroke);
    padding: 11px 22px;
    border-radius: 13px 13px 13px 4px;
    font-weight: 600;
    transition: all .2s;
}
.chip:hover {
    background: var(--grad-soft);
    border-color: rgba(139,92,246,.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,92,246,.2);
}

/* ------------------------------------------------ notices & setup */

.notice { border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; max-width: 640px; }
.notice-error {
    background: rgba(236,72,153,.1);
    border: 1px solid rgba(236,72,153,.4);
    color: #f9b8d4;
}

.setup { max-width: 620px; margin: 60px auto 0; }
.setup h1 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.setup p { color: var(--text-dim); margin-bottom: 14px; }
.setup ol { margin: 0 0 14px 22px; color: var(--text-dim); display: flex; flex-direction: column; gap: 10px; }
.setup a { color: var(--acc1); text-decoration: underline; }
.setup code { background: var(--glass-hi); padding: 2px 7px; border-radius: 4px; font-size: 13px; }
.setup-note { font-size: 13px; color: var(--text-faint); }

/* ------------------------------------------------ player bar */

.player {
    height: var(--player-h);
    background: rgba(10,10,16,.9);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--stroke);
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 2fr) minmax(160px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
}
.player::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: var(--grad);
    opacity: .6;
}

.player-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-track img {
    width: 58px; height: 58px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
    transition: border-radius .4s, box-shadow .4s;
}
.player.is-playing .player-track img {
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(139,92,246,.55);
    animation: vinylSpin 6s linear infinite;
}
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.player-track-text { display: flex; flex-direction: column; min-width: 0; }
.player-track-text span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-text span:last-child { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-mid { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.player-buttons { display: flex; align-items: center; gap: 24px; color: var(--text-dim); }
.player-buttons button { transition: color .2s, transform .2s; }
.player-buttons button:hover { color: var(--text); transform: scale(1.15); }
.player-play {
    width: 44px; height: 44px;
    background: var(--grad);
    background-size: 180% 100%;
    border-radius: 15px 15px 15px 5px;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 20px rgba(139,92,246,.55);
    transition: all .2s;
}
.player-play:hover { transform: scale(1.1); background-position: 90% 0; box-shadow: 0 0 28px rgba(236,72,153,.7); }
.player-play svg { width: 18px; height: 18px; }

.player-seek {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(580px, 100%);
    font-size: 11px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.player-seek input { flex: 1; }

.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--text-dim); }
.player-note { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.vol-icon { width: 18px; height: 18px; flex-shrink: 0; }
#pVol { width: 100px; }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: height .15s;
}
input[type="range"]:hover { height: 6px; }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(236,72,153,.8);
    opacity: 0;
    transition: opacity .15s;
}
input[type="range"]:hover::-webkit-slider-thumb { opacity: 1; }
input[type="range"]::-moz-range-thumb {
    width: 13px; height: 13px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(236,72,153,.8);
}

/* ------------------------------------------------ auth pages */

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow-y: auto;
    background: radial-gradient(ellipse at 50% -10%, rgba(139,92,246,.28) 0%, var(--bg) 55%);
}

.auth-card {
    width: min(430px, 92vw);
    background: rgba(20,20,30,.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 42px 38px;
    margin: 40px 0;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    animation: rise .5s ease both;
}
.auth-logo { justify-content: center; margin-bottom: 26px; padding: 0; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; text-align: center; }
.auth-sub { color: var(--text-dim); text-align: center; margin: 8px 0 22px; }
.auth-card .notice { margin: 0 0 16px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.auth-form input {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--text);
    font-size: 15px;
    outline: 0;
    transition: all .2s;
}
.auth-form input:focus {
    border-color: rgba(139,92,246,.6);
    box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.auth-btn { margin-top: 8px; width: 100%; justify-content: center; }

.auth-swap { text-align: center; color: var(--text-dim); margin-top: 24px; font-size: 14px; }
.auth-swap a { color: var(--acc2); font-weight: 600; }
.auth-swap a:hover { text-decoration: underline; }

/* ------------------------------------------------ landing page */

.landing { overflow-y: auto; background: var(--bg); }

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background: rgba(13,13,21,.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stroke);
    z-index: 10;
}
.landing-nav-links { display: flex; align-items: center; gap: 22px; }
.landing-nav-links .btn-big { margin-top: 0; padding: 11px 28px; }
.landing-login { font-weight: 700; color: var(--text-dim); transition: color .2s; }
.landing-login:hover { color: var(--text); }

.landing-hero { position: relative; text-align: center; padding: 120px 24px 100px; overflow: hidden; }
.landing-hero-glow {
    position: absolute;
    inset: -200px 0 auto;
    height: 520px;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(139,92,246,.3) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(236,72,153,.25) 0%, transparent 60%);
    animation: heroDrift 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroDrift { to { transform: scale(1.15) translateY(30px); } }
.landing-hero h1 {
    position: relative;
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.04;
    background: linear-gradient(120deg, #fff 25%, var(--acc1) 70%, var(--acc2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rise .6s ease both;
}
.landing-hero p {
    position: relative;
    max-width: 560px;
    margin: 26px auto 0;
    color: var(--text-dim);
    font-size: 17px;
    animation: rise .6s .1s ease both;
}
.btn-hero { display: inline-block; margin-top: 36px; padding: 16px 46px; font-size: 16px; animation: rise .6s .2s ease both; }
.landing-small { font-size: 13px !important; color: var(--text-faint) !important; }
.landing-small a { color: var(--acc2); }

.landing-stats {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 54px auto 0;
    padding: 22px 40px;
    width: fit-content;
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    animation: rise .6s .3s ease both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.stat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 10px rgba(236,72,153,.8);
    flex-shrink: 0;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1020px;
    margin: 0 auto;
    padding: 30px 40px 70px;
}
.feature {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 30px 26px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,.45);
    box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 24px rgba(139,92,246,.15);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid rgba(139,92,246,.3);
    color: var(--acc1);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    transition: transform .2s;
}
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.1); color: var(--acc2); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14px; }

.landing-team {
    text-align: center;
    padding: 70px 40px 80px;
    border-top: 1px solid var(--stroke);
    max-width: 1060px;
    margin: 0 auto;
}
.landing-team h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.team-sub { color: var(--text-dim); margin-top: 10px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.team-grid-two { max-width: 620px; margin-left: auto; margin-right: auto; }
.team-card {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 34px 26px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236,72,153,.45);
    box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 24px rgba(236,72,153,.15);
}
.team-avatar {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 24px 24px 24px 8px;
    background: var(--grad);
    background-size: 180% 100%;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(139,92,246,.45);
    transition: all .3s;
}
.team-card:hover .team-avatar { transform: rotate(-5deg) scale(1.08); background-position: 90% 0; }
.team-card h3 { font-size: 18px; }
.team-role {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.team-card p { color: var(--text-dim); font-size: 14px; }

.landing-cta { text-align: center; padding: 70px 24px 100px; border-top: 1px solid var(--stroke); }
.landing-cta h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; }

.landing-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    color: var(--text-dim);
    font-size: 14px;
    animation: rise .6s .3s ease both;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 26px;
    border-radius: 12px 12px 12px 4px;
    border: 1px solid rgba(139,92,246,.55);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--glass);
    transition: all .25s;
}
.btn-ghost:hover {
    background: var(--grad-soft);
    border-color: var(--acc2);
    box-shadow: 0 0 20px rgba(236,72,153,.3);
    transform: translateY(-2px);
}

.landing-foot {
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    padding: 24px;
    border-top: 1px solid var(--stroke);
}

/* ------------------------------------------------ responsive */

@media (max-width: 860px) {
    :root { --side-w: 78px; }
    .side { padding: 20px 10px; align-items: center; }
    .side-nav a { justify-content: center; padding: 12px; }
    .side-nav a, .logo span { font-size: 0; gap: 0; }
    .side-nav svg { width: 24px; height: 24px; }
    .side-foot { display: none; }
    .side-user { padding: 5px; border-radius: 50%; }
    .side-user-name, .side-logout { display: none; }
    .trow { grid-template-columns: 30px minmax(140px, 1fr) 90px; }
    .trow-album { display: none; }
    .player { grid-template-columns: 1fr auto; }
    .player-right { display: none; }
    .player-seek { display: none; }
    .hero-detail { flex-direction: column; align-items: flex-start; }
    .hero-cover { width: 150px; height: 150px; }
    .landing-nav { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
