html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #050505;
    font-family: Arial, Helvetica, sans-serif;
}

button { font-family: Arial, Helvetica, sans-serif; }
.hidden { display: none !important; }

#app {
    width: 100%;
    height: 100%;
    display: flex;
    background: #050505;
}

#sidebar {
    width: 25%;
    min-width: 300px;
    height: 100%;
    box-sizing: border-box;
    padding: 22px 16px 18px 20px;
    background: #101010;
    color: #fff;
    overflow: hidden;
}

#playerArea {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    background: #050505;
}

#appHeader {
    width: 100%;
    height: 52px;
    overflow: hidden;
    border-bottom: 1px solid #242424;
}

#brand { float: left; height: 34px; }
#brand img {
    display: block;
    width: 150px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

#clock {
    float: right;
    padding-top: 7px;
    color: #aaa;
    font-size: 20px;
}

#viewHeader {
    box-sizing: border-box;
    min-height: 92px;
    padding-top: 18px;
}

#viewTitle {
    min-height: 24px;
    color: #d8d8d8;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

#viewActions { margin-top: 12px; white-space: nowrap; }

.utilityButton {
    min-height: 42px;
    margin-right: 7px;
    padding: 0 15px;
    border: 1px solid #343434;
    border-radius: 5px;
    background: #1b1b1b;
    color: #d0d0d0;
    font-size: 16px;
    cursor: pointer;
}
.utilityButton:hover { background: #242424; border-color: #4a4a4a; color: #fff; }
.utilityButton.keyboardFocus { border-color: #e5e5e5; color: #fff; }

#listShell {
    display: flex;
    width: 100%;
    height: calc(100% - 144px);
    min-height: 260px;
}

#itemViewport {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
    scrollbar-width: none;
}
#itemViewport::-webkit-scrollbar { width: 0; height: 0; }
#itemList { width: 100%; }

.navItem {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin: 0 0 7px 0;
    padding: 15px 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #161616;
    color: #d2d2d2;
    font-size: 19px;
    line-height: 1.1;
    cursor: pointer;
    user-select: none;
}
.navItem:hover {
    background: #1c1c1c;
    border-color: #292929;
    color: #f0f0f0;
}
.navItem.keyboardFocus {
    border-color: #d8d8d8;
    background: #202020;
    color: #fff;
}
.navItem.currentChannel { font-weight: bold; }
.navItem.currentChannel:before {
    content: "●";
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
    vertical-align: 2px;
}
.groupCount { float: right; color: #777; font-size: 15px; font-weight: normal; }

#scrollControls {
    width: 56px;
    height: 100%;
    margin-left: 5px;
    box-sizing: border-box;
}
.scrollButton {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid #343434;
    border-radius: 6px;
    background: #1b1b1b;
    color: #d8d8d8;
    font-size: 22px;
    cursor: pointer;
}
.scrollButton:hover { background: #272727; border-color: #565656; color: #fff; }
.scrollButton:active { background: #333; }

#scrollTrack {
    position: relative;
    width: 12px;
    height: calc(100% - 126px);
    min-height: 70px;
    margin: 7px auto;
    border-radius: 6px;
    background: #1e1e1e;
    overflow: hidden;
}
#scrollThumb {
    position: absolute;
    top: 0;
    left: 2px;
    width: 8px;
    min-height: 28px;
    border-radius: 4px;
    background: #666;
}

#emptyState {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #050505;
}
#emptyLogo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    max-width: 55%;
    height: auto;
    margin-left: -155px;
    margin-top: -65px;
    opacity: 0.18;
}
#emptyText {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin-top: 55px;
    color: #5e5e5e;
    font-size: 19px;
    letter-spacing: 0.2px;
}

#player {
    display: none;
    width: 100%;
    height: 100%;
    border: 0;
    background: #050505;
    pointer-events: auto;
}

@media screen and (max-width: 1100px) {
    #sidebar {
        width: 29%;
        min-width: 275px;
        padding-left: 15px;
        padding-right: 12px;
    }
    #brand img { width: 135px; }
    .navItem {
        min-height: 48px;
        padding: 13px 13px;
        font-size: 17px;
    }
    #scrollControls, .scrollButton { width: 50px; }
    .scrollButton { height: 52px; }
    #scrollTrack { height: calc(100% - 118px); }
}
