/* Blue/White Spotify Theme */
:root {
    --primary-color: #00a8ff;
    --primary-dark: #0097e6;
    --bg-color: #f5f6fa;
    --sidebar-bg: #ffffff;
    --text-color: #2f3640;
    --text-secondary: #7f8fa6;
    --border-color: #dcdde1;
    --hover-bg: #f1f2f6;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Layout */
.main-container {
    display: flex;
    flex: 1;
    height: calc(100vh - 90px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.sidebar-search {
    margin-bottom: 24px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--primary-color);
    background: white;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 12px;
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.nav-link:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.nav-link:hover i {
    color: var(--primary-color);
}

.nav-link.active {
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
}

.nav-link.active i {
    color: var(--primary-color);
}

.small-list .nav-link {
    font-size: 13px;
    padding: 6px 12px;
    font-weight: 500;
}

.upload-btn {
    margin-top: auto;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 168, 255, 0.3);
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Main Content Area */
#content-area {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    position: relative;
    background: linear-gradient(180deg, #eef2f3 0%, #f5f6fa 40%);
}

.page-header {
    margin-bottom: 30px;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    color: #2f3640;
    letter-spacing: -1px;
}

/* Artist Grid */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.artist-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.artist-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.artist-card:hover .artist-img-wrapper img {
    transform: scale(1.05);
}

.play-btn-hover {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 168, 255, 0.4);
    font-size: 18px;
    margin: 8px;
}

.artist-card:hover .play-btn-hover {
    opacity: 1;
    transform: translateY(0);
}

.artist-name {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    text-align: center;
    color: var(--text-color);
}

.artist-category {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Track List Styles */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.track-item:hover {
    background-color: white;
    border-color: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.track-img-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.track-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-item:hover .track-overlay {
    opacity: 1;
}

.play-overlay-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
}

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

.track-title {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    margin-bottom: 2px;
}

.track-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    transition: 0.2s;
}

.btn-icon:hover {
    color: var(--primary-color);
}

.track-duration {
    font-size: 13px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    width: 40px;
    text-align: right;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 6px;
    width: 80%;
}

.skeleton-img {
    width: 100%;
    height: 100%;
    background-color: #ddd;
}

.skeleton-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
}
.player-bar {
    height: 90px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    z-index: 1000;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

#visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.player-info {
    display: flex;
    align-items: center;
    width: 30%;
    z-index: 1;
}

.player-art {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    margin-right: 15px;
    background: #f1f2f6;
    overflow: hidden;
}

.player-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    z-index: 1;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.main-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 168, 255, 0.3);
}

.main-play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e1e1e1;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    border-radius: 2px;
}

.player-extra {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
}

.player-extra {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

/* Simple Animation */
@keyframes wave {
    0% { height: 10px; }
    50% { height: 30px; }
    100% { height: 10px; }
}

/* Minimal Input Styles */
input[type="text"], input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}
