/* 
 * Music
 */
.winamp-carousel {
    margin-bottom: 2rem;
    max-width: 450px;
    min-width: 300px;
}

.winamp-header {
    text-align: center;
    font-size: 0.875rem;
    font-weight: bold;
    color: #EEE;
	font-family: Arial, sans-serif;
    font-variant: small-caps;
	text-shadow: 0 0 2px #DDD;    
    height: 20px;
    display: flex;
    cursor: default;
}
.winamp-header div {
    padding: 0 0.5rem;
}
.winamp-header:not(:first-child) {
    border-top: 2px groove #666;
}
.winamp-header-bar { 	    
    background-color: transparent;
    background-position-x: 0px;
    background-position-y: 5px;
    background-repeat: repeat-x;
    background-size: auto;       
    border-radius: 20px;
    background-image: url("../img/music/winamp-header.png");
    flex: 1;
    padding: 0;
}

.winamp-box {    
    padding: 0 0.5rem;
    background: linear-gradient(to right, 
        rgba(20, 20, 20, 1) 0%, 
        rgba(50, 50, 80, 1) 40%, 
        rgba(50, 50, 80, 1) 60%, 
        rgba(20, 20, 20, 1) 100%);         
    border-top: 1px solid #666;
    border-right: 2px solid #111;;
    border-left: 1px solid #666;
    border-bottom: 2px solid #111;
    box-shadow:
        inset 1px 1px 0 #666,
        inset -1px -1px 0 #111,
        0 0 8px rgba(17, 17, 17, 0.8);
}

.winamp-text-bg {
    background-color: #000;
    border-right: 2px groove #666;
    border-bottom: 2px groove #666;
    padding: 2px 4px;
}
.winamp-text-white {
    color: #CCC;
	font-family: Arial, sans-serif;
	text-shadow: 0 0 4px #CCC;
}
.winamp-text-green {
    color: #00D600;
	font-family: Arial, sans-serif;
	text-shadow: 0 0 4px #00D600;
}

.winamp-player {
	height: 128px;
	padding: 5px;
    cursor: default;
}
.winamp-player-top {
    width: 100%;
    height: 76px;
    display: flex;
}

.audio-box {
    width: 144px;
    height: 76px;
    display: flex;
    margin-right: 10px;
    white-space: nowrap;
    background-color: #000;
    background-image: radial-gradient(circle at 1px 1px, #222 1px, transparent 0);
    background-size: 5px 5px; 
}
.audio-box-letters {
    width: 16px;
    height: 76px;
    background: transparent;
    overflow: hidden;
	font-size: 11px;
	font-family: monospace;
	font-weight: bold;
	color: #666;
	line-height: 15px;
    text-align: center;    
}
.audio-box-right {
    width: 128px;
    height: 76px;
    background: transparent;    
}

.audio-box-time {
    height: 60%;
    width: 100%;
    text-align: end;
    font-size: 28px;
}
.audio-box-time span:nth-child(1) {
    top: -5px;
    position: relative;
}
.audio-box-time span:nth-child(2) {
    top: 5px;
    position: relative;    
    left: -10px;
    color: #B60000;
	text-shadow: 0 0 4px #B60000;    
}
.audio-box-time span:nth-child(3) {
    left: -5px;
    position: relative;    
}

.audio-box-bars {
    height: 40%;
    width: 100%;
    gap: 4px;
    display: flex;
    align-items: flex-end; /* grow from bottom */
    padding-bottom: 8px;
}
.audio-box-bars .bar {
    width: 8px;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(150, 150, 150, 1) 10%, 
        rgba(0, 0, 0, 1) 10%, 
        rgba(0, 0, 0, 1) 20%, 
        rgba(220, 110, 25, 1) 20%, 
        rgb(255, 238, 0) 40%, 
        rgba(0, 255, 34, 1) 100%);
    animation: bounce 1s ease-in-out infinite alternate;
    transform-origin: bottom; /* grow from bottom */
}

.audio-box-bars .bar:nth-child(1) { animation-duration: 1.0s; animation-delay: 0.2s; }
.audio-box-bars .bar:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.1s; }
.audio-box-bars .bar:nth-child(3) { animation-duration: 1.1s; animation-delay: 0.1s; }
.audio-box-bars .bar:nth-child(4) { animation-duration: 0.9s; animation-delay: 0.0s; }
.audio-box-bars .bar:nth-child(5) { animation-duration: 0.8s; animation-delay: 0.2s; }
.audio-box-bars .bar:nth-child(6) { animation-duration: 1.1s; animation-delay: 0.0s; }
.audio-box-bars .bar:nth-child(7) { animation-duration: 1.0s; animation-delay: 0.2s; }
.audio-box-bars .bar:nth-child(8) { animation-duration: 1.0s; animation-delay: 0.3s; }
.audio-box-bars .bar:nth-child(9) { animation-duration: 1.2s; animation-delay: 0.4s; }
.audio-box-bars .bar:nth-child(10) { animation-duration: 1.2s; animation-delay: 0.0s; }

