/* 
Datalife Engine template,
name: HDRezka redesign, creation date: 28 september 2023, version dle: 16 and higher
*/

:root {
    --bg: #000;
    --bg-2: #2d2d2d;
    --bg-dark: #2d2d2d;
    --tt: #ffffff;
    --tt-2: #b3b3b3;
    --tt-3: #ffffff;
    --tt-accent: #e50914;
    --tt-dark: rgba(255, 255, 255, 1);
    --bdc: #2d2d2d;
    --accent-green: #00a0b0;
    --accent-red: #e50914;
    --accent-grass: #216d2b;
    --accent-gray: #696969;
    --accent-gold: #c9af1c;
    --bg-btn: #e50914;
    --bg-btn-hover: #c1030c;
    --ui-bg: #000;
    --ui-bg-darker: #2d2d2d;
    --ui-bg-darkest: #1a1a1a;
    --ui-bg-accent: #2d2d2d;
    --ui-text-color-on-accent: #fff;
    --ui-bdc: #2d2d2d;
    --indent-negative: -40px;
    --indent: 40px;
    --max-width: 1240px;
}

@media screen and (max-width: 950px) {
     :root {
        --indent-negative: -20px;
        --indent: 20px;
    }
}


/* RESET, BASIC UI SETTINGS
----------------------------------------------- */

* {
    background: transparent;
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    box-sizing: border-box;
}

ol,
ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img,
table,
iframe,
video,
frame,
embed,
object {
    max-width: 100%;
}

body {
    font: 14px 'Inter', sans-serif;
    line-height: normal;
    padding: 0;
    margin: 0;
    color: var(--tt);
    background: #000;
    min-height: 100%;
    width: 100%;
    font-weight: 400;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--accent-red);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    font-size: 24px;
}

::selection {
    background: #e50914;
    color: #fff;
}

b,
strong,
.bolder {
    font-weight: 700;
}

button,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="button"],
input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    font-size: 16px;
    font-family: inherit;
}

button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"],
.form__btn,
.qq-upload-button,
.pm__links a,
.usp__btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    background: var(--accent-red);
    color: #fff;
    border-radius: 4px;
    box-shadow: none;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.form__btn:hover,
.qq-upload-button:hover,
.pm__links a:hover,
.usp__btn a:hover {
    background-color: var(--bg-btn-hover);
    color: #fff;
    border-color: var(--bg-btn-hover);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
    box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1);
}

.color-btn,
[class*=fr],
[class*=plyr],
[class*=owl-],
[id*=mceu] {
    padding: 0;
    margin: 0;
    line-height: normal;
    border: 0;
    box-shadow: none;
    background: none;
    border-radius: 0;
}

input[type="text"],
input[type="password"] {
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    padding: 0 15px;
}

select {
    height: 40px;
    padding: 0 15px;
    display: block;
}

select:not([multiple]) {
    background-image: url(../dleimages/chevron.svg);
    padding-right: 30px;
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .6em auto;
}

select option {
    padding: 6px 10px;
}

select[multiple] {
    padding: 0 5px;
}

textarea {
    padding: 15px;
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    background-color: var(--bg);
    color: var(--tt);
    box-shadow: inset 0 0 0 1px var(--bdc), inset 1px 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    box-shadow: inset 0 0 0 1px var(--tt-accent), inset 1px 2px 5px rgba(0, 0, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--tt);
    opacity: 0.4;
    font-size: 13px;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent
}


/* SNIPPETS
----------------------------------------------- */

.img-box,
.img-wide,
.img-responsive,
.img-fit-cover {
    overflow: hidden;
    position: relative;
}

.img-responsive {
    padding-top: 60%;
}

.img-responsive--portrait {
    padding-top: 150%;
}

.img-box>img,
.img-responsive>img {
    width: 100%;
    min-height: 100%;
    display: block;
}

.img-responsive>img {
    position: absolute;
    left: 0;
    top: 0;
}

.img-wide img,
.img-wide>a {
    width: 100%;
    display: block;
}

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

.clr {
    clear: both;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.ws-nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vw100 {
    margin: 0 calc((100% - 100vw)/2);
    padding: 0 calc((100vw - 100%)/2);
}

.img-mask::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    opacity: 0.8;
}

.d-flex,
.fx-row,
#dle-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.fd-column,
.fx-col {
    flex-direction: column;
    flex-wrap: nowrap;
}

