:root {
    --background-color: #000;
    --color-white: #fff;
    --color-gray: #3b3b3b;
    --text-color: rgba(18, 20, 22, 0.85);
    --link-color: #ccc;
    --heder-footer-bg: rgba(0, 0, 0, 0.85);
    --box-shadow: 0px 0px 9px 5px rgba(54, 51, 101, 0.33);
    --preview-title: #555;
    --metaline: 1px solid #ccc;
    --line-bg: rgb(227, 227, 227);
    --pagi-nav-bg: #fff;
    --pagi-nav-border: 1px solid #f1f1f1;
    --pagi-nav-span: #fff;
    --pagi-nav-bl: 1px solid #e3e3e3;
    --site-desc: #5c5c5c;
    --transparent-bg: rgb(242, 242, 242);
    --cat-bg: #f2f2f2;
    --cat-hover: #fff;
    --button-bg: #666;
    --comm-bg: #fff;
    --comm-background-color: #f9f9f9;
    --comm-textarea: #1b1b1b;
    --comm-text-border: 1px solid #e8e8e8;
    --main-block-actor-bg: #fff;
    --footer-color: #bdbdbd;
    --modal-input-border: 1px solid #e4e4e4;
    --info-color: #9b9b9b;
    --logo-color: #111;
}

html[data-theme='dark'] {
    --background-color: #000;
    --background-search-color: rgba(24, 24, 24, 0.92);
    --text-color: #e0e0e0;
    --link-color: #e0e0e0;
    --heder-footer-bg: rgba(0, 0, 0, 0.85);
    --box-shadow: 0px 0px 9px 5px rgba(255, 255, 255, 0.33);
    --preview-title: #d3d3d3;
    --metaline: 1px solid #424242;
    --line-bg: #333;
    --pagi-nav-bg: #444;
    --pagi-nav-border: 1px solid #404040;
    --pagi-nav-span: #ddd;
    --pagi-nav-bl: 1px solid #595959;
    --site-desc: #bdbdbd;
    --transparent-bg: #222;
    --cat-bg: #212121;
    --cat-hover: #373737;
    --comm-bg: #666;
    --comm-background-color: #424242;
    --comm-textarea: #fefefe;
    --comm-text-border: 1px solid #434343;
    --main-block-actor-bg: #222;
    --footer-color: #bdbdbd;
    --modal-input-border: 1px solid #2f2f2f;
    --info-color: #c2c2c2;
    --logo-color: #fff;
}

html[data-theme='light'] {
    --background-color: #f9f9f9;
    --background-search-color: rgba(249, 249, 249, 0.8);
    --text-color: rgba(18, 20, 22, 0.85);
    --link-color: #ccc;
    --heder-footer-bg: rgba(242, 242, 242, 0.85);
    --box-shadow: 0px 0px 9px 5px rgba(54, 51, 101, 0.33); /* Тот же, что и в :root */
    --preview-title: #555;
    --metaline: 1px solid #ccc;
    --line-bg: rgb(227, 227, 227);
    --pagi-nav-bg: #fff;
    --pagi-nav-border: 1px solid #f1f1f1;
    --pagi-nav-span: #fff;
    --pagi-nav-bl: 1px solid #e3e3e3;
    --site-desc: #5c5c5c;
    --transparent-bg: rgb(242, 242, 242);
    --cat-bg: #f2f2f2;
    --cat-hover: #fff;
    --footer-color: #555; /* Отличие */
    --modal-input-border: 1px solid #e4e4e4;
    --info-color: #9b9b9b;
    --logo-color: rgba(17, 17, 17, 1);
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: var(--background-color) ;
    color: var(--text-color);
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

p {
    margin-bottom: 0;
}

a {
    color: var(--text-color);
    text-decoration: none!important;
}

a:hover {
    color: var(--link-color);
    filter: brightness(95%);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h2 {
    font-size: 1.7rem;
}

img {
    border-radius: 5px;
    vertical-align: set;
}

dl, ol, ul {
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.d-none, .dpn, .mobile-menu, .counter, .side-panel, .descrip-btn {
    display: none;
}

/*.wrapper {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 80vh;*/
/*}*/

.container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#gotop {
    position: fixed;
    width: 65px;
    height: 65px;
    line-height: 60px;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    z-index: 9998;
    display: none;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.48);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 4em;
}
/*************************************************/

/**************** Основные блоки *****************/
.contello {
    width: 100%;
}

.content {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin: 0;
}

.header-one, .header-two, .footer {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 84;
}

.header-two {
/*    box-shadow: 0 0 5px 1px rgb(0 0 0 / 20%);
    z-index: 11;*/
    width: 100%;
    margin: auto;
}
#main-menu-area a {
    color: var(--text-color);
    font-weight: bold;
}
#main-menu-area a:hover {
    font-weight: bold;
}

