.sidebarPage
{
    padding-top: 6px;
}

.sidebarItemIcon
{
    width: 40px;
    height: 40px;
}

#content
{
    overflow-y: hidden;
}

#player
{
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 350px;
}

#ready
{
    background-image: var(--svg-yt);
    background-position: 50% 10%;
    background-repeat: no-repeat;
    background-size: 80%;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 30px));
    color: black;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    filter:  invert(1);
    opacity: 0.65;
}

#ready > div
{
    margin-top: 250px;
    opacity: 0.6;
}

#ready > div > div
{
    margin-top: 6px;
}

#ready > div > div:last-child
{
    font-size: 40px;
    margin-top: 6px;
    opacity: 0.55;
}

@keyframes breathe
{
    0%   { transform: translate3d(0px, 0px, 0) rotate(0.02deg); }
    50%  { transform: translate3d(3px, 0px, 0) rotate(0.02deg); }
    100% { transform: translate3d(0px, 0px, 0) rotate(0.02deg); }
}

.playing
{
    background-image: var(--svg-play);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0;
    width: 16px;
    height: 20px;
    display: none;
    contain: strict;
}

.mediaBox.current
{
    position: relative;
    font-weight: bold;
    background-color: var(--active-accent-color);
}

.mediaBox.current .playing
{
    position: absolute;
    right: 10px;
    bottom: 6px;
    display: block;
    opacity: 0.8;
    animation-name: breathe;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-direction: reverse;
}

.mediaBox.current > div:last-child > div:nth-child(1)
{
    color: var(--color-dark-text);
}

.mediaBox.current > div:last-child > div:nth-child(2)
{
    color: var(--color-dark-alt-text);
}

.ppn
{
    font-size: 0px;
    height: 100%;
    align-items: center;
    padding-left: 10px;
}

#custbtns
{
    position: absolute;
    right: 10px;
    bottom: 6px
}

.ppn > div:nth-child(1), .ppn > div:nth-child(2), .ppn > div:nth-child(3),
#custbtns > div
{
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: 20px;
    margin: 6px;
    position: relative;
}

.ppn > div:nth-child(1) > div, .ppn > div:nth-child(2) > div, .ppn > div:nth-child(3) > div,
#custbtns > div > div
{
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 40%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.65;
    filter: invert(1);
}

.ppn > div:nth-child(1) > div
{
    background-image: var(--svg-pnext);
    transform: translate(-50%, -50%) scaleX(-1);
}

.ppn.ppnPlaying > div:nth-child(2) > div
{
    background-image: var(--svg-pause);
    background-position: 52% 50%;
    background-size: 35%;
}

.ppn.ppnPaused > div:nth-child(2) > div
{
    background-image: var(--svg-play);
    background-position: 60% 50%;
}

.ppn > div:nth-child(3) > div
{
    background-image: var(--svg-pnext);
}

#custbtns > div:nth-child(1) > div
{
    background-image: var(--svg-connect);
    background-size: 47%;
}

#custbtns > div:nth-child(2) > div
{
    background-image: var(--svg-love);
}

#custbtns > div:nth-child(3) > div
{
    background-image: var(--svg-playlist);
}

#meta
{
    overflow: hidden;
    z-index: 0;
}

#title
{
    font-size: 20px;
    color: var(--color-light-text);
    margin: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#alt
{
    font-size: 16px;
    color: var(--color-light-alt-text);
    margin: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#indicator
{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    margin-top: -10px;
    /*height: 20px;
    background-color: var(--active-accent-color);*/
    /*filter: drop-shadow(0px -20px 35px var(--active-accent-color));*/
    /*transform: scale(0, 0.1);
    transform-origin: 0% 0%;
    transition: 200ms linear;*/
}

#indicatorBd
{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: 0% 0%;
    transition: 200ms linear;
    z-index: -1;
}

#playerbar
{
    align-items: center;
}

#playerbar > hr
{
    display: none;
    border-top-color: black;
    opacity: 0.5;
    width: 95%;
}

#list
{
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    contain: strict;
}

#list > .mediaBox,
#playlist > .mediaBox
{
    opacity: 0;
    transition: 100ms ease-in-out;
}

#playlist
{
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    contain: strict;
}

#playlistContainer
{
    filter: drop-shadow(var(--shadow));
    transition: 150ms ease-in-out;
    transform: translateY(0);
    width: 600px;
    height: 400px;
    overflow: hidden;
    position: absolute;
    bottom: 0px;
    right: 10px;
    background-color: var(--color-dark4);
    border: 1px solid var(--color-border-dark);
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px);
    z-index: 2;
}

#bottomMask
{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--color-dark4);
    z-index: 0;
}

