/* Music-specific styles - similar to blog but with music controls */
* {
    box-sizing: border-box;
}

.music-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    margin: auto;
    width: min(50%, 95%);
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Search container uses same grid structure as parent */
.search-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    padding: 20px 0;
}

.search-container form {
    grid-column: 2;
}

.search-box {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Roboto Mono', sans-serif;
    font-size: 14px;
    width: 50%;
    margin-left: auto;
    transition: all 0.3s ease;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-left: 0;
}

.track-item {
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    padding: 6%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Music Controls */
.track-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

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

.track-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
}

.track-time {
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto Mono', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Track Info */
.track-info {
    flex: 1;
}

.track-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.track-title:hover {
    color: rgba(255, 255, 255, 0.8);
}

.track-artist {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.track-meta {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.track-tags {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 8px;
}

.track-description {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-top: 10px;
}

.no-tracks {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto Mono', sans-serif;
}

/* Search results spans full width */
.search-results {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.9rem;
}

.clear-search {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.8rem;
}

.clear-search:hover {
    color: white;
}

/* Individual track page styles */
.track-container {
    width: min(600px, 90%);
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    margin-bottom: 40px;
}

.track-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.track-container .track-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.track-container .track-artist {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.track-container .track-meta {
    margin-bottom: 10px;
}

.track-container .track-tags {
    margin-bottom: 0;
}

/* Audio Player Styles */
.audio-player {
    margin: 30px 0;
    text-align: center;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

/* Custom audio player styling for webkit browsers */
.audio-player audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.track-container .track-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin: 30px 0;
    text-align: left;
}

.navigation {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Roboto Mono', sans-serif;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: white;
}

/* Loading states */
.track-item.loading .play-btn {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.track-item.loading .progress-fill {
    background: rgba(255, 255, 255, 0.4);
}

/* Playing state */
.track-item.playing {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.track-item.playing .play-btn {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-container {
        padding: 15px 0;
        grid-template-columns: 1fr 1fr;
        gap: 3%;
    }

    .search-box {
        width: 70%;
        margin-left: auto;
    }
    
    .search-box:focus {
        width: 100%;
        margin-left: 0;
    }

    .music-container {
        grid-template-columns: 1fr 1fr;
        width: min(90%, 95%);
        gap: 3%;
        padding: 5px;
    }

    .track-item {
        padding: 4%;
        margin-bottom: 15px;
    }
    
    .track-controls {
        gap: 10px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .track-container {
        width: min(600px, 85%);
        padding: 20px;
    }

    .track-container .track-title {
        font-size: 1.6rem;
    }
    
    .track-container .track-artist {
        font-size: 1.1rem;
    }

    .track-title {
        font-size: 1.2rem;
    }
    
    .track-artist {
        font-size: 1rem;
    }

    .track-meta, .track-tags, .track-description {
        font-size: 0.85rem;
    }
    
    .navigation a {
        display: block;
        margin: 10px 0;
    }

    .audio-player audio {
        height: 50px;
    }
}