/* CSS Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

ol, ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.root {
    line-height: 1;
    text-transform: uppercase;
}

::-moz-selection {
    background: transparent;
    text-shadow: none;
}

::selection {
    background: transparent;
    text-shadow: none;
}

h2, h3 {
    font-weight: normal;
}

/* CSS variabels */

:root {
    --background-color: #947050;
    --header-footer-background-color: #7b4d25;
    --max-width: 1240px;
    --logo-accent-menu-icons-color: #edebe8;
    --menu-list-item-hover: #c76712;
    --menu-list-item-background: #9b5517;
    --menu-form-background-color: #947050;
    --buttons-icons-hover-color: #faf7f7;
    --link-color: #000;
    --link-color-hover: #f4f5f6;
}

/* Document styles */
body {
    background-color: var(--background-color);
}

.header, .footer {
    background-color: var(--header-footer-background-color);
}

.menu, .video-list, .searches__list, .pagination__list, .searches__title, .network-list, .advertise__list {
    max-width: var(--max-width);
    margin: auto;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu__submenu {
    display: flex;
    justify-content: space-between;
}

.menu__submenu-button {
    display: none;
}

.menu__logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.menu__logo-text {
    font-size: 36px;
    font-weight: bold;
}

.menu__logo-text-accent {
    color: var(--logo-accent-menu-icons-color);
    transition: 0.5s ease;
}

.menu__form {
    position: relative;
    overflow: hidden;
    background-color: var(--menu-form-background-color);
}

.menu__form-search-wrapper {
    height: 38px;
    line-height: 38px;
    padding: 0 50px 0 15px;
}

.menu__form-input {
    background: none;
    border: 0 none;
    width: 300px;
    outline: 0 none;
    font-size: 16px;
    text-transform: uppercase;
    height: inherit;
    line-height: normal;
}

.menu__form-button {
    position: absolute;
    top: 6px;
    right: 5px;
    border: 0 none;
    background: none;
    cursor: pointer;
    outline: 0 none;
    width: 30px;
    height: 30px;
}

.menu__form-button .la {
    font-size: 20px;
}

.menu__form-button:hover .la {
    color: var(--buttons-icons-hover-color);
    transition: 0.5s ease;
}

.menu__list {
    display: flex;
}

.menu__list-item {
    display: flex;
    align-items: center;
    height: 60px;
    background-color: var(--menu-list-item-background);
    font-size: 22px;
}

.menu__list-item {
    padding: 0 10px 0 10px;
}

.menu__list-item:hover {
    background-color: var(--menu-list-item-hover);
    transition: 0.5s ease;
    cursor: pointer;
}

.menu__list-item:last-child {
    position: relative;
}

.menu__list-item .la {
    font-size: 30px;
    margin-right: 5px;
}

.la {
    color: var(--logo-accent-menu-icons-color);
}

.menu__list-item:hover .la {
    color: var( --buttons-icons-hover-color);
    transition: 0.5s ease;
}

.menu__list-item-link, .mainlang {
    height: 100%;
    display: flex;
    align-items: center;
}

.langmenu {
    position: absolute;
    z-index: 999;
    display: none;
    transition: all 0.3s ease;
    top: 60px;
    left: 0px;
}

.langmenu__item {
    line-height: 60px;
    padding: 0 10px 0 10px;
    font-size: 16px;
    background-color: var(--menu-list-item-background);
}

.langmenu__item:hover {
    background-color: var(--menu-list-item-hover);
    transition: 0.5s ease;
    cursor: pointer;
}

.langmenu__item-link {
    display: flex;
}

.title-wrapper {
    margin-top: 10px;
}

.title-main {
    height: 60px;
    padding-left: 10px;
    line-height: 60px;
    font-size: 22px;
    background-color: var(--header-footer-background-color);
    color: var(--link-color);
}

.main {
    max-width: 1240px;
    margin: auto;
    padding: 0px 10px;
}

.video-list {
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px, 1fr));
    grid-gap: 10px;
}

.video-list__item {
    position: relative;
}

.video-list__item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list__item:hover .video-list__item-title {
    color: var(--link-color-hover);
    transition: 0.15s ease;
}

.video-list__item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-list__item-title:hover {
    color: var(--link-color-hover);
    transition: 0.5s ease;
}

.video-list__item-duration {
    color: #000000;
    background-color: rgb(209, 209, 209, 0.5);
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 5px;
    font-size: 16px;
    border-radius: 2px;
    margin: 3px 3px 0 0;
}

.la-clock {
    color: #000000;
    font-size: 16px;
    margin: 0;
}

.video-list__item-title .la {
    font-size: 16px;
    margin: 0;
}

.video-list__item-title-link {
    color: var(--link-color);
}

.searches__title, .footer {
    text-align: center;
}

.load-more {
    margin-bottom: 10px;
}

.load-more__button {
    height: 60px;
    text-align: center
}

