.info
{
    background: var(--surface);
}

.info.open
{
    border-color: var(--drawer-edge);
}

#info-header
{
    margin-top: 20px;
}

#info-header > .show-edit
{
    margin-top: 25px;
}

.description-poster > #counts
{
    font-size: .9em;;

    margin-top: 10px;

    color: var(--muted);
}

#info-header > .description-poster img
{
    width: 447px;
    border: var(--faint) 1px solid;
    background-color: var(--poster-bg);
}

.series-info
{
    margin-left: 5px;
}

.series-info h1
{
    font-size: 30px;
    font-weight: 700;

    margin-top: 5px;
}

.series-info #series-count
{
    margin-top: -8px;
    margin-bottom: -3px;
    color: var(--muted);
}

.series-info .spacing
{
    margin-right: 5px;
    color:var(--muted);
}

.series-details
{
    display: inline-flex;
    align-items: center;
}

.series-details .spacing
{
    margin-right: 10px;
}

.series-info #description-rating
{
    font-family: inherit;
    font-weight: bolder;
    padding: 0 3px;
    border: 2px solid var(--muted);
    border-radius: 3px;
}

.series-info #description-hd
{
    background: var(--muted);
    color: var(--badge-text);
    padding: 0 3px 1px;
    border-radius: 3px;
    font-weight: bolder;
    position: relative;
    top: 0;
}

.tv-episode
{
    color: var(--muted);
    font-size: .8em;
    font-weight: 500;
    margin: 10px 0 0;
}

.episode-title
{
    margin: 3px 0;
    font-weight: 500;
    font-size: .9em;
}

.episode-runtime
{
    text-align: right;
    font-size: .9em;
    margin-top: -20px;
    margin-bottom: 0;
    margin-right: -40px;
    color: var(--muted);
}

.aired
{
    margin-left: 20px;
}

.plot-truncate
{
    color: var(--muted);
    font-size: .9em;
    overflow: hidden;

    margin: 0 auto;

    white-space: nowrap;
    text-overflow: ellipsis;

    transition: all .4s ease-in-out;
}

.plot-truncate.active
{
    white-space: pre-wrap;
    text-overflow: unset;
    overflow: auto;
    transition: all .4s ease-in-out;
}

.episode-list > div
{
    padding-left: 5px;
}

.expand-plot
{
    font-size: .95em;
    text-align: right;
    margin-right: -40px;
    margin-top: -18px;
    margin-bottom: 0;
    color: #d9534f;
}

.expand-plot:hover
{
    cursor: default;
    color: var(--text);
}

.episode-list hr
{
    margin-left: 5px;
    margin-top: 15px !important;
    margin-bottom: 5px;
}

#season-selector
{
    color: var(--muted);
    font-size: .9em;
    margin-left: 5px;
}

#season-selector hr
{
    margin-bottom: 8px;
}

/* min-width: 0, or a flex or grid parent grows to fit every season and the line never scrolls. */
.season-row
{
    position: relative;
    min-width: 0;
}

/* Positioned so each season's offsetLeft is measured within the line, which placeSeasons scrolls by. */
#season-default
{
    position: relative;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    /* The arrows' width, so a season reached by Tab scrolls clear of them rather than to the very edge. */
    scroll-padding-inline: 34px;
}

#season-default::-webkit-scrollbar
{
    display: none;
}

/* Shown by season-row.js; each fades from the drawer's own colour so a half-hidden season reads as continuing. */
.season-arrow
{
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    padding: 0;
    border: none;
    color: var(--text);
}

.season-arrow.left
{
    left: 0;
    text-align: left;
    background: linear-gradient(to right, var(--surface) 60%, transparent);
}

.season-arrow.right
{
    right: 0;
    text-align: right;
    background: linear-gradient(to left, var(--surface) 60%, transparent);
}

.season-plot
{
    margin: 15px 0;
}

.season-submit:hover
{
    cursor: default;
}

.season-submit:focus
{
    border: none;
    background: var(--muted);
    color: #fff;
    border-radius: 4px;
}

.season-submit
{
    border: none;
    background: none;
    color: var(--muted);
    padding: 3px 10px;
    flex: none;
}

