/* MP3 Store CSS */

/* Container */
.mp3-upload-container,
.mp3-store-container,
.my-mp3s-container {
    background: #111b21;
    border-radius: 12px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.mp3-upload-header,
.mp3-store-header,
.my-mp3s-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00a884;
}

.mp3-upload-header h2,
.mp3-store-header h2,
.my-mp3s-header h2 {
    color: #e9edef;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.mp3-upload-header h2 i,
.mp3-store-header h2 i,
.my-mp3s-header h2 i {
    color: #00a884;
    margin-right: 10px;
}

.mp3-upload-header p,
.my-mp3s-header p {
    color: #8696a0;
    margin: 0;
}

.mp3-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp3-store-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-round:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
}

.mp3-store-balance {
    background: #202c33;
    padding: 10px 20px;
    border-radius: 20px;
    color: #00a884;
    font-size: 18px;
    font-weight: bold;
}

.mp3-store-balance i {
    margin-right: 8px;
}

/* Upload Form */
.mp3-upload-form-wrapper {
    background: #202c33;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e9edef;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #00a884;
    margin-right: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background: #111b21;
    border: 1px solid #2a3942;
    border-radius: 8px;
    color: #e9edef;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-info {
    background: #111b21;
    border: 2px dashed #2a3942;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
}

.file-upload-wrapper:hover .file-upload-info {
    border-color: #00a884;
    background: rgba(0, 168, 132, 0.05);
}

.file-upload-info i {
    font-size: 48px;
    color: #00a884;
    margin-bottom: 15px;
    display: block;
}

.file-upload-text {
    display: block;
    color: #e9edef;
    font-size: 16px;
    margin-bottom: 8px;
}

.file-upload-limit {
    display: block;
    color: #8696a0;
    font-size: 13px;
}

/* Buttons */
.btn-upload-mp3 {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload-mp3:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
}

.btn-upload-mp3 i {
    margin-right: 8px;
}

/* MP3 List */
.mp3-list,
.mp3-store-list,
.my-mp3s-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mp3-item {
    background: #202c33;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    min-width: 0;
}

.mp3-item:hover {
    background: #2a3942;
    transform: translateX(5px);
}

.mp3-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.mp3-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mp3-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp3-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.mp3-details {
    flex: 1;
}

.mp3-title {
    color: #e9edef;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.mp3-album {
    color: #8696a0;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mp3-album i {
    font-size: 12px;
}

.mp3-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp3-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mp3-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp3-author-name {
    color: #8696a0;
    font-size: 13px;
}

.mp3-duration {
    color: #667781;
    font-size: 12px;
    margin-left: auto;
    font-family: monospace;
}

.mp3-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.mp3-price {
    background: #111b21;
    padding: 8px 15px;
    border-radius: 20px;
    color: #00a884;
    font-weight: 600;
    white-space: nowrap;
}

.mp3-price i {
    margin-right: 5px;
}

.btn-edit-mp3,
.btn-delete-mp3,
.btn-buy-mp3,
.btn-download-mp3 {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit-mp3 {
    background: #00a884;
    color: white;
}

.btn-edit-mp3:hover {
    background: #06cf9c;
    transform: scale(1.05);
}

.btn-delete-mp3 {
    background: #dc2626;
    color: white;
}

.btn-delete-mp3:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.btn-buy-mp3 {
    background: #00a884;
    color: white;
}

.btn-buy-mp3:hover {
    background: #06cf9c;
    transform: scale(1.05);
}

.current-cover-preview {
    margin-bottom: 15px;
}

.current-cover {
    background: #202c33;
    padding: 15px;
    border-radius: 8px;
}

.current-cover p {
    color: #8696a0;
    margin: 0 0 10px 0;
    font-size: 13px;
}

.btn-download-mp3 {
    background: #111b21;
    color: #00a884;
    border: 2px solid #00a884;
}

.btn-download-mp3:hover {
    background: #00a884;
    color: white;
}

.mp3-purchased-badge {
    background: #00a884;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.mp3-purchased-badge i {
    margin-right: 5px;
}

.mp3-purchased-date {
    color: #8696a0;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mp3-purchased-date i {
    font-size: 11px;
}

/* Filters */
.mp3-store-filters,
.my-mp3s-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mp3-search {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.mp3-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8696a0;
}

.mp3-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: #202c33;
    border: 1px solid #2a3942;
    border-radius: 8px;
    color: #e9edef;
    font-size: 15px;
}