.load-more__link {
    display: inline-block;
    line-height: 60px;
    padding: 0px 10px;
    text-align: center;
    font-size: 22px;
    background-color: var(--header-footer-background-color);
    color: var(--link-color);
}

.load-more__link:hover {
    background-color: var(--menu-list-item-background);
    transition: 0.15s ease;
}

.searches__title {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 22px;
    background-color: var(--header-footer-background-color);
    color: var(--link-color);
}

.searches__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.searches__item {
    margin-right: 10px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
}

.searches__item-link {
    display: inline-block;
    vertical-align: middle;
    color: var(--link-color);
}

.searches__item-link:hover {
    color: var(--link-color-hover);
    transition: 0.15s ease;
}

.pagination {
    margin: 10px 0;
}

.pagination__list {
    display: flex;
    justify-content: space-between;
    height: 60px;
    font-size: 22px;
    background-color: var(--header-footer-background-color);
    color: var( --logo-accent-menu-icons-color);
}

.pagination__list a, .pagination__item_active {
    line-height: 60px;
    text-align: center;
}

.pagination__item:first-child {
    background-color: var(--menu-list-item-background);
    padding-right: 10px;
}

.pagination__item:last-child {
    background-color: var(--menu-list-item-background);
    padding-left: 10px;
}

.pagination__item:first-child:hover, .pagination__item:last-child:hover {
    transition: 0.5s ease;
    background-color: var(--menu-list-item-hover);
    cursor: pointer;
}

.network-list {
    column-count: 5;
}

.network-list__item-link {
    margin-bottom: 4px;
    padding: 2px;
    display:flex;
    justify-content: space-between;
    vertical-align: middle;
    background-color: var(--menu-list-item-background);
}

.network-list__item:hover {
    color: var(--logo-accent-menu-icons-color);
    transition: 0.15s ease;
}

.advertise {
    margin: 10px 0;
}

.advertise__list {
    display: flex;
    justify-content: space-between;
}

.advertise__list-item {
    min-width: 300px;
    height: 250px;
    padding: 10px;
    background-color: var(--header-footer-background-color);
}

.footer {
    padding: 10px 0;
}

/* player */

.video__wrapper {
    margin-top: 10px;
    display: flex;
}

.player {
    flex-grow: 1;
    margin-right: 10px;
}

.player__image {
    position: relative;
}

.block-annotation, .annotation-icon {
    color: #302d2d;
    font-weight: bold;
}

.block-annotation {
    margin-right: 10px;
}

.player__tags {
    display: flex;
    flex-wrap: wrap;
}

.player__tags-item {
    margin: 5px 5px 0 0;
    color: var(--logo-accent-menu-icons-color);
}

.player__description {
    margin-top: 10px;
    color: var(--logo-accent-menu-icons-color);
}

.ads {
    display: flex;
    flex-direction: column;
}

.ads__item {
    min-width: 300px;
    height: 250px;
    background-color: var(--header-footer-background-color);
}

.ads__item:nth-child(2) {
    margin: 10px 0;
}

/* ps pl */
.main-video-poster {
    width: 100%;
}

.main-video-play {
    background: url('/static/images/play.png') center center no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    transition: opacity .3s ease-out;
}

/* Media queries */

@media screen and (max-width: 1240px) {
    .menu__logo {
        margin-left: 10px;
        height: 40px;
    }

    .menu__list {
        margin-right: 10px;
    }


    /*
    .video__wrapper {
        flex-direction: column;
    }

    .player {
        margin-right: 0;
    }    
    
    .ads {
        flex-direction: row;
        justify-content: space-between;
    }

    .ads__item {
        margin-top: 10px;
    }

    .ads__item:nth-child(2) {
        margin: 10px 10px 0 10px;
    }
    */
}

@media screen and (max-width: 1240px) {
    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(360px, 1fr));
    }
}

@media screen and (max-width: 1120px) {
    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(340px, 1fr));
    }
}

@media screen and (max-width: 1060px) {
    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(320px, 1fr));
    }

    .video__wrapper {
        flex-direction: column;
    }

    .player {
        margin-right: 0;
    }    
    
    .ads {
        flex-direction: row;
        justify-content: space-between;
    }

    .ads__item {
        margin-top: 10px;
    }

    .ads__item:nth-child(2) {
        margin: 10px 10px 0 10px;
    }
}

