body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

#wrapper {
    align-items: center;
    justify-content: center;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--page-width);
    width: 100%;
    padding: 20px;
}

article, aside  {
    flex-basis: calc(50% - 10px);
    width: calc(50% - 10px);
    margin: 0;
}

aside h1, 
article h1 {
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0;
    margin: 0;
    color: black;
    text-transform: uppercase;
}

aside h5,
article h5 {
    font-size: 1rem;
    font-weight: 300;
    padding: 0;
    margin: 0;
    color: black;
}

aside span a {
    color: black;
    opacity: var(--opacity-1);
}
aside span a:hover {
    opacity: 1;
}

aside span b {
    font-weight: 400;
}

article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    align-self: start;
    position: sticky;
}

article section {
    flex: 1;
    background-color: black;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

article #back {
    grid-column: 1 / 4;
    opacity: var(--opacity-1);
}
article #back:hover {
    opacity: 1;
}

article #back a {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: fit-content;
}

article #back svg {
    padding: 0;
    margin: -5px;
    margin-left: -10px;
    width: 25px;
    height: 25px;
}

article #back span {
    text-transform: uppercase;
    color: black;
    font-size: 1rem;
    display: block;
    margin-left: 2px;
}

#resp-title {
    display: none;
}

article section a {
    opacity: var(--opacity-2);
}

article section:hover a {
    opacity: 1;
}

article section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

article section.iframe {
    grid-column: 1 / 4;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 53%;
}

article section.iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

aside h3,
aside h5 {
    font-size: 1rem;
    font-weight: 300;
    padding: 0;
    margin: 0;
    color: black;
    text-transform: uppercase;
}

aside h5 {
    margin-bottom: 10px;
}

aside h3 {
    font-weight: 400;
}

aside p {
    margin: 0;
    padding: 0;
}

aside a {
    color: black !important;
    opacity: var(--opacity-1);
}
aside a:hover {
    opacity: 1;
}

aside b,
aside strong {
    font-weight: 400;
}

aside ol,
aside ul {
    padding-inline-start: 18px !important;
    margin: 0;
}

aside ul {
    list-style-type: none;
}

aside ul li {
    position: relative;
    display: block;
    margin: 4px 0;
    word-wrap: break-word;
}

aside ul li span.dot {
    margin: 0 13px 0 -18px;
    font-size: 1.2rem;
    line-height: 1rem;
    user-select: none;
}

aside ul li.collapsed-title span.dot {
    display: none;
}

aside a[href*="imdb.com"],
aside a[href*="letterboxd.com"],
aside a[href*="cinego.hu"] {
    color: transparent !important;
    margin-right: 8px;
}

aside a[href*="imdb.com"]:before,
aside a[href*="letterboxd.com"]:before,
aside a[href*="cinego.hu"]:before {
    content: '';
    display: inline-block;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


aside a[href*="imdb.com"]:before {
    background-image: url('/assets/img/imdb.png?v=2');
    width: 33px;
}

aside a[href*="letterboxd.com"]:before {
    background-image: url('/assets/img/letterboxd.png?v=2');
    width: 35px;
}

aside a[href*="cinego.hu"]:before {
    background-image: url('/assets/img/cinego.png?v=2');
    width: 54px;
}

.collapsed-text.oscar-block.open,
.collapsed-text.bafta-block.open,
.collapsed-text.efa-block.open {
    display: inline-flex !important;
}

li.oscar-block,
li.bafta-block,
li.efa-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}


@media screen and (max-width: 1024px) {
    article section {
        height: 10vw;
    }
}


@media screen and (max-width: 900px) {
    article {
        grid-template-columns: repeat(2, 1fr);
    }

    article #back,
    article section.iframe {
        grid-column: 1 / 3;
    }
    
    article section {
        height: 10vw;
    }
}

@media screen and (max-width: 750px) {
    main {
        flex-direction: column;
        padding: 10px 20px;
    }

    article, aside {
        flex-basis: 100%;
        width: 100%;
    }

    article {
        position: static;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 20px;
    }

    article #back {
        grid-column: 1 / 5;
    }

    
    article section.iframe {
        grid-column: 1 / 5;
    }

    article section {
        height: 13vw;
    }

    #resp-title {
        display: block;
        grid-column: 1 / 5;
    }

    aside h1,
    aside h5 {
        display: none;
    }

    aside ul li {
        display: block;
    }
}

@media screen and (max-width: 650px) {
    article {
        grid-template-columns: repeat(3, 1fr);
    }

    article #back,
    article section.iframe,
    #resp-title {
        grid-column: 1 / 4;
    }

    article section {
        height: 15vw;
    }
}

@media screen and (max-width: 550px) {
    main {
        padding: 7px 15px;
    }
}

@media screen and (max-width: 450px) {
    article {
        grid-template-columns: repeat(2, 1fr);
    }

    article #back,
    article section.iframe,
    #resp-title {
        grid-column: 1 / 3;
    }

    article section {
        height: 20vw;
    }
}