/* Detail Song Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.container-detail-song {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
}

.music-player-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 1200px; 
    margin: 0 auto 20px auto; 
}


.album-cover {
    width: 200px;        
    height: 200px;       
    border-radius: 12px;  
    object-fit: cover;
    margin: 0 auto 25px; 
    display: block;      
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.song-header {
    margin-bottom: 30px;
}

.song-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.artist-name {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

.music-controls {
    margin-bottom: 20px; /* BARU */
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.2rem;    
    color: #6c757d;        
    cursor: pointer;
    padding: 8px;          
    border-radius: 50%;
    width: 40px;         
    height: 40px;       
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease; 
}

.play-btn {
    background: #007bff;
    color: white;
    font-size: 1.5rem;    
    width: 50px;          
    height: 50px;          
}

.player-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}


.control-btn:hover, .play-btn:hover {
    background-color: #0056b3;
    color: white;
    transform: scale(1.1);
}

.review-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.rating-bar-container {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 10px;
}

.rating-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.percentage {
    width: 35px;
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
}

.progress-container {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;          
    border-radius: 3px;    
    background: #e9ecef;
    outline: none;
    cursor: pointer;
    appearance: none;     
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

.progress-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
}

.no-audio-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-bottom: 20px;
    max-width: 1200px; 
    margin: 0 auto 20px auto; 
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

/* Button Container untuk membuat tombol sejajar */
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.buy-btn {
    flex: 1;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.add-to-cart-btn {
    flex: 1;
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
}

.price-section {
    text-align: center;
    margin-bottom: 15px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
}

.btn-add-cart {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-sold-out, .btn-unlisted {
    width: 100%;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Description */
.description-content {
    line-height: 1.6;
}

.description-text {
    color: #495057;
    margin-bottom: 15px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: #0056b3;
}

/* Rating Section */
.rating-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overall-rating {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffc107;
    display: block;
    margin-bottom: 10px;
}

.stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 10px;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.star-label {
    width: 15px;
    text-align: center;
    font-weight: 500;
}

.rating-bar-item i {
    color: #ffc107;
    width: 15px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.rating-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.percentage {
    width: 30px;
    text-align: right;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Lyrics Section */
.lyrics-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.lyrics-content {
    position: relative;
}

.lyrics-text {
    line-height: 1.8;
    color: #495057;
    white-space: pre-line;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.report-btn {
    position: absolute;
    top: -10px;
    right: 0;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Legal Section */
.legal-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    max-width: 1200px; 
    margin: 0 auto 30px auto; 
}

.legal-documents {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.document-name {
    font-weight: 500;
    color: #2c3e50;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Recommended Section - Similar Songs */
.recommended-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.similar-song-section {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.similar-song-section:hover {
    transform: translateY(-5px);
}

.product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 15px;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 5px;
}

.product-artist {
    font-size: 0.85rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .song-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .album-cover {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    .song-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .artist-name {
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr; /
    }

    .song-info-cards {
        gap: 12px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .recommended-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0px 10px;
    }
    
    .song-detail-container,
    .info-card,
    .lyrics-section,
    .legal-section,

    .player-buttons {
        gap: 15px;
    }
    
    .control-btn, .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-details {
        padding: 10px;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}