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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
}

.app-container {
    width: 100%;
    max-width: 480px;
}

.player-card {
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Album Art */
.album-art-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
}

.player-card:hover .album-art {
    transform: scale(1.05);
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 24px;
}

.track-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #B6794F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-artist {
    font-size: 16px;
    color: #A3A3A3;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 24px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #A3A3A3;
    margin-bottom: 8px;
    font-weight: 500;
}

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #B6794F 0%, #E0A17D 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.control-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.primary {
    background: rgba(182, 121, 79, 0.2);
    border: 1px solid rgba(182, 121, 79, 0.3);
}

.control-btn.primary:hover {
    background: rgba(182, 121, 79, 0.3);
    border-color: rgba(182, 121, 79, 0.5);
}

.play-btn {
    background: linear-gradient(135deg, #B6794F 0%, #E0A17D 100%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(182, 121, 79, 0.4);
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(182, 121, 79, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.control-btn.secondary {
    color: #A3A3A3;
}

.control-btn.secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.control-btn.active {
    color: #B6794F;
}

/* Volume Control */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.volume-btn {
    background: none;
    border: none;
    color: #A3A3A3;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.volume-btn:hover {
    color: #ffffff;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: #B6794F;
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

/* Playlist */
.playlist {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(182, 121, 79, 0.5) rgba(255, 255, 255, 0.05);
}

.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(182, 121, 79, 0.5);
    border-radius: 3px;
}

.playlist-title {
    font-size: 14px;
    font-weight: 600;
    color: #A3A3A3;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(182, 121, 79, 0.2);
}

.playlist-item.active {
    background: rgba(182, 121, 79, 0.15);
    border-color: rgba(182, 121, 79, 0.4);
}

.playlist-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    font-size: 12px;
    color: #A3A3A3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-duration {
    font-size: 12px;
    color: #A3A3A3;
    font-weight: 500;
}

.playing-indicator {
    width: 16px;
    height: 16px;
    display: none;
    align-items: flex-end;
    gap: 2px;
}

.playlist-item.active .playing-indicator {
    display: flex;
}

.playing-bar {
    width: 3px;
    background: #B6794F;
    border-radius: 2px;
    animation: playing 0.8s ease-in-out infinite;
}

.playing-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes playing {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 16px;
    }
    
    .player-card {
        padding: 24px;
    }
    
    .track-title {
        font-size: 20px;
    }
    
    .play-btn {
        width: 56px;
        height: 56px;
    }
}

/* Accessibility */
button:focus-visible {
    outline: 2px solid #B6794F;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
