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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #121212;
    color: #e0e0e0;
    min-height: 100vh;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #181818;
    border-bottom: 1px solid #282828;
}

nav .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1DB954;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #b3b3b3;
    text-decoration: none;
}

.nav-links a:hover { color: #fff; }

.nav-links .user {
    color: #1DB954;
    font-weight: 500;
}

.inline { display: inline; }

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 { margin-bottom: 1.5rem; }

.center-card {
    text-align: center;
    margin-top: 15vh;
}

.center-card h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.center-card p { color: #b3b3b3; margin-bottom: 2rem; }

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #333;
}

.btn-primary { background: #1DB954; color: #000; font-weight: 600; }
.btn-primary:hover { background: #1ed760; }
.btn-small { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #181818;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value { font-size: 2rem; font-weight: 700; color: #1DB954; }
.stat-label { color: #b3b3b3; margin-top: 0.25rem; }

.last-sync { color: #b3b3b3; margin-bottom: 1.5rem; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #282828;
}

th { color: #b3b3b3; font-weight: 600; }

td a { color: #1DB954; text-decoration: none; }
td a:hover { text-decoration: underline; }

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.alert-success { background: #1a3a2a; color: #1DB954; }
.alert-error { background: #3a1a1a; color: #e74c3c; }

#sync-result { margin-top: 0.5rem; }

.progress-container { margin-top: 1.5rem; }

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #282828;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #1DB954;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