#main-menu-area a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background-color: currentColor;
}

.header-one {
    background-color: var(--heder-footer-bg);
}

.footer {
    background-color: var(--color);
    padding: 30px 20px;
    color: #ccc;
    font-family: sans-serif;
    font-size: 14px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--footer-color);
}

.footer-text p {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--footer-color);
    text-decoration: none;
    font-size: 13px;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}


.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-text {
        /*max-width: 60%;*/
        text-align: center;
    }

    .footer-links {
        /*justify-content: flex-end;*/
        flex-wrap: nowrap;
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    width: fill-available;
    width: -webkit-fill-available;
    width: -moz-available;
}

.top-menu {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  height: 60px;
  max-width: 1248px;
  margin: 0 auto;
}

.position {
    display: inline-flex;
}

/* Стиль для логотипа */
.logo-container {
    display: flex;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--logo-color);
  text-decoration: none;
  padding: 5px 10px;
  margin: 0 auto;
  align-items: center;
  display: flex;
}

.logo:hover {
    color: var(--logo-color);
}

.btns-log {
    display: inline-flex;
    text-transform: uppercase;
    list-style: none;
}
.btns-log li a {
    color: var(--color-white);
    margin: 0 5px;
}

.show-login, .registration {
    color: var(--color-white);
    font-size: 1em;
    cursor: pointer;
    display: inline-block;
    padding: 3px 15px;
}

#theme-toggle {
    background-color: var(--button-bg);
    border-radius: 50%;
    padding: 5px;
    border: none;
    cursor: pointer;
    margin: 16px 10px 11px 10px;
}

#theme-toggle .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
}

#theme-toggle .icon-moon, #theme-toggle .icon-sun {
    color: var(--color-white);
    font-size: 18px;
}
/*************************************************/

/********************* Меню **********************/
.sec-menu {
    height: 40px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.menu {
    display: inline-flex;
    position: absolute;
    /*bottom: 9px;*/
}

.menu > li > a {
    color: var(--color-white);
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 8px;
    font-weight: 600;
}

#topchik-fav {
    background-color: #868585;
    color: var(--color-white);
    vertical-align: top;
    padding: 0px 6px 0px 6px;
    margin-left: 5px;
    border-radius: 3px;
}
/*************************************************/

/****************** Шортстори ********************/
.video-card {
    position: relative;
    width: 25%;
    padding: 0 7px 7px 5px;
    overflow: hidden;
}

.video-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    will-change: transform;
    border-radius: 5px;
}

.video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, opacity 0.5s ease-in-out; /* Добавляем opacity */
    opacity: 0; /* Изначально скрыто */
}

.video-thumbnail.loaded {
    opacity: 1; /* Появляется после загрузки */
}

.video-thumbnail-container:hover .video-thumbnail {
    transform: scale(1.03);
}

/* Оверлей с мета-информацией */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.video-thumbnail-container:hover .video-overlay {
    opacity: 1;
}

.invideo-info {
    z-index: 2;
}

/* Остальные стили без изменений */
.actorsinvideo {
    font-size: 1.3rem;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 30px;
    max-width: 80%;
}

.actorsinvideo a {
    position: relative;
    text-decoration: none;
}

.actorsinvideo a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background-color: currentColor;
}

.duration {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 1.3rem;
}

.viewsinvideo {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: #fff;
    font-size: 1.3rem;
}

.preview-text {
    color: var(--preview-title);
    padding: 5px 5px;
    margin-bottom: 10px;
    width: 100%;
}

.invideo-info,
.actorsinvideo a,
.duration,
.viewsinvideo {
    pointer-events: auto;
    color: #fff;
    cursor: pointer;
}

.modal-open {
    z-index: 999;
    display: block;
    position: absolute;
}

.dtime, .nviews {
    padding: 1px 5px 0 5px;
    font-size: 14px;
    color: #cccccc;
}

.preview-title {
    font-size: 1.35em;
    font-weight: 300;
    line-height: 22px;
    height: 44px;
    overflow: hidden;
    color: var(--preview-title);
    cursor: default;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 100px;
    height: 100px;
    fill: white;
    transition: transform 0.3s ease;
}

.preview-main {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 2em;
}

.preview-title-main {
    color: #fff;
}

.actorsinvideo-main {
    max-width: 80%;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 30px;
}

.duration-main {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 1.5em;
}
/*************************************************/

/******************* Сортировка ******************/
.lab {
    display: inline-block;
    width: 100%!important;
    margin-bottom: 0!important;
}

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