.season-submit#active-season
{
    border: none;
    background: #d9534f;
    color: #fff;
    border-radius: 4px;
}

.episode-description:last-of-type
{
    margin-bottom: 50px;
}

.pointer,
.show-pointer
{
    border-top: 1px solid var(--pointer-edge);
    border-right: 1px solid var(--surface);
    border-bottom: 1px solid var(--surface);
    border-left: 1px solid var(--pointer-edge);
    background: var(--surface);
}

#movie-search
{
    width: 100%;
}

#poster
{
    width: 175px;
    height: 262.5px;
    margin-top: 3px;

    border-radius: 4px;
}

#poster:hover
{
    box-shadow: 0 0 7px #f00;
}

#show-poster
{
    width: 200px;
    height: 200px;
    margin-top: 3px;

    border-radius: 4px;
}

#show-poster:hover
{
    box-shadow: 0 0 7px #f00;
}

#year
{
    margin: 0;
}

#genre
{
    margin: 0;
}

#search-boxes
{
    position: fixed;
    z-index: 4;
    top: 50px;

    padding-block: 1.5em;

    background: var(--search-bg);
}

#filter-input
{
    margin-left: 25px;
}

#add,
#add-show,
#switch
{
    margin-right: 25px;
}

#switch .glyphicon
{
    margin-right: 5px;
}

#search
{
    display: none;

    height: 34px;
    margin-right: 25px;
}

.movie-preview
{
    margin-right: 2em;
}

.movie-preview-title
{
    float: right;
}

.show-preview
{
    margin-right: 1em;
}

.show-preview-title
{
    float: right;
}

.preview-wrapper
{
    position: relative;
}

/* The dismiss control is placed from the band, not the panel, so it sits level with the search box whatever rows come between. */
#search-wrapper
{
    position: relative;
}

#preview
{
    position: relative;
    top: 50px;

    display: none;
    overflow: auto;

    height: 350px;
    margin-bottom: 30px;

    justify-content: space-between;
}

/* Room in the page for the open panel, so the pinned band's panel never covers the first row; preview.js sizes and shows it. */
#panel-room
{
    display: none;
}

#preview > :last-child
{
    margin-right: 0;
    padding-right: 3px;
}

#dismiss
{
    position: absolute;
    z-index: 3;
    top: 0;
    right: -50px;

    display: none;

    text-align: center;
}

#dismiss .glyphicon
{
    opacity: 1;
    color: var(--close);
}

#dismiss .glyphicon:hover
{
    opacity: 1;
    color: var(--close-hover);
}

#profile-wrapper
{
    display: none;
}

#profile-wrapper.active
{
    display: block;

    height: 301px;
    margin-top: 110px;
    margin-bottom: -75px;
}

#profile-header
{
    display: flex;

    padding-top: 20px;

    justify-content: center;
    align-items: center;
}

#profile-image
{
    width: 174px;
    height: 261px;
    margin-right: 25px;

    border-radius: 4px;
    background-size: 100%;
}

#profile-name
{
    font-size: 4em;
    font-weight: 900;

    color: var(--text);
}

.checkbox .edit-hd,
.checkbox .edit-isnew
{
    font-weight: 700;
}

.chebox.hd
{
    padding-top: 0;
}

.form-horizontal .checkbox.hd
{
    min-height: 0;
    margin-top: -3px;
    padding-top: 0;
}

.form-horizontal .checkbox.isnew
{
    padding-top: 3px;
    margin-top: 0;
    margin-bottom: 0;
}

.form-horizontal .checkbox
{
    min-height: 0;
    padding-left: 20px;
}

.checkbox label
{
    padding-left: 0;
}

.movie-edit,
.show-edit
{
    float: right;

    width: 30px;
    height: 30px;
    margin-bottom: -10px;

    border-radius: 50%;
    background: #d9534f;
}

.movie-edit .glyphicon,
.show-edit .glyphicon
{
    font-size: 1.5em;

    top: 15%;
    left: 11%;

    margin-right: 0;

    text-align: center;

    color: var(--surface);
}

a.movie-edit:hover,
a.movie-edit:focus
{
    text-decoration: none;
}

a.movie-edit:hover
{
    background: #c9302c;
}

