:root {
    --bg: #0e0e0e;
    --surface: #181818;
    --surface-2: #202020;
    --border: rgba(255, 255, 255, 0.07);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.35);
    --sb-w: 64px;
    --bn-h: 56px;
    --mp-h: 72px;
    --blob-1: #8b1e6e;
    --blob-2: #5b2a9e;
    --blob-3: #2e1f5e;
    --blob-4: #c2348a;
    --blob-5: #1c1530
}

@property --blob-1 {
    syntax: '<color>';
    inherits: true;
    initial-value: #8b1e6e
}

@property --blob-2 {
    syntax: '<color>';
    inherits: true;
    initial-value: #5b2a9e
}

@property --blob-3 {
    syntax: '<color>';
    inherits: true;
    initial-value: #2e1f5e
}

@property --blob-4 {
    syntax: '<color>';
    inherits: true;
    initial-value: #c2348a
}

@property --blob-5 {
    syntax: '<color>';
    inherits: true;
    initial-value: #1c1530
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw
}

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sb-w);
    background: #111;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0 1.5rem;
    z-index: 40
}

.sb-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0
}

.sb-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px
}

.sb-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px
}

.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: 0 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: color .18s, background .18s;
    position: relative
}

.nav-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07)
}

.nav-btn.active {
    color: var(--text);
    background: rgba(255, 255, 255, .1)
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width .18s
}

.nav-btn.active svg {
    stroke-width: 2.3
}

.nav-btn::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #2c2c2c;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .65rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 200
}

.nav-btn:hover::after {
    opacity: 1
}

#appMain {
    position: fixed;
    left: var(--sb-w);
    top: 0;
    right: 0;
    bottom: 0
}

.screen {
    display: none;
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

.screen.active {
    display: block
}

.s-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: 2rem
}

.section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .65px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 .85rem
}

.home-section {
    margin-bottom: 2.8rem
}

.state-msg {
    color: var(--text-faint);
    font-size: .85rem;
    line-height: 1.6;
    padding: .3rem 0
}

.tracks-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: none
}

.tracks-row::-webkit-scrollbar {
    display: none
}

.tr-card {
    flex: 0 0 auto;
    width: 138px;
    background: 0 0;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-family: inherit
}

.tr-card-art {
    width: 138px;
    height: 138px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .65);
    transition: transform .2s
}

.tr-card:hover .tr-card-art {
    transform: scale(1.03)
}

.tr-card-name {
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tr-card-sub {
    font-size: .73rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

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

.pl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .85rem;
    cursor: pointer;
    color: inherit;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    font-family: inherit;
    border: none;
    transition: background .2s, transform .2s
}

.pl-card:hover {
    background: var(--surface-2);
    transform: translateY(-2px)
}

.pl-card-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .65)
}

.pl-card-name {
    font-size: .88rem;
    font-weight: 600
}

.pl-card-count {
    font-size: .74rem;
    color: var(--text-dim)
}

.search-sticky {
    position: sticky;
    top: 0;
    background: var(--bg);
    padding: 2rem 0 1rem;
    z-index: 5
}

.search-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 1rem;
    transition: border-color .2s
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, .25)
}

.search-box>svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--text-faint);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

#searchInput {
    flex: 1;
    background: 0 0;
    border: none;
    outline: 0;
    color: var(--text);
    font-size: .93rem;
    padding: .82rem 0;
    font-family: inherit
}

#searchInput::placeholder {
    color: var(--text-faint)
}

#searchClear {
    background: 0 0;
    border: none;
    cursor: pointer;
    color: var(--text-faint);
    display: none;
    padding: 0;
    line-height: 1
}

#searchClear:hover {
    color: var(--text)
}

#searchClear svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round
}

#searchResults {
    padding-top: .5rem
}

.search-group {
    margin-bottom: 2rem
}

.search-empty {
    text-align: center;
    color: var(--text-faint);
    font-size: .88rem;
    padding: 3rem 0
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: 0 0;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem 0;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: color .2s
}

.back-btn:hover {
    color: var(--text)
}

.back-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.detail-header {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.8rem
}

.detail-cover-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .75)
}

.detail-meta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.3px;
    margin-bottom: .35rem
}

.detail-sub {
    font-size: .83rem;
    color: var(--text-dim)
}

.play-all-btn {
    background: #fff;
    color: #0e0e0e;
    border: none;
    border-radius: 999px;
    padding: .55rem 1.4rem;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: inherit;
    margin-bottom: 1.5rem;
    transition: opacity .2s, transform .15s
}

.play-all-btn:hover {
    opacity: .88;
    transform: scale(1.02)
}

.play-all-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor
}

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