.filter-dropdown {
    width: 150px;
    background: #2d2f31;
    position: relative;
    right: 5px;
}

.filter-dropdown span {
    padding: 10px 15px;
    background: #2d2f31;
    color: #e0e0e0;
    font-size: 1em;
    font-variant: small-caps;
    cursor: pointer;
    display: block;
}

.filter-dropdown span::after {
    float: right;
    right: 10%;
    content: "+";
    position: absolute;
}

.slide {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #353535de;
    z-index: 10;
}

.slide li {
    padding: 0;
}

.slide li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #e0e0e0;
    width: 100%;
}

.slide li:hover {
    background-color: #666;
}

.slide li a:hover {
    color: #fff;
}

#sortToggle {
    position: absolute;
    opacity: 0;
    height: 0;
}

#sortToggle:checked + .slide {
    display: block;
}.lab {
     display: inline-block;
     width: 100%!important;
     margin-bottom: 0!important;
 }

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

.filter-dropdown {
    width: 150px;
    background: #2d2f31;
    position: relative;
    right: 5px;
}

.filter-dropdown span {
    padding: 10px 15px;
    background: #2d2f31;
    color: #e0e0e0;
    font-size: 1em;
    font-variant: small-caps;
    cursor: pointer;
    display: block;
}

.filter-dropdown span::after {
    float: right;
    right: 10%;
    content: "+";
    position: absolute;
}

.slide {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: #353535de;
    z-index: 10;
}

.slide li {
    padding: 0;
}

.slide li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #e0e0e0;
    width: 100%;
}

.slide li:hover {
    background-color: #666;
}

.slide li a:hover {
    color: #fff;
}

#sortToggle {
    position: absolute;
    opacity: 0;
    height: 0;
}

#sortToggle:checked + .slide {
    display: block;
}
/*************************************************/

/******************* Пагинация *******************/
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 5px;
}
.pagination-container a,
.pagination-container span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    background-color: transparent;
}
.pagination-container a:hover {
    background-color: #555;
    color: #fff;
}
.pagination-container .pagination-current {
    background-color: #444;
    color: #f1f1f1;
    cursor: default;
}
.pagination-container .pagination-back,
.pagination-container .pagination-forward,
.pagination-container .pagination-start,
.pagination-container .pagination-end {
    font-size: 18px;
    line-height: 1;
}
.pagination-container .pagination-back:hover,
.pagination-container .pagination-forward:hover,
.pagination-container .pagination-start:hover,
.pagination-container .pagination-end:hover {
    background-color: #555;
    color: #fff;
}
/*************************************************/

/****************** Разделитель ******************/
.fcTdkq {
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    height: 2.9rem;
    position: relative;
    width: 100%;
}

.line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--line-bg);
}

.f-title {
    background-color: var(--background-color);
    margin: 5px 0 5px 0;
    padding: 0 10px;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--text-color);
    text-transform: uppercase;
    z-index: 1;
}
/*************************************************/

/*************** Блок с актерами *****************/
.panel-body {
    display: inline-flex;
    width: 100%;
    gap: 10px;
    padding: 0px 5px;
}

.top-actors {
    position: relative;
    width: 16.666667%;
    aspect-ratio: 2/3;
    overflow: hidden;
    transition: transform 0.3s ease; /* Оставляем для других эффектов */
}

.top-actors a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--link-color);
}

.top-actors img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.5s ease-in-out; /* Добавляем opacity */
    opacity: 0; /* Изначально скрыто */
}

.top-actors img.loaded {
    opacity: 1; /* Появляется после загрузки */
}

.overlay h2 {
    color: #ececec;
}

.overlay h2:hover {
    background-color: #7b7b7b78;
    padding: 15px;
    border: 1px solid #7e7e7e;
}

.modelsList .top-actors {
    padding: 10px 5px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.top-actors:hover .overlay {
    opacity: 1;
}

/*************************************************/

/**************** ОПИСАНИЕ страницы **************/
.site-desc, .static-desc {
    color: var(--site-desc);
    line-height: 18px;
    padding: 10px 5px;
    width: 100%;
}

.site-desc h1, .site-desc h2, .site-desc h3 {
    font-size: 1.15em;
    text-transform: uppercase;
    font-weight: bold;
}

/*************************************************/

/******************** ИКОНКИ *********************/
.icon-cog {
    vertical-align: middle;
    color: var(--text-color);
}

.red-news {
    display: inline-block;
    padding: 1px;
}
.red-news >.icon-cog {
    vertical-align: top;
}
.red-news >.icon-cog:hover {
    color: var(--link-color);
}
.minus-rating, .plus-rating, .user-item, .add_favorite, .del_favorite {
    cursor: pointer;
}
/*************************************************/

/******************** Видео **********************/
.fleft {
  width: 100%;
  margin: 0 auto;
  max-width: 1248px;
}

.fcTdkqr {
    display: flex;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    height: 2.9rem;
    position: relative;
    width: 100%;
    margin-top: 0;
}
video.lazy-loaded {
    opacity: 0; /* Изначально скрыто */
    transition: opacity 0.5s ease-in-out; /* Плавное появление */
}

video.lazy-loaded.loaded {
    opacity: 1; /* Появляется после загрузки постера */
}
.video-header {
    text-align: center;
    margin-bottom: 10px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--preview-title);
}

