body {
    font-family: Arial, sans-serif;
    color: #4D4D4D;
    background-color: #141619;
    min-height: 100vh;
    min-width: 360px;
    max-width: 1084px;
    margin: 0 auto;
 }
 
 a:link, a:visited {
    color: #CFD2D7;
    text-decoration: none;
 }
 
 .header {
    background-color: #2F4F4F;;
    color: #CFD2D7;
    padding: 20px;
 }
 
.footer {
    background-color: #2F4F4F;;
    color: #CFD2D7;
	font-size: 14px;
    padding: 20px;
    box-shadow: 0 -4px 6px rgba(22,24,27, 0.5);
	
}

 
.content {
    background-color: #1E2025;    
    min-height: calc(100vh - 0px);
    box-shadow: -4px 0 6px rgba(12,13,15, 0.5), 4px 0 6px rgba(12,13,15, 0.5);
	color: #CFD2D7;
}

 
 .logo-and-search {
    display: flex;
    align-items: center; 
    gap: 35px; 
 }
 
 .logo {
    font-size: 1.5rem;
    white-space: nowrap; 
 }
 
 .search-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
 }
 
 .search-form {
    display: flex;
    align-items: center; 
	color: #CFD2D7 !important;
 }
 
.search-form input {
    padding: 12px;
    font-size: 13px;
    border: none;
    background-color: #141619;
    max-width: 600px; 
    color: #CFD2D7 !important;
}