.tr-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .55rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    background: 0 0;
    border: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background .15s
}

.tr-row:hover {
    background: var(--surface-2)
}

.tr-row-num {
    width: 22px;
    text-align: right;
    font-size: .79rem;
    color: var(--text-faint);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums
}

.tr-row-art {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0
}

.tr-row-info {
    flex: 1;
    min-width: 0
}

.tr-row-title {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tr-row-artist {
    display: block;
    font-size: .76rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tr-row-play {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .15s;
    color: var(--text-dim)
}

.tr-row:hover .tr-row-play {
    opacity: 1
}

.tr-row-play svg {
    width: 13px;
    height: 13px;
    fill: currentColor
}

#miniPlayer {
    position: fixed;
    left: calc(var(--sb-w) + 1rem);
    right: 1rem;
    bottom: 1rem;
    height: var(--mp-h);
    background: rgba(22, 22, 26, .78);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
    z-index: 50;
    transform: translateY(calc(100% + 1.5rem));
    transition: transform .38s cubic-bezier(.4, 0, .2, 1)
}

body.has-track #miniPlayer {
    transform: translateY(0)
}

.mp-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
    cursor: pointer
}

.mp-art {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .55)
}

.mp-info {
    flex: 1;
    min-width: 0
}

.mp-title {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mp-artist {
    display: block;
    font-size: .75rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mp-controls {
    display: flex;
    align-items: center;
    gap: .2rem;
    flex-shrink: 0
}

.mp-btn {
    background: 0 0;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border-radius: 50%;
    transition: color .18s, background .18s
}

.mp-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07)
}

.mp-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 18px;
    height: 18px
}

#mpPlayPause {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: #0e0e0e
}

#mpPlayPause:hover {
    background: rgba(255, 255, 255, .88)
}

#mpPlayPause svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none
}

.mp-right {
    flex-shrink: 0
}

#mpExpand {
    background: 0 0;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    border-radius: 50%;
    transition: color .18s, background .18s
}

#mpExpand:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07)
}

#mpExpand svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

#screenFullscreen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0b0613;
    display: none
}

#screenFullscreen.active {
    display: flex;
    justify-content: center;
    align-items: center
}

.fp-content-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1180px;
    padding: 0 2.5rem;
    box-sizing: border-box
}

.aurora-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0b0613
}

.aurora-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 100%);
    z-index: 5;
    pointer-events: none
}

#neatCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none
}

.aurora-bg.neat-mode .aurora-blob {
    display: none
}

.aurora-bg.neat-mode #neatCanvas {
    display: block
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .75;
    will-change: transform;
    mix-blend-mode: screen;
    transition: --blob-1 1.4s ease, --blob-2 1.4s ease, --blob-3 1.4s ease, --blob-4 1.4s ease, --blob-5 1.4s ease
}

.blob-1 {
    width: 65vw;
    height: 65vw;
    max-width: 880px;
    max-height: 880px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--blob-1) 0, transparent 70%);
    animation: drift-1 13s ease-in-out infinite
}

.blob-2 {
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    top: 10%;
    right: -15%;
    background: radial-gradient(circle, var(--blob-2) 0, transparent 70%);
    animation: drift-2 16s ease-in-out infinite
}

.blob-3 {
    width: 55vw;
    height: 55vw;
    max-width: 760px;
    max-height: 760px;
    bottom: -15%;
    left: 15%;
    background: radial-gradient(circle, var(--blob-3) 0, transparent 70%);
    animation: drift-3 18s ease-in-out infinite
}

.blob-4 {
    width: 48vw;
    height: 48vw;
    max-width: 660px;
    max-height: 660px;
    bottom: -10%;
    right: 5%;
    background: radial-gradient(circle, var(--blob-4) 0, transparent 70%);
    opacity: .55;
    animation: drift-4 14.5s ease-in-out infinite
}

.blob-5 {
    width: 40vw;
    height: 40vw;
    max-width: 560px;
    max-height: 560px;
    top: 38%;
    left: 38%;
    background: radial-gradient(circle, var(--blob-5) 0, transparent 70%);
    opacity: .6;
    animation: drift-5 11s ease-in-out infinite
}

@keyframes drift-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0)
    }

    22% {
        transform: translate(22%, 14%) scale(1.25) rotate(8deg)
    }

    41% {
        transform: translate(10%, 30%) scale(.95) rotate(-6deg)
    }

    63% {
        transform: translate(-16%, 18%) scale(1.18) rotate(10deg)
    }

    81% {
        transform: translate(-8%, -10%) scale(1.05) rotate(-4deg)
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0)
    }
}

