/**
 * Deep Seoul - Releases & Player Styles
 */

/* Releases Container */
.releases {
    margin-bottom: 32px;
}

#releases-container {
    display: flex;
    flex-direction: column;
}

.releases-loading,
.releases-error,
.releases-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.releases-error {
    color: rgba(255, 100, 100, 0.8);
}

/* Release Item */
.release-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.release-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.release-item:last-child {
    border-bottom: none;
}

.release-item.playing {
    background: rgba(0, 212, 255, 0.05);
}

/* Cover */
.release-cover {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
}

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

.release-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
}

/* Play Overlay */
.release-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.release-cover:hover .release-play-overlay,
.release-item.playing .release-play-overlay {
    opacity: 1;
}

.release-play-overlay svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.release-item.playing .release-play-overlay .play-icon {
    display: none;
}

.release-item.playing .release-play-overlay .pause-icon {
    display: block !important;
}

/* Info */
.release-info {
    flex: 1;
    min-width: 0;
}

.release-title {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spotify Link */
.release-spotify-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s, transform 0.2s;
}

.release-spotify-link:hover {
    color: #1DB954;
    transform: scale(1.1);
}

.release-spotify-link svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   Bottom Player Bar (Simplified)
   ======================================== */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.audio-player.hidden {
    transform: translateY(100%);
}

body.player-visible {
    padding-bottom: 68px;
}

.player-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Play Button */
.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #00d4ff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #00e5ff;
}

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

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

.play-btn .icon-play {
    margin-left: 2px;
}

.play-btn .hidden {
    display: none;
}

/* Waveform */
.player-waveform-container {
    flex: 1;
    min-width: 0;
    height: 40px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

#waveform {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Preview label on waveform */
.waveform-label {
    position: absolute;
    top: 2px;
    left: 8px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    pointer-events: none;
}

/* Loading */
.waveform-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.waveform-loading.hidden {
    display: none;
}

.loading-bar {
    width: 50%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: loading-slide 1s ease-in-out infinite;
}

@keyframes loading-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Time */
.player-time {
    font-size: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    flex-shrink: 0;
}

.time-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

/* ========================================
   Mobile
   ======================================== */
@media (max-width: 480px) {
    .release-cover {
        width: 48px;
        height: 48px;
    }

    .release-title {
        font-size: 14px;
    }

    .release-meta {
        font-size: 12px;
    }

    .release-play-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }

    .audio-player {
        padding: 8px 12px;
    }

    body.player-visible {
        padding-bottom: 60px;
    }

    .player-inner {
        gap: 10px;
    }

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

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

    .player-waveform-container {
        height: 36px;
    }

    .player-time {
        font-size: 11px;
    }
}

.hidden {
    display: none !important;
}
