:root{
    --black: HSL(0, 0%, 0%);
    --white: HSL(0, 0%, 100%);
    --white-shaded: HSL(0, 0%, 65%);
    --dark-gray: HSL(0, 0%, 15%);
    --dark-gray-shaded: HSL(0, 0%, 10%);
    --light-gray: HSL(0, 0%, 90%);
    --light-gray-shaded: HSL(0, 0%, 75%);
    --green: HSL(120, 100%, 80%);
    --green-shaded: HSL(120, 35%, 40%);
    --yellow: HSL(53, 100%, 50%);
    --yellow-shaded: HSL(53, 90%, 25%);
    --red: HSL(12, 100%, 50%);
    --red-shaded: HSL(12, 90%, 25%);
    --pink: HSL(323, 100%, 50%);
    --pink-shaded: HSL(323, 90%, 25%);
    --blue: HSL(205, 100%, 50%);
    --blue-shaded: HSL(205, 90%, 25%);
}
*{
    padding:0;
    margin:0;
    border:none;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family:'arial';
    font-weight:700;
    text-wrap: pretty;
}
img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
a,
span{
    font:inherit;
    color:inherit;
    font-size:inherit;
}
body{
    width:100dvw;
    height:100lvh;
    background-color:var(--black);
    overflow:hidden;
    min-height:800px;
}
.hidden{
    display: none !important;
}
body > footer{
    z-index:1000;
    position: absolute;
    bottom:0;
    height:48px;
    width:100%;
    display:flex;
    justify-content: center;
    gap:4px;
    color:var(--white);
    button{
        height:50%;
        padding:0 16px;
        display:inline-block;
        background-color:var(--yellow);
        &:not(:disabled):hover{
            background-color:var(--yellow-shaded);
            cursor: pointer;
        }
    }
    a{
        transition:color 0.25s;
        color:var(--yellow);
        &:not(:disabled):hover{
            color:var(--yellow-shaded);
            cursor: pointer;
        }
    }
    p{
        line-height: 150%;
    }
}
#footer-notices{
    position:relative;
}
#footer-notices p{
    width:20px;
    color:var(--white);
    aspect-ratio: 1 / 1;
    border-radius:999px;
    background-color: var(--red);
    position:absolute;
    top:0;
    right:0;
    transform:translate(50%, -50%);
}
#footer-notices:hover p{
    background-color: var(--red-shaded);
    color:var(--white-shaded);
}
#player{
    position:relative;
    bottom:0;
    background-color:var(--dark-gray);
    border:2px outset var(--black);
    border-radius: 8px 8px 0 0;
    color:var(--white);
    display:flex;
    flex-direction: column;
    width:600px;
    height: fit-content;
    padding:1px 5px 5px 5px;
    gap:5px;
    transition:transform 0.5s ease-in-out;
    transform: translateY(-1px);
    &.open{
        transform: translateY(-80px);
    }
}
#info{
    display:flex;
    gap:5px;
    flex-grow:1;
    font-size: 12px;
    height:96px;
}
#album-cover-wrapper{
    aspect-ratio: 1 / 1;
    background-color:var(--black);
    flex-shrink:0;
    flex-grow:0;
    filter:brightness(0);
    transition:filter 1s ease;
}
.open #album-cover-wrapper{
    filter:brightness(1);
}
#recently-played-wrapper{
    overflow:hidden;
    white-space: nowrap;
}
#recently-played-1{
    background-color:var(--yellow);
    color:var(--black);
    font-weight:900;
}
#recently-played-2,
#recently-played-4{
    background-color:var(--dark-gray-shaded);
}
#recently-played-wrapper button{
    color:var(--black);
    width: 64px;
    padding:0;
    border-radius: 999px;
    margin-right:2px;
}
.song-info{
    display:flex;
    justify-content: stretch;
    gap:2px;
    line-height: 24px;
    width:493px;
    height:23px;
    margin-bottom:1px;
    padding:0 8px;
}
.time{
    display: inline-block;
    width:64px;
}
.title,
.artist{
    display:inline-block;
    font-style:italic;
    width:160px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow:hidden;
}
.vote-button{
    flex-grow:1;
    height: 19px;
    margin-top:2px;
    &:not(:disabled):hover{
        background-color:lightgray;
        cursor:pointer;
    }
    &:disabled{
        background-color:var(--light-gray-shaded);
        color:var(--dark-gray);
    }
}
#player-controls-wrapper{
    height:18px;
    line-height:18px;
    display:flex;
}
#player-controls-wrapper button{
    font-size:16px;
    border-radius:999px;
    padding:0 12px;
    height:18px;
    margin-top:2px;
}
#show-player-button{
    display:block;
}
#hide-player-button{
    display:none;
}
#player.open #show-player-button{
    display:none;
}
#player.open #hide-player-button{
    display:block;
}
#show-player-button,
#hide-player-button{
    width:36px;
}
#tune-in-button,
#mute-button,
#unmute-button,
#show-player-button,
#hide-player-button{
    background-color:var(--blue);
    color:var(--white);
}
#mute-button,
#unmute-button{
    width:96px;
}
#tune-in-button:hover,
#mute-button:hover,
#unmute-button:hover,
#show-player-button:hover,
#hide-player-button:hover{
    background-color:var(--blue-shaded);
    color:var(--white-shaded);
    cursor:pointer;
}
#audio-controls{
    flex-grow:1;
    display:flex;
    justify-content: center;
    height:20px;
}
#volume-controls{
    flex-grow:1;
    display:flex;
    justify-content: center;
    font-size:14px;
    line-height:18px;
}
#volume-display{
    width:42px;
}
#volume-slider{
    flex-grow:1;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 4px;
}
#volume-slider-track{
    flex-grow:1;
    height:4px;
    position: relative;
    background-color:black;
    border-radius:999px;    
}
#volume-slider-handle{
    height:19px;
    width:19px;
    border-radius:999px;
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    left:0%;
    background-color:var(--blue);
}
#volume-slider-handle:hover{
    cursor:pointer;
    background-color:var(--blue-shaded);
}
.vote-button{
    background-color:var(--white);
    &:not(:disabled):hover{
        background-color:var(--white-shaded);
    }
    &:disabled{
        background-color:var(--light-gray-shaded);
        color:var(--dark-gray);
    }
}
.vote-button::before{
    content:"";
    display:inline-block;
    height:16px;
    width:16px;
    background-size:100% 100%;
    position:relative;
    top:2px;
    right:4px;
}
.vote-button.upvote::before{
    background-image:url("/common/images/icon-thumbsup.svg");
}
.vote-button.downvote::before{
    background-image:url("/common/images/icon-thumbsdown.svg");
}
#home{
    z-index:500;
    width:100%;
    height:100%;
    padding:16px;
    padding-bottom:64px;
    display:flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position:absolute;
    top:0;
    transform: translateY(0%);
    transition: transform 1s ease-in-out;
}
#home.hidden{
    z-index:-500;
    transform: translateY(-100%);
    display:flex !important;
}
#logo-wrapper{
    flex-grow:1;
}
#kwpt-logo{
    height:100%;
}
#home>h1{
    color:var(--blue);
    text-align: center;
    text-transform: uppercase;
    font-weight:900;
    font-size:3rem;
    line-height:3rem;
    padding-top:8px;
}
#nav-wrapper{
    display:flex;
    justify-content: center;
    margin-bottom:8%;
    margin-top:3%;
    position:relative;
}
#home nav{
    display:flex;
}
#home nav button{
    display:block;
    aspect-ratio: 1/1;
    background:none;
    color:white;
    position: relative;
}
#home nav button p{
    z-index:50;
    position:relative;
    color:var(--white);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1rem;
}
#home nav button:hover p{ color:var(--white-shaded); }
#home nav button:nth-child(1) p,
#home nav button:nth-child(4) p{
    color:var(--blue);
}
#home nav button:nth-child(1):hover p,
#home nav button:nth-child(4):hover p{
    color:var(--blue-shaded);
}
#home nav button:nth-child(even){
    transform: translateY(100%);
}
#home nav button:nth-child(1) .bg{ background-color: var(--green); }
#home nav button:nth-child(1):hover .bg{ background-color: var(--black); }
#home nav button:nth-child(2) .bg{ background-color: var(--red); }
#home nav button:nth-child(2):hover .bg{ background-color: var(--black); }
#home nav button:nth-child(3) .bg{ background-color: var(--blue); }
#home nav button:nth-child(3):hover .bg{ background-color: var(--black); }
#home nav button:nth-child(4) .bg{ background-color: var(--yellow); }
#home nav button:nth-child(4):hover .bg{ background-color: var(--black); }
#home nav button:nth-child(5) .bg{ background-color: var(--pink); }
#home nav button:nth-child(5):hover .bg{ background-color: var(--black); }

