* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #1db954 0%, #191414 100%); color: white; height: 100vh; overflow: hidden; } #app { height: 100vh; display: flex; flex-direction: column; } .screen { height: 100vh; display: flex; flex-direction: column; } .hidden { display: none !important; } /* Login Screen */ .login-container { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; text-align: center; } .login-container h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; } .login-container p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.8; max-width: 300px; } /* Main App Layout */ #main-app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; } /* Buttons */ .btn-primary { background: #1db954; color: white; border: none; padding: 1rem 2rem; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; } .btn-primary:hover { background: #1ed760; transform: translateY(-2px); } .btn-secondary { background: transparent; color: white; border: 2px solid white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; } .btn-secondary:hover { background: white; color: #191414; } /* Header */ .app-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); flex-shrink: 0; } .user-info { display: flex; align-items: center; gap: 0.5rem; } .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; } /* Navigation */ .nav-tabs { display: flex; background: rgba(0, 0, 0, 0.2); margin: 0.5rem 1rem; border-radius: 25px; padding: 0.25rem; flex-shrink: 0; } .nav-tab { flex: 1; background: transparent; color: white; border: none; padding: 0.6rem; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; font-size: 0.9rem; } .nav-tab.active { background: rgba(255, 255, 255, 0.2); } /* Content Area */ .tab-content { display: none; flex: 1; overflow: hidden; min-height: 0; } .tab-content.active { display: flex; flex-direction: column; } /* Search */ .search-container { display: flex; margin: 0.5rem 1rem; gap: 0.5rem; flex-shrink: 0; } .search-input { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 25px; background: rgba(255, 255, 255, 0.1); color: white; font-size: 0.95rem; outline: none; } .search-input::placeholder { color: rgba(255, 255, 255, 0.6); } .search-btn { background: #1db954; color: white; border: none; padding: 0.75rem 1.25rem; border-radius: 25px; cursor: pointer; font-size: 1.1rem; } /* Results */ .results-container { flex: 1; padding: 0.5rem 1rem; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; } .track-item { display: flex; align-items: center; padding: 0.75rem; background: rgba(255, 255, 255, 0.1); margin-bottom: 0.5rem; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; } .track-item:hover { background: rgba(255, 255, 255, 0.2); } .track-item.playing { background: rgba(29, 185, 84, 0.3); border: 2px solid #1db954; } .track-image { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; margin-right: 0.75rem; flex-shrink: 0; } .track-info { flex: 1; min-width: 0; } .track-name { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .track-artist { opacity: 0.7; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .like-btn { background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: all 0.3s ease; flex-shrink: 0; } .like-btn:hover { background: rgba(255, 255, 255, 0.1); } .like-btn.liked { color: #1db954; } /* Current Track Info */ .current-track-info { display: flex; align-items: center; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.3); flex-shrink: 0; } .current-track-image { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; margin-right: 0.75rem; flex-shrink: 0; } .current-track-details { flex: 1; min-width: 0; } .current-track-name { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .current-track-artist { opacity: 0.7; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Player Controls */ .player-controls { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); padding: 1rem; flex-shrink: 0; } .progress-container { margin-bottom: 0.75rem; } .progress-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; margin-bottom: 0.4rem; cursor: pointer; } .progress { height: 100%; background: #1db954; border-radius: 2px; width: 0%; transition: width 0.1s ease; } .time-display { display: flex; justify-content: space-between; font-size: 0.75rem; opacity: 0.7; } .control-buttons { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-bottom: 0.75rem; } .control-btn { background: none; border: none; color: white; font-size: 1.6rem; cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: all 0.3s ease; } .control-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); } .play-btn { font-size: 2rem; } .volume-container { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; } .volume-slider { flex: 1; -webkit-appearance: none; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); outline: none; } .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #1db954; cursor: pointer; } .volume-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #1db954; cursor: pointer; border: none; } /* Loading */ .loading { text-align: center; padding: 2rem; opacity: 0.7; } .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; } .spinner { width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid #1db954; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* Make sure everything fits on mobile */ @media (max-height: 700px) { .app-header { padding: 0.5rem 1rem; } .nav-tabs { margin: 0.4rem 1rem; } .nav-tab { padding: 0.5rem; } .current-track-info { padding: 0.6rem 1rem; } .player-controls { padding: 0.75rem 1rem; } .control-buttons { margin-bottom: 0.5rem; } }