@charset 'utf-8';
@import url('https://fonts.googleapis.com/css?family=Share:400i,700i');
@import url('bootstrap.min.css');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.cover-site {
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    background: url('../img/background.jpg') no-repeat;
    background-position: center;
    background-size: cover;
    transition: background-image 1s;
    background-position: center;
    background-attachment: fixed;
}

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

.bg-mask {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    background: radial-gradient(rgba(0, 0, 0, .5) 20%, #000 85%);
    z-index: 2;
}

main {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#player {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#player > .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.web-player {
    color: #fff;
    padding: 5px;
    position: relative;
    z-index: 3;
    margin-top: 25px;
    flex-shrink: 0;
}

.cover-album {
    max-width: 80%;
    max-height: 35vh;
    margin: auto;
    background: url('../img/bg-capa.jpg') no-repeat;
    background-size: cover;
    border: 1px solid #383838;
    box-shadow: 0px 5px 10px 3px rgba(0, 0, 0, 0.4);
    transition: background-image 1s;
    margin-bottom: 15px;
    overflow: hidden;
}

.watermark {
    width: 89px;
    height: 35px;
    background: url(../img/logo.png) no-repeat;
    background-size: auto 35px;
    opacity: 0.5;
    position: relative;
    bottom: 36px;
    right: -1px;
    z-index: 5;
}

#currentCoverArt {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s;
}

.logo {
    display: none;
}

.info-current-song {
    font-family: 'Share', sans-serif;
    text-align: center;
}

.info-current-song h2 {
    font-size: 22px;
    font-weight: 700;
}

.info-current-song h3 {
    font-size: 18px;
    font-weight: 400;
}

.progress-wrap {
    margin: 10px 0 5px;
}

.progress-bar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s linear;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
}

.play-pause {
    font-size: 65px;
}

.play-pause i {
    cursor: pointer;
}

.volume-icon {
    font-size: 28px;
    margin-top: -5px;
}

.volume-slide {
    line-height: 35px;
}

.volume-control {
    display: none;
}

.vagalume a {
    color: #fff;
    text-decoration: underline;
}

.lyrics {
    text-transform: uppercase;
    text-decoration: underline;
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    outline: none;
    transition: .3s;
}

.lyrics:active {
    text-decoration: none;
    color: #fff;
}

.lyrics:visited {
    text-decoration: none;
    color: #fff;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff !important;
    border-radius: 0;
}

.modal-content .btn {
    border-radius: 0;
}

/* Chrome */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    background: #fff;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
}

/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    background: #fff;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    border: 0px solid #000000;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* IE e Edge */
input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    border-width: 10px 0;
    top: -10px;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #fff;
    border: 0px solid #000101;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}

input[type=range]::-ms-fill-upper {
    background: #fff;
    border: 0px solid #000101;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}

input[type=range]::-ms-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    border: 0px solid #000000;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}


.connection-status {
    font-size: 12px;
    color: rgba(255, 200, 100, 0.9);
    margin-bottom: 6px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.listeners {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.listeners i {
    margin-right: 4px;
}

#player .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

#player .row {
    margin-left: 0;
    margin-right: 0;
}

.historic {
    position: relative;
    z-index: 3;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.historic h2 {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 15px 0 8px;
    padding-bottom: 6px;
    letter-spacing: 1px;
}

.history-item {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Share', sans-serif;
    font-size: 14px;
}

.history-item:first-child {
    color: rgba(255, 255, 255, 0.95);
}

.history-item:nth-child(n+2) {
    color: rgba(255, 255, 255, 0.6);
}

.history-time {
    flex-shrink: 0;
    width: 45px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.history-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-song {
    font-weight: 700;
    text-transform: uppercase;
}

.history-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

.history-artist {
    font-weight: 400;
}

.history-empty {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    padding: 10px 0;
}

.schedule-link {
    text-align: center;
    padding: 8px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.schedule-link a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-decoration: none;
}

.schedule-link a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Secret Menu (swipe-up sync panel) ── */

.secret-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 100;
    padding: 0 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.secret-menu.open {
    transform: translateY(0);
    visibility: visible;
}

.secret-menu-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 10px auto 15px;
}

.secret-menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: 'Share', sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
}

.secret-menu-row label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.delay-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delay-display {
    font-family: monospace;
    font-size: 22px;
    color: rgba(255, 200, 100, 0.9);
    min-width: 70px;
    text-align: center;
}

.delay-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
}

.delay-btn-sm {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.delay-btn:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.delay-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

@media(max-width: 370px) {
    .cover-album {
        max-width: 100%;
    }
}

@media(max-height: 650px) {
    .web-player {
        margin-top: 5px;
    }

    .cover-album {
        display: none;
    }

    .info-current-song h2 {
        font-size: 18px;
    }

    .info-current-song h3 {
        font-size: 15px;
    }
}

@media(min-width: 576px) {
    .volume-control {
        display: flex;
    }

    .call-lyrics {
        margin-top: 20px;
    }
}

@media(min-width: 768px) {
    main {
        justify-content: center;
    }

    .h1-logo {
        text-align: center;
    }

    .logo {
        display: block;
        z-index: 2;
    }

    .logo img {
        max-width: 200px;
    }

    .web-player {
        height: auto;
        margin-top: 0;
    }

    .cover-album {
        margin: 10px auto;
        min-width: 320px;
        height: 320px;
    }

    .logo img {
        max-width: 300px;
        margin: 65px 0;
    }

    .info-current-song {
        margin-top: 50px;
        text-align: left;
    }

    .volume-control {
        margin-top: 10%;
    }
}