#home nav button:not(:disabled):hover{ cursor: pointer; }

#home nav .bg{
    position:absolute;
    width:125%;
    height:125%;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition:background-color 0.25s ease;
}

#page-wrapper{
    height: 100%;
    padding-bottom:64px;
    overflow-y:hidden;
    display:flex;
    flex-direction: column;
    position: relative;
    z-index:250;
    align-items: center;
}
#page-wrapper-header.up{
    top:-90px;
}
#page-wrapper-header{
    display:flex;
    width:100%;
    height:90px;
    justify-content: center;
    border-bottom: 1px solid var(--white);
    align-items: center;
    position:relative;
    top:0px;
    transition: top 0.5s ease;
    flex-shrink:0;
    img{
        position:absolute;
        top:0;
        left:0;
        height:85px;
    }
}

#page-wrapper nav{
    margin:auto;
    display:flex;
    gap:8px;
    height:100%;
    align-items:center;
    button{
        width:90px;
        height:67%;
        transition:background-color 0.25s ease-out, width 0.25s ease;
        &:not(:disabled):hover{
            background-color:var(--blue);
            cursor:pointer;
        }
        &:disabled{
            background-color:var(--blue-shaded);
            color:var(--white);
            width:120px;
        }
    }
}

.page{
    color:var(--white);
    text-align: center;
    overflow-y:auto;
    height:100%;
    width:728px;
    filter: opacity(100%);
    transition: filter 0.5s ease;
    z-index:750;
}
.page.hidden{
    top:90px;
    position:absolute;
    display:block !important;
    filter:opacity(0%);
    z-index:600;
}

