/* Стилизация страницы */
.player-container {
    position: relative;
    margin: 0;
}

.player-image {
    width: 100%;
    max-width: auto;
    height: 500px;
    margin: 0 auto;
    border-radius: 0px;
    object-fit: cover;
    background-color: #1c1c1c; /* Очень тёмный фон */
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    .player-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        max-width: 800px;
    }
}

a {
    text-decoration: none;
    color: #ff0000; /* Красный цвет ссылок */
    cursor: pointer;
}

a:hover {
    color: #fafafa; /* Бледно-белый цвет при наведении */
}

* {
    margin: 0;
    padding: 0;
    text-decoration: inherit;
    font-weight: inherit;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    font-style: inherit;
}

*:focus {
    outline: none;
    -moz-outline-style: none;
}

*::-moz-focus-inner {
    border: 0;
}

html {
    overflow-y: scroll;
}

body {
    min-height: 100%;
    position: relative;
    font-weight: 400;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    background-color: #1c1c1c; /* Тёмно-тёмный фон */
    color: #fafafa; /* Белый цвет текста */
    font-size: 13px;
}

#body {
    background-position: center 0;
    background-repeat: no-repeat;
    background-size: 100%;
    height: 1px;
    min-height: 100%;
}

#page {
    width: 100%;
    max-width: 1140px;
    min-width: 288px;
    margin: 0 auto;
    background-color: #262626; /* Немного светлее основного фона */
    min-height: 100%;
    box-shadow: 0 0 15px #111;
}

#footer {
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: #cccccc; /* Серебристый цвет текста */
    padding: 15px 0;
}

#footer .links a {
    opacity: 0.7;
}

#footer .links a:hover {
    opacity: 1;
}

@media all and (min-width: 851px) {
    #body.background-image {
        padding-top: 370px;
        padding-top: 19.2708vw;
    }
    #body.background-image #page {
        width: 95%;
    }
}

/* Стилизация списка серий */
.series-list {
    padding-bottom: 20px;
}

.series-list .title {
    font-weight: normal;
    color: #ffffff; /* Белый цвет текста */
    padding-bottom: 3px;
    font-size: 14px;
}

.series-list a {
    display: inline-block;
    min-width: 1.4em;
    padding: 0 0.3em;
    line-height: 1.5em;
    text-align: center;
    color: #ff0000; /* Красный цвет выделенных элементов */
    border-bottom: 1px dashed;
    margin: 0 0.5em 0.5em 0;
    font-size: 15px;
    cursor: pointer;
}

.series-list a.selected {
    color: #ffffff; /* Выбранные серии белым цветом */
    border-bottom: none;
}

.series-list .seasons {
    padding-bottom: 10px;
}

.series-list .episodes-list {
    display: none;
}

.series-list .episodes-list.selected {
    display: block;
}

/* Стилизация превью кадров фильмов */
.stills {
    padding: 20px 0;
    text-align: center;
}

.stills .buttons {}

.stills .button {
    display: inline-block;
    background-color: #ff0000; /* Красная кнопка */
    border-radius: 3px;
    line-height: 46px;
    white-space: nowrap;
    padding: 0 35px;
    color: #ffffff; /* Белый цвет текста кнопки */
    font-size: 16px;
    cursor: pointer;
    width: 250px;
}

.stills .still {
    width: 22.75%;
    margin-right: 3%;
    padding-bottom: 3%;
    float: left;
    cursor: pointer;
    overflow: hidden;
}

.stills .img {
    width: 100%;
    height: 0;
    padding-bottom: 65%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

@media all and (min-width: 769px) {
    .stills .still:nth-child(4n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+5) {
        display: none;
    }
}

@media all and (max-width: 768px) and (min-width: 564px) {
    .stills .still {
        width: 31.2%;
        margin-right: 3.2%;
        padding-bottom: 3.2%;
    }
    .stills .still:nth-child(3n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+4) {
        display: none;
    }
}

@media all and (max-width: 563px) and (min-width: 376px) {
    .stills .still {
        width: 47.5%;
        margin-right: 5%;
        padding-bottom: 5%;
    }
    .stills .still:nth-child(2n) {
        margin-right: 0;
    }
    .stills .still:nth-child(n+5) {
        display: none;
    }
}

@media all and (max-width: 375px) {
    .stills .still {
        float: none;
        width: 100%;
        max-width: 230px;
        margin: 0 auto 6% auto;
    }
    .stills .still:nth-child(n+3) {
        display: none;
    }
}

.stills.show-all .still {
    display: block;
}

.film .stills.short .buttons {
    display: none;
}

.stills-slider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 10;
    font-size: 0;
}

