#list
{
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

/*.haTag
{
    padding: 0px 10px;
    box-sizing: border-box;
    margin-bottom: 0px;
}*/

.torrentStatus
{
    background-position: center;
    background-repeat: no-repeat;
    background-size: 45%;
    aspect-ratio: 1;
}

.torrentStatus.downloading
{
    background-image: var(--svg-download);
}

.torrentStatus.downloaded
{
    background-image: var(--svg-tick);
}

.sidebarPage
{
    padding-top: 6px;
}

.movieBox.favPlan .watchStatus
{
    background: var(--grad-orange);
}

.movieBox.favStarted .watchStatus
{
    background: var(--grad-sky);
}

.movieBox.favAiring .watchStatus
{
    background: var(--grad-levander);
}

.movieBox.favFinished .watchStatus
{
    background: var(--grad-green);
}

.movieBox.favNah .watchStatus
{
    background: var(--grad-red);
}

.movieBox.fav
{
    background: var(--grad-pink);
}

.coloredScore
{
    vertical-align: bottom;
}

.movieBox
{
    text-align: center;
    border: 1px solid var(--color-border-dark);
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    will-change: transform border-color filter;
}

.movieBox > div:first-child
{
    width: 100%;
    flex: auto;
    object-fit: cover;
    position: relative;
    overflow: hidden;
    /*will-change: transform;*/
}

.movieBox > div:first-child > img:first-child
{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    filter: blur(10px) grayscale(0.8);
}

.movieBox > div:first-child > img:last-child
{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.05);
}

.movieBox > .title
{
    color: var(--color-light-text);
    max-height: 2em;
    min-height: 2em;
    margin: 6px;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
}

.movieBox > .movieBoxAltGrid
{
    display: grid;
    /*margin-top: auto;*/
}

.movieBoxAltGrid > div:nth-child(1)
{
    grid-column-start: 1;
    text-align: left;
}

.movieBoxAltGrid > div:nth-child(2)
{
    grid-column-start: 2;
    text-align: center;
    color: var(--color-light-alt-text);
    font-size: 14px;
    display: inline-block;
    /*line-height: 50px;*/
}

.movieBoxAltGrid > div:nth-child(3)
{
    grid-column-start: 3;
    place-self: end end;
    text-align: right;
}

.movieBoxAltGrid > div > div
{
    text-align: center;
}

.movieBoxAltGrid > div:nth-child(1) > div
{
    width: 55px;
    font-size: 22px;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
    border-radius: 0px 6px 0px 0px;
    display: inline-block;
}

.movieBoxAltGrid > div:nth-child(3) > div
{
    margin: auto;
    width: 55px;
}

.movieBoxAltGrid .eng, .movieBoxAltGrid .hun
{
    background-color: var(--color-dark-alt-text);
    font-size: 12px;
    display: block;
    height: 25px;
    line-height: 25px;
}

.movieBoxAltGrid .eng
{
    border-radius: 6px 0px 0px 0px;
}

.movieBox .hun
{
    
}

#list > .movieBox:nth-child(odd)
{
    background-color: var(--color-dark2);
}

#list > .movieBox:nth-child(even)
{
    background-color: var(--color-background);
}

#list > .movieBox
{
    width: 250px;
    max-width: 350px;
    overflow: hidden;
    transition: 100ms ease-in-out;
}

@media (hover: hover)
{
    #list > .movieBox:hover
    {
        /*border-radius: 6px;*/
        border-color: var(--active-accent-color);
        filter: /*drop-shadow(-1px -1px 0px var(--active-accent-color)) drop-shadow(1px 1px 0px var(--active-accent-color))*/
                /*drop-shadow(-1px  1px 0px var(--active-accent-color)) drop-shadow(1px -1px 0px var(--active-accent-color))*/
                drop-shadow(0px 0px 10px var(--active-accent-color));
        z-index: 2;
        transform: scale(1.04);
        border-radius: 6px;
    }
}

#list > .movieBox:active
{
    /*border-radius: 6px;*/
    border-color: var(--active-accent-color);
    filter: /*drop-shadow(-1px -1px 0px var(--active-accent-color)) drop-shadow(1px 1px 0px var(--active-accent-color))*/
            /*drop-shadow(-1px  1px 0px var(--active-accent-color)) drop-shadow(1px -1px 0px var(--active-accent-color))*/
            drop-shadow(0px 0px 10px var(--active-accent-color));
    z-index: 2;
    transform: scale(1.04);
    border-radius: 6px;
}

.hiddenEp
{
    display: none;
}

@media only screen and (max-width: 600px)
{
    #list > .movieBox
    {
        width: 200px;
    }

    .episode
    {
        flex-direction: column;
    }

    .episode .cover
    {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
        margin-bottom: 10px;
    }

    .episode > div
    {
        padding: 0px !important;
    }

    .episode:not(:last-child)
    {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--color-border-light);
    }
}