.video-meta-mobile {
    display: inline-flex;
    justify-content: space-around;
    font-size: 16px;
    min-width: 100%;
    border-bottom: var(--metaline);
}

.v-item-one, .v-item-two, .v-item-three {
    display: inline-flex;
    float: none;
    line-height: 10px;
    height: auto;
    padding: 10px 0;
    border-right: none;
}

.v-item-three a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: underline;
}

.v-item-three a:hover, .video-actors a:hover, .video-tags a:hover {
    color: var(--link-color);
}

.video-actors {
    text-transform: uppercase;
    font-size: 1.1em;
    color: var(--text-color);
    margin: 10px 0;
}

.video-actors a {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 10px;
}

.video-actors a:hover {
    color: var(--text-color);
}

.video-actors a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background-color: currentColor;
}

.title-meta, .actors-social {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    /*border-bottom: var(--metaline);*/
}
.social, .video-info, .video-tags, .video-description {
    margin: 10px 0;
}

.toggle-btn {
    margin: 5px 0;
    cursor: pointer;
    text-decoration: underline;
}

.video-tags a {
    color: var(--text-color);
    display: inline-block;
    padding: 0 6px;
    background-color: var(--cat-bg);
    margin: 0 5px 5px 0;
    border-radius: 0px;
    filter: none;
}

.video-tags, .video-description {
    line-height: 24px;
    color: var(--text-color);
}

.ratingtypeplusminus {
    cursor: default;
}

.ratingplus, .ratingminus, .ratingzero {
    font-size: 18px;
    font-weight: 400;
    top: 50%;
    color: var(--text-color);
    align-content: center;
}

.vmeta-plus, .vmeta-minus, .fm-fav {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    font-size: 1.3em;
    opacity: .8;
    background-color: var(--background-color);
    border: var(--pagi-nav-bl);
    color: var(--preview-title);
    padding: 3px 6px 1px;
    border-radius: 0px;
    margin-left: 5px;
}

.vmeta-plus a:hover {
    color: green;
}

.vmeta-minus a:hover {
    color: red;
}

.more-top, .more-bottom {
    cursor: pointer;
    background-color: var(--cat-bg);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/*************************************************/

/****************** Комментарии ******************/
.vidoser-comms {
    padding: 10px;
    background-color: var(--cat-bg);
    margin-top: 10px;
    border-radius: 5px;
}

.comms-title {
    line-height: 30px;
}

.comms-title > span {
    font-size: 14px;
}

.bb-editor textarea {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 7px;
    border: var(--comm-text-border);
    width: 100%;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    margin-top: -1px;
    outline: none;
}

.ac-title {
    margin-bottom: 10px;
}

.add-comm-form {
    position: relative;
    margin: 20px 0;
    display: none;
}

.ac-inputs {
    margin-bottom: 15px;
}

.ac-submit {
    padding-bottom: 15px;
}

.ac-submit button {
    float: right;
    padding: 5px 10px;
    background-color: #666;
    border-radius: 5px;
    color: var(--color-white);
    cursor: pointer;
}

.ac-submit button:hover, .ui-dialog-buttonset button:hover, .login-box button:hover {
    background-color: #777;
}

.ac-textarea textarea {
    height: 85px;
}

textarea {
    display: block;
    color: var(--text-color);
    background-color: var(--comm-background-color);
    border-radius: 5px;
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

.input-name > input[type="text"] {
    color: var(--text-color);
    background-color: var(--comm-background-color);
    border: var(--modal-input-border);
    padding: 5px;
    vertical-align: middle;
    box-sizing: border-box;
    border-radius: 0px;
    width: 100%;
    margin-bottom: 10px;
}

.button {
    padding: 0 10px;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--button-bg);
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
    float: right;
}

.button:hover {
    background-color: #777;
    color: var(--color-white);
}

.comm {
    background-color: var(--cat-bg);
    padding: 10px;
    margin-top: 10px;
    color: var(--text-color);
    border-radius: 0px;
}

.comm-meta {
    margin-bottom: 10px;
}

.comm-author {
    font-weight: bold;
}

.comm-date {
    font-size: 12px;
    float: right;
    color: var(--info-color);
}

.comm-text {
    background-color: var(--comm-background-color);
    padding: 10px;
    border-radius: 0px;
}

.comment {
    display: inline-block;
    width: 90%;
}

.reply {
    padding-bottom: 15px;
    position: relative;
}

.reply-button {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--text-color);
    background-color: var(--comm-background-color);
}
.reply-button:hover {
    color: var(--link-color);
}
/*************************************************/