@keyframes bounce {
    from { transform: scaleY(0.1); }
    to { transform: scaleY(1); }
}

.song-box {
    width: 100%;
}
@media only screen and (max-width: 450px) {
    .song-box {
        max-width: 144px;
    }
}
.song-box div {
    font-size: 14px;  
    line-height: 21px;
    white-space: nowrap;
    overflow: hidden;
}

.song-box-title {     
    font-size: 14px;  
}

.song-box-top {                       
    display: flex;
    margin: 2px 0 5px 0;
}
.song-box-top-left {    
    margin-right: 32px;
}
.song-box-top-right {
    flex: 1;
    margin-left: auto;
    text-align: end;
    font-size: 0.8rem;
}

.song-box-bottom {
    display: flex;
    height: 24px;
}

.song-box-orange-bar {
    border-radius: 20px;
    width: 35%;
    margin-right: 10px;
    min-width: 80px;
    background-color: transparent;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(20, 20, 20, 1) 25%, 
        rgba(220, 110, 25, 1) 50%, 
        rgba(220, 110, 25, 1) 70%, 
        rgb(150, 150, 150) 75%,
        rgba(0, 0, 0, 0) 80%);     
}
.song-box-orange-bar img {
    height: 20px;
    margin: 2px 0 0 60%;
}

.song-box-green-bar { 
    border-radius: 20px;
    width: 25%;
    margin-right: 10px;
    min-width: 45px;
    background-color: transparent;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(20, 20, 20, 1) 25%, 
        rgba(20, 140, 10, 1) 50%, 
        rgba(20, 140, 10, 1) 70%, 
        rgb(150, 150, 150) 75%,
        rgba(0, 0, 0, 0) 80%);     
}
.song-box-green-bar img {
    height: 20px;
    margin: 2px 0 0 30%;
}

.song-box-btns {
    flex: 1;
    margin-left: auto;
    text-align: end;    
}
.song-box-btns .led-btn {
    display: inline-block;
    width: 32px;
    background-color: #DDD;      
    color: #222;
    text-shadow: 0 0 1px #222;        
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    border-top: 1px solid #666;
    border-right: 2px solid #111;
    border-left: 1px solid #666;
    border-bottom: 2px solid #111;
    box-shadow:
        inset 1px 1px 0 #666,
        inset -1px -1px 0 #111,
        0 0 8px rgba(17, 17, 17, 0.8);    
}
.song-box-btns .led-on {
    color: #00D600;
    text-shadow: 0 0 4px #00D600;
}
.song-box-btns .led-off {
    color: #000;
    text-shadow: 0 0 4px #000;
}

.controls-container {
    width: 100%;
    height: 32px;
    margin-top: 10px;
}
.controls-container > * {
    position: relative;
    display: inline-block;
}

.carousel-control-prev, 
.carousel-control-next {
    width: 32px;    
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 32px;
    height: 32px;
    background-image: url("../img/music/winamp-buttons.png");    
    background-size: 160px;
    display: inline-block;        
}
.carousel-control-prev-icon {
    background-position: 0 0; 
}
.carousel-control-next-icon {
    background-position: -128px 0; 
}

.controls-container img.winamp-logo {
    width: 24px;
    height: 24px;
    float: right;    
    margin-top: 4px;
}

.controls-container .button-glow-up {
    animation: pulse-glow 2s infinite;    
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px 0 rgba(255, 240, 205, 0.7); }
    70% { box-shadow: 0 0 5px 10px rgba(30, 30, 50, 0.1); }
    100% { box-shadow: 0 0 5px 0 rgba(30, 30, 50, 0.1);  }
}

.carousel-indicators {
    margin: 0;
    background-color: transparent;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(20, 20, 20, 1) 55%, 
        rgba(30, 30, 50, 1) 65%, 
        rgba(30, 30, 50, 1) 75%, 
        rgb(150, 150, 150) 75%,
        rgba(0, 0, 0, 0) 80%);     
}
.carousel-indicators > button {
    width: 36px !important;
}
.carousel-indicators button:not(.active) {
    background: transparent;
}
.carousel-indicators button.active {
    background: transparent;
    background-image: url("../img/music/winamp-slider-gold.png");
    background-size: 36px;
    background-repeat: no-repeat;
    background-position-y: -6px;
}

.winamp-playlist {
    margin-bottom: 0.5rem;
}

.carousel-inner {
    padding-top: 0.5rem;
}

.carousel-item {
    height: 19rem;      
    border: 2px groove #666;   
    font-size: 0.875rem;
}
.carousel-item ol {
    padding: 0 0.25rem;
}
.carousel-item ol li {
    list-style: unset;
    display: flex;
}
.carousel-item ol li span:last-child {
    margin-left: auto;
}