@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Grotesk:wght@300..700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
    pointer-events: none !important;
}

:root {
    --bg-base: #000000;
    --text-main: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
}

html {
    cursor: none;
}

body {
    font-family: "Space Grotesk", sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;

}

.app-layout {
    display: grid;
    grid-template-columns: 340px 1fr 460px;
    height: 100vh;
    width: 100vw;
}

.panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.tracks-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.tracks-subheading {
    padding: 14px 20px 8px;
    font-size: 0.875rem;
    font-weight: 567;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
}

.tracks-selection-area {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px 20px;
}

#track-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#track-list li button {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: none;
    padding: 4px;
    color: var(--text-main);
    gap: 1px;
    text-align: left;
    display: flex;
    align-items: center;
}

#track-list li button img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

#track-list button span {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    font-size: 0.875rem;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.25;
}

#track-list button strong,
#track-list button small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#track-list li button small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.file-picker-label {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
}

input[type="file"] {
    display: none;
}



.player-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 20px;
}

.artwork-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-wrapper::before {
    content: '';
    position: absolute;
    inset: 6px;
    background-image: var(--art-glow, none);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    filter: blur(500px) saturate(1.9);
    opacity: var(--glow-opacity, 0.5);
    transition: opacity 0.05s ease-out;
    transform: translateY(12px) scale(1.5);
    z-index: 0;
    pointer-events: none;
}

#now-playing-art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

#now-playing-art[hidden] {
    display: none;
}

.artwork-placeholder {
   color: rgba(255, 255, 255, 0.5);
   font-size: 0.85rem;
   letter-spacing: 0.05em;
}

#now-playing-art:not([hidden]) + .artwork-placeholder {
    display: none;
}

.player-controls-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

audio {
    width: 100%;
    height: 32px;
    filter: invert(1);
    background-color: transparent;
}

audio::-webkit-media-controls-panel,
audio::-webkit-media-controls-enclosure {
    background-color: transparent;
}

.transport-buttons {
    display: flex;
    gap: 12px;
    
}

.transport-buttons button.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.transport-buttons button {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
}



.info-panel {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-header {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.info-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

#now-playing-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

#now-playing-artist,
#now-playing-album,
#now-playing-year {
    color: rgba(255, 255, 255, 0.658) !important;
}

.metadata-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metadata-group p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.tech-specs-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.tech-specs-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}


.lyrics-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    flex: 1;
    min-height: 260px;
}

.lyrics-header {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

am-lyrics {
    width: 100%;
    height: 100%;
    font-family: "Space Grotesk", sans-serif;

    --lyplus-font-size-base: 48px;
    --am-lyrics-compact-font-size: 32px;
    --am-lyrics-line-spacing: 14px;
    --am-lyrics-line-height: 1.5;

    --am-lyrics-highlight-color: #ffffff;
    --am-lyrics-highlight-surface: rgba(255, 255, 255, 0.08);
}

kbd {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.054);
    border: 1px solid rgba(255, 255, 255, 0.131);
    border-bottom: 2px solid rgba(255, 255, 255, 0.246);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 4px;
}

.search-contianer {
    position: relative;
    padding: 0 16px 12px;
}

#search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    color: var(--text-main);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.875rem;
    outline: none;
}

#search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.search-badge {
    position: absolute;
    right: 24px;
    top: 7px
}

#track-list li.keyboard-selected button {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none;
}

.tab-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: rgb(0, 0, 0);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 69420;
    transition: transform 0.25s ease-in-out;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.tab-toast.visible {
    transform: translateX(-50%) translateY(0);
}

.tooltips {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    width: 100vw;
    background-color: rgb(6, 6, 6);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 69420;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 69420;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.visible {
    display: flex;
}

.modal-box {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 32px;
    max-width: 400px;
    width: 90%;
}

.modal-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.875rem;
}

.modal-close-hint {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}