/*************** Новый Поиск *********************/
.header-search-wrapper {
    float: right;
    position: relative;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    margin-left: 5px;
    display: inline-flex;
}
.search-main {
    cursor: pointer;
}
.search-main:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background-color: currentColor;
}

.search-form {
    display: inline-flex;
}
.header-search-wrapper .search-form-main {
    background: var(--background-search-color) none repeat scroll 0 0;
    -webkit-box-shadow: 1px 1px 7px rgba(0,0,0,.15);
    box-shadow: 1px 1px 7px rgba(0,0,0,.15);
    border-top: 2px solid #666;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 35px;
    width: 280px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}
.search-form-main.active-search {
    opacity: 1;
    visibility: visible;
}
.header-search-wrapper .search-form-main {
    border-top-color: #666;
}
.header-search-wrapper .search-form-main:before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #666;
    content: "";
    position: absolute;
    right: 15px;
    top: -10px;
}
.header-search-wrapper .search-form-main:before {
    border-bottom-color: #666;
}
.header-search-wrapper .search-form-main .search-field {
    border-radius: 0;
    padding: 5px 10px;
    width: 100%;
    float: left;
    font-size: 16px;
    border: 1px solid #5e5e5e;
    color: var(--text-color);
    background-color: var(--background-search-color);
}
.header-search-wrapper .search-form-main .search-submit {
    color: #fff;
    float: left;
    width: 25%;
    background: #5e5e5e;
}
label {
    display: inline-block;
    margin-bottom: 0!important;
}
svg {
    vertical-align: unset!important;
    margin-right: 2px;
}

.search-results h3 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.6rem;
    text-transform: uppercase;
    padding: 0.5rem 0px;
    margin-bottom: 0.5rem;
    border-style: solid;
    border-color: var(--line-bg);
    border-image: none;
    border-width: 0.1rem 0px;
    max-width: 1248px;
    margin: 10px auto;
}
/*************************************************/

.header-cat-wrapper {
    float: right;
    position: relative;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    margin-left: 5px;
    display: inline-flex;
}

.cat-main {
    cursor: pointer;
    position: relative; /* Создание контекста для вложенного меню */
}

.cat-form-main {
    display: none; /* Сначала скрыто */
    position: absolute; /* Позиционирование относительно родителя */
    top: 100%; /* Появляется прямо под кнопкой "Категории" */
    left: 48%; /* Центрирование меню */
    transform: translateX(-50%); /* Центрирование относительно центральной точки кнопки */
    background: var(--background-search-color);
    box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
    border-top: 2px solid #666;
    padding: 10px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cat-form-main.active-cat {
    opacity: 1;
    visibility: visible;
    display: block;
}

.cat-main:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background-color: currentColor;
}

.cat-form {
    display: inline-flex;
}

.header-cat-wrapper .cat-form-main {
    background: var(--background-search-color) none repeat scroll 0 0;
    -webkit-box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
    box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
    border-top: 2px solid #666;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 35px;
    width: 1000px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.cat-form-main.active-cat {
    opacity: 1;
    visibility: visible;
    position: fixed;
    top: 60px;
    /*right: 27.5%;*/
}

.header-cat-wrapper .cat-form-main {
    border-top-color: #666;
}

.header-cat-wrapper .cat-form-main:before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #666;
    content: "";
    position: absolute;
    right: 50%;
    top: -10px;
}

.cat-search-wrapper .cat-form-main:before {
    border-bottom-color: #666;
}

.header-cat-wrapper .cat-form-main .cat-field {
    border-radius: 0;
    padding: 5px 10px;
    width: 100%;
    float: left;
    font-size: 16px;
    border: 1px solid #5e5e5e;
    color: var(--text-color);
    background-color: var(--background-search-color);
}

.header-cat-wrapper .cat-form-main .cat-submit {
    color: #fff;
    float: left;
    width: 25%;
    background: #5e5e5e;
}
/************** Страница категорий ***************/
.cat-div, .nav-in a span:first-child, .nav-in a span + span {
    background-color: var(--main-block-actor-bg);
    border-radius: 0px;
}

