html, body {
    overflow-x: hidden;
}


.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 0;
    /* rtl:raw:
    right: 0;
    */
    bottom: 0;
    /* rtl:remove */
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }

    .navbar {

        height: min-content;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.nav-link {
    font-weight: 500;
    color: #333;
}

.nav-link .feather {
    margin-right: 4px;
    color: #727272;
}

.nav-link.active {
    color: #dc246e;
}

.nav-link:hover .feather,
.nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*
 * Navbar
 */


.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.background-tv {
    background-color: #6D0000;
    color: #ffffff;
}

.background-girls {
    background-color: #E31780;
}

.background-koa {
    background-color: #595b52;
}

.bg-color-grey-light {
    background-color: #cbd9cd;
}

.text-color-light {
    color: white;
}

.navbar-image {
    width: 28pt;
    height: 28pt;
}

.image-flag {

    height: 32px;
}

.sticky-top-secondary {
    position: sticky;
    top: 40pt;
    height: 30pt;
}

.stock-widget {
    height: 400px;
}

.text-grey {
    color: darkgrey;
}

.icon_small {
    alignment: center;
    object-fit: scale-down;
    width: 16px;
    height: 16px;
}

.logo_icon {
    alignment: center;
    object-fit: scale-down;
    width: 32px;
    height: 32px;
}

.logo_icon_big {
    alignment: center;
    object-fit: contain;
    width: 164px;
    height: 164px;
}

.poster-port {
    alignment: center;
    object-fit: contain;
    width: auto;
    height: 240px;
}

.poster-land {
    alignment: center;
    object-fit: contain;
    width: auto;
    height: 240px;
}

.dot_red {
    height: 16px;
    width: 24px;
    background-color: #ea4335;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    text-align: end;
}

.dot_yellow {
    height: 16px;
    width: 24px;
    background-color: #f6bc04;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    text-align: end;
}

.dot_green {
    height: 16px;
    width: 24px;
    background-color: #34a853;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    text-align: end;
}

.dot_blue {
    height: 16px;
    width: 24px;
    background-color: #4285f4;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    text-align: end;
}

.bg_dot_red {
    width: 24pt;
    background-color: #ea4335;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: wheat;
}

.bg_dot_yellow {
    width: 24pt;
    background-color: #f6bc04;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: #1a1d20;
}

.bg_dot_green {
    width: 24pt;
    background-color: #34a853;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: whitesmoke;
}

.bg_dot_blue {
    width: 20pt;
    background-color: #4285f4;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: wheat;
}

.bg_dot_holiday {
    width: 20pt;
    background-color: whitesmoke;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    color: darkgrey;
}


/*
TV section
 */

.image-cropper {
    position: relative;
    overflow: hidden;
    border-radius: 70%;
}

img {
    display: inline;
    margin: 0 auto;
    height: 100%;
    width: auto;
}

svg {
    background-color: lightblue; /* Задаёт цвет фона */
}


.hidden {
    display: none;
}


.logo {
    width: 32px;
    height: 32px;
}

.thumbnail {
    width: 100px;
    cursor: pointer;
}

#fullscreenImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#fullscreenImage img {
    max-width: 90%;
    max-height: 90%;
}


.secondary-panel {
    position: sticky;
    top: 0;
    background-color: rgba(128, 0, 142, 0.67); /* Красный фон */
    color: wheat; /* Белый текст */
}

.secondary-panel a {
    color: wheat; /* Белый цвет для ссылок */
}

.secondary-panel a:hover {
    color: wheat; /* Светлый оттенок при наведении */
}

.image-hover {
    width: 100px; /* исходный размер */
    transition: transform 0.3s ease, top 0.3s ease; /* плавный переход */
    position: relative; /* для настройки позиционирования */
}

.image-hover:hover {
    top: 50%; /* смещение вниз */
    transform-origin: left center; /* чтобы увеличение происходило из центра */
    transform: translateY(50%) scale(5); /* центрирование вертикально + увеличение */
    z-index: 1000;
}

.content {
    margin-top: 60px; /* пространство для контента */
}

.actor-card-wrapper {
    height: 55vh; /* 75% высоты экрана */
}

.actor-card {
    height: 100%;
}

.actor-photo {
    height: 100%;
    width: 100%;
    object-fit: cover; /* картинка заполняет блок по высоте, красиво обрезается */
}

.actor-right {
    height: 100%;
}


.dt-top {
    margin-bottom: 10px;
}

.dt-top .dataTables_length,
.dt-top .dataTables_filter,
.dt-top .dataTables_paginate {
    margin: 0;
}

.dt-bottom .dataTables_paginate {
    width: 100%;
    display: flex;
    justify-content: center;
}

.dt-bottom .dataTables_paginate {
    width: 100% !important;
    display: flex !important;
}

.dt-bottom .dataTables_paginate > ul.pagination {
    flex: 1;
    display: flex;
    justify-content: center; /* или space-between */
}

.cell-layout {
    display: flex;
    align-items: flex-start;
    gap: 2px; /* расстояние между вертикальным и правым блоком */
}

/* Вертикальный постер */
.poster-vertical img {
    width: auto;
    height: 200px;
    object-fit: cover;
}


/* Правый блок — вертикальная колонка */
.right-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Горизонтальный постер */
.poster-horizontal img {
    width: auto;
    height: 160px;
    object-fit: cover;
}


/* Иконки в ряд */
.icons-row {
    display: flex;
    gap: 4px;
}

.icons-row img {
    width: 32px;
    height: 32px;
}

.margin-10 {
    margin: 10px;
    padding: 10px;
}

.cell {
    padding: 0; /* ВАЖНО: без отступов у td */
}

.cell-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px; /* Отступы — на ссылке */
    text-decoration: none;
    color: inherit;
}

.thumb-js {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}


.video-card {
    display: block;
}

.preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* или 4/3 */
    overflow: hidden;
    background: #000;
}

.preview-wrapper img,
.preview-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlays */
.preview-video,
.preview-slides {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
}

.video-card:hover .preview-thumb {
    opacity: 0;
}

.video-card:hover .preview-video,
.video-card:hover .preview-slides {
    opacity: 1;
}

/* slides */
.preview-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.preview-slides img.active {
    opacity: 1;
}

.preview-video {
    opacity: 0;
    transition: opacity .2s ease;
}

.preview-video[data-loaded="true"] {
    opacity: 1;
}


.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* background video / slides */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* slides */
.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slides img.active {
    opacity: 1;
}

/* dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* content */
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    padding-top: 20vh;
}





/* фон */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}





.hero-page {
    height: 750px;
    position: relative;
    overflow: hidden;
    max-height: 80vh; /* спасёт на маленьких экранах */
}



.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100vw;
}

.video-card {
    text-decoration: none;
    color: inherit;
}

.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.thumb video,
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta {
    padding: 6px 8px;
    font-size: 13px;
}

.duration {
    opacity: .6;
    font-size: 12px;
}



.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-slides {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease;
}

.page-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* затемнение */
}

.page-content {
    position: relative;
    z-index: 1;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.page-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.page-content {
    position: relative;
    z-index: 1;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.bg-video,
.bg-slides {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}


.hero-page {
    position: relative;
    overflow: hidden;
}

/* Фон всегда за контентом */
.bg-video,
.bg-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Контент поверх фона */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.video-card .thumb {
    position: relative;
    overflow: hidden;
}

.video-card video,
.video-card img.poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card video {
    position: absolute;
    inset: 0;
}

.video-card img.poster {
    transition: opacity .2s ease;
}