.page section{
    margin:8px;
}

.page section h2{
    background-color:var(--blue);
    width:fit-content;
    margin:auto;
    margin-bottom: 4px;
    padding: 0 16px;
}

table{
    background-color: var(--dark-gray);
    padding:8px;
    border-radius: 4px;
    color:var(--white);
    border-spacing:0;
    margin-top:4px;
    width:100%;
}
tr:nth-child(odd){
    background-color:var(--dark-gray-shaded);
}
.playlist-tr-title,
.playlist-tr-artist{
    text-overflow: ellipsis;
    white-space:nowrap;
    overflow: hidden;
}
td{ display:inline-block; text-align: left; }
td:not(:last-child){ margin-right: 4px; }
.playlist-tr-time{ width: 72px; }
.playlist-tr-title{ width: 224px; }
.playlist-tr-artist{ width: 224px; }
td .vote-button{
    border-radius:999px;
    width:64px;
}
.playlist-tr-title,
.playlist-tr-artist{
    font-style: italic;
}
section:focus{
    .collapsible{ height:100% !important; }
}
.collapsible{
    overflow: hidden;
    height:fit-content;
}
.collapsed{
    height:0 !important;
}
.djs-li:hover{
    cursor: pointer;
    background-color: var(--dark-gray);
}
.djs-img{
    width:128px;
}
.djs-li .row{
    align-items: center;
    display: flex;
    text-align: left;
    gap:8px;
}
.djs-name{
    background-color:var(--blue);
    padding:0 4px;
    width:fit-content;
    margin-bottom:4px;
}

#notice-dialog{
    width:480px;
    height:360px;
    background-color:var(--white);
    border-radius:4px;
    transform: translate(-50%, -50%);
    top:50%;
    left:50%;
    overflow: visible;
    flex-direction: column;
    padding:8px;
    padding-top:16px;
    gap:8px;
}
#notice-dialog::backdrop{
    background-color:rgba(0,0,0,0.75);
}
#notice-dialog[open]{
    display:flex;
}
#notice-wrapper{
    flex-grow:1;
    overflow-y: scroll;
}
#notice-close{
    width:24px;
    height:24px;
    background-color:var(--red);
    border-radius:999px;
    position: absolute;
    top:-8px;
    right:8px;
    color:var(--white);
}
#notice-close:hover{
    background-color:var(--red-shaded);
    color:var(--white-shaded);
    cursor:pointer;
}
#notice-menu{
    flex-shrink:0;
    height:18px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap:4px;
}
#notice-menu button{
    background-color:var(--blue);
    padding:0 16px;
    border-radius: 999px;
    color:var(--white);
    height:18px;
    &:not(:disabled):hover{
        background-color:var(--blue-shaded);
        color:var(--white-shaded);
        cursor:pointer;
    }
}
#schedule-menu button{
    height:24px;
    width:56px;
    padding:0 16px;
    border-radius: 999px;
    background-color:var(--blue);
    color:var(--white);
    transition: background-color 0.25s ease, color 0.25s ease;
    &:not(:disabled):hover{
        background-color:var(--blue-shaded);
        color:var(--white-shaded);
        cursor: pointer;
    }
    &:disabled{
        background-color:var(--blue-shaded);
        color:var(--white-shaded);
    }
}
#schedule-menu{
    margin-top:4px;
}
#lcc div{
    height:160px;
    margin-top:16px;
}
#lcc div a img{
    transition: transform 0.25s ease;
    transform:scale(1.0);
}
#lcc div a:hover img{
    transform:scale(1.1);
}