.stills-slider .slider-wrap {
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
}

.stills-slider .slider-image {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-right: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('');
}

.stills-slider .slider-image .img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.content {
    width: 95%;
    max-width: 1000px;
    min-width: 288px;
    margin: 0 auto;
}

.location-error {
    font-size: 36px;
    text-align: center;
    font-weight: 300;
    line-height: 252px;
    white-space: nowrap;
    overflow: hidden;
}

@media all and (max-height: 720px) {
    .location-error {
        line-height: 35vh;
    }
}

@media all and (max-width: 480px) {
    .location-error {
        font-size: 7.5vw;
    }
}

h2 {
    width: 95%;
    max-width: 1140px;
    min-width: 288px;
    margin: 0 auto;
    font-size: 40px;
    padding-bottom: 0.5em;
    color: #ff0000; /* Контрастный красный заголовок */
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    line-height: 1.5em;
}

h2:before,
h2:after {
    content: '';
    display: inline-block;
    width: 100%;
    height: 2px;
    background: #ff0000; /* Контрастные красные линии */
    z-index: -1;
    position: relative;
    top: -10px;
}

h2:before {
    right: 0.7em;
    margin: 0 0 0 -100%;
}

h2:after {
    left: 0.7em;
    margin: 0 -100% 0 0;
}

@media all and (max-width: 550px) {
    h2:before,
    h2:after {
        display: none;
    }
}

.film-removed {
    font-size: 36px;
    text-align: center;
    font-weight: 300;
    padding-top: 150px;
    line-height: 50px;
    padding-top: calc(50vh - 25px);
}

@media all and (max-width: 750px) {
    .film-removed {
        padding-top: calc(50vh - 50px);
    }
}

@media all and (max-width: 485px) {
    .film-removed {
        font-size: 7.4227vw;
        line-height: 10.3093vw;
        padding-top: calc(50vh - 10.3093vw);
    }
}

.comments {
    padding: 20px 0;
}

.comment {
    padding-bottom: 22px;
    padding-left: 92px;
    position: relative;
}

.comment .avatar {
    position: absolute;
    width: 70px;
    height: 70px;
    left: 0;
    top: 0;
}

.comment .data {
    min-height: 70px;
    padding: 0 0 0 15px;
    border-left: 1px solid #ff0000; /* Красная левая граница */
}

.comment .user-name {
    text-transform: uppercase;
    font-size: 15px;
    color: #ff0000; /* Имя пользователя красное */
}

.comment .date {
    font-size: 12px;
    color: #aaaaaa; /* Даты светло-серым оттенком */
    padding: 2px 0;
    font-weight: lighter;
}

.comment .text {
    font-size: 15px;
    padding: 5px 0 0 0;
    font-weight: lighter;
    line-height: 1.3em;
}

.comments .avatar.no-image {
    border-radius: 0;
    background-image: none;
}

@media all and (max-width: 550px) {
    .comment {
        padding-left: 0;
        padding-bottom: 10px;
    }
    .comment .avatar {
        display: none;
    }
    .comment .data {
        min-height: 0;
        padding: 0 0 10px 0;
        border-left: none;
        border-bottom: 1px solid #ff0000; /* При мобильной версии красная нижняя рамка */
    }
    .comments .comment:last-child .data {
        border: none;
    }
}

.comment-add {
    display: block;
    width: 100%;
    padding-top: 15px;
}

.comment-add textarea {
    font-size: 15px;
    display: block;
    width: 100%;
    padding: 15px;
    color: #fafafa;
    background-color: #303030;
    height: 120px;
    min-height: 50px;
    max-height: 120px;
}