@media only screen and (max-width: 1200px)
{
    #list > .movieBox
    {
        width: 200px;
    }
}

#player .popupBox
{
    padding: 0px;
    font-size: 0px;
}

#ready
{
    background-image: var(--svg-mediaplayer);
    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: 265px;
    opacity: 0.6;
}

#ready > div > div
{
    margin-top: 6px;
}

#ready > div > div:last-child
{
    font-size: 40px;
    margin-top: 6px;
    opacity: 0.55;
}

#details
{
    position: absolute;
    left: 0; 
    right: 0;
    top: 0;
    bottom: 0;
    transform: scale(1.3);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: 200ms ease-in-out
}

/* DETAILS */

#description
{
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    position: relative;
}

#description > .background, #description > .backgroundColor
{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--color-background);
}

#description > .background
{
    background-image: url('https://www.synapse.cx/syntex/runtime/img/triangles.webp');
    background-position: bottom;
    background-size: cover;
    filter: invert(100%);
    opacity: 0.2;
}

#description > .head > .cover
{
    position: absolute;
    bottom: -30px;
    left: 20px;
    border: 1px black solid;
    box-sizing: border-box;
    border-radius: 0px;
}

#description > .head > .cover, #description > .head > div > div:first-child
{
    max-width: 30%;
    width: 400px;
}

#description > .head > div, #description > .head > div > div:first-child
{
    height: 100%;
}

#description > .head > div > div:first-child
{
    margin-right: 50px;
}

#description > .head > div > div:nth-child(2)
{
    padding-bottom: 20px;
}

#description > .head > div > div
{
    display: inline-block;
    vertical-align: bottom;
}

#description > .head
{
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    min-height: 25%;
    max-height: 75%;
    height: 75%;
    position: fixed;
    background-position: center;
    background-size: cover;
    box-sizing: border-box;
    border-bottom: 1px black solid;
    z-index: 1;
    pointer-events: none; /* Hack for browsers other than chrome, so they can scroll, lol, DO NOT TURN IT OFF, ON I MEAN */
}

#description > .head > div
{
    font-size: 40px;
    filter: drop-shadow(0px 0px 5px black);
}

#description > .head > canvas
{
    position: absolute;
    right: 20px;
    bottom: -60px;
}

#description > .details
{
    position: relative;
    top: 0%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
}

#description > .details > .side
{
    max-width: 30%;
    width: 400px;
    background-color: rgba(28, 30, 40, 0.5);
    margin-top: 60px;
    margin-bottom: 20px;
    border-radius: 0px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-left: 20px;
    padding: 20px;
    border: 1px rgba(0, 0, 0, 0.8) solid;
}

#description > .details > .side > div
{
    padding: 10px;
    border-top: 1px rgba(255, 255, 255, 0.1) solid;
    border-bottom: 1px rgba(0, 0, 0, 0.2) solid;
}

#description > .details > .side > div:first-child
{
    border-top: none;
}

#description > .details > .side > div:last-child
{
    border-bottom: none;
}

