@import url("https://queye.dev/fonts/master.css");

/* ===========================================================
   GLOBAL / RESETS
   Uses: var(--body-font), var(--heading-font)
   =========================================================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #121212;
    color: #fff;
    font-family: var(--body-font), sans-serif;
}

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

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



/* ===========================================================
   APP LAYOUT
   =========================================================== */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 1 auto;
    padding: 20px 28px 120px;
}



/* ===========================================================
   HEADER
   =========================================================== */

.top-header {
    height: 58px;
    background: #181818;
    border-bottom: 1px solid #282828;
    padding: 0 28px;

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

    position: sticky;
    top: 0;
    z-index: 20;
}

.top-header .logo {
    font-family: var(--heading-font);
}

.top-header .logo a {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .03em;
}

.top-nav {
    display: flex;
    gap: 18px;
}

.top-nav a {
    padding: 6px 12px;
    border-radius: 999px;
    color: #b3b3b3;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.top-nav a:hover {
    background: #282828;
    color: #fff;
}



/* ===========================================================
   NOW PLAYING BAR (BOTTOM)
   =========================================================== */

.now-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;

    height: 76px;
    background: #181818;
    border-top: 1px solid #282828;

    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;

    cursor: pointer;
    z-index: 50;
}

.now-bar-cover {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.now-bar-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.now-bar-title {
    font-size: 15px;
    font-family: var(--heading-font);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-bar-artist {
    font-size: 13px;
    color: #b3b3b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-bar-controls {
    display: flex;
    gap: 8px;
}

.now-bar-controls button,
.np-controls button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #2a2a2a;
    color: #fff;

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

    cursor: pointer;
    font-size: 16px;
    transition: background .15s ease, transform .15s ease;
}

.now-bar-controls button:hover,
.np-controls button:hover {
    background: #3b3b3b;
    transform: scale(1.06);
}

/* ===========================================================
   LIBRARY + ALBUM GRID
   =========================================================== */

.library-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.library-header h1 {
    font-family: var(--heading-font);
    font-size: 28px;
    margin: 0;
}

.album-grid {
    margin-top: 20px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.album-card {
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    display: block;
    transition: background .15s, transform .15s;
}

.album-card:hover {
    background: #242424;
    transform: translateY(-3px);
}

.album-cover {
    width: 100%;
    padding-top: 100%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.album-meta {
    margin-top: 10px;
}

.album-title {
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 800;
}

.album-artist {
    font-size: 13px;
    color: #b3b3b3;
}

.album-sub {
    font-size: 12px;
    color: #999;
}



/* ===========================================================
   ALBUM DETAIL PAGE
   =========================================================== */

.album-view {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.album-header {
    display: flex;
    gap: 26px;
}

.album-cover-large {
    min-width: 240px;
    height: 240px;
    border-radius: 16px;
    background-size: cover;
    background-color: #333;
}

.album-info h1 {
    margin: 0;
    font-size: 32px;
    font-family: var(--heading-font);
}

.album-info h2 {
    margin: 4px 0 6px;
    font-size: 16px;
    font-weight: 500;
    color: #d0d0d0;
}

.album-info span {
    font-size: 14px;
    color: #b3b3b3;
}

.play-button {
    margin-top: 14px;
    padding: 10px 20px;
    background: #9B4BFF;
    color: #000;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--heading-font);
}



/* ===========================================================
   TRACK LIST
   =========================================================== */

.album-tracks {
    border-top: 1px solid #282828;
}

.track-row {
    display: grid;
    grid-template-columns: 32px 1fr 60px;
    align-items: center;
    padding: 10px 6px;
    cursor: pointer;
    border-bottom: 1px solid #181818;
    transition: background .12s;
}

.track-row:hover {
    background: #181818;
}

.track-number {
    font-size: 13px;
    color: #b3b3b3;
}

.track-title {
    font-size: 15px;
}

.track-duration {
    font-size: 13px;
    color: #b3b3b3;
    text-align: right;
}



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

@media (max-width: 768px) {
    .now-inner {
        flex-direction: column;
    }

    .now-left {
        flex: none;
    }

    .now-right {
        flex: none;
        max-height: 40vh;
    }

    .now-fullscreen {
        height: 94vh;
    }
}

#now-overlay {
    position: fixed;
    inset: 0;
    background: #121212;
    display: none;
    z-index: 999;
    overflow-y: auto;
}

#now-overlay.active {
    display: block;
}

.now-fullscreen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
}

.now-bg-solid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #121212;
    transition: background 0.4s ease;
}