.category-h3 {
    font-size: 1.5em;
    margin: 13px;
    padding: 10px 0;
    border-bottom: var(--metaline);
}

.cat-div {
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.05);
}
/*************************************************/

/************* Навигация категорий ***************/
.nav {
    margin: 5px 0;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    width: 100%;
    background-color: var(--main-block-actor-bg);
    border-radius: 0px;
}

.nav-in li {
    width: 33%;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    margin: 0px;
    padding-top: 4px;
}

.nav-in a {
    display: block;
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    position: relative;
    overflow: hidden;
    color: var(--metaline);
}

.nav-in a:before {
    content: "";
    height: 1px;
    border-top: 1px dotted #666;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 15px;
}

.nav-in a span:first-child {
    display: inline-block;
    vertical-align: top;
    padding-right: 10px;
    background-color: var(--main-block-actor-bg);
    max-width: calc(100% - 80px);
    max-width: -webkit-calc(100% - 80px);
    float: left;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-in a span + span {
    display: inline-block;
    vertical-align: top;
    color: #888;
    background-color: var(--main-block-actor-bg);
    padding-left: 10px;
    top: 2px;
    float: right;
    position: relative;
    z-index: 10;
    font-size: 0.75em;
}

.nav-in a:after {
    content: "";
    display: table;
    clear: both;
}

.nav-in a:hover, .nav-in a:hover span, .nav-in a.active, .nav-in a.active span {
    background-color:var(--cat-hover);
    color: var(--text-color);
    border-radius: 0px;
}

.wrap-center {
    width: 100%;
}
/*************************************************/

/***************** Актер *************************/
.model-breadcrumb {
    margin-left: 8px;
    /*margin-top: 10%;*/
}
/*************************************************/

/*************** Страница актеров ****************/
.is_active {
    background-color: #848484;
}

.active {
    min-width: 55px;
    min-height: 50px;
    padding: 12px;
    background-color: #6d6d6d;
}
.active:hover {
    filter: none;
    box-shadow: none;
    cursor: default;
}

.modelsList {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

/*************************************************/

/****************** Служебные ********************/
.align-center {
    display: flex;
    align-items: center;
}

.alert-success {
    color: var(--text-color);
    background-color: var(--cat-bg);
    border-color: var(--cat-bg);
    margin: 2px 7px 10px 5px;
    border-radius: 0px;
}

pre {
    display: block;
    font-size: 87.5%;
    color: var(--text-color);
    background-color: var(--cat-bg);
    padding: 10px;
}

.rules-title {
    margin-left: 5px;
}

.rules {
    background-color: var(--main-block-actor-bg);
    color: var(--text-color);
    padding: 15px 10px;
    margin: 10px 5px;
    border-radius: 0px;
}

/*************************************************/


/************* Боковое меню мобилка **************/
.close-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 84;
    display: none;
}

.side-panel {
    display: none;
}

.btn-menu {
    display: none;
}

.side-panel {
    width: 260px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #222;
    padding: 0 10px;
    z-index: 85;
    position: fixed;
    left: -260px;
    top: 0;
    transition: left .4s;
    -webkit-transition: left .4s;
}

.side-panel.active {
    left: 0;
}

/*.close-overlay {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background-color: rgba(0, 0, 0, 0.8);*/
/*    position: fixed;*/
/*    left: 0;*/
/*    top: 0;*/
/*    z-index: 87;*/
/*    display: none;*/
/*}*/

body.opened-menu {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Стили для бокового меню */
.dpn.h-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s;
}

.sidebar-menu li a {
    text-decoration: none;
    color: #eaeaea;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Блок для иконок */
.icon-container {
    width: 24px; /* Фиксированная ширина для иконок */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* Отступ между иконкой и текстом */
    flex-shrink: 0;
}

/* Стили для текста */
.side-text {
    flex-grow: 1;
    margin-right: 10px; /* Это обеспечит одинаковое расстояние между текстом и количеством закладок */
    font-size: 18px;
}

/* Стили для количества видео справа */
.news-count {
    font-size: 14px;
    color: #888; /* Светлый цвет для текста количества */
    margin-left: 10px;
    flex-shrink: 0; /* Чтобы не сжимался */
}

/* Стили для активного состояния (можно добавить, если нужно) */
.sidebar-menu li a.active {
    color: #007bff;
    font-weight: bold;
}

/* Стили для формы поиска */
.search-form-mobi {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    background-color: #222; /* Цвет фона, как у бокового меню */
}

.search-label {
    flex-grow: 1;
}

.search-mobi {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    outline: none;
    background-color: #333;
    color: #eaeaea;
    transition: background-color 0.3s, color 0.3s;
}

.search-mobi::placeholder {
    color: #aaa;
}

.search-mobi:focus {
    background-color: #444;
    color: #fff;
}

.search-submit-mobi {
    padding: 8px 15px;
    margin-left: 10px;
    font-size: 16px;
    color: #eaeaea;
    background-color: #555;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.search-submit-mobi:hover {
    background-color: #777;
    color: #fff;
}

/* Подменю скрыто по умолчанию */
.sidebar-menu .dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #333;
    width: 100%;
}

.sidebar-menu .dropdown-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid #555;
}