#scroll-left,
#scroll-right
{
    position: absolute;
    top: 53px;

    display: none;

    height: 263px;

    background: rgba(0,0,0,.4);
}

#scroll-left:hover,
#scroll-right:hover
{
    cursor: pointer;
}

#scroll-left .glyphicon,
#scroll-right .glyphicon
{
    font-size: 50px;
    line-height: 5em;

    color: rgba(255,255,255,.8);
}

#scroll-left
{
    left: 0;
}

#scroll-right
{
    right: 0;
}

#preview h3
{
    text-align: center;
}

.loader
{
    font-size: 90px;

    position: relative;

    overflow: hidden;

    width: 1em;
    height: 1em;
    margin: 72px auto;

    -webkit-transform: translateZ(0);
        -ms-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
            animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    text-indent: -9999em;

    color: #f00;
    border-radius: 50%;
}
@-webkit-keyframes load6
{
    0%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
    5%,
    95%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
    10%,
    59%
    {
        box-shadow: 0 -.83em 0 -.4em, -.087em -.825em 0 -.42em, -.173em -.812em 0 -.44em, -.256em -.789em 0 -.46em, -.297em -.775em 0 -.477em;
    }
    20%
    {
        box-shadow: 0 -.83em 0 -.4em, -.338em -.758em 0 -.42em, -.555em -.617em 0 -.44em, -.671em -.488em 0 -.46em, -.749em -.34em 0 -.477em;
    }
    38%
    {
        box-shadow: 0 -.83em 0 -.4em, -.377em -.74em 0 -.42em, -.645em -.522em 0 -.44em, -.775em -.297em 0 -.46em, -.82em -.09em 0 -.477em;
    }
    100%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
}
@keyframes load6
{
    0%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
    5%,
    95%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
    10%,
    59%
    {
        box-shadow: 0 -.83em 0 -.4em, -.087em -.825em 0 -.42em, -.173em -.812em 0 -.44em, -.256em -.789em 0 -.46em, -.297em -.775em 0 -.477em;
    }
    20%
    {
        box-shadow: 0 -.83em 0 -.4em, -.338em -.758em 0 -.42em, -.555em -.617em 0 -.44em, -.671em -.488em 0 -.46em, -.749em -.34em 0 -.477em;
    }
    38%
    {
        box-shadow: 0 -.83em 0 -.4em, -.377em -.74em 0 -.42em, -.645em -.522em 0 -.44em, -.775em -.297em 0 -.46em, -.82em -.09em 0 -.477em;
    }
    100%
    {
        box-shadow: 0 -.83em 0 -.4em, 0 -.83em 0 -.42em, 0 -.83em 0 -.44em, 0 -.83em 0 -.46em, 0 -.83em 0 -.477em;
    }
}
@-webkit-keyframes round
{
    0%
    {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100%
    {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}
@keyframes round
{
    0%
    {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100%
    {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

#create-movie textarea
{
    display: none;
}


.movie-modal
{
    height: 261px;
}

.index-preview
{
    position: relative;

    width: 174px;
    height: 303px;
}

.index-preview img
{
    width: 174px;
    height: 261px;
    margin-top: 20px;

    transition: all .3s ease-in-out;

    border-radius: 4px;
    background-color: #080808;
}

.index-preview.open img,
.index-preview-show.open img
{
    box-shadow: 0 15px 25px var(--open-shadow);
}

.index-preview-show
{
    position: relative;

    width: 213px;
    height: auto;
}

.index-preview-show img
{
    width: 213px;
    height: 213px;
    margin-top: 20px;

    transition: all .3s ease-in-out;

    border-radius: 4px;
    background-color: #080808;
}

#episode-video
{
    height: 169px;
    margin-right: 1.5em;
    padding: 0;

    border: none;
    background: rgba(0,0,0,.4);;
}

#episode-video img
{
    height: 169px;
}

.episode-preview
{
    height: 300px;
    margin-right: 1.5em;
}

.episode-preview:last-of-type
{
    margin-right: 0;
}

#create-episode
{
    width: 300px;
}

.add-all
{
    height: 168.812px;
    width: 300px;
    border: none;
    background-color: rgba(0,0,0,.4);
}

.add-all .glyphicon
{
    margin-right: 0;
    font-size: 3em;
    color: rgba(255,255,255,.8);
}

.add-all p
{
    color: rgba(255,255,255,.8);
    font-size: 1.2em;
}

.new-label
{
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 0;

    width: 60px;
    height: 60px;

    transition: all .3s ease-in-out;

    border-top-right-radius: 4px;
    background: linear-gradient(45deg, rgba(255,255,255,0) 50%, rgba(201,48,44,.9) 50%);
}

.new-text
{
    font-weight: 700;

    position: absolute;
    top: 10px;
    right: 6px;

    transition: all .3s ease-in-out;
    transform: rotate(45deg);
    text-align: center;

    color: #fff;
}

.top-preview img
{
    width: 100px;
    height: 150px;
    margin-bottom: 55px;

    border-radius: 3px;
}

.truncate,
.preview-truncate
{
    overflow: hidden;

    width: 174px;
    margin: 0 auto;
    margin-top: 2px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.episode-truncate
{
    overflow: hidden;

    width: 300px;
    margin: 2px 0 -3px;
    margin-top: 2px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.show-truncate
{
    overflow: hidden;

    width: 174px;
    margin: 0 auto;
    margin-top: 2px;
    margin-left: 0;

    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.season
{
    font-size: .9em;

    text-align: left;

    color: var(--muted);
}

.preview-truncate
{
    margin: 2px 0 -3px;
}

.sort-name
{
    display: none;
}

.description
{
    display: none;
}

.index-user h4
{
    margin-bottom: 3px;

    color: #d9534f;
}

a.index-user:hover,
.index-user h4:hover
{
    text-decoration: none;

    color: #b9433b;
}

.library
{
    display: flex;

    width: 100%;

    justify-content: center;
}

#library
{
    margin-right: 5px;
    padding: 7px 13px;

    color: var(--text);
}

#library:hover
{
    padding: 6px 12px;

    text-decoration: none;

    border: 1px solid var(--hover-edge);
    border-radius: 4px;
    background: var(--hover-bg);
}

#library:focus
{
    text-decoration: none;
}

#unwatched
{
    margin-left: 5px;
    margin-right: 5px;
    padding: 7px 13px;

    color: var(--text);
}

#unwatched:hover
{
    padding: 6px 12px;

    text-decoration: none;

    border: 1px solid var(--hover-edge);
    border-radius: 4px;
    background: var(--hover-bg);
}

#unwatched:focus
{
    text-decoration: none;

    color: #f3f3f3;

    border: 1px solid #d43f3a;
    border-radius: 4px;
    background-color: #d9534f;
}

#unwatched.active
{
    padding: 6px 12px;

    cursor: default;

    color: #f3f3f3;

    border: 1px solid #d43f3a;
    border-radius: 4px;
    background-color: #d9534f;
}

#four-k
{
    margin-left: 5px;
    padding: 7px 13px;

    color: var(--text);
}

#four-k:hover
{
    padding: 6px 12px;

    text-decoration: none;

    border: 1px solid var(--hover-edge);
    border-radius: 4px;
    background: var(--hover-bg);
}

#four-k:focus
{
    text-decoration: none;

    color: #f3f3f3;

    border: 1px solid #d43f3a;
    border-radius: 4px;
    background-color: #d9534f;
}

#four-k.active
{
    padding: 6px 12px;

    cursor: default;

    color: #f3f3f3;

    border: 1px solid #d43f3a;
    border-radius: 4px;
    background-color: #d9534f;
}

#update-search {
    margin-right: 15px;
}

/* Every rail letter shares one muted look; only a letter with titles answers a hover. */
#letter-rail a
{
    color: var(--rail-text);
}

#letter-rail a:not([aria-disabled="true"]):hover,
#letter-rail a:not([aria-disabled="true"]):focus
{
    color: var(--rail-hover);
}

/* On a phone the rail sits over posters, on the navbar's colour at half strength in either theme. */
@media (max-width: 767px)
{
    #letter-rail
    {
        background: rgba(34, 34, 34, .5);
    }

    #letter-rail a
    {
        color: #ddd;
    }
}

.list-poster
{
    display: inline-block !important;
}

.preview-placeholder
{
    width: 174px;
}
