@import url( '/css/roboto.css' );

@font-face {
    font-family: 'Graphik LCG';
    src: local('../fonts/Graphik LCG Bold'), local('../fonts/Graphik-LCG-Bold'),
    url('../fonts/GraphikLCG-Bold.woff2') format('woff2'),
    url('../fonts/GraphikLCG-Bold.woff') format('woff'),
    url('../fonts/GraphikLCG-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik LCG';
    src: local('../fonts/Graphik LCG Medium'), local('../fonts/Graphik-LCG-Medium'),
    url('../fonts/GraphikLCG-Medium.woff2') format('woff2'),
    url('../fonts/GraphikLCG-Medium.woff') format('woff'),
    url('../fonts/GraphikLCG-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

*, *::after, *::before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

ol {
    list-style-position: inside;
}

html {
    height: 100%;
}

body {
    background: url('../img/background.jpg') no-repeat fixed;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.04em;
}

.load * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

header {
    flex: 0 0 auto;
}

main {
    flex: 1 0 auto;

    padding: 15px 25px 15px 25px;
    background-color: #fff;
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
}

.auth-form {
    width: 370px;

    background-color: #fff;
    border-radius: 8px;
    padding: 8px 10px 10px 10px;

    box-shadow: 0 0 10px rgba( 0, 0, 0, .5 );
}

.auth-form-caption {
    background: linear-gradient( to left, #7fb0ff, #1a29ff);
    color: #e2f6ff;
    border-radius: 5px;

    text-align: center;
    font-size: 16px;
    letter-spacing: .05em;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 5px 10px;

    box-shadow: 0 0 8px rgba( 0, 0, 0, .3 );
}

.form-field {
    width: 100%;
    margin-top: 12px;
}

.form-field > label {
    display: block;
    margin-bottom: 5px;
}

input[type='text'],
input[type='password'],
input[type='file'],
input[type='number'],
select {
    display: block;
    width: 100%;

    border-radius: 5px;
    border: #676767 solid 1px;

    padding: 5px 10px;

    background-color: #f0efff;
    /*background-color: #e9ecef;*/
}

.checkbox>input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.checkbox>span {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.checkbox>span::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 0.25em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

/* стили при наведении курсора на checkbox */
.checkbox>input:not(:disabled):not(:checked)+span:hover::before {
    border-color: #b3d7ff;
}

/* стили для активного чекбокса (при нажатии на него) */
.checkbox>input:not(:disabled):active+span::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
}

/* стили для чекбокса,film-add-groups находящегося в фокусе */
.checkbox>input:focus+span::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* стили для чекбокса, находящегося в фокусе и не находящегося в состоянии checked */
.checkbox>input:focus:not(:checked)+span::before {
    border-color: #80bdff;
}

/* стили для чекбокса, находящегося в состоянии checked */
.checkbox>input:checked+span::before {
    border-color: #0b76ef;
    background-color: #0b76ef;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* стили для чекбокса, находящегося в состоянии disabled */
.checkbox>input:disabled+span::before {
    background-color: #e9ecef;
}

.form-input-file .form-input-file-input {
    display: none;
}

.form-input-file {
    position: relative;

    background-color: #f0efff;

    border: #676767 solid 1px;
    border-radius: 5px;
    padding: 5px 10px;
}

.form-input-filename {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.upload-image-input {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.image-preview-container {
    width: 218px;
    height: 250px;

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

.upload-image-input input {
    display: none;
}

#image-preview {
    cursor: pointer;
}

#upload-image-button {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #4c4c4c;
    background-color: #e9e8f8;

    width: 100%;
    padding: 2px 16px;

    border: 1px solid #b2b2b2;
    border-radius: 5px;

    font-weight: bold;
    font-size: 16px;

    cursor: pointer;

    transition: background-color .3s;
}

#upload-image-button:hover {
    background-color: #f3f3f3;
}

#upload-image-button:before {
    content: "\F00D9";
    font: normal normal normal 24px/1 "Material Design Icons";
    margin-right: 5px;
}

.form-input-file .form-input-button {
    position: absolute;
    display: flex;
    align-items: center;

    color: #4c4c4c;

    font-weight: bold;

    background-color: #e9e8f8;

    border-left: 1px solid #b2b2b2;
    border-radius: 3px 5px 5px 3px;

    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 14px;

    user-select: none;

    cursor: pointer;

    transition: background-color .3s;
}

.form-input-file .form-input-button:hover {
    background-color: #f3f3f3;
}

.form-input-file .form-input-button:before {
    content: "\F00D9";
    font: normal normal normal 24px/1 "Material Design Icons";
    margin-right: 5px;
}

.btn {
    display: inline-block;
    font-family: 'Roboto', serif;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #e2f6ff;

    padding: 6px 12px;

    border: 0;
    border-radius: 8px 0;

    /*margin-top: 16px;*/
    /*background: linear-gradient( #7fb0ff, #1a29ff );*/
    background: #1a29ff;
    cursor: pointer;
    transition: all .3s;

    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;

    white-space: nowrap;

    /*box-shadow: 1px 1px 3px #000;*/
}

.mt-5 {
    margin-top: 5px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.btn:hover {
    background: #5b7aff;
}

.btn-red {
    background: #cd1f1a;
}

.btn-red:hover {
    background: #ff524d;
}

.btn-green {
    background: #008522;
}

.btn-green:hover {
    background: #43e848;
}

.btn-disabled,
.btn-disabled:hover {
    background: #a1b2bb;
    cursor: default;
}

.auth-form-error {
    background-color: #ff6052;
    border-radius: 3px;
    padding: 5px 10px;
    color: #fff;
    text-align: center;
}

.outline-btn {
    text-decoration: none;

    border: #fff solid 1px;
    border-radius: 5px;
    text-transform: uppercase;
    padding: 8px 15px;
    color: white;
    font-weight: 700;
    letter-spacing: .08em;
    transition: all .3s ease;
}

.outline-btn:hover {
    border-color: #ff951b;
    color: #ff951b;
}

/* 404 page */
#notfound {
    position: relative;
    height: 100vh;

    min-width: 75%;
    background-color: rgba( 0, 0, 0, .3 );
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 15px rgba( 0, 0, 0, .5 );
}

#notfound .notfound {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.notfound {
    max-width: 520px;
    width: 100%;
    line-height: 1.4;
    text-align: center;
}

.notfound .notfound-404 {
    position: relative;
    height: 240px;
}

.notfound .notfound-404 h1 {
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 252px;
    font-weight: 900;
    margin: 0 0 0 -20px;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: -40px;
}

.notfound .notfound-404 h1>span {
    text-shadow: -8px 0 0 #fff;
}

.notfound .notfound-404 h3 {
    font-family: 'Cabin', sans-serif;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    /*color: #262626;*/
    color: #ffffff;
    margin: 0;
    letter-spacing: 3px;
    padding-left: 6px;
}

.notfound h2 {
    font-family: 'Cabin', sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
}

@media only screen and (max-width: 767px) {
    .notfound .notfound-404 {
        height: 200px;
    }
    .notfound .notfound-404 h1 {
        font-size: 200px;
    }
}

@media only screen and (max-width: 480px) {
    .notfound .notfound-404 {
        height: 162px;
    }
    .notfound .notfound-404 h1 {
        font-size: 162px;
        height: 150px;
        line-height: 162px;
    }
    .notfound h2 {
        font-size: 16px;
    }
}
/* End of 404 page */

.no-select {
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.blur-filter {
    filter: blur(3px);
    transition: filter .2s ease;
}

#modal-block {
    position: absolute;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;

    max-width: 1200px;
    margin: 0 auto;

    min-height: 100vh;

    background-color: transparent;

    box-shadow: 0 0 15px rgba( 0, 0, 0, .5 );
}

.main-menu {
    width: 100%;
    background: url('../img/mm_bg.jpg') no-repeat;
    background-size: cover;
    padding: 25px 0 0 25px;
}

.menu-delimiter {
    color: #555;
    margin: 0 7px 0 5px;
    border-left: 1px solid #555;
}

.main-menu h1,
.main-menu h2 {
    color: #fff;
    font-weight: 500;
    font-family: 'Roboto', "Graphik LCG", sans-serif;
}

.main-menu h1 {
    letter-spacing: .05em;
    font-size: 44px;
}

.main-menu h2 {
    letter-spacing: .1em;
    margin-bottom: 60px;
}

.main-menu-items li {
    display: inline-block;
    padding: 5px 0;

    border: 0;

    border-top: #777 solid 1px;
    border-right: #777 solid 1px;
    border-left: #777 solid 1px;

    margin: 0;

    background-color: rgba( 0, 0, 0, .5 );

    border-radius: 6px 6px 0 0;

    transition: background-color .3s ease-out;
}

.main-menu-items li:not(:first-of-type) {
    margin-left: 2px;
}

.main-menu-items li:hover {
    background-color: rgba( 73, 90, 255, .4 );
}

.main-menu-items a {
    color: #fff;
    padding: 5px 10px;
    letter-spacing: .07em;
    font-weight: 400;
    text-decoration: none;
}

li.main-menu-active,
li.main-menu-active:hover {
    background-color: rgba( 73, 90, 255, .8 );
    border-color: #fff;
}

.main-menu-active a {
    font-weight: 700;
}

.main-menu-nav {
    display: flex;
    flex-wrap: nowrap;
    font-size: 14px;
    justify-content: space-between;
}

.main-menu-acc {
    color: #fff;
    padding: 5px 25px 0 10px;
    background: rgba( 0, 0, 0, .6);
    border-radius: 5px 0 0 0;
    border-left: 1px solid #555;
    border-top: 1px solid #555;
}

.main-menu-acc a {
    letter-spacing: .05em;
}

.main-menu-acc span::before {
    margin-right: 5px;

}

.main-menu-acc a {
    color: #fff;
}

.film-block {
    display: grid;
    grid-template-columns: 105px 2fr 2fr;
    grid-template-rows: max-content 1fr;

    box-shadow: 0 0 15px #fff;
    border: #dcdcdc solid 1px;
    padding: 12px 12px;
    margin-top: 20px;
    transition: all .5s;
}

.film-block:hover {
    box-shadow: 0 0 15px #bfbfbf;
    transition: all .5s;
}

.film-poster {
    grid-row-start: 1;
    grid-row-end: 3;
    user-select: none;
}

.film-poster>img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.film-text-info {
    grid-column-start: 2;
    grid-column-end: 4;

    margin-left: 12px;
}

.film-tags-and-btns {
    display: grid;
    grid-template-columns: 1fr max-content;

    grid-column-start: 2;
    grid-column-end: 4;

    margin-left: 12px;
}

.film-date {
    grid-column-start: 1;
    grid-column-end: 2;
    font-size: 12px;
    align-self: flex-end;
}

.film-date>span {
    font-weight: 700;
}

.film-description h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.button-block {
    display: block;
    list-style: none;

    align-self: flex-end;
    text-align: end;
    white-space: nowrap;
    user-select: none;
}

.button-block li {
    display: inline-block;
}

.button-block li:not(:last-child) {
    margin-right: 5px;
}

.films-add-block {
    display: flex;
    justify-content: flex-end;
}

.search-and-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.search_area {
    position: relative;
    width: 30%;

    transition: .5s ease-out;
}

.search-field {
    padding-right: 26px!important;
    border: #dcdcdc solid 1px!important;
}

.search_area:focus-within {
    width: 80%
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    cursor: pointer;
    color: #a6a6a6;
    font-size: 20px;
}

#search_advice_wrapper {
    display:none;
    width: 100%;
    background-color: rgb(80, 80, 114);
    color: rgb(255, 227, 189);
    -moz-opacity: 0.95;
    opacity: 0.95;
    z-index:999;
    position: absolute;
    top: 24px; left: 0;
    border-radius: 0 0 3px 3px;
}

#search_advice_wrapper .advice_variant {
    cursor: pointer;
    padding: 5px;
    text-align: left;
}

#search_advice_wrapper .advice_variant:hover {
    color:#FEFFBD;
    background-color:#818187;
}