.sidebar-menu .dropdown-menu li a {
    color: #eaeaea;
    text-decoration: none;
}

/* Кнопка раскрытия подменю */
.dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.dropdown-btn .dropdown-arrow {
    transition: transform 0.3s;
}

/* При открытии подменю изменяем его состояние */
.dropdown.open .dropdown-menu {
    display: block; /* Показываем подменю */
    max-height: 500px; /* Устанавливаем максимальную высоту, чтобы оно раскрылось */
    padding: 10px 0; /* Добавляем отступы, чтобы элементы внутри не прилипали к краям */
}

/* Поворот стрелки */
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg); /* Поворот стрелки */
}
/*************************************************/

/**************** Модальные окна *****************/
.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    padding-bottom: 10px;
}
.complaint {
    height: 150px;
}
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: var(--cat-bg);
    background-clip: padding-box;
    border: var(--modal-input-border);
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus, .search-field input:focus {
    color: var(--text-color);
    background-color: var(--cat-bg);
    border-color: var(--transparent-bg);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(98, 98, 98, 0.25);
}
.form-control:disabled, .form-control[readonly] {
    background-color: var(--cat-bg);
    opacity: 1;
}
.complaint-video, .login-modal, .signup-modal, .cabinet-modal, .favorites-modal, .feedback-modal {
    width: auto;
    margin: 0 auto;
    height: auto;
    background-color: var(--background-color);
    border: solid 5px var(--cat-bg);
    color: var(--text-color);
}
.complaint-video > .row > .col, .login-modal > .row > .col, .signup-modal > .row > .col, .cabinet-modal > .row > .col, .favorites-modal > .row > .col, .feedback-modal > .row > .col {
    margin: 5px 10px;
}
.text-favorites-center {
    text-align: center;
    margin: 5px;
}
.modal-backdrop {
    z-index: 86;
}
/*************************************************/

.swal2-popup {
    background: var(--background-color)!important;
    color: var(--logo-color)!important;
}

/**************** Медиа запросы ******************
**************************************************/

@media (max-width: 1920px) {
    h2 {
        /*font-size: 1.4em;*/
    }
    .overlay h2:hover {
        padding: 15px;
    }
}

@media (max-width: 1600px) {
    .preview-main {
        font-size: 1.5em;
    }
    /*h2 {*/
    /*    font-size: 1.1em;*/
    /*}*/
}

