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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

/* Player Container */
.player-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Cover Art */
.cover-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-art .placeholder {
    font-size: 80px;
    opacity: 0.3;
}

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

.track-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.progress {
    height: 100%;
    background: #ff2d55;
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

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

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    padding: 10px;
}

.control-btn:hover {
    transform: scale(1.1);
}

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

.control-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: #00686f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn svg {
    width: 28px;
    height: 28px;
}

/* Secondary Controls */
.secondary-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-container svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.shuffle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.shuffle-btn svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.2s;
}

.shuffle-btn.active svg {
    fill: #ff2d55;
}

.shuffle-btn:hover svg {
    fill: #fff;
}

.shuffle-btn.active:hover svg {
    fill: #ff2d55;
}

/* Track List */
.track-list {
    margin-top: 30px;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.track-list::-webkit-scrollbar {
    width: 6px;
}

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

.track-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 12px;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background: rgba(255, 45, 85, 0.2);
}

.track-item-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.track-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-item-cover .mini-placeholder {
    font-size: 20px;
    opacity: 0.3;
}

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

.track-item-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-tracks {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
}

.no-tracks p {
    margin-bottom: 10px;
}

.no-tracks code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .player-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .track-title {
        font-size: 20px;
    }

    .track-artist {
        font-size: 14px;
    }

    .controls {
        gap: 20px;
    }

    .play-btn {
        width: 56px;
        height: 56px;
    }

    .control-btn svg {
        width: 24px;
        height: 24px;
    }
}
