@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body {
    position: relative;
    background: #F7F7F7;

    /* background: url('/assets/image/anime/anime.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    overflow-x: hidden;  */
}

.episode{
    cursor: pointer;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    z-index: 6;
    background: rgba(255, 255, 255, 0.371);
    backdrop-filter: blur(10px);
}

.header_container {
    display: flex;
    width: 95%;
    max-width: 1200px;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 1px solid #FF006F; */
}

.logo {
    display: flex;
    width: auto;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding-top: 5px;
}

.logo img {
    width: auto;
    height: 80%;
    animation: rotate 5s infinite linear;
}

.logo span {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    margin-top: 2px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}

.form_div form {
    display: flex;
    width: 90%;
    height: 40px;
    justify-content: center;
    align-items: center;

    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.116);
    overflow: hidden;
}

header form {
    width: 40% !important;
}

@media screen and (max-width: 768px) {
    header form {
        display: none !important;
    }

}

.form_div form input {
    width: 100%;
    height: 35px;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    border: none;
    outline: none;
    font-size: 16px;
}

.form_div form button {
    width: auto;
    height: 100%;
    border: none;
    outline: none;
    background: #FF006F;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    padding: 0 15px;
    cursor: pointer;
}

/* elements */
.elements {
    position: relative;
    display: flex;
    width: auto;
    justify-content: center;
    align-items: center;
}

.elements_lang {
    position: relative;
    display: flex;
    width: auto;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
}

.elements_lang_header {
    position: relative;
    display: flex;
    width: auto;
    justify-content: center;
    align-items: center;
    padding-right: 15px;
}

.top_bottom_icon ion-icon {
    transition: linear .3s;
}

header .elements ion-icon {
    font-size: 20px;
}

.elements_lang:hover .top_bottom_icon ion-icon {
    transition: linear .3s;
    transform: rotate(180deg);
}

/* elements_langs */
.elements_langs {
    position: absolute;
    top: 0;
    padding-top: 60px;
    display: flex;
    flex-direction: column;

    display: flex;
    justify-content: center;
    align-items: center;

    visibility: hidden;
    opacity: 0;
    transition: linear .3s;

}

.elements_langs a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FF006F;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    position: relative;
    margin-bottom: 15px;
}

.elements_langs a span {
    position: absolute;
    top: -2px;
    transform: rotate(-45deg);
    background: #FF006F;
    /* background: #1900ff; */
    width: 40px;
    height: 40px;
    display: flex;
    z-index: -1;
    border-radius: 50px 0px 50px 50px;
}

.elements_lang:hover .elements_langs {
    visibility: visible;
    opacity: 1;
    transition: linear .3s;
    padding-top: 30px;
}

.elements_profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 0px 4px 0px rgba(255, 0, 111, 1);
    background: rgba(255, 255, 255, 1);
    padding: 5px;
    width: 50px;
    height: 50px;
    transition: linear .3s;
}

.elements_profile ion-icon {
    font-size: 30px !important;
    color: #FF006F;
    transition: linear .3s;
}

.elements_profile:hover ion-icon {
    color: white;
    transition: linear .3s;
}

.elements_profile:hover {
    background: #FF006F;
    transition: linear .3s;
}


.header_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}


.nav_menu {
    margin: 0 20px;
}

.main_link {
    font-size: 16px;
    font-weight: bold;
    color: black;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
    margin-left: 70% !important;
}

.main_link:hover {
    background: #FF006F;
    color: #fff;
}


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main{
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 60%;

}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 38%;
}



@media screen and (max-width: 860px) {

    .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .main-content {
        width: 100%;
        margin-bottom: 20px;
    
    }
    
    .sidebar {
        width: 100%;
    }
}


.card {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}


.card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.card-body {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    border-radius: 8px;
}

.anime-poster img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

.anime-details {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
}

.anime-details h2 {
    font-family: system-ui;
    border-bottom: 3px solid #ff006f82;
}

.anime-details p {
    margin: 0 0 5px 0;
}

.anime-details strong {
    color: #FF006F;
}

.description-section {
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.description-section h3 {
    border-bottom: 2px solid #d1b4d3;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 18px;
}

.description-section p {
    font-size: 14px;
    line-height: 1.6;
    color: black;
}

.sidebar h3 {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-size: 14px;
    color: #777;
    margin-bottom: 30px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
}

.related-animes {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.anime-item {
    position: relative;
    width: 48%;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 16px;
    /* box-shadow: 0 0 25px -6px rgb(255, 0, 111); */
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #e0e0e0;
    border: 1px solid rgba(255, 0, 111, 0.3);
    margin-bottom: 20px;
}

.anime-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 5px 35px -5px #FF006F;
    border-color: rgba(255, 0, 111, 0.5);
}

@media screen and (max-width: 1100px) {
    .anime-item {
        width: 45%;
    }
}

@media screen and (max-width: 600px) {
    .card-body{
        flex-direction: column;
        align-items: center;
    }
}

.anime-item img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 0, 111, 0.2);
}

