:root {
    --primary-color: #2962ff;
    --primary-hover: #2979ff;
    --surface-dark: #121212;
    --surface-light: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #121212;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.top-nav {
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.search-bar {
    margin: 16px 0;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 16px;
}

.search-button {
    position: absolute;
    right: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.player-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.album-art {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.vinyl-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(30deg, #000000, #333333);
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15%;
    height: 15%;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2px solid #000;
}

.vinyl-disc::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-radial-gradient(
        circle at center,
        rgba(0,0,0,0.2) 0,
        rgba(0,0,0,0.2) 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 1;
}

.vinyl-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    mix-blend-mode: overlay;
}

.track-info {
    text-align: center;
    margin: 20px 0;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    width: var(--progress, 0%);
    border-radius: 3px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 0 16px;
}

#volumeSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all 0.2s;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.lyrics-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 20px, black calc(100% - 20px), transparent);
}

.lyrics-wrapper {
    padding: 60px 0;
}

.lyrics-line {
    padding: 8px 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    margin: 4px 0;
    text-align: center;
}

.lyrics-line:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lyrics-line.active {
    color: var(--primary-color);
    background: rgba(41, 98, 255, 0.1);
    font-weight: 600;
    transform: scale(1.02);
}

.lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ff4444;
    padding: 16px;
    text-align: center;
}

.rotating {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .player-container {
        padding: 16px;
    }
    
    .album-art {
        width: 200px;
        height: 200px;
    }
    
    .track-info h2 {
        font-size: 1.2rem;
    }
    
    .lyrics-container {
        height: 300px;
    }
}