#mobile-wrapper{
    display:none;
    width:300vw;
    height:100vh;
    transition:left 0.25s ease;
    position:absolute;
    left:-100%;
    top:0;
}
#mobile-wrapper > div{
    flex-grow:1;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: stretch;
    width:100vw;
}
#mobile-wrapper > div > footer{
    height:90px;
    width:100%;
    flex-grow:0;
    flex-shrink:0;
    background-color:var(--black);
    position:relative;
    z-index:50;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
#mobile-wrapper > div > footer > button{
    width:50px;
    height:100%;
}
#mobile-page-wrapper{
    flex-grow:1;
    overflow:hidden;
    position:relative;
    z-index:25;
}
#mobile-listen-live-wrapper,
#mobile-nav-menu{
    flex-grow: 1;
}
#mobile-nav-menu{
    display:flex;
    flex-direction: column;
    gap:8px;
    justify-content: center;
}
#mobile-nav-menu button{
    width:100%;
    display:block;
    font-family: Arial;
    font-weight:900;
    font-size:1.25rem;
}
#mobile-nav-menu button:nth-child(1) { background-color: var(--green); color: var(--blue); }
#mobile-nav-menu button:nth-child(2) { background-color: var(--red); color: var(--white); }
#mobile-nav-menu button:nth-child(3) { background-color: var(--blue); color: var(--white); }
#mobile-nav-menu button:nth-child(4) { background-color: var(--yellow); color: var(--blue); }
#mobile-nav-menu button:nth-child(5) { background-color: var(--pink); color: var(--white); }
#mobile-nav-menu button:nth-child(6) { background-color: var(--green); color: var(--blue); }
#mobile-nav-menu button:nth-child(7) { background-color: var(--red); color: var(--white); }
#mobile-nav-menu button:nth-child(8) { background-color: var(--blue); color: var(--white); }
#mobile-nav-menu button:nth-child(9) { background-color: var(--yellow); color: var(--blue); }
#mobile-nav-menu button:nth-child(10) { background-color: var(--pink); color: var(--white); }



#mobile-nav-menu p{
    color:var(--white);
    text-align: center;
}
#mobile-nav-menu a{
    text-decoration: underline;
}


@media only screen and (orientation: portrait) {
    body{
        min-height: unset;
    }
    #show-player-button,
    #hide-player-button,
    #page-wrapper-header,
    #home nav,
    body>footer{
        display:none;
    }
    #home{
        padding-bottom:16px;
    }
    #home>h1{
        font-size:2rem;
        line-height:2rem;
    }
    #mobile-wrapper{
        display:flex;
    }
    .page{
        width:100%;
    }
    #page-wrapper{
        padding:16px;
    }
    #player{
        width:100%;
        height:100%;
        border:none;
        border-radius:0;
    }
    #info{
        flex-direction: column;
        height:unset;
    }
    #player-controls-wrapper{
        flex-grow:1;
        align-items:center;
    }
    #album-cover-wrapper{
        flex-shrink:0;
        flex-grow:0;
        filter:brightness(1);
    }
    .song-info{
        width:unset;
        height:unset;
    }
    .song-info .upvote::before{
        content:"        ";
    }
    .schedule-button{
        margin-bottom:4px;
    }
    #lcc div{
        height: unset;
        width:100%;
    }
    #lcc div a{
        display:block;
    }
    #lcc div:not(:first-child){
        margin:0;
    }
    #lcc div:not(:first-child) a{
        display:inline-block;
        width: 40%;
    }

    td.playlist-tr-time,
    td.playlist-tr-title,
    td.playlist-tr-artist{
        text-align: center;
        width: 100%;
        text-wrap:auto;
    }
    tr{
        padding:4px 0;
    }
    #mute-button,
    #unmute-button{
        display:none;
    }
}