.now-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.now-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.now-close-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.now-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.now-cover {
    width: 320px;
    height: 320px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.now-track-block {
    width: 100%;
    text-align: left;
}

.now-track-block .np-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.now-track-block .np-artist {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 2px;
}

.now-track-block .np-album {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 16px;
}

.now-track-block .np-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.now-track-block .np-controls button {
    font-size: 20px;
}

.now-track-block .np-progress-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}

.np-bar {
    flex: 1;
    height: 6px;
    background: #2a2a2a;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.np-bar-fill {
    height: 100%;
    background: #9B4BFF;
    width: 0%;
    border-radius: 999px;
}

.np-bar-handle {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
}

.np-bar-handle:hover {
    background: #9B4BFF;
}

.now-right {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.now-lyrics-header {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d0d6ff;
    margin-bottom: 12px;
}

.now-lyrics-body {
    font-size: 22px;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.lyrics-line {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    padding: 4px 0;
    opacity: 0.55;
    transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.lyrics-line.active {
    color: #fff;
    font-weight: 600;
    transform: scale(1.03);
    opacity: 1;
    margin-left: 9px;
}




@import url("https://queye.dev/fonts/master.css");

body {
    margin: 0;
    background: #121212;
    color: white;
    font-family: var(--body-font);
}

/* lyrics styles you already had can stay */

/* ---------------------------
   NOW PLAYING BAR (FOOTER)
---------------------------- */

#player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;

    background: #181818;
    border-top: 1px solid #333;

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

    padding: 0 20px;
    z-index: 50;
}

/* Clickable region (opens fullscreen) */
#now-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;

    cursor: pointer;
    padding: 10px 0;

    /* Make sure clicks actually go through */
    pointer-events: auto;
}

/* Cover thumbnail */
#miniCover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    flex-shrink: 0;
}

/* Meta text */
.mini-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#miniTitle {
    font-size: 15px;
    font-family: var(--body-font);
    color: #fff;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#miniArtist {
    font-size: 13px;
    font-family: var(--body-font);
    color: #bbb;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls (prev/play/next) */
.mini-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mini-controls button {
    font-size: 20px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.mini-controls button:hover {
    color: #9B4BFF;
}

/* Ensure the footer never blocks page scroll */
body {
    padding-bottom: 72px;
}

/* Tabs above lyrics / queue */
.now-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.now-tab {
    background: none;
    border: none;
    padding: 0 0 4px;
    cursor: pointer;
    color: inherit;
    border-bottom: 2px solid transparent;
    font-family: var(--body-font);
}

.now-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Two animated panes in the same area (lyrics + queue) */
.now-lyrics-body {
    position: relative;
    height: 60vh;          /* give it an actual height */
    max-height: 60vh;
    overflow: hidden;      /* panes handle their own scroll */
}

/* shared pane base */
.now-pane {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding-right: 8px;

    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;

    transition:
        opacity 0.18s ease-out,
        transform 0.18s ease-out;
}

/* active pane (visible) */
.now-pane.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Queue entries: fixed-ish height, content at top */
.queue-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 40px;      /* ensures uniform row height */
    padding: 6px 0;
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
}

.queue-item:hover {
    color: #fff;
}

.queue-title {
    font-weight: 500;
}

.queue-artist {
    font-size: 13px;
    color: #888;
}

/* current track in queue view */
.queue-item.active .queue-title {
    color: #1db954;
    font-weight: 600;
}