@media screen and (max-width: 1010px) {

    .menu__logo-text {
        font-size: 34px;
    }

    .menu__form-search-wrapper {
        height: 30px;
        line-height: 30px;
    }
    
    .menu__form-input {
        font-size: 14px;
    }

    .menu__form-button {
        top: 4px;
        right: 4px;
        width: 26px;
        height: 26px;
    }
    
    .menu__form-button .la {
        font-size: 20px;
    }

    .menu__list-item {
        height: 40px;
        font-size: 18px;
    }

    .langmenu {
        top: 40px;
    }

    .langmenu__item {
        line-height: 40px;
        font-size: 14px;
    }

    .menu__list-item .la {
        font-size: 26px;
        margin-right: 5px;
    }

    .title-main {
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }

    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(310px, 1fr));
    }

    .load-more__button {
        height: 40px;
        text-align: center
    }
    
    .load-more__link {
        line-height: 40px;
        padding: 0px 10px;
        font-size: 20px;
    }

    .searches__title {
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }

    .searches__item {
        font-size: 14px;
        line-height: 18px;
    }

    .pagination__list {
        height: 40px;
        font-size: 20px;
        align-items: center;
    }

    .pagination__list a, .pagination__item_active {
        line-height: 40px;
        text-align: center;
    }

    .network-list {
        column-count: 4;
    }

    .network-list__item-link {
        font-size: 14px;
    }

    .advertise__list {
        justify-content: space-around;
    }

    .advertise__list-item:last-child {
        display: none;
    }
}

@media screen and (max-width: 960px) {
    .menu {
        flex-direction: column;
    }

    .menu__submenu {
        width: 100%;
    }

    .menu__submenu-button {
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .menu__submenu-button .la {
        color: var(--logo-accent-menu-icons-color);
        font-size: 24px;
        cursor: pointer;
    }

    .menu__logo {
        height: 40px;
    }

    .menu__form-wrapper {
        width: 100%;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--header-footer-background-color);
        z-index: 1;
        display: none;
    }

    .menu__form {
        width: 100%;
        margin: 0 10px;
    }

    .menu__list {
        z-index: 1;
        margin: 0 10px;
        width: 100%;
        justify-content: space-between;
        background-color: var(--menu-list-item-background);
        display: none;
    }

    .network-list {
        column-count: 3;
    }

    .network-list__item-link {
        font-size: 14px;
    }

    .footer p {
        font-size: 14px;
    }
}

@media screen and (max-width: 940px) {
    .ads {
        justify-content: space-around;
    }

    .ads__item:nth-child(3) {
        display: none;
    }

    .ads__item:nth-child(2) {
        margin: 10px 0 0 10px;
    }
}

@media screen and (max-width: 650px) {
    .player__tags-item {
        margin: 2px 0 0 0;
    }

    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(280px, 1fr));
    }

    .video-list__item-title {
        font-size: 14px;
    }

    .network-list {
        column-count: 2;
    }

    .advertise__list-item:nth-child(2) {
        display: none;
    }

    .player__tags, .player__description {
        font-size: 14px;
    }
}

@media screen and (max-width: 630px) {
    .ads__item:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 590px) {
    .video-list {
        grid-template-columns: repeat(auto-fit,minmax(240px, 1fr));
    }
}

@media screen and (max-width: 520px) {

    .menu__submenu-button {
        height: 30px;
        width: 30px;
    }

    .menu__submenu-button:first-child {
        margin-left: 10px;
    }

    .menu__submenu-button:last-child {
        margin-left: 10px;
    }

    .menu__submenu-button .la {
        font-size: 22px;
    }
    
    .menu__logo {
        height: 30px;
    }

    .menu__logo-text {
        font-size: 26px;
    }

    .menu__form-search-wrapper {
        height: 24px;
        line-height: 24px;
    }
    
    .menu__form-input {
        font-size: 14px;
    }

    .menu__form-button {
        top: 2px;
        right: 2px;
        width: 24px;
        height: 24px;
        font-size: 16px;
      }
    
    .menu__form-button .la {
        font-size: 20px;
    }

    .menu__form-wrapper {
        height: 30px;
    }

    .menu__list-item {
        height: 30px;
        font-size: 16px;
    }

    .menu__list-item-link .la {
        font-size: 24px;
    }

    .langmenu__item {
        font-size: 16px;
        line-height: 30px;
    }

    .title-main {
        height: 30px;
        line-height: 30px;
        font-size: 18px;
    }

    .load-more__button {
        height: 30px;
        text-align: center
    }
    
    .load-more__link {
        line-height: 30px;
        padding: 0px 10px;
        font-size: 18px;
    }

    .searches__title {
        height: 30px;
        line-height: 30px;
        font-size: 18px;
    }

    .searches__item {
        font-size: 14px;
        line-height: 18px;
    }

    .pagination__list {
        height: 30px;
        font-size: 18px;
        align-items: center;
    }

    .pagination__list a, .pagination__item_active {
        line-height: 30px;
        text-align: center;
    }

    .network-list {
        column-count: 2;
    }

    .footer p {
        font-size: 12px;
    }

}

@media screen and (max-width: 410px) {
    .network-list {
        column-count: 1;
    }
}

@media screen and (max-width: 340px) {
    .menu__list-item {
        font-size: 14px;
    }

    .pagination__list {
        font-size: 14px;
    }
}