* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',sans-serif; }
body { background:#000; color:#fff; height:100vh; overflow:hidden; }

/* LOGIN SCREEN */
.login-screen {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
}
.login-box {
    background: #181818; padding: 50px; border-radius: 15px;
    text-align: center; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.login-box i.fa-spotify { font-size: 60px; color: #1DB954; margin-bottom: 15px; }
.login-box h1 { margin-bottom: 15px; }
.login-box p { color: #b3b3b3; margin-bottom: 30px; line-height: 1.6; }
.login-box button {
    background: #1DB954; color: #000; border: none;
    padding: 15px 40px; border-radius: 30px;
    font-weight: 700; font-size: 16px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s;
}
.login-box button:hover { background: #1ed760; transform: scale(1.05); }
.login-box small { display: block; margin-top: 20px; color: #7a7a7a; }

/* CONTAINER */
.container { display: flex; height: calc(100vh - 90px); gap: 8px; padding: 8px; }

/* SIDEBAR */
.sidebar { width: 250px; background: #121212; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: bold; padding: 0 10px 15px; }
.logo i { color: #1DB954; font-size: 32px; }
.nav-menu { display: flex; flex-direction: column; gap: 5px; }
.nav-item { color: #b3b3b3; text-decoration: none; padding: 10px; border-radius: 5px; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: #fff; background: #1a1a1a; }
.playlist-section { border-top: 1px solid #282828; padding-top: 15px; flex: 1; overflow-y: auto; }
.playlist-header { color: #b3b3b3; padding: 0 10px 10px; font-weight: 600; font-size: 14px; }
.playlist-list { list-style: none; }
.playlist-list li { padding: 10px; color: #b3b3b3; cursor: pointer; border-radius: 5px; transition: all 0.2s; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-list li:hover { color: #fff; background: #1a1a1a; }

/* MAIN */
.main-content { flex: 1; background: linear-gradient(180deg, #1e3264 0%, #121212 40%); border-radius: 8px; overflow-y: auto; display: flex; flex-direction: column; }
.main-content::-webkit-scrollbar { width: 10px; }
.main-content::-webkit-scrollbar-thumb { background: #535353; border-radius: 5px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; position: sticky; top: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); z-index: 10; gap: 15px; }
.nav-buttons { display: flex; gap: 8px; }
.nav-buttons button { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; }
.user-actions { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end; }
.search-input { background: #242424; border: none; color: #fff; padding: 10px 20px; border-radius: 30px; width: 300px; outline: none; font-size: 14px; }
.search-input:focus { background: #2a2a2a; box-shadow: 0 0 0 2px #fff; }
.user-profile { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.6); padding: 5px 5px 5px 5px; border-radius: 30px; cursor: pointer; }
.user-profile img { width: 32px; height: 32px; border-radius: 50%; }
.user-profile span { font-size: 14px; font-weight: 600; padding: 0 5px; }
.user-profile button { background: none; border: none; color: #b3b3b3; cursor: pointer; padding: 5px 10px; }
.user-profile button:hover { color: #fff; }

.content { padding: 20px 25px 100px; }
.content h1 { font-size: 32px; margin-bottom: 20px; }
.content h2 { font-size: 24px; margin: 30px 0 20px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card { background: #181818; padding: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s; position: relative; }
.card:hover { background: #282828; }
.card:hover .card-play { opacity: 1; transform: translateY(0); }
.card-img-container { position: relative; margin-bottom: 12px; }
.card img { width: 100%; border-radius: 5px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.card-play { position: absolute; bottom: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%; background: #1DB954; color: #000; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.card-play:hover { background: #1ed760; transform: scale(1.05) translateY(0) !important; }
.card h3 { font-size: 15px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { color: #b3b3b3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* PLAYLIST DETAIL */
.playlist-header-detail { display: flex; gap: 25px; align-items: flex-end; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #282828; }
.playlist-header-detail img { width: 200px; height: 200px; border-radius: 8px; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.playlist-header-detail small { color: #b3b3b3; font-size: 12px; }
.playlist-header-detail h1 { font-size: 48px; margin: 10px 0; }
.playlist-header-detail p { color: #b3b3b3; }

.track-list { display: flex; flex-direction: column; }
.track-item { display: flex; align-items: center; gap: 15px; padding: 10px 15px; border-radius: 5px; cursor: pointer; transition: background 0.2s; }
.track-item:hover { background: #1a1a1a; }
.track-item.active { background: #1a1a1a; }
.track-num { color: #b3b3b3; width: 20px; }
.track-item img { width: 40px; height: 40px; border-radius: 3px; }
.track-info { flex: 1; }
.track-info h4 { font-size: 14px; font-weight: 500; }
.track-info p { color: #b3b3b3; font-size: 12px; }
.track-duration { color: #b3b3b3; font-size: 13px; }

/* PLAYER */
.player-bar { height: 90px; background: #181818; border-top: 1px solid #282828; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; position: fixed; bottom: 0; left: 0; right: 0; }
.now-playing { display: flex; align-items: center; gap: 15px; width: 30%; }
.now-playing img { width: 56px; height: 56px; border-radius: 5px; object-fit: cover; }
.song-info { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.song-info span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-info small { color: #b3b3b3; font-size: 12px; }
.player-controls { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 45%; }
.control-buttons { display: flex; align-items: center; gap: 20px; }
.control-buttons button { background: none; border: none; color: #b3b3b3; font-size: 16px; cursor: pointer; transition: color 0.2s; }
.control-buttons button:hover { color: #fff; }
.play-btn { width: 36px; height: 36px; border-radius: 50% !important; background: #fff !important; color: #000 !important; font-size: 14px !important; display: flex; align-items: center; justify-content: center; }
.progress-container { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 12px; color: #b3b3b3; }
.progress-container input[type="range"] { flex: 1; }
input[type="range"] { -webkit-appearance: none; height: 4px; background: #4d4d4d; border-radius: 2px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }
.player-volume { display: flex; align-items: center; gap: 10px; width: 25%; justify-content: flex-end; }
.player-volume i { color: #b3b3b3; }
.player-volume input { width: 100px; }

.loading { text-align: center; padding: 40px; color: #b3b3b3; }
.spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #282828; border-top-color: #1DB954; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }