/**
 * ============================================
 * TUXPLAYER Theme v4.0 - Music Player Styles
 * Musik-Player mit Cover-Support
 * ============================================
 */

/* Music Archive Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Music Card */
.music-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.4s;
    position: relative;
}

.music-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* Music Cover */
.music-card-cover {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.music-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.music-card:hover .music-card-cover img {
    transform: scale(1.1);
}

.music-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.cover-icon {
    font-size: 4rem;
    opacity: 0.3;
}

/* Music Card Overlay */
.music-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-card:hover .music-card-overlay {
    opacity: 1;
}

.play-overlay {
    font-size: 2rem;
    color: #0a0a0a;
    font-weight: bold;
}

/* Music Card Info */
.music-card-info {
    padding: 1.5rem;
}

.music-card-title {
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.music-card-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.music-card-title a:hover {
    color: #00d4ff;
}

.music-card-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.music-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.genre-tag-small {
    background: #0f0f0f;
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #333;
}

/* Music Card Actions */
.music-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-listen {
    flex: 1;
    background: #00d4ff;
    color: #0a0a0a;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-listen:hover {
    background: #00a8cc;
    transform: translateY(-2px);
}

.btn-download-small {
    background: #333;
    color: #00d4ff;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download-small:hover {
    background: #444;
}

/* Single Music Track Layout */
.music-track-single {
    margin-top: 2rem;
}

.music-track-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #333;
}

/* Cover Section */
.music-cover-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.music-cover-large {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #00d4ff;
}

.music-cover-large img {
    width: 100%;
    height: auto;
    display: block;
}

/* Music Info Section */
.music-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.music-title {
    color: #00d4ff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.release-date {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.music-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.genre-tag {
    background: #0f0f0f;
    color: #00d4ff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid #333;
}

/* Music Player Container */
.music-player-container {
    background: #0f0f0f;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #333;
}

/* Music Player */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-play-btn {
    background: #00d4ff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.player-play-btn:hover {
    background: #00a8cc;
    transform: scale(1.1);
}

.player-play-btn.playing .play-icon {
    display: none;
}

.player-play-btn.playing .pause-icon {
    display: block !important;
}

/* Progress Bar */
.player-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-filled {
    height: 100%;
    background: #00d4ff;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s;
}

.player-time {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Volume Control */
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.volume-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.volume-slider {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 10px;
    outline: none;
}

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

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
}

/* Download Button */
.download-btn {
    background: #333;
    color: #00d4ff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.download-btn:hover:not(.disabled) {
    background: #00d4ff;
    color: #0a0a0a;
}

.download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Streaming Links */
.streaming-links {
    background: #0f0f0f;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.streaming-links h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.streaming-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.streaming-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #333;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.streaming-btn:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.streaming-btn .icon {
    font-size: 1.3rem;
}

/* Music Navigation */
.music-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.music-navigation a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.music-navigation a:hover {
    color: #00a8cc;
}

.nav-back {
    text-align: center;
}

/* Genre Filter */
.music-genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.genre-filter-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    border: 2px solid #333;
    font-weight: bold;
    transition: all 0.3s;
}

.genre-filter-btn:hover, .genre-filter-btn.active {
    background: #00d4ff;
    color: #0a0a0a;
    border-color: #00d4ff;
}

/* Responsive */
@media (max-width: 968px) {
    .music-track-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .music-cover-section {
        position: static;
    }

    .music-title {
        font-size: 2rem;
    }

    .streaming-buttons {
        grid-template-columns: 1fr;
    }

    .music-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .music-grid {
        grid-template-columns: 1fr;
    }

    .music-card-cover {
        height: 300px;
    }

    .genre-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
