body{
    margin:0px;
    padding:0px;
    font-family: 'Times New Roman', Times, serif;
}
body.booting {
    visibility: hidden;
}
body.attract-open {
    overflow: hidden;
}
pre {
    max-height:200px;
    overflow:auto;
}
.player{
    width:100vw;
    height:100vh;
    margin:0px;
    padding:0px;
    display: table-cell;
    vertical-align: middle;
}
.toolbar{
    padding:0px;
    margin-bottom:5px;
    position:fixed;
    top:0px;
    left:0px;
    width:100%;
    line-height: 40px;
}
.toolbar > div {
    display: inline-block;
}
.app-title{
    float:left;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 2px 2px 1px #444, -2px -2px 1px #444, -2px 2px 1px #444, 2px -2px 1px #444;
}
.app-title > img{
    border-radius: 99%;
    background-color: rgba(255,255,255,0.2);
    padding: 3px;
}
.playback-toolbar{
    float:right;
}
#karaoke{
    text-align:center;
    font-size:28pt;
    padding:10px;
    transition: linear .2s;
}
button, input[type="file"]{
    height: 30px;
    border-radius: 7px;
    padding:4px;
    background-color: rgba(255,255,255,0.5);
    transition: linear .5s;
}
button:hover{
    background-color: rgba(255,255,255,0.8);
}
input[type="file"]{
    width: 100%;
}
.footer{
    height:40px;
    text-align: center;
    position: fixed;
    bottom:0px;
    left: 0px;
    width: 100%;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    flex-direction: row;
}
.footer-text{
    margin: 0px;
    width: 100%;
    margin: auto;
}
#songbutton{
    margin:4px;
}
#footer button{
    width: 170px;
}

.dialog{
    text-align: center;
    position: fixed;
    bottom:40px;
    width: 100%;
    transition: linear .4s;
}
.hidden{
    opacity: 0;
    z-index: -1;
}
.visible{
    opacity: 1;
    z-index: 9999;
}
.dialog .dialog-content{
    margin: 20px 20px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 7px;
    max-height: 80vh;
    max-width:400px;
    overflow: auto;
}
.dialog .option{
    width:32%;
    display: inline-block;
    cursor: pointer;
}
.dialog .song{
    cursor:pointer;
    padding: 5px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 9px;
    margin: 4px;
    color: #666;
}
.dialog .song:hover{
    color: #000;
    background-color: rgba(255,255,255,0.8);
}
.dialog .option .karaoke{
    font-size: 20px;
    height:80px;
    
}
.dialog .list-header{
    position:sticky; 
    top:-1px; 
    z-index:9999; 
    background-color: rgba(255,255,255,0.8);
    padding:5px;
    margin:0px;
    border-radius: 9px 9px 0px 0px;
}
.dialog-songs {
    max-width: 440px;
}
.song-search {
    display: block;
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.95);
}
.song-empty {
    padding: 12px;
    color: #666;
}
.song-count {
    font-weight: normal;
    opacity: 0.7;
    font-size: 0.85em;
}
.attract {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 80, 40, 0.35), transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(40, 20, 80, 0.45), transparent 50%),
        linear-gradient(160deg, #1a0a14 0%, #3d1528 40%, #0f1a2e 100%);
    transition: opacity 0.4s ease;
    cursor: pointer;
}
.attract.hidden {
    pointer-events: none;
}
.attract.visible {
    opacity: 1;
    z-index: 10000;
}
.attract-inner {
    text-align: center;
    padding: 2rem;
    animation: attract-pulse 2.4s ease-in-out infinite;
}
.attract-brand {
    margin: 0;
    font-family: "Cooper Black", Cambria, Georgia, serif;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    color: #fff;
    text-shadow: 3px 3px 0 #c23, -1px -1px 0 #400;
    letter-spacing: 0.02em;
}
.attract-tagline {
    margin: 0.6rem 0 1.6rem;
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 3vw, 1.35rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.attract-cta {
    font-size: 1.25rem !important;
    height: auto !important;
    padding: 14px 28px !important;
    border: none;
    border-radius: 10px;
    background: #ff3b4a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 0 #8a1520;
}
.attract-cta:hover {
    background: #ff5562;
}
@keyframes attract-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.error-toast {
    position: fixed;
    top: 48px;
    right: 8px;
    max-width: 40vw;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px;
    font-size: 11px;
    z-index: 10001;
    white-space: pre-wrap;
}

.fb-share-button{
    vertical-align: super;
}

#position{
    width: 18vw;
    min-width: 130px;
}
#time{
    padding:8px;
    display: inline-block;
    text-align: center;
    width: 50px;
}
@media (min-width:1000px){
    button{
        font-size: 22px !important;
        height: 35px;
    }
    #karaoke{
        font-size: 50px !important;
    }
    .footer{
        font-size: 26px !important;
    }
}

@media (max-width:767px){
    .toolbar{
        margin:0px;
    }
    input[type="file"]{
        width:90%;
    }
    .app-title{
        width: 99%;
    }
    .playback-toolbar{
        width:99%;
    }
    .toolbar > div {
        display: block;
        text-align: center;
    }
    .footer-text{
        font-size: 12px;
    }
    #karaoke{
        font-size: 30px !important;
    }
    .footer{
        font-size: 16px !important;
    }
    #position{
        width: 30vw;
    }
}

@media (max-width:479px){
    #position{
        width: 60vw;
    }
}