@keyframes drift-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0)
    }

    19% {
        transform: translate(-20%, 16%) scale(1.2) rotate(-10deg)
    }

    38% {
        transform: translate(-30%, -8%) scale(.92) rotate(6deg)
    }

    57% {
        transform: translate(-12%, -24%) scale(1.22) rotate(-8deg)
    }

    79% {
        transform: translate(8%, -6%) scale(1.05) rotate(5deg)
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0)
    }
}

@keyframes drift-3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0)
    }

    24% {
        transform: translate(18%, -22%) scale(1.28) rotate(9deg)
    }

    46% {
        transform: translate(32%, -6%) scale(.9) rotate(-7deg)
    }

    68% {
        transform: translate(14%, 14%) scale(1.15) rotate(11deg)
    }

    85% {
        transform: translate(-10%, 6%) scale(1.05) rotate(-5deg)
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0)
    }
}

@keyframes drift-4 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0)
    }

    27% {
        transform: translate(-22%, -18%) scale(1.22) rotate(-9deg)
    }

    49% {
        transform: translate(-8%, -32%) scale(.93) rotate(7deg)
    }

    70% {
        transform: translate(16%, -14%) scale(1.2) rotate(-10deg)
    }

    88% {
        transform: translate(10%, 8%) scale(1.04) rotate(4deg)
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0)
    }
}

@keyframes drift-5 {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0)
    }

    21% {
        transform: translate(-65%, -30%) scale(1.3) rotate(12deg)
    }

    44% {
        transform: translate(-35%, -62%) scale(.88) rotate(-9deg)
    }

    66% {
        transform: translate(-60%, -65%) scale(1.2) rotate(8deg)
    }

    85% {
        transform: translate(-42%, -38%) scale(1.06) rotate(-6deg)
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0)
    }
}

@media(prefers-reduced-motion:reduce) {
    .aurora-blob {
        animation: none !important
    }
}

.fp-collapse {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: background .2s, color .2s, opacity .25s ease
}

.fp-collapse:hover {
    background: rgba(255, 255, 255, .13);
    color: #fff
}

.fp-collapse svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Chi hien nut thu nho khi co chuot that va dang di len sat top.
   Tren thiet bi cam ung (mobile/tablet), class show-top-controls
   khong bao gio duoc gan (xem app.js) nen nut luon an, chi dung
   duoc bang gesture vuot xuong de thoat. */
#screenFullscreen.show-top-controls .fp-collapse {
    opacity: 1;
    pointer-events: auto
}

@media(hover:hover) and (pointer:fine) {
    .fp-collapse:focus-visible {
        opacity: 1;
        pointer-events: auto
    }
}

.fp-lyrics-toggle.active {
    color: #fff
}

#screenFullscreen.lyrics-open .fp-content-row {
    gap: 2.5rem
}

.lyrics-panel {
    display: none;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    align-self: flex-start;
    overflow: hidden;
    height: min(52vh, 420px);
    padding: 2.75rem 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.75rem, #000 calc(100% - 2.75rem), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 2.75rem, #000 calc(100% - 2.75rem), transparent 100%)
}

#screenFullscreen.lyrics-open .lyrics-panel {
    display: block;
    max-width: 580px
}

.lyrics-list {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    will-change: transform;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1)
}

.lyric-line {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    padding: .3rem 0;
    cursor: pointer;
    opacity: .15;
    transform: scale(1);
    transform-origin: left center;
    transition: opacity .4s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-wrap: break-word;
    word-break: normal
}

.lyric-line.active {
    opacity: 1;
    transform: scale(1.24)
}

.lyric-line.upcoming-1 {
    opacity: .55
}

.lyric-line.upcoming-2 {
    opacity: .3
}

.lyric-line.upcoming-3 {
    opacity: .15
}

@media(max-width:768px) {
    #screenFullscreen.lyrics-open .fp-content-row {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4.5rem;
        gap: 1.5rem
    }

    #screenFullscreen.lyrics-open .album-art-wrapper {
        display: none
    }

    #screenFullscreen.lyrics-open .track-info {
        margin-bottom: .8rem
    }

    #screenFullscreen.lyrics-open .lyrics-panel {
        max-width: 100%;
        align-self: stretch
    }

    .lyric-line {
        font-size: 1.1rem
    }

    .lyric-line.active {
        transform: scale(1)
    }
}

.fp-player {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 0 1.5rem;
    transition: max-width .35s ease
}

.album-art-wrapper {
    width: min(52vh, 380px);
    height: min(52vh, 380px);
    margin-bottom: 2rem
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 34px 70px -15px rgba(0, 0, 0, .65), 0 14px 28px -8px rgba(0, 0, 0, .5);
    display: block;
    transition: opacity .4s
}