#search_advice_wrapper .advice_variant:last-child:hover {
    border-radius: 0 0 3px 3px;
}

#search_advice_wrapper .active {
    cursor: pointer;
    padding: 5px;
    color:#FEFFBD;
    background-color:#818187;
}

#search_advice_wrapper .active:last-child {
    border-radius: 0 0 3px 3px;
}

.search_not_found {
    font-size: 28px;
    margin-top: 50px;
    text-align: center;

    overflow: hidden;
    text-overflow: ellipsis;
}

.search_not_found p {
    display: block;
    margin: 5px auto 0 auto;

    text-align: center;

    max-width: 90%;
}

.search_not_found .search_query {
    font-weight: bold;
}

.no-wrap {
    white-space: nowrap;
}

.bold {
    font-weight: 700;
}

.film-add-poster {
    max-width: 100%;
    max-height: 240px;
    margin: 0 auto 10px auto;
}

.forms-fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    border: #d3caca solid 1px;
    padding: 10px;
    margin-bottom: 12px;
}

.flex-column {
    flex-direction: column;
}

.forms-fieldset legend {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0 5px;
}

.film-add-rb {
    width: 100%;
    margin-left: 15px;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.film-add-groups {
    list-style: none;
    margin-top: 10px;

    font-size: 14px;
    display: grid;
    grid-template-columns:repeat( 4, 1fr );
    flex-flow: row wrap;

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

.film-add-groups li {
    min-height: 32px;
    line-height: 1.4em;
}

.bold {
    font-weight: 700;
}

.table-container {
    width: 100%;
    margin-top: 10px;
}

.table-container th {
    background-color: #4c7499;
    border-radius: 5px 5px 0 0;
    color: #fff;
    padding: 10px 8px;
}

.table-container td {
    padding: 4px 8px;
    white-space: nowrap;
}

.align-right {
    text-align: right;
}

.table-container tr:nth-child(odd) {
    background-color: #ddd;
}

.pagination {
    width: 100%;

    margin-top: 15px;
    font-size: 24px;

    user-select: none;
}

.pagination a {
    color: #363636;
}

.pagination>span {
    display: block;
    width: 100%;

    text-align: center;

    color: #676767;
    font-size: 14px;
}

.pagination ul {
    width: 100%;
    text-align: center;
    list-style-type: none;
}

.pagination li {
    display: inline-block;
}

.pagination-disabled span {
    color: lightgray;
    font-weight: 400;
}

.pagination-active span {
    font-weight: 700;
    color: #000;
}

.articles-title {
    margin: 10px 0 25px 0;
    text-align: center;
}

.articles-list-item {
    font-size: 20px;
}

.articles-list-item a {
    text-decoration: none;
    color: #2d3748;

    font-size: 20px;
}

.article-control {
    display: inline-block;
    white-space: nowrap;

    list-style: none;
    padding: 3px 5px 3px 0;
}

.article-control li {
    display: inline-block;
}

.ck-editor__editable {
    min-height: 400px;
}

.tags-block {
    user-select: none;
}

.tags-block>a:not(:last-child) {
    margin-right: 5px;
}

.tag {
    display: inline-block;
    background: #cc2222;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 5px 8px;
    border-radius: 5px;
    margin-top: 8px;

    white-space: nowrap;
}

.tag.downloading {
    background: #d0d028;
}

.tag.downloaded {
    background: #ff8627;
}

.hover-orange {
    transition: color .2s ease-in;
}

.hover-orange:hover {
    color: #ff951b;
}

.tag.on-media-server {
    background: #22ae22;
}

.film-caption {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.film-caption h2 {
    display: inline-block;
    margin-right: 5px;
    font-size: 22px;
}

.film-label {
    display: inline-block;

    align-self: center;
    text-transform: uppercase;
    font-weight: 700;

    font-size: 16px;

    background-color: #fff;
    color: #b1b1b1;

    padding: 2px 6px;
    margin-left: 7px;

    border-radius: 3px;
    border: 1px solid #b1b1b1;

    user-select: none;
}

.mt-4px {
    margin-top: 4px;
}

.mt-10px {
    margin-top: 10px;
}

.format-icon {
    display: inline-block;
    margin-left: 10px;
    user-select: none;
}

.film-title-input {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}

.film-title-input select {
    margin-left: 8px;
    max-width: 12%;
}

:active, :hover, :focus {
    outline: 0;
    outline-offset: 0;
}

details {
    outline: 0;
    outline-offset: 0;
}

.spoiler {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.spoiler>summary {
    cursor: pointer;
    user-select: none;
}

.spoiler summary {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.spoiler ul {
    list-style: none;
    margin-left: 1em;
}

.spoiler ul>li {
    margin-left: 1em;
    text-indent: -1em;
}

.mr-10px {
    margin-right: 10px;
}

.filmadd-notification {
    margin-top: 10px;
}

.filmadd-notification > div {
    text-align: right;
}

.filmadd-notification label:not(:last-of-type) {
    margin-right: 10px;
}

footer {
    display: grid;
    grid-template-columns: 1fr max-content;

    background: url('../img/footer-bg.jpg') no-repeat;
    background-size: cover;

    font-family: "Graphik LCG", sans-serif;

    padding: 25px 25px 25px 25px;
}

footer p {
    color: #676767;
    font-size: 18px;
    user-select: none;
}

.footer-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-contact {
    font-size: 16px;
    font-weight: bold;
    color: #9e9e9e;

    user-select: text;
}

.footer-icon {
    color: #676767;
    font-size: 16px;
}

.footer-icon.small {
    font-size: 18px;
}

.footer-icon::before {
    margin-right: 5px;
}

.footer-contact.small {
    font-size: 16px;
}

.footer-right {
    margin-right: 25px;
}

/* ---------------- To top ------------------ */
#to-top {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    font-size: 28px;
    line-height: 1;

    color: #fff;
    background: #303e49;
    border-radius: 50%;

    right: 40px;
    bottom: -60px;

    overflow: hidden;
    z-index: 20;

    transition: bottom .3s ease;
}

#to-top:hover {
    background: #ff951b;
}

#to-top:focus {
    outline: none;
}

#to-top.active {
    bottom: 40px;
}

/* увеличенная картинка */
#overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.1;
    z-index: 9990;

    transition: opacity .3s ease-in;
}

.show {
    opacity: 1!important;
}

#magnify {
    display: none;
    position: fixed;
    max-width: 600px;
    /*max-height: 90vh;*/
    height: auto;
    z-index: 9999;

    opacity: 0;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    transition: opacity .3s ease-in;
}

#magnify img {
    width: 100%;
    box-shadow: 0 0 15px rgba( 0, 0, 0, .5 );
}

/* кнопка закрытия */
#close-popup {
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 1px solid #AFAFAF;
    border-radius: 15px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

#close-popup i {
    width: 30px;
    height: 30px;
    background: url('../img/cross.png') no-repeat center center;
    background-size: 16px 16px;
    display: block;
}

@keyframes rota {
    25% { transform: rotate(360deg); }
}

#close-popup:hover {
    animation: rota 4s infinite normal;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}

.footer-working-time {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: .07em;
}

.footer-working-time > span {
    font-weight: bold;
}