.comment-add textarea::-webkit-input-placeholder {
    color: #fafafa;
    text-overflow: ellipsis;
}

.comment-add textarea:focus::-webkit-input-placeholder {
    color: transparent;
}

.comment-add textarea::-moz-placeholder {
    color: #fafafa;
    text-overflow: ellipsis;
}

.comment-add textarea:focus::-moz-placeholder {
    color: transparent;
}

.comment-add textarea:-moz-placeholder {
    color: #fafafa;
    text-overflow: ellipsis;
}

.comment-add textarea:focus:-moz-placeholder {
    color: transparent;
}

.comment-add textarea:-ms-input-placeholder {
    color: #fafafa;
    text-overflow: ellipsis;
}

.comment-add textarea:focus:-ms-input-placeholder {
    color: transparent;
}

.comment-add .buttons {
    text-align: right;
    padding-top: 15px;
}

.comment-add .button {
    background-color: #ff0000; /* Кнопка отправки комментария красного цвета */
    border-radius: 3px;
    line-height: 46px;
    white-space: nowrap;
    padding: 0 35px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.film-title {
    font-size: 42px;
    padding: 0.5em 0;
    padding: calc(0.3em + 12px) 0;
    color: #ff0000; /* Заголовок названия фильма яркий красный */
}

.film-title .name {
    font-size: 42px;
    font-weight: bold;
    display: block;
    line-height: 1.4em;
}

.film-title .subtitle {
    font-size: 22px;
    display: block;
    font-weight: lighter;
    padding-top: 0.1em;
    line-height: 1.4em;
}

.film-title.txt-tst,
.film-title.txt-tst * {
    white-space: nowrap;
    color: transparent;
    display: inline-block;
}

.film-title.txt-tst {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    visibility: hidden;
    top: -10000px;
    left: 10000px;
}

.film .poster {
    float: left;
    width: 23%;
    height: 0;
    padding-bottom: 34.5%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 20px;
}

.film .film-info {
    float: right;
    position: relative;
    width: 72%;
    font-size: 15px;
    font-weight: lighter;
    line-height: 1.6em;
    padding-top: 25px;
    margin-top: 20px;
}

.film .film-info::before {
    content: '';
    display: block;
    position: absolute;
    width: 25%;
    height: 5px;
    background: #ff0000; /* Верхняя красная полоска */
    left: 0;
    top: 0;
}

.film .info-table {
    margin-top: 20px;
    display: table;
}

.film .film-info .info-table .row {
    display: table-row;
}

.film .film-info .info-table .row div {
    display: table-cell;
    padding-bottom: 12px;
    vertical-align: top;
}

.film .film-info .info-table .label {
    font-weight: normal;
    white-space: nowrap;
    color: #ff0000; /* Ярко-красные метки таблицы */
    padding-right: 30px;
}

@media all and (max-width: 750px) {
    .film .poster {
        display: none;
    }
    .film .film-info {
        width: auto;
        float: none;
    }
}

@media all and (max-width: 520px) {
    .film .film-info .info-table,
    .film .film-info .info-table .row,
    .film .film-info .info-table .row .label,
    .film .film-info .info-table .row .value {
        display: block;
    }
    .film .film-info .info-table .row .label {
        padding: 0 0 4px 0;
    }
    .film .film-info .info-table .row .value {
        padding: 0 0 12px 0;
        border: none;
    }
    .film .film-info .info-table .row:last-child .value {
        padding: 0;
    }
}

.itemsContainer {
    background: red;
    float: left;
    position: relative;
}

.itemsContainer:hover .play {
    display: block;
}

.play {
    position: absolute;
    display: none;
    top: 20%;
    width: 40px;
    margin: 0 auto;
    left: 0;
    right: 0;
    z-index: 100;
}

.videoContainer {
    position: relative;
}

.playBtn {
    position: absolute;
    width: 96px;
    height: 96px;
    left: 50%;
    top: 50%;
    margin-left: -48px;
    margin-top: -48px;
}