.search-form input:-webkit-autofill {
    background-color: #141619; /* фон при автозаповненні */
    -webkit-box-shadow: 0 0 0px 1000px #141619 inset; /* щоб колір залишався при автозаповненні */
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

.search-form input:-webkit-autofill:focus {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні в фокусі */
}

.search-form input:-webkit-autofill:active {
    color: #CFD2D7 !important; /* колір тексту при активному автозаповненні */
}


 
 
.title {
    background-color: #363c49;
	border-top: 1px solid #141619;
	border-bottom: 1px solid #141619;
    font-size: 15px;
    color: #CFD2D7;
    padding: 12px 15px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal; 
    word-break: normal; 
    display: block;
} 
 
 .post {
    background-color: #2A2D34;
	border-radius: 7px;
	margin: 10px;
    font-size: 15px;
    color: #CFD2D7;
    padding: 12px 15px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal; 
    word-break: normal; 
    display: block;
} 
 
 
.content_films {
    background-color: #1E2025;
    font-size: 15px;
    color: #CFD2D7;
    padding: 12px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal; 
    word-break: normal; 
    display: block;
}  
 
 .err {
    background-color: #2A2D34;
	border-bottom: 1px solid #141619;
    font-size: 15px;
    color: #CFD2D7;
    padding: 140px 15px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: normal; 
    word-break: normal; 
    display: block;
} 
 
 .error {
	background-color: #A43E3E;
	border-radius: 7px;
	margin-bottom: 10px;
    color: #FFF;
    font-size: 16px;
    padding: 12px 15px;
    display: block;
}
 

 
 /* Відображення підменю для широких екранів */
 @media (min-width: 769px) {
    .mobi {	
        display: none; 
    }
    
    .navigation {
        background-color: #363c49;
        display: flex;
        justify-content: left;
        padding: 0;
        list-style: none;
        margin: 0;
        position: relative;
    }
 
    .navigation > li {
        position: static;
    }
 
    .navigation a {
        padding: 12px 18px;
        display: block;
        background-color: #363c49;
        border-right: 1px solid #141619;
        font-size: 14px;
        color: #CFD2D7;
        text-decoration: none;
        transition: background-color 0.3s;
    }
 
    .navigation a:hover {
        background-color: #8AA7C7;
    }
 
    .has-submenu > a .icon {
        margin-left: 5px;
        font-size: 12px;
        display: inline-block;
        transition: transform 0.3s;
        transform: rotate(0deg);
    }
 
    .has-submenu:hover > a .icon {
        transform: rotate(180deg);
    }
 
    .submenu {
        display: none;
        position: absolute; 
        background-color: #1E2025;
		box-shadow: 0 4px 6px rgba(22,24,27, 0.5);
		border-top: 1px solid #141619;
		color: #CFD2D7;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 0;
        z-index: 1000;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px;
    }
 
    .has-submenu:hover .submenu {
        display: grid;
    }
 
    .submenu li {
        list-style: none;
        padding: 5px 20px;
    }
 
    .submenu a {
        border: none;
        font-size: 14px;
        background: none;
        padding: 8px;
        display: block;
        color: #CFD2D7;
    }
 
    .submenu a:hover {
		background-color: #141619;
        color: #CFD2D7;
    }
 
    .menu-toggle {
        display: none;
    }
	
	.film_content {
	background-color: #1E2025;  
	margin-left: 45px;
	padding: 5px;
	margin-bottom: 7px;
    font-size: 15px;
    display: block;
   } 
	
	.film_img {
	border-radius: 7px;
    font-size: 15px;
	float: left;
    display: block;
} 
	
 }
 
 /* Адаптивний стиль для вузьких екранів */
 @media (max-width: 768px) {
    .search-form {
        width: 100%;
    }
 
    .search-input {
        width: calc(100% - 20px);
    }
 
    .pc {	
        display: none; 
    }	
    
    .navigation {
        background-color: #1E2025;
        display: none;
        flex-direction: column;
        padding: 0;
        list-style: none;
        margin: 0;
        position: relative;
    }
 
    .navigation > li {
        position: static;
    }
 
    .navigation a {
        padding: 10px 16px;
        display: block;
        background-color: #1E2025;
        border-right: 1px solid #141619;
        font-size: 14px;
        color: #CFD2D7;
        text-decoration: none;
        transition: background-color 0.3s;
    }
 
    .navigation a:hover {
        background-color: #8AA7C7;
    }	
 
    .navigation.open {
        display: block;
    }
 
    .has-submenu > a .icon {
        margin-left: 5px;
        font-size: 12px;
        display: inline-block;
        transition: transform 0.3s;
        transform: rotate(0deg);
    }
 
    .has-submenu.open > a .icon {
        transform: rotate(180deg);
    }
 
    /* Єдиний блок стилів для submenu на мобільних */
    .submenu {
        display: none;
        position: static;
        width: 100%;
        background-color: #2A2D34;
		color: #CFD2D7;
        padding: 15px 0;
    }
 
    .has-submenu.open .submenu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
 
    .submenu li {
        padding: 5px 10px;
        list-style: none;
    }
 
    .submenu a {
        padding: 8px;
        font-size: 14px;
        background: none;
        border: none;
        color: #CFD2D7;
        display: block;
    }
 
    .submenu a:hover {
		background-color: #141619;
        color: #FFF;
    }
    .menu-toggle {
        display: block;
        background-color: #1E2025;
        padding: 10px;
        color: #CFD2D7;
        cursor: pointer;
        font-size: 30px;
        line-height: 1;
    }
  
    .menu-toggle .icon {
        display: block;
        transition: transform 0.3s ease;
    }
 
    .close-icon {
        font-size: 42px;
        line-height: 1;
    }
	
   .film_content {
	background-color: #1E2025;  
	padding: 5px;
	margin-bottom: 7px;
    font-size: 15px;
    display: block;
   } 
	
	.film_img {
	border-radius: 7px;
    font-size: 15px;
	float: center;
	text-align: center;
    display: block;
} 
 }
 
 textarea {
    background: #141619;
    border: 1px solid #141619;
    border-radius: 5px;
    outline: none;
    padding: 10px 15px;
    font-size: 16px;
    color: #CFD2D7 !important;
    margin-bottom: 6px;
    font-family: 'FiraSans-Regular', sans-serif;
    width: 100%;
    *width: 97% !important;
    height: 70px;
    line-height: normal;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    resize: none;
}

textarea:focus {
	border-color: #141619;
	box-shadow: 0 0 0 1px rgba(101,169,139, 0.15); 
    outline: none;
}


select {
    background-color: #141619;
    border-radius: 7px;
    border: 1px solid #141619;
    font-family: 'FiraSans-Regular', sans-serif;
    width: 100%;
    *width: 97% !important;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 10px;
    padding: 10px;
    color: #CFD2D7 !important;
    font-size: 16px;
}

select:focus {
    border-color: #141619;
    outline: none;
}
 
 
 input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    background-color: #141619;
    border-radius: 7px;
    width: 100%;
    *width: 97% !important;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    border: none;
    padding: 12px;
    color: #CFD2D7 !important;
    font-size: 16px;
}