.track-info {
    text-align: center;
    margin-bottom: 1.8rem
}

.fp-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 .3rem;
    letter-spacing: .1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80vw
}

.fp-artist {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dim);
    margin: 0
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: .78rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    margin-bottom: .8rem
}

.progress-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, .18);
    height: 3px;
    border-radius: 2px;
    outline: 0;
    cursor: pointer
}

.progress-slider::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, #fff var(--progress, 0), rgba(255, 255, 255, .18) var(--progress, 0))
}

.progress-slider::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18)
}

.progress-slider::-moz-range-progress {
    height: 3px;
    border-radius: 2px;
    background: #fff
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -4px;
    opacity: 0;
    transition: opacity .2s
}

.progress-slider::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s
}

.progress-container:hover .progress-slider::-webkit-slider-thumb,
.progress-slider:active::-webkit-slider-thumb {
    opacity: 1
}

.progress-container:hover .progress-slider::-moz-range-thumb,
.progress-slider:active::-moz-range-thumb {
    opacity: 1
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    margin-bottom: .8rem
}

.icon-btn {
    background: 0 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: rgba(255, 255, 255, .75);
    transition: color .2s, transform .15s
}

.icon-btn:hover {
    color: #fff;
    transform: scale(1.08)
}

.icon-btn:active {
    transform: scale(.92)
}

.icon-btn svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.play-btn {
    background: 0 0;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, .92);
    transition: color .2s, transform .2s cubic-bezier(.4, 0, .2, 1)
}

.play-btn:hover {
    color: #fff;
    transform: scale(1.08)
}

.play-btn:active {
    transform: scale(.92)
}

.play-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    margin-left: 0
}

.play-btn.is-playing svg {
    margin-left: 0
}

.loop-btn {
    background: 0 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: rgba(255, 255, 255, .38);
    transition: color .2s
}

.loop-btn:hover {
    color: rgba(255, 255, 255, .75)
}

.loop-btn.active {
    color: #fff
}

.loop-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 250px;
    color: rgba(255, 255, 255, .38)
}

.volume-row svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, .18);
    height: 3px;
    border-radius: 2px;
    outline: 0;
    cursor: pointer
}

.volume-slider::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, .7) var(--vol, 70%), rgba(255, 255, 255, .18) var(--vol, 70%))
}

.volume-slider::-moz-range-track {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .18)
}

.volume-slider::-moz-range-progress {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .7)
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: -3.5px;
    opacity: 0;
    transition: opacity .2s
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s
}

.volume-row:hover .volume-slider::-moz-range-thumb,
.volume-row:hover .volume-slider::-webkit-slider-thumb {
    opacity: 1
}

@media(max-width:480px) {
    .album-art-wrapper {
        width: min(54vh, 300px);
        height: min(54vh, 300px);
        margin-bottom: 1.5rem
    }

    .fp-title {
        font-size: 1.25rem
    }

    .controls-row {
        gap: .6rem
    }

    .play-btn {
        width: 56px;
        height: 56px
    }

    .play-btn svg {
        width: 30px;
        height: 30px
    }

    .icon-btn svg {
        width: 26px;
        height: 26px
    }
}

@media(max-height:700px) {
    .album-art-wrapper {
        width: min(40vh, 300px);
        height: min(40vh, 300px);
        margin-bottom: 1.3rem
    }

    .track-info {
        margin-bottom: 1.2rem
    }

    .progress-container {
        margin-bottom: .6rem
    }

    .controls-row {
        margin-bottom: .6rem
    }
}

@media(max-width:768px) {
    #sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--bn-h);
        flex-direction: row;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--border)
    }

    .sb-logo {
        display: none
    }

    .sb-nav {
        position: static;
        transform: none;
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
        padding: 0 .5rem;
        gap: 0
    }

    .nav-btn::after {
        display: none
    }

    #appMain {
        left: 0;
        bottom: var(--bn-h)
    }

    #miniPlayer {
        left: .65rem;
        right: .65rem;
        bottom: calc(var(--bn-h) + .65rem);
        border-radius: 14px;
        transform: translateY(calc(100% + var(--bn-h) + 2rem))
    }

    body.has-track #miniPlayer {
        transform: translateY(0)
    }

    .detail-cover-img {
        width: 110px;
        height: 110px
    }

    .detail-meta h2 {
        font-size: 1.3rem
    }

    .pl-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: .85rem
    }

    .tr-card,
    .tr-card-art {
        width: 120px
    }

    .tr-card-art {
        height: 120px
    }

    .s-inner {
        padding: 1.5rem 1rem 2rem
    }
}

body[data-screen=fullscreen] #miniPlayer,
body[data-screen=fullscreen] #sidebar {
    display: none
}