@import url('https://fonts.googleapis.com/css?family=Share:400i,700i');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Share', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body {
    display: flex;
    flex-flow: row;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Cover */
.cover-site {
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="100" height="100" fill="%23000"/%3E%3C/svg%3E') no-repeat;
    background-position: center;
    background-size: cover;
    transition: background-image 2s;
    background-attachment: fixed;
}

#bgCover {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    background-position: center;
    background-size: cover;
    transition: background-image 2s;
    background-attachment: fixed;
    z-index: 1;
}

.bg-mask {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    background: radial-gradient(rgba(0, 0, 0, .6) 20%, #000 99%);
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Main Container */
main {
    width: 100%;
    position: relative;
    z-index: 3;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Web Player */
.web-player {
    height: 100%;
    color: #fff;
    padding: 5px;
    position: relative;
    z-index: 3;
    margin-top: 25px;
}

.mx-lg-auto {
    margin-left: auto;
    margin-right: auto;
}

.web-player > .col-12:first-child > .row:first-child {
    padding: 30px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Cover Album */
.cover-album {
    max-width: 80%;
    margin: auto;
    margin-bottom: 15px;
    position: relative;
}

#currentCoverArt {
    width: 100%;
    padding-bottom: 100%;
    background: url('data:image/svg+xml,%3Csvg width="320" height="320" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="320" height="320" fill="%231a1a1a"/%3E%3C/svg%3E') no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0px 5px 10px 3px rgba(0, 0, 0, 0.4);
    transition: background-image 1s;
}


/* Info Current Song */
.info-current-song {
    margin-top: 20px;
    text-align: center;
}

.current-song {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Share', sans-serif;
}

.current-artist {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 20px;
    opacity: 0.9;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 20px;
}

.btn-player {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 24px;
}

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

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

/* Play/Pause Icons using CSS */
.btn-player .icon-play {
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.btn-player .icon-pause {
    display: flex;
    gap: 4px;
}

.btn-player .icon-pause::before,
.btn-player .icon-pause::after {
    content: '';
    width: 5px;
    height: 20px;
    background: #fff;
}

/* Volume Control */
.volume-control {
    display: none;
    margin-top: 30px;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.volume-control span {
    font-size: 18px;
}

.volume-slider {
    flex: 0 1 auto; 
    position: relative;
}

.volume-slider input[type="range"] {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

/* WebKit (Chrome, Safari, Edge) */
.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-percentage {
    min-width: 60px;
    text-align: left;
}

/* Historic Section */
.historic {
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.historic h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.historic h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
}

#historicSong {
    margin-top: 20px;
}

.historic article {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cover-historic {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    background: url('data:image/svg+xml,%3Csvg width="95" height="95" xmlns="http://www.w3.org/2000/svg"%3E%3Crect width="95" height="95" fill="%231a1a1a"/%3E%3C/svg%3E') no-repeat;
    background-size: cover;
    border: 1px solid #383838;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-image 1s;
}

.music-info {
    color: #fff;
    font-family: 'Share', sans-serif;
    flex: 1;
    min-width: 0;
}

.music-info .song {
    display: block;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
    word-wrap: break-word;
}

.music-info .artist {
    display: block;
    font-size: 16px;
    opacity: 0.9;
    word-wrap: break-word;
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.slideInRight {
    animation-name: slideInRight;
}

/* Responsive Design */
@media (max-width: 370px) {
    .cover-album {
        max-width: 100%;
    }
    
    .current-song {
        font-size: 24px;
    }
    
    .current-artist {
        font-size: 18px;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .volume-control {
        display: flex;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    body {
        align-items: center;
    }
    
    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .ml-md-auto {
        margin-left: auto;
    }
    
    .web-player {
        height: auto;
        margin-top: 0;
    }
    
    .cover-album {
        margin: 10px auto;
        min-width: 320px;
        height: 320px;
    }
    
    .info-current-song {
        margin-top: 50px;
        text-align: left;
    }
    
    .player-controls {
        justify-content: left;
    }
    
    .volume-control {
        margin-top: 10%;
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    #player .container {
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #player .container {
        max-width: 1200px;
    }
}