body {
    background: black;
    color: rgba(255,255,255,.73);
    font-size: .95em;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",'Open Sans',sans-serif;
    margin: 0;
}

.center {
    text-align: center;
}

nav {
    text-align: center;
}

nav label {
    font-size: 1.5em;
}

img {
    max-width: 100%;
    max-height: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
    color: rgba(255,255,255,.9);
}

.icon {
    align-self: center;
}

.icon svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
    top: .125em;
    position: relative;
}

.top-button {
    display: block;
    position: absolute;
    padding-top: .15em;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0));
    font-size: 1.5em;
}

.top-button > .icon {
    padding-left: 0.15em;
}

.media-list {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

.media-list .media-card {
    min-width: 14em;
    min-height: 18em;
    margin: 1em;
    width: 15em;
    text-align: center;
}

.poster {
    border: 1px rgba(255,255,255,.3) solid;
    width: 230px;
    height: 344px;
}

.banner {
    border: 1px rgba(255,255,255,.3) solid;
    width: 230px;
    height: 42px;
}

.media-card p {
    margin: 0.1em;
}

.media-header .fanart {
    background-size: cover;
    height: 33vh;
    background-position: center 5%;
    background-repeat: no-repeat;
}

.media-header .media-header-bottom {

}

.media-header .poster {
    margin: 2vw;
    margin-left: 2vw;
    margin-top: -15vh;
    float: left;
}

.info .info-line {
    margin-bottom: .5em;
}

.item-array {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
}

.item-array .item {
    margin: 0;
    margin-right: 1em;
}

.runtime:after {
    content: var(--i18n-runtime-unit, "min");
}

.rating:before {

}

.key-value:before {
    font-weight: bold;
}

.genres:before {
    content: var(--i18n-genres, "Genres: ");
}

.director:before {
    content: var(--i18n-director, "Director: ");
}

section {
    clear: left;
    padding: 1em;
}

.item-array .icon {
    font-size: 2em;
    text-align: center;
}

.icon-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plot {
    padding-left: 3vm;
    max-width: 40em;
    text-align: justify;
}

.cast-section {
    padding: 0 1em 1em;
}

.cast-section > input[type="checkbox"] {
    display: none;
}

.cast-toggle-label {
    cursor: pointer;
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    padding: .4em 0;
    user-select: none;
}

.cast-toggle-label::before {
    content: '\25BC  ';
    font-size: .8em;
}

.cast-section > input:not(:checked) ~ .cast-toggle-label::before {
    content: '\25B6  ';
}

.cast-section > input:not(:checked) ~ .cast-grid {
    display: none;
}

.cast-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .8em;
    padding-top: .5em;
}

.actor-card {
    width: 110px;
    text-align: center;
}

.actor-card .actor-photo {
    width: 110px;
    height: 150px;
    overflow: hidden;
    border: 1px rgba(255,255,255,.3) solid;
    background: #1a1a1a;
}

.actor-card .actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actor-card .actor-name {
    margin: .3em 0 .1em;
    font-size: .85em;
    font-weight: bold;
}

.actor-card .actor-role {
    margin: 0;
    font-size: .75em;
    font-style: italic;
    color: rgba(255,255,255,.55);
}

@media only screen and (max-width: 600px) {

    .media-list .media-card {
        min-width: 10em;
        min-height: 14em;
        width: 10em;
    }

    .top-button {
        font-size: 2.1em;
    }
}