.slider > div:nth-child(2) > div > div
{
    border: 1px solid var(--color-border-dark);
}

.slider > div:nth-child(2) > div
{
    transform: scale(0);
    transform-origin: 50% 50%;
    transition: 100ms ease-in-out;
}

.slider > div:nth-child(2) > div > div
{
    background-color: var(--active-accent-color);
}

.slider:hover > div:nth-child(2) > div
{
    transform: scale(1);
}

.multiItem
{
    text-align: right;
    padding-left: 10px;
    padding-right: 10px;
}

.multiItem > div > div
{
    padding: 10px;
    display: inline-block;
    position: relative;
    min-height: 16px;
    min-width: 20px;
    border: 1px solid black;
    margin-left: -1px;
}

.multiItem > div > div:first-child
{
    border-radius: 10px 0px 0px 10px;
}

.multiItem > div > div:last-child
{
    border-radius: 0px 10px 10px 0px;
}

.multiItem > div > div:first-child:last-child
{
    border-radius: 10px;
    min-width: 16px;
}

.multiItem > div > div.remove
{
    background-color: rgba(100, 100, 100, 0.2);
}

.multiItem > div > div.remove:hover
{
    background-color: rgba(100, 100, 100, 0.8);
}

.multiItem > div > div.remove > div
{
    background-size: 40%;
    background-image: var(--svg-close);
}

.multiItem > div > div.loved
{
    background-color: rgba(200, 0, 0, 0.2);
}

.multiItem > div > div.loved:hover
{
    background-color: rgba(200, 0, 0, 0.7);
}

.multiItem > div > div.loved > div
{
    background-image: var(--svg-stat-love);
}

.multiItem > div > div.liked
{
    background-color: rgba(200, 0, 155, 0.2);
}

.multiItem > div > div.liked:hover
{
    background-color: rgba(200, 0, 155, 0.7);
}

.multiItem > div > div.liked > div
{
    background-image: var(--svg-stat-like);
}

.multiItem > div > div.maybe
{
    background-color: rgba(235, 240, 255, 0.2);
}

.multiItem > div > div.maybe:hover
{
    background-color: rgba(235, 240, 255, 0.7);
}

.multiItem > div > div.maybe > div
{
    background-image: var(--svg-stat-maybe);
}

.multiItem > div > div > div
{
    background-position: 50% 55%;
    background-repeat: no-repeat;
    background-size: 45%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    filter: invert(0);
    opacity: 0.8;
}

#ytContext[data-stat="1"] > .multiItem > div > div.loved
{
    background-color: rgba(200, 0, 0, 0.7);
}

#ytContext[data-stat="2"] > .multiItem > div > div.liked
{
    background-color: rgba(200, 0, 155, 0.7);
}

#ytContext[data-stat="3"] > .multiItem > div > div.maybe
{
    background-color: rgba(235, 240, 255, 0.7);
}

@media (hover: hover)
{
    .ppn > div:nth-child(1):hover, .ppn > div:nth-child(2):hover, .ppn > div:nth-child(3):hover,
    #custbtns > div:hover
    {
        background-color: var(--color-light2);
    }

    .ppn > div:nth-child(1):hover > div, .ppn > div:nth-child(2):hover > div, .ppn > div:nth-child(3):hover > div,
    #custbtns > div:hover > div
    {
        opacity: 0.8;
    }
}

@media (hover: none)
{
    .slider:hover > div:nth-child(2) > div
    {
        transform: scale(0);
    }
}

@media only screen and (max-width: 600px)
{
    #bottombar
    {
        height: 160px !important;
    }

    #indicator > input
    {
        height: 80px;
        z-index: 1;
    }

    #indicatorBd
    {
        background-color: rgba(0, 0, 0, 0.3);
    }

    #content
    {
        bottom: 160px !important;
    }

    #playerbar > hr
    {
        display: block;
    }

    #playerbar
    {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #playerbar > #ppn
    {
        min-height: 74px;
        max-height: 74px;
        box-sizing: border-box;
        padding-bottom: 10px;
        margin: 0;
    }

    #custbtns
    {
        bottom: 10px;
    }

    #playerbar > #meta
    {
        flex: 1;
        padding: 13px 6px 0px 6px;
    }

    #alt, #title
    {
        max-width: calc(100% - 20px);
    }

    #alt
    {
        margin-top: 6px;
    }

    #playlistContainer
    {
        width: 100%;
        left: 0px;
        right: 0px;
        top: 0px;
        height: auto;
    }
}