.jc-space-between,
.fx-row {
    justify-content: space-between;
}

.jc-flex-start,
.fx-start,
#dle-content {
    justify-content: flex-start;
}

.jc-center,
.fx-center {
    justify-content: center;
}

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

.ai-flex-start {
    align-items: flex-start;
}

.ai-center,
.fx-middle {
    align-items: center;
}

.ai-flex-end {
    align-items: flex-end;
}

.order-first {
    order: -1;
}

.order-last {
    order: 10;
}

.flex-grow-1,
.fx-1,
.stretch-free-width {
    flex: 1 1 0;
    max-width: 100%;
    min-width: 50px;
}

.btn-icon,
.centered-content {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.pi-center {
    display: grid !important;
    place-items: center;
}

.icon-at-left [class*="fa-"],
.icon-left .icon {
    margin-right: 0.5em;
}

.icon-at-right [class*="fa-"],
.icon-right .icon {
    margin-left: 0.5em;
}

.hidden,
#dofullsearch,
.form__header .form__btn,
.comment-item__main .quote+br,
.d-none {
    display: none;
}

.anim,
button,
.btn,
a,
a img,
.btn-accent,
.header__btn-search {
    transition: all .3s;
}

.grid-items,
#dle-content {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(234px, 1fr));
}

.grid-items>*:not(.grid-item),
#dle-content>*:not(.grid-item) {
    grid-column: 1 / -1;
}

