/* 
File: app/code/ProducersFactory/MusicPlayer/view/frontend/web/css/module.css
Converted from _module.less for production use
*/

/* Music Player Styles */
.music-player {
    display: flex;
    flex-direction: row;
    background: #212121;
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .music-player {
        flex-direction: column;
    }
}

/* Artwork section */
.player-artwork {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    background: #1a1a1a;
}

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

.player-artwork .placeholder-artwork {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a, #333333);
}

@media (max-width: 767px) {
    .player-artwork {
        width: 100%;
        height: 100px;
    }
}

/* Player content */
.player-content {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Track info */
.track-info {
    margin-bottom: 10px;
}

.track-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.track-info p {
    margin: 5px 0 0;
    color: #cccccc;
    font-size: 14px;
}

.track-info .track-details {
    font-size: 12px;
    color: #b3b3b3;
}

/* Waveform visualization */
.waveform-container {
    height: 60px;
    margin: 10px 0;
    position: relative;
    cursor: pointer;
}

.waveform-container canvas {
    width: 100%;
    height: 100%;
}

/* Controls section */
.player-controls {
    display: flex;
    flex-direction: column;
}

.controls-main {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Play/pause button */
.btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    transition: all 0.2s ease;
}

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

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

/* Time display */
.time-display {
    color: #9E9E9E;
    font-size: 14px;
    margin-right: 15px;
    min-width: 80px;
}

/* Volume control */
.volume-control {
    flex-grow: 1;
}

.volume-control input[type=range] {
    width: 100%;
    max-width: 200px;
}

.volume-control input[type=range]::-webkit-slider-thumb {
    background: #4CAF50;
}

.volume-control input[type=range]::-moz-range-thumb {
    background: #4CAF50;
}

/* Purchase options */
.purchase-options {
    display: flex;
    align-items: center;
}

.purchase-options .license-selector {
    margin-right: 10px;
}

.purchase-options .license-selector select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #333333;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 14px;
}

.purchase-options .license-selector select option {
    background: #2a2a2a;
    color: #ffffff;
}

/* Buy button */
.btn-buy {
    background: #388e3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-buy:hover {
    background: #4CAF50;
}

.btn-buy:active {
    transform: scale(0.98);
}

/* Preview button on product page */
.music-player-preview {
    margin: 15px 0;
}

.music-player-preview .music-player-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
}

.music-player-preview .music-player-button:before {
    content: "♫";
    margin-right: 5px;
    font-size: 16px;
}

.music-player-preview .music-player-button:hover {
    background: #45a049;
}

/* Error state */
.player-error {
    width: 100%;
    padding: 15px;
    text-align: center;
    color: #f44336;
}

/* Loading state */
.player-loading {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
}

.player-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #9E9E9E;
    border-top-color: transparent;
    border-radius: 50%;
    animation: music-player-spin 1s linear infinite;
}

/* Loading animation */
@keyframes music-player-spin {
    to {
        transform: rotate(360deg);
    }
}