#description > .details > .side > div > div:first-child
{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

#description > .details > .side > div > div:last-child
{
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

#description > .details > .info
{
    margin-left: 20px;
    margin-right: 20px;
    overflow: hidden;
}

#description > .details > .info > div:not(.genreBox):not(#filterFlex):not(.mobileTitle)
{
    background-color: rgba(28, 30, 40, 0.5);
    border-radius: 0px;
    padding: 20px;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: justify;
    border: 1px rgba(0, 0, 0, 0.8) solid;
    overflow: hidden;
    border-radius: 0px 6px 6px 6px;
}

#description > .details > .info > div:not(.genreBox):not(#filterFlex).youtube,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).screenshots,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).seasons,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).recommendations,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).characters
{
    overflow-x: scroll;
}

#description > .details > .info > div:not(.genreBox):not(#filterFlex).youtube:after,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).screenshots:after,
#description > .details > .info > div:not(.genreBox):not(#filterFlex).seasons:after
#description > .details > .info > div:not(.genreBox):not(#filterFlex).recommendations:after
#description > .details > .info > div:not(.genreBox):not(#filterFlex).characters:after
{
    content: "0";
    opacity: 0;
    width: 20px;
    flex: none;
}

#screenshotPopup .popupContainer
{
    backdrop-filter: brightness(0.5) blur(10px);
}

#screenshotPopup .popupBox
{
    padding: 0px;
    font-size: 0px;
    filter: drop-shadow(var(--shadow-soft));
}

#screenshotPopup .popupBoxClose
{
    border-radius: 0% 0% 0% 50%;
}

.genreBox
{
    max-width: calc(100% - 200px);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 10px;
}

.genreBox > div
{
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: rgba(28, 30, 35, 1);
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px rgba(0, 0, 0, 0.8) solid;
    border-radius: 6px;
}

#filterFlex
{
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 10px;
}

#filterFlex > div
{
    background-color: rgba(25, 29, 39, 0.7);
    font-size: 14px;
    border: 1px rgba(0, 0, 0, 0.8) solid;
    padding: 10px;
    margin-left: 10px;
    border-radius: 6px;
}

#filterFlex > div:hover
{
    color: rgb(25, 29, 39);
    background-color: rgba(255, 255, 255, 0.5);
}

#filterFlex > input, #filterFlex > button
{
    /*background-color: rgba(25, 29, 39, 0.7);
    font-size: 14px;
    border: 1px rgba(0, 0, 0, 0.8) solid;
    border-radius: 6px;
    margin-bottom: 10px;*/
    margin-left: 10px;
    /*cursor: text;*/
}

#description > .details > .info table
{
    padding: 20px;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
}

#description > .details > .info table tr, #description > .details > .info table tbody
{
    max-width: 100%;
}

#description > .details > .info table td
{
    padding: 15px 20px;
    word-wrap: break-word;
    word-break: break-all;
}

#description > .details > .info table tr:nth-child(even)
{
    background-color: rgba(0, 0, 0, 0.15);
}

#description > .details > .info table tr:hover
{
    color: rgb(25, 29, 39);
    background-color: rgba(255, 255, 255, 0.5);
}

#closeButton
{
    /*border: 4px solid rgba(0, 0, 0, 0.8);*/
    filter: invert(1);
    transition: 100ms ease-in-out;
}

#closeButton:hover
{
    filter: invert(0);
    transition: 0ms ease-in-out;
}

.seasons .container,
.recommendations .container,
.characters .container
{
    width: min-content;
}

.youtube > *:not(:last-child),
.screenshots > *:not(:last-child),
.seasons > div > *:not(:last-child),
.recommendations > div > *:not(:last-child),
.characters > div > *:not(:last-child)
{
    margin-right: 6px;
}

.recommendations img
{
    border: 2px solid transparent;
    border-bottom-width: 0px;
}

.seasons img
{
    border: 2px solid transparent;
    border-bottom-width: 0px;
}

.characters img
{
    border: 2px solid transparent;
    border-bottom-width: 0px;
}

.screenshots img
{
    height: 180px;
}

.youtube img,
.screenshots img
{
    border: 2px solid transparent;
}

.youtube img:hover,
.screenshots img:hover
{
    border: 2px solid var(--active-accent-color);
}

.hss > div
{
    transition: 100ms ease-in-out;
    transform: translateX(0px);
}

.seasons > div > div,
.recommendations > div > div,
.characters > div > div
{
    background-color: rgba(255, 255, 255, 0.7);
}

.seasons > div > div > div,
.recommendations > div > div > div,
.characters > div > div > div
{
    /*background-color: rgba(255, 255, 255, 0.7);*/
    border: 2px solid transparent;
    background-clip: padding-box;
}

.seasons > div > div:hover,
.recommendations > div > div:hover,
.characters > div > div:hover
{
    background-color: var(--active-accent-color); 
}

.seasons > div > div:hover > div,
.recommendations > div > div:hover > div,
.characters > div > div:hover > div

{
    /*background-color: var(--active-accent-color);*/
}

.haContainer img
{
    width: 400px;
    max-width: 100%;
}

.mobileTitle
{
    display: none;
    align-items: center;
    flex-direction: column;
    font-size: 40px;
    max-height: 400px;
}

@media only screen and (max-width: 800px)
{
    #description > .details > .info
    {
        max-width: calc(100% - 40px);
    }
    
    #description > .head > div
    {
        display: none;
    }
    
    #description > .details
    {
        flex-direction: column-reverse;
    }

    .mobileTitle
    {
        margin-top: 40px;
        display: flex;
    }
    
    .genreBox
    {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .genreBox > div
    {
        text-align: center;
        flex-grow: 1;
    }
    
    #description > .head > canvas
    {
        bottom: -40px;
    }
    
    #description > .details > .side
    {
        max-width: calc(100% - 40px);
        width: 100%;
        margin-top: 10px;
    }
    
    #torrentDiv
    {
        /*display: none;*/
    }
    
    #filterFlex
    {
        /*display: none;*/
    }

    #filterFlex > input
    {
        display: none;
    }
}

.torrentDetailsGrid
{
    max-height: calc(80vh - 100px);
}

#torrentDetailsContent span
{
    width: 100%;
}

.torrentFile .progressbar > div:nth-child(2)
{
    font-size: 8px;
}