@media screen and (max-width: 1490px) {
    .meta {
        bottom: 100px;
        background: rgba(81, 81, 81, 0.87);
        border-radius: 3px;
        margin-right: 3px;
    }

    .content {
        margin-left: 5px;
        margin-right: 5px;
    }

    .fleft {
        width: 100%;
    }

    .actorsinvideo {
        font-size: 1rem;
        top: 10px;
        left: 10px;
        width: 85%;
        line-height: 1.5rem;
    }

    .duration {
        top: 10px;
        right: 10px;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .viewsinvideo {
        bottom: 10px;
        right: 10px;
        font-size: 1rem;
    }

    .dtime, .nviews {
        padding: 0 5px 0 5px;
        font-size: 14px;
        color: var(--color-white);
    }
    .meta .icon-cog {
        color: var(--color-white);
    }

    h2 {
        font-size: 1em;
    }

    .overlay h2:hover {
        padding: 15px;
    }

    .preview-title {
        font-size: 1.1em;
    }

    .name {
        width: 100%;
    }

    .top-actors {
        width: 25%;
    }
}

@media screen and (max-width: 1370px) {
    .video-card {
        width: 50%;
    }

    .invideo-info .actorsinvideo-main {
        font-size: 1.1em;
        top: 10px;
        left: 10px;
    }
    .invideo-info .duration-main {
        top: 10px;
        right: 10px;
        font-size: 1.1em;
    }
    .invideo-info .preview-main {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 1.5em;
    }

    .f-title {
        font-size: 1em;
    }

    .fcTdkqr {
        margin-top: 15px;
    }
    .invideo-info .preview-main {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 1210px) {
    .topchik-menu, .btns-log {
        display: none;
    }

    .sec-menu {
        flex-direction: row-reverse;
    }

    .btn-menu {
        position: relative;
        color: var(--text-color);
        cursor: pointer;
        width: 40px;
        height: 40px;
        line-height: 45px;
        text-align: center;
        font-size: 35px;
        right: 5px;
        margin: 5px 0;
        border-radius: 3px;
    }
    /* Стили для количества закладок на мобилке */
    #topchik-fav {
        margin-left: auto;
        font-weight: bold;
        background-color: #737373;
        color: var(--color-white);
        vertical-align: top;
        padding: 0px 6px 0px 6px;
        margin-left: 5px;
        border-radius: 3px;
        font-size: 16px;
    }

    .menu {
        display: none;
    }

    .side-panel, .btn-menu {
        display: block;
    }

    .side-panel {
        display: block;
    }

    .nav-in li {
        width: 33%;
    }

    .video-title {
        font-size: 1.3em;
    }
    .panel-body {
        gap: 0;
        flex-wrap: wrap;
        padding: 0px;
    }

    .top-actors {
        width: 33.33333%;
        padding: 5px;
    }

    .overlay h2 {
        padding: 10px;
        font-size: 1.5em;
    }
    .invideo-info .preview-main {
        font-size: 1em;
    }

    .video-thumbnail-container:hover .video-overlay,
    .video-thumbnail-container.touch-active .video-overlay {
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-thumbnail-container:hover .video-thumbnail,
    .video-thumbnail-container.touch-active .video-thumbnail {
        transform: scale(1.03);
    }

    .top-actors:hover .overlay,
    .top-actors.touch-active .overlay {
        opacity: 1;
    }
}

@media screen and (max-width: 950px) {
    .nav-in li {
        width: 49%;
    }

    .video-title {
        font-size: 1.2em;
    }

    .video-meta {
        display: none;
    }

    .video-meta-mobile {
        display: inline-flex;
        justify-content: space-around;
        font-size: 14px;
        min-width: 100%;
        border-bottom: var(--metaline);
    }

    .v-item-one, .v-item-two, .v-item-three {
        display: inline-flex;
        float: none;
        line-height: 10px;
        height: auto;
        padding: 10px 0;
        border-right: none;
    }

    .v-info {
        display: inline-flex;
    }
    .overlay h2 {
        padding: 10px;
        font-size: 1.3em;
    }
}

@media screen and (max-width: 875px) {
    .video-card {
        width: 100%!important;
    }

    .top-actors h3 {
        margin: 5px 0;
        font-size: 1em;
        font-weight: 300;
    }
    .invideo-info .preview-main {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 768px) {
    .active {
      min-width: 48px;
      min-height: 42px;
    }

    .pagi-nav {
        line-height: 40px;
        padding: 0 2px;
    }

    .pagi-nav > a, .pagi-nav > span {
      min-width: 40px;
      font-size: 16px;
      padding: 0 7px;
    }

    .actors {
        display: inline-flex;
        flex-wrap: wrap;
    }

    .actors a, .actors span {
        font-size: 0.8em;
    }

    .vmeta-plus, .vmeta-minus, .fm-fav {
        font-size: 1em;
    }
    .video-title {
        font-size: 1em;
    }

    .video-tags, .video-description {
        line-height: 24px;
        font-size: 14px;
        color: var(--text-color);
    }

    .top-actors {
        width: 50%;
    }
    .overlay h2 {
        padding: 15px;
        font-size: 1.5em;
    }
    .invideo-info .preview-main {
        font-size: 1.1em;
    }
    .plyr__time + .plyr__time {
        display: block;
    }
    .plyr__time + .plyr__time::before, .plyr__time {
        display: none;
    }
}

@media screen and (max-width: 690px) {
    .nav-in li {
        width: 100%;
    }
}

@media screen and (max-width: 667px) {
    .tech-info {
        display: none;
    }

    .items-title, .site-desc h1, .static-desc h1 {
        font-size: 1em;
    }
}

@media screen and (max-width: 590px) {
    .ui-dialog {
        width: 100% !important;
    }

    .ui-dialog-buttonset button {
        display: block;
        margin: 0 0 5px 0;
        width: 100%;
    }

    .overlay h2 {
        padding: 5px;
        font-size: 1.1em;
    }

@media screen and (max-width: 540px) {
    .register {
        width: 95%;
    }

    .imp {
        padding: 0;
        width: 88%;
        margin: 0 auto;
    }

    .form-submit {
        margin-top: 13px;
    }

    .v-item-two {
        display: none;
    }
}

@media screen and (max-width: 470px) {
    .actors span {
        display: none;
    }
}