/* Зміна кольору border при фокусуванні */
input:focus {
    border-color: var(--submit-bg);
    outline: none;
}

/* Стилі для автозаповнення в браузерах */
input:-webkit-autofill {
    background-color: var(--bg) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg) inset;
    box-shadow: 0 0 0px 1000px var(--bg) inset;
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

/* Стилі для кольору placeholder при автозаповненні */
input:-webkit-autofill::placeholder {
    color: color: #CFD2D7; !important;
}

/* Зміна кольору placeholder для незаповнених полів */
input::placeholder {
    color: color: #CFD2D7; !important;
}

/* Зміна кольору placeholder при фокусуванні */
input:focus::placeholder {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

/* Зміна кольору placeholder при наводі на поле */
input:hover::placeholder {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

/* Зміна кольору тексту автозаповнення при наводі */
input:hover:-webkit-autofill {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

/* Колір для тексту автозаповнення при фокусуванні */
input:focus:-webkit-autofill {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

/* Текст першого рядка для автозаповнення */
input:-webkit-autofill::first-line {
    color: #CFD2D7 !important; /* колір тексту при автозаповненні */
}

input[type=submit] {
    background: #D4A926;
    border-radius: 5px;
    border: none;
    margin: 10px 0;
    margin-left: 1px;
    color: #FFF;
    font-family: 'FiraSans-Regular', sans-serif;
    padding: 10px 13px;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

input[type=submit]:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background: #C6931B;
}

input[type=submit]:focus {
    outline: none;
    box-shadow: 0 0 4px 2px rgba(223, 165, 31, 0.8);
}

@media (max-width: 600px) {
    input[type=submit] {
        font-size: 14px;
        padding: 8px 10px;
    }
}


input[type=submit]:hover {
    background: #D29A19;
	transition: box-shadow 0.3s ease;
}

input[type=submit]:active {
    background: var(--submit-bg);
}


.movie-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.movie-poster {
    flex-shrink: 0;
}
.movie-info {
    flex-grow: 1;
}
.movie-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}
.movie-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.info-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}
.info-label {
    color: #4a90e2;
    width: 100px;
}
.info-value {
    color: #fff;
}
.rating-bar {
    background: #2d3339;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.imdb-score {
    background: #f5c518;
    color: #000;
    padding: 2px 5px;
    border-radius: 3px;
}
.movie-description {
    background: #2d3339;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}
.posters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.poster-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.player-section {
    margin: 20px 0;
}

.player-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px;
    background: #1a1d21;
}

.player-tabs {
    display: flex;
    align-items: center;
    background: #455A64;
    padding: 5px;
    margin-bottom: 10px;
}

.tab-button {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.tab-button.active {
    background: #1a1d21;
}

.tab-alert {
    color: #ffd700;
    margin-left: auto;
    padding-right: 10px;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.age-rating {
    background: #e74c3c;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
}

.pagination a {
    padding: 10px 18px;
    background: #2A2D34;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #CFD2D7;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.pagination a.active {
    background: #8c45c5;
    color: white;
	font-size: 18px;
}

.pagination a.disabled {
    background: #2A2D34;
    color: #666;
    cursor: not-allowed;
}

.pagination a:not(.disabled):hover {
    background: #8c45c5;
    transition: background 0.3s;
}

@media (max-width: 480px) {
    .pagination a {
        padding: 8px 14px;
    }
}

.films-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
   padding: 20px;
}


/* Медіа-запит для мобільних пристроїв */
@media (max-width: 768px) {
   .films-grid {
       grid-template-columns: repeat(2, 1fr); /* 2 колонки на екранах шириною до 768px */
   }
   
.modal {
    display: none; /* Сховати модальне вікно за замовчуванням */
    position: fixed; /* Фіксоване позиціонування для центрування */
    top: 50%; /* Центрування по вертикалі */
    left: 50%; /* Центрування по горизонталі */
    transform: translate(-50%, -50%); /* Вирівнювання по центру */
    max-width: 95%; /* Максимальна ширина модального вікна (зроблено ширше) */
    max-height: 85%; /* Максимальна висота модального вікна */
    width: 600px; /* Базова ширина модального вікна */
    background: rgba(0, 0, 0, 0.9); /* Темний фон */
    color: #fff; /* Білий текст */
    padding: 10px; /* Відступи */
    border-radius: 8px; /* Закруглені краї */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Тінь для модального */
    z-index: 10000; /* Високий z-index для відображення поверх усіх елементів */
    overflow: auto; /* Додавання скроллу, якщо вміст перевищує розмір модального вікна */
}

.modal.active {
    display: block; /* Показати модальне вікно */
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

   
}

/* Відображення підменю для широких екранів */
 @media (min-width: 769px) {

.modal {
    display: none; /* Сховати модальне вікно за замовчуванням */
    position: fixed; /* Фіксоване позиціонування для центрування */
    top: 50%; /* Центрування по вертикалі */
    left: 50%; /* Центрування по горизонталі */
    transform: translate(-50%, -50%); /* Вирівнювання по центру */
    width: 400px; /* Ширина модального вікна */
    background: rgba(0, 0, 0, 0.9); /* Темний фон */
    color: #fff; /* Білий текст */
    padding: 20px; /* Відступи */
    border-radius: 8px; /* Закруглені краї */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Тінь для модального */
    z-index: 10000; /* Високий z-index для відображення поверх усіх елементів */
	overflow: auto;
}

.modal.active {
    display: block; /* Показати модальне вікно */
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
} 
 
 }

.film-description {
   position: absolute;
   top: 10px;
   right: 40px;
   width: 300px;
   background: rgba(0, 0, 0, 0.9);
   color: #fff;
   padding: 15px;
   border-radius: 8px;
   font-size: 14px;
   line-height: 1.4;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s, visibility 0.3s;
   z-index: 9999; /* Забезпечує відображення поверх усіх елементів */
   pointer-events: none; /* Забороняє взаємодію, поки елемент прихований */
   overflow: visible; /* Запобігає обрізанню тексту */
}






.info-icon:hover + .film-description {
   opacity: 1;
   visibility: visible;
   pointer-events: auto; /* Дозволяє взаємодію, коли елемент видимий */
}


.films-grid {
   position: relative; /* Зберігає правильне позиціювання */
   z-index: 1; /* Базовий z-index для фільмів */
}

body, .content_films {
   overflow: visible; /* Гарантує, що елементи будуть видимі за межами контейнера */
}




.film-item {
   position: relative;
   background-color: #2F4F4F;
   border-radius: 8px;
   overflow: hidden;
   transition: 0.3s;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
}

.info-item:hover {
   border-radius: 8px;
}

.film-poster {
   position: relative;
   padding-bottom: 150%;
}


.film-poster img {
   position: absolute;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.genre {
   position: absolute;
   top: 10px;
   left: 0px;
   background-color: #8c45c5;
   color: #fff;
   padding: 5px 10px;
   font-size: 14px;
   z-index: 2;
}

.film-info {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: #2A2D34;
   padding: 20px;
   color: #fff;
   opacity: 0;
   transition: 0.3s;
   z-index: 2;
   pointer-events: none;
}

.info-icon:hover + .film-info {
   opacity: 1;
   pointer-events: auto;
}

.film-info p {
   font-size: 14px;
   line-height: 1.4;
}

.film-poster:hover .film-info {
    opacity: 0;
}

.film-poster:hover .play-icon {
   opacity: 1;
}

.film-poster:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Темний напівпрозорий фон */
  backdrop-filter: blur(5px); /* Ефект розмиття */
  -webkit-backdrop-filter: blur(5px); /* Для підтримки Safari */
  z-index: 1; /* Задає рівень псевдоелемента */
}

.film-poster form {
  position: relative;
  z-index: 2; /* Піднімає форму над псевдоелементом */
}



.film-title {
   padding: 10px;
}

.film-title a {
   color: #CFD2D7;
   text-decoration: none;
   font-size: 16px;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.info-icon {
   position: absolute;
   top: 10px;
   right: 20px;
   width: 22px;
   height: 22px;
   color: #fff;
   border-radius: 50%;
   text-align: center;
   line-height: 20px;
   font-style: italic;
   cursor: pointer;
   z-index: 3;
}



.play-icon {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 64px;
   height: 64px;
   opacity: 0;
   transition: 0.3s;
   z-index: 2;
}


.play-icon img {
   width: 64px;
   height: 64px;
}


/* Grid layout */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.poster-thumbnail img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.poster-thumbnail img:hover {
    transform: scale(1.05);
}

/* Modal styles */
.modal_poster {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    margin: 0;
    padding: 0;
}

.modal_poster-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal_poster-content {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.nav-btn {
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
    z-index: 1001;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


.spoiler-carousel {
    background-color: #2A2D34;
    padding: 12px;
    max-width: 1080px;
    position: relative;
    box-shadow: 0 4px 6px rgba(22,24,27, 0.5);
}


.spoiler-container {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.spoiler-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.spoiler-card {
    flex: 0 0 95px;
    width: 95px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.spoiler-card:hover {
    transform: translateY(-5px);
}

.spoiler-image {
    position: relative;
    width: 100%;
    height: 142px;
    overflow: hidden;
}

.spoiler-image img {
    width: 100%;
    height: 142px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spoiler-image:hover img {
    transform: scale(1.1);
}

.spoiler-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0.25rem;
    font-size: 0.7rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spoiler-card:hover .spoiler-title {
    transform: translateY(0);
}

.spoiler-arrow {
    background-color: #141619;
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.spoiler-arrow.left {
	border-radius: 0 4px 4px 0;
    left: 0;
}

.spoiler-arrow.right {
	border-radius: 4px 0 0 4px;
    right: 0;
}

.spoiler-arrow:hover {
    background-color: #202328;
}

@media (max-width: 768px) {
    .spoiler-container {
        padding: 0 10px;
    }
    
    .spoiler-card {
        flex: 0 0 85px;
        width: 85px;
    }
    
    .spoiler-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (hover: none) {
    .spoiler-title {
        transform: translateY(0);
        font-size: 0.65rem;
    }
}

.spoiler-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.spoiler-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.spoiler-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}






.unique-carousel {
    background-color: #2A2D34;
    padding: 12px;
    max-width: 1080px;
    position: relative;
    box-shadow: 0 4px 6px rgba(22,24,27, 0.5);
}


.unique-container {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.unique-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.unique-card {
    flex: 0 0 95px;
    width: 95px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.unique-card:hover {
    transform: translateY(-5px);
}

.unique-image {
    position: relative;
    width: 100%;
    height: 142px;
    overflow: hidden;
}

.unique-image img {
    width: 100%;
    height: 142px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.unique-image:hover img {
    transform: scale(1.1);
}

.unique-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0.25rem;
    font-size: 0.7rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unique-card:hover .unique-title {
    transform: translateY(0);
}

.unique-arrow {
    background-color: #141619;
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.unique-arrow.left {
	border-radius: 0 4px 4px 0;
    left: 0;
}

.unique-arrow.right {
	border-radius: 4px 0 0 4px;
    right: 0;
}

.unique-arrow:hover {
    background-color: #202328;
}

@media (max-width: 768px) {
    .unique-container {
        padding: 0 10px;
    }
    
    .unique-card {
        flex: 0 0 85px;
        width: 85px;
    }
    
    .unique-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (hover: none) {
    .unique-title {
        transform: translateY(0);
        font-size: 0.65rem;
    }
}

.unique-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.unique-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.unique-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


.movie-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.movie-poster {
    flex-shrink: 0;
}

.movie-info {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .movie-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-poster img {
        margin-bottom: 20px;
    }

    .movie-info {
        text-align: left;
		flex-grow: 1;
    }
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
	
}

.info-label {
	background-color: #141619;
	border-radius: 4px;
	padding: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    margin-right: 15px;
    min-width: 80px; 
    text-align: left;
}

.info-value {
    background-color: #141619;
    padding: 10px;
    font-size: 14px;
    color: #ddd;
    flex: 1; /* Забезпечує розтягування до кінця */
    word-wrap: break-word; /* Розбиває текст при необхідності */
    border-radius: 4px; /* Округлення */
}


.recommended-section {
    margin: 30px 0;
    background: #1a1d21;
    border-radius: 3px;
}

.rec-title {
    color: #fff;
    font-size: 18px;
    padding: 15px 20px;
    margin: 0;
    font-weight: normal;
    background: rgba(0, 0, 0, 0.2);
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 20px;
}

.rec-item {
    position: relative;
    transition: all 0.3s ease;
}

.rec-item:hover {
    transform: translateY(-5px);
}

.rec-poster {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rec-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 10px 10px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-link {
    text-decoration: none;
    display: block;
}

@media (max-width: 1400px) {
    .rec-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .rec-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .rec-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .rec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.mobi .has-submenu .icon img {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    filter: invert(62%) sepia(14%) saturate(1157%) hue-rotate(219deg) brightness(87%) contrast(84%);
}
.mobi .menu-toggle {
    background-color: rgba(108, 135, 159, 0.6);  /* синювато-сірий напівпрозорий */
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    border: none;
    margin: 0;
    font-size: 18px;
    cursor: pointer;
}

.mobi .menu-toggle .icon {
    margin-right: 10px;
    color: white;
    font-size: 20px;
}

.mobi .navigation {
    background-color: #222;  /* темний фон для меню */
    width: 100%;
}

.movie-poster {
    position: relative;
    width: 220px;
}


        .movie-card {
            border-radius: 8px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .movie-poster1 {
            width: 50px;
            height: 75px;
            object-fit: cover;
            border-radius: 4px;
        }

        .movie-info {
            flex: 1;
        }

        .movie-id {
            color: #888;
            font-size: 0.9em;
        }

        .movie-title {
            font-size: 16px;
        }

        .delete-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
        }

        /* jQuery UI Autocomplete стилі */
        .ui-autocomplete {
            background: #2a2d31;
            border: 1px solid #444;
            border-radius: 4px;
            max-height: 200px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .ui-menu-item {
            padding: 8px 12px;
            color: #fff;
            cursor: pointer;
        }

        .ui-menu-item:hover {
            background: #3a3d41;
        }

        .ui-helper-hidden-accessible {
            display: none;
        }
		
        .scroll-up {
            position: fixed;
            bottom: 20px;
            right: 10px;
            width: 50px;
            height: 50px;
            background-color: #333;
            color: #D4A926;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            text-decoration: none;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            transition: opacity 0.3s, background-color 0.3s;
            opacity: 0;
            visibility: hidden;
			z-index: 99999;
        }

        .scroll-up:hover {
            background-color: #3D3D3D;
            color: #1E1E1E;
        }

        .scroll-up.show {
            opacity: 1;
            visibility: visible;
        }		