.mp3-search input:focus {
    outline: none;
    border-color: #00a884;
}

.mp3-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp3-sort label {
    color: #8696a0;
    font-size: 14px;
    white-space: nowrap;
}

.mp3-sort select {
    padding: 12px 15px;
    background: #202c33;
    border: 1px solid #2a3942;
    border-radius: 8px;
    color: #e9edef;
    font-size: 15px;
    cursor: pointer;
}

.mp3-sort select:focus {
    outline: none;
    border-color: #00a884;
}

/* Loading */
.mp3-loading {
    text-align: center;
    padding: 60px 20px;
    color: #8696a0;
    font-size: 18px;
}

.mp3-loading i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #00a884;
}

/* Empty State */
.mp3-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8696a0;
}

.mp3-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: #2a3942;
}

.mp3-empty h3 {
    color: #e9edef;
    margin-bottom: 10px;
}

/* Author Info */
.mp3-author {
    color: #00a884;
    font-size: 13px;
    margin-top: 3px;
}

.mp3-author i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .mp3-upload-container,
    .mp3-store-container,
    .my-mp3s-container {
        padding: 20px;
    }
    
    .mp3-store-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .mp3-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .mp3-store-filters,
    .my-mp3s-filters {
        flex-direction: column;
    }
    
    .mp3-search {
        width: 100%;
    }
}

/* Audio Player */
.mp3-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111b21;
    border-top: 3px solid #00a884;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mp3-player {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mp3-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.mp3-player-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp3-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp3-player-cover i {
    font-size: 24px;
    color: white;
}

.mp3-player-details {
    flex: 1;
}

.mp3-player-title {
    color: #e9edef;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.mp3-player-artist-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp3-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.mp3-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp3-player-artist {
    color: #8696a0;
    font-size: 13px;
}

.mp3-player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mp3-player-prev,
.mp3-player-next {
    background: #00a884;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mp3-player-prev:hover:not(:disabled),
.mp3-player-next:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.4);
}

.mp3-player-prev:disabled,
.mp3-player-next:disabled {
    cursor: not-allowed;
}

#mp3-audio-player {
    flex: 1;
    height: 40px;
}

.mp3-player-close {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
}

.mp3-player-close:hover {
    color: #dc2626;
    transform: scale(1.2);
}

.btn-play-mp3 {
    background: #00a884;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-play-mp3:hover {
    background: #06cf9c;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .mp3-player {
        flex-direction: column;
        gap: 15px;
    }
    
    .mp3-item {
        justify-content: flex-start;
    }
    
    .mp3-actions {
        margin-left: auto !important;
    }
}

/* Modal */
.mp3-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mp3-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mp3-modal {
    background: #111b21;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mp3-modal-overlay.active .mp3-modal {
    transform: scale(1);
}

.mp3-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mp3-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #e9edef;
    margin-bottom: 15px;
}

.mp3-modal-message {
    font-size: 16px;
    color: #8696a0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.mp3-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mp3-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.mp3-modal-btn-confirm {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
}

.mp3-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
}

.mp3-modal-btn-cancel {
    background: #202c33;
    color: #e9edef;
    border: 2px solid #2a3942;
}

.mp3-modal-btn-cancel:hover {
    background: #2a3942;
    border-color: #00a884;
}

@media (max-width: 480px) {
    .mp3-modal {
        padding: 30px 20px;
    }
    
    .mp3-modal-buttons {
        flex-direction: column;
    }
    
    .mp3-modal-btn {
        width: 100%;
    }
}

/* Upload Modal */
.mp3-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp3-upload-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

.mp3-upload-modal-content {
    position: relative;
    background: #111b21;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mp3-upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #2a3942;
}

.mp3-upload-modal-header h2 {
    margin: 0;
    color: #e9edef;
    font-size: 24px;
}

.mp3-upload-modal-close {
    background: none;
    border: none;
    color: #8696a0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.mp3-upload-modal-close:hover {
    color: #e9edef;
}

.mp3-upload-modal-body {
    overflow-y: auto;
    padding: 30px;
}

.mp3-upload-modal-body .mp3-upload-header {
    display: none;
}

.mp3-upload-modal-body .mp3-upload-container {
    background: transparent;
    padding: 0;
}