@font-face {
    font-family: 'inter';
    src: url('../webfonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'inter';
    src: url('../webfonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'inter';
    src: url('../webfonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'inter';
    src: url('../webfonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.dt-is-active {
    --bg: #000;
    --bg-2: #2d2d2d;
    --bg-dark: #2d2d2d;
    --tt: #fff;
    --tt-2: #b3b3b3;
    --tt-3: #fff;
    --tt-accent: #e50914;
    --tt-dark: rgba(255, 255, 255, 1);
    --bdc: #2d2d2d;
    --bg-btn: #e50914;
    --bg-btn-hover: #c1030c;
    --ui-bg: #000;
    --ui-bg-darker: #2d2d2d;
    --ui-bg-darkest: #1a1a1a;
    --ui-bg-accent: #2d2d2d;
    --ui-text-color-on-accent: #fff;
    --ui-bdc: #2d2d2d;
}

.dt-is-active .sect__ctrl-menu a,
.dt-is-active .tabs-block__select button {
    --bg-dark: #2d2d2d;
}

.dt-is-active .pmovie__header .poster__fav a,
.dt-is-active .card .poster__fav a {
    color: #fff;
}

.dt-is-active .pmovie__list,
.dt-is-active .pmovie__text,
.dt-is-active .footer__text,
.dt-is-active .footer__copyright,
.dt-is-active .card__rating-ext,
.dt-is-active .card__list li>span:first-child,
.dt-is-active .descr {
    color: var(--tt-2);
}

.dt-is-active .pmovie__list li>span:first-child,
.dt-is-active .pmovie__list li>span.bolder {
    color: var(--tt);
}

.dt-is-active .add-comments-form .form__input,
.dt-is-active .add-comments-form__input,
.dt-is-active .add-comments-form .form__textarea-inside textarea,
.dt-is-active .mass_comments_action select {
    box-shadow: inset 0 0 0 1px #11212e;
    background-color: rgba(0, 0, 0, 0.1);
}

.dt-is-active .message-info {
    background-color: rgba(0, 0, 0, 0.1);
    color: #ccc;
}


/* Serialy Rating Styles (0-10 stars) - улучшенный дизайн */

.serialy-rating {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    vertical-align: middle;
    width: 100%;
    max-width: 220px;
}

.serialy-rating-stars {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200px;
    height: 22px;
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><linearGradient id="starEmpty" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%232d2d2d;stop-opacity:1" /><stop offset="100%" style="stop-color:%233d3d3d;stop-opacity:1" /></linearGradient></defs><polygon points="10,2 12,8 18,8 13,12 15,18 10,14 5,18 7,12 2,8 8,8" fill="url(%23starEmpty)" stroke="%23444444" stroke-width="0.5"/></svg>') repeat-x;
    background-size: 20px 22px;
    display: flex !important;
    flex-direction: row !important;
    border-radius: 4px;
    overflow: hidden;
}

.serialy-rating-stars li {
    display: inline-block;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    transition: transform 0.1s ease;
}

.serialy-rating-stars li:hover {
    transform: scale(1.1);
    z-index: 3;
}

.serialy-rating-stars .current-rating {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><linearGradient id="starFilled" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffa500;stop-opacity:1" /><stop offset="50%" style="stop-color:%23ff8c00;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ff6b00;stop-opacity:1" /></linearGradient><filter id="glow"><feGaussianBlur stdDeviation="1" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><polygon points="10,2 12,8 18,8 13,12 15,18 10,14 5,18 7,12 2,8 8,8" fill="url(%23starFilled)" stroke="%23ff8c00" stroke-width="0.5" filter="url(%23glow)"/></svg>') repeat-x;
    background-size: 20px 22px;
    z-index: 0;
    transition: width 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.serialy-rating-stars li a {
    display: block;
    width: 20px;
    height: 22px;
    text-indent: -9999px;
    text-decoration: none;
    position: absolute;
    top: 0;
    z-index: 2;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.serialy-rating-stars li a:hover {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><defs><linearGradient id="starHover" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffc107;stop-opacity:0.8" /><stop offset="100%" style="stop-color:%23ffa500;stop-opacity:0.8" /></linearGradient></defs><polygon points="10,2 12,8 18,8 13,12 15,18 10,14 5,18 7,12 2,8 8,8" fill="url(%23starHover)" stroke="%23ffa500" stroke-width="0.5"/></svg>') no-repeat center;
    background-size: 20px 22px;
    transform: scale(1.15);
}

.serialy-rating-stars li.r1-star a {
    left: 0;
}

.serialy-rating-stars li.r2-star a {
    left: 20px;
}

.serialy-rating-stars li.r3-star a {
    left: 40px;
}

.serialy-rating-stars li.r4-star a {
    left: 60px;
}

.serialy-rating-stars li.r5-star a {
    left: 80px;
}

.serialy-rating-stars li.r6-star a {
    left: 100px;
}

.serialy-rating-stars li.r7-star a {
    left: 120px;
}

.serialy-rating-stars li.r8-star a {
    left: 140px;
}

.serialy-rating-stars li.r9-star a {
    left: 160px;
}

.serialy-rating-stars li.r10-star a {
    left: 180px;
}


/* Контейнер для значений рейтинга - обертка через CSS */

.serialy-rating>.serialy-rating-value,
.serialy-rating>.serialy-rating-votes {
    display: block;
    text-align: center;
    width: 100%;
}

.serialy-rating-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 18px;
    color: #ffa500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.serialy-rating-value::before {
    content: 'Рейтинг:';
    font-size: 13px;
    font-weight: 500;
    color: var(--tt-2);
    opacity: 0.8;
}

.serialy-rating-votes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tt-2);
    opacity: 0.8;
    font-weight: 400;
    margin-top: 2px;
}

.serialy-rating-votes::before {
    content: 'Голосов:';
    font-size: 13px;
    font-weight: 500;
    color: var(--tt-2);
    opacity: 0.8;
}

.serialy-rating-block {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}


/* Адаптивность для мобильных */

@media screen and (max-width: 760px) {
    .serialy-rating {
        max-width: 100%;
    }
    .serialy-rating-stars {
        width: 180px;
        height: 20px;
        background-size: 18px 20px;
    }
    .serialy-rating-stars .current-rating {
        height: 20px;
        background-size: 18px 20px;
    }
    .serialy-rating-stars li a {
        width: 18px;
        height: 20px;
    }
    .serialy-rating-stars li.r2-star a {
        left: 18px;
    }
    .serialy-rating-stars li.r3-star a {
        left: 36px;
    }
    .serialy-rating-stars li.r4-star a {
        left: 54px;
    }
    .serialy-rating-stars li.r5-star a {
        left: 72px;
    }
    .serialy-rating-stars li.r6-star a {
        left: 90px;
    }
    .serialy-rating-stars li.r7-star a {
        left: 108px;
    }
    .serialy-rating-stars li.r8-star a {
        left: 126px;
    }
    .serialy-rating-stars li.r9-star a {
        left: 144px;
    }
    .serialy-rating-stars li.r10-star a {
        left: 162px;
    }
    .serialy-rating-value {
        font-size: 16px;
    }
    .serialy-rating-value::before {
        font-size: 12px;
    }
    .serialy-rating-votes {
        font-size: 12px;
    }
    .serialy-rating-votes::before {
        font-size: 12px;
    }
}