@tailwind base;
@tailwind components;
@tailwind utilities;

#app,
#bgover,
#bgrect {
    width: 100%;
}
.search_input,
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    margin: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #131720;
    -webkit-font-smoothing: antialiased;
}
button {
    padding: 0;
    border: none;
    background-color: transparent;
    transition: 0.5s ease;
    transition-property: color, background-color, border-color;
    cursor: pointer;
}
button:focus {
    outline: none;
}
a {
    outline: none;
    text-decoration: none;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
::-moz-selection {
    background: #fff;
    color: #a6171c;
    text-shadow: none;
}
::selection {
    background: #fff;
    color: #ffffff;
    text-shadow: none;
}
::-webkit-input-placeholder {
    color: grey;
    opacity: 0.5;
}
::-moz-placeholder {
    color: grey;
    opacity: 0.5;
}
body::-webkit-scrollbar {
    width: 3px;
}
body::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid darkgrey;
}
@media (min-width: 1440px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
    }
}












*,
.main_info_list li:last-child,
.cover_title,
.results_header {
    text-shadow: 0 1px 1px #000;
}
* {
    box-sizing: border-box;
    padding: 0;
}
body {
    color: #ddd;
    background: #1b1a19;
}
#bgover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
}
#bgrect {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1200px;
    height: 900px;
    background: linear-gradient(
            69.81deg,
            rgba(255, 209, 139, 0.3) 9.22%,
            rgba(255, 183, 217, 0.3) 33.5%,
            rgba(139, 186, 255, 0.3) 78.79%
    );
    border-radius: 1000px;
    filter: blur(160px);
}
.loader {
    width: 64px;
    height: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd100' style='animation: loader_spin 2s linear infinite;'%3E%3Cstyle%3E%0A@keyframes loader_spin %7Bfrom %7Btransform: rotate(0deg);%7D to %7Btransform: rotate(360deg);%7D%7D%0A%3C/style%3E%3Cpath d='M2 11h5v2H2zm15 0h5v2h-5zm-6 6h2v5h-2zm0-15h2v5h-2zM4.222 5.636l1.414-1.414 3.536 3.536-1.414 1.414zm15.556 12.728-1.414 1.414-3.536-3.536 1.414-1.414zm-12.02-3.536 1.414 1.414-3.536 3.536-1.414-1.414zm7.07-7.071 3.536-3.535 1.414 1.415-3.536 3.535z'%3E%3C/path%3E%3C/svg%3E");
    margin: 0 auto;
}
header {
    padding: 32px 0;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popular_switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search_form {
    margin: auto; /* Центрируем форму поиска по горизонтали */
    max-width: 600px; /* Опционально: ограничиваем максимальную ширину формы */
}

input{
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    background-color: black;
    padding: 0
}

footer {
    padding: 64px 0 32px;
}

.main_info_list li,
.main_info_title {
    margin-bottom: 8px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}
.logo:active,
.search_button:active {
    top: 1px;
}
.logo svg {
    width: 30px;
    height: 30px;
    vertical-align: top;
    filter: drop-shadow(0 1px 1px #000000);
    margin-right: 4px;
    fill: #ffffffaa;
}
.logo span {
    font-size: 28px;
    font-weight: 700;
    color: #ffffffaa;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
}
.footer_body {
    text-align: center;
    user-select: none;
}
.footer_body a {
    font: 13px sans-serif;
    color: #777;
}
.button-top {
    z-index: 9999;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    visibility: hidden;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff66;
    border-radius: 50%;
    cursor: pointer;
}
.button-top svg {
    display: block;
    width: 24px;
    height: 32px;
    vertical-align: top;
    fill: #1b1a19;
}
.search_form {
    position: relative;
    display: flex;
}
.search_input {
    width: 100%;
    flex: 1;
    min-width: 200px;
    font-size: 18px;
    color: #ddd;
    background: #00000088;
    border: none;
    border-radius: 4px;
    padding: 12px 16px;
}
.search_input:focus {
    background: #1b1a19;
    outline: #ffffff44 solid 4px;
}
.search_button {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 36px;
    background: 0 0;
    border: none;
    border-radius: 0 4px 4px 0;
    outline: 0;
    cursor: pointer;
    padding: 12px;
}
.search_button svg {
    fill: #999999;
}
.search_button:hover svg {
    fill: #dddddd;
}
.main_info {
    font-size: 16px;
    text-align: left;
    background: #00000088;
    border-radius: 8px;
    padding: 16px;
    margin-top: 32px;
}
.main_info_title {
    font-size: 18px;
}
.main_info_list {
    list-style: inside;
}
.main_info_list span {
    display: inline-block;
    vertical-align: top;
    font: 16px/21px Consolas, monospace;
    color: #ddd;
    background: #1b1a19;
    border-radius: 4px;
    padding: 0 5px;
}
.popular {
    display: flex;
    flex-direction: column;
}
.kinobox_player,
.results {
    margin-top: 0px;
}
.popular_switch button {
    padding: 8px 16px;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
}
.popular_switch button.active {
    color: #ddd;
}
.covers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cover {
    position: relative;
    display: grid;
    align-content: start;
}

.cover:hover .cover_year,
.cover:hover .cover_rating,
.cover:hover .cover_title,
.cover:hover .cover_icon,
.cover:hover .cover_image{
    opacity: 1;
    transform: scale(1.05); /* Увеличение масштаба */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cover:hover .cover_icon,
.cover:hover .cover_title {
    color: rgba(224, 0, 67, var(--tw-text-opacity))
}
.cover_poster {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cover_image {
    width: 100%;
    aspect-ratio: 1/1.5;
    object-fit: cover;
    transition: 0.5s;
}
.kinobox_player,
.results_empty {
    box-shadow: 0 1px 2px #00000088;
}

.cover_title {
    color: #fff;
    font-size: 16px;
    transition: .99s;
    z-index: 3;
    opacity: .9;
}
.cover_icon {
    color: #fff;
    font-size: 26px;
    margin-top: 150px;
    transition: 0.5s;
    width: 100%;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    word-wrap: break-word;
    position: absolute;
    text-align: center;
    z-index: 3;
    opacity: 0;
}

.cover_year {
    font-family: 'Rubik', sans-serif;
    left: 4px;
    color: #ddd;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 5px;
    z-index: 3;
    transition: 0.5s;
    opacity: 1;
    pointer-events: none;
    height: 30px;
    width: auto;
    padding: 0 10px;
    transform: scale(.99);
    border-radius: 10px;
    background-color: rgba(21,31,48,0.50);
    font-size: 13px;
}
.cover_rating {
    font-family: 'Rubik', sans-serif;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 3;
    transition: 0.5s;
    opacity: 1;
    pointer-events: none;
    height: 30px;
    width: auto;
    padding: 0 10px;
    transform: scale(.99);
    border-radius: 10px;
    background-color: rgba(21,31,48,0.50);
    font-size: 13px;
}
.rating-1,
.rating-2,
.rating-3,
.rating-4 {
    color: orangered;
}
.rating-5,
.rating-6 {
    color: yellow;
}
.rating-7,
.rating-8,
.rating-9 {
    color: limegreen;
}
.results_header {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 16px;
}
.results_message {
    display: flex;
    justify-content: center;
}
.results_empty {
    font-size: 18px;
    color: #ddd;
    text-align: center;
    background: #00000088;
    border-radius: 99px;
    padding: 8px 16px;
}
.kinobox_player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0; /* Remove any border radius */
}
.back_button {
    position: absolute;
    z-index: 9999;
    cursor: pointer;
}
.section_player {
    position: relative;
}
.search_input_hidden {
    display: none;
}





#myBtn {
    color: white;
    cursor: pointer;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 9999;
}

.show-description-btn {
    background-color: transparent;
    border: none;
    color: blue; /* Цвет кнопки */
    text-decoration: underline; /* Подчеркивание текста */
    cursor: pointer; /* Показать курсор как указатель */
}


.modal-content {
    position: relative;
    background-color: black;
    margin: auto;
    padding: 0;
    border: 5px solid white;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 5px;
}


@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}


.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 2px 16px;
    background-color: black;
    color: white;
}

.modal-body {padding: 2px 16px;}