.anime-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 5px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 0, 111, 0.5);
}

.anime-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 12px;
    color: #ffffff;
    padding: 10px;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    background: #00000080;
    backdrop-filter: blur(3px);
}

@media screen and (max-width: 950px) {
    .anime-item {
        width: 32%;
    }
}


@media screen and (max-width: 450px) {
    .anime-item {
        width: 48%;
    }
}

/* ВИДЕО КОНТЕЙНЕР ҮЧҮН СТИЛДЕР */
/* ВИДЕО КОНТЕЙНЕР */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-top: 20px;
    overflow: hidden;
    background: none; /* Артында ЭЧ НЕРСЕ БОЛБОЙТ */
    border: none; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 18px;
}

/* БАРДЫК ЭКРАНГА ТУУРА КЕЛЕТ */
@media screen and (max-width: 600px) {
    .video-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 490px) {
    .video-container {
        width: 100%;   /* 103% КЕРЕК ЭМЕС */
        max-width: 600px;
    }
}

/* IFRAME ТАК ТУУРА БОЛСУН */
.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;     /* Playerдин четинде да линия чыкпайт */
    background: black;
    border-radius: 18px;
}


.episode-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;

    gap: 10px;
    justify-content: flex-start;
}



.episode {
    width: 120px;
    text-align: center;
    border: 2px solid #FF006F;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #FF006F;
    border-radius: 6px;
    color: #FF006F;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    margin-left: 14px;
    
}



.episode.active {
    background: #FF006F;
    color: #fff;

}

.episode:hover {
    color: white;
    background-color: #FF006F;
}

.episode.active-episode {
    background-color: #ff6f00;
    color: white;
    border-left: 4px solid #fff;
}




/* Avvalgi Javobdan olingan Reyting va Ulashish stillari */
.rating-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    /* Reytingni ajratish uchun */
}

.rating-stars {
    color: gold;
    font-size: 24px;
    /* Yulduzchalar kattaligi */
    user-select: none;
    /* Tanlashni o'chirish */
}

.rating-stars ion-icon {
    cursor: pointer;
    transition: color 0.2s;
    /* To'liq yulduzlar uchun CSS o'rniga ionicon-stroke-width'ni olib tashladim */
}

.rating-score {
    font-weight: bold;
    font-size: 1.2em;
    color: #e50914;
    /* Asosiy rangga moslab o'zgartirdim */
}

.social-share {
    margin-top: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Kichik ekranlar uchun */
    gap: 10px;
}

.social-share span {
    margin-right: 15px;
    font-weight: 500;
    font-size: 0.95em;
}

.share-button {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.share-button:hover {
    opacity: 0.8;
}

.share-button ion-icon {
    margin-right: 5px;
    font-size: 1.2em;
}

.facebook-share {
    background-color: #3b5998;
}

.telegram-share {
    background-color: #0088cc;
}

/* Twitter-share (kerak bo'lsa) .twitter-share { background-color: #1da1f2; } */

/* ************************************************************ */
/* YENGI QO'SHILGAN IZOHLAR BO'LIMI (COMMENTS) STILLARI */
/* ************************************************************ */

.comments-section {
    margin-top: 30px;
    padding: 20px 0;
}

.comments-section h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-left: 4px solid #e50914;
    /* Qizil chiziq qo'shdim */
    padding-left: 10px;
}

#comment-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

#comment-form p {
    color: #777;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 1em;
    box-sizing: border-box;
    /* Padding hisobga olinishi uchun */
}

#comment-form button {
    background-color: #e50914;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#comment-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#comment-list p {
    color: #555;
    font-style: italic;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
}


/* navigation */
.navigation {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    font-weight: 600;
    font-family: system-ui;
}

.navigation_container {
    display: flex;
    width: 95%;
    max-width: 1200px;
    justify-content: flex-start;
    align-items: center;
    font-style: italic;
}

.navigation_container a {
    font-size: 18px;
    margin: 5px;
    color: black;
}

.navigation_container .icon {
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

/* all_episode_list */
.all_episode_list{
    width: 100%;
    margin-top: 25px;
    
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}