
body::-webkit-scrollbar{
    display: none !important;
}
.main_container{
    width: 100%;
    height: 80vh;
    display: flex;
    box-sizing: border-box;
}
.manga{
    padding: 4% 0 0 5%;
    display: flex;
    gap: 2em;
    height: 100%;
    width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
}
.manga_img{
    height: 100%;
    aspect-ratio: 2/3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.5em;
}
.manga_baseinfo{
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.title{
    font-size: 3em;
}
.thumbnail{
    width: 80%;
    border-radius: 0.5em;
    display: none;
}
.description{
    width: 75%;
    font-size: 1.5em;
    text-align: left;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 6 !important; 
    line-clamp:6 !important;
    overflow: hidden;
}
.info_holder{
    display: flex;
    flex-direction: column;
    gap: 2em;
}
.genres_container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5em;
    height: fit-content;
}
.genre{
    background-color: rgba(var(--primary-color),0.4);
    padding: 0.5% 1%;
    border: 1px solid rgba(var(--primary-color),0.8);
    border-radius: 0.25em;
    transition: background-color 0.3s ease;
    transition: transform 0.2s ease;
    height: fit-content !important;
    width: fit-content !important;
    font-size: 1em;
}
.genre:hover{
    background-color: rgba(var(--primary-color),0.7);
    transform: scale(1.1);
}
.btn_container{
    display: flex;
    gap: 1em;
}
.add_buttons{
    display: flex;
    gap: 0.2em;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    align-items: center;
}
.add_buttons svg{
    height: 2em;
    aspect-ratio: 1;    
}
.add_buttons:hover svg{
    transition: all 0.3s ease;
    fill: rgba(var(--primary-color),1);
}
.added_btn svg{
    fill: rgba(var(--primary-color),1);
}

.score{
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
    align-items: baseline;
}
.content_score{
    display: flex;
    font-size: 1.5em;
    width: fit-content;
    position: relative;
}
.scr1{
    filter: brightness(0) invert(0.8);
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
    font-size: 1em;
    cursor: pointer;
}


.scr2{
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: 2;
    filter: none;
    pointer-events: none;
}
.scr3{
    color: rgba(var(--text-color),0.8);
    font-size: 0.9em;
    width: fit-content;
    white-space: nowrap;
    height: fit-content;
    height: 100%;
    align-items: center;
}
.user_score{
    display: flex;
    white-space: nowrap;
    align-items: baseline;
    gap: 0.5em;
    margin-bottom: 0.4em;
    display: none;
}
.user_score>span{
    color: rgba(var(--text-color),0.8);
    font-size: 0.8em;
}
.read_chp_container{
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: 0.5em;
    margin-top: auto;
}
.read_chp_container>div{
    display: flex;
    width: fit-content;
    gap: 0.5em;
}
.fav_btn_ctn{
    display: flex;
    flex-wrap: nowrap;
}
.read_chp_container a,.read_chp_container button{
    background:linear-gradient(90deg, rgba(var(--primary-color),0.7), rgba(var(--primary-color),0.2)) ;
    border: 1px solid rgba(var(--primary-color),0.8);
    padding: 0.5em 1em;
    border-radius: 0.5em;
    font-size: 1.2em;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    gap: 0.5em;
    white-space: nowrap;
    justify-content: center;
    cursor: pointer;
}
.read_chp_container button svg{
    height: 1.2em;
    width: 1.2em;
}
.read_chp_container button{
    font-size: 1.4em;
}
.read_chp_container a:hover, .read_chp_container button:hover{
    background-color: rgba(var(--primary-color),0.7);
}

/*--------------------- chapters --------------------*/
.chapters_cotainer{
    width: 40%; 
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    box-sizing: border-box;
    height: 100%;
    position: relative;
    padding: 0 2em;
    padding-top: 2em;
}

.chapters{
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    position: relative;
}
.chapters::-webkit-scrollbar-track {
    background: transparent; /* Hides scrollbar background */
}
.chapters_header{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    margin-top: 2em;
    position: sticky;
}
.chapters_header span{
    flex: 1;
    text-align: center;
}
.episode{
    width: 100%;
    height: 7vh;
    min-height: 7vh;
    background-color: rgba(var(--bg-color), 0.6);
    border-radius: 0.25em;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    border: none;
}
.episode::after{
    content: '';
    left: 0;
    top: 0;
    height: 10%;
    width: 0;
    position: absolute;
    background-color: rgba(var(--primary-color),0.4);
    transition: all 0.6s ease;
}
.episode:hover::after{
    width: 100%;
}
.episode span{
    width: fit-content;
    flex: 1;
    text-align: center;
}
.episode span svg{
    height: 1em !important;
    aspect-ratio: 1 !important;
    fill:rgba(var(--text-color),0.8);
    transition: all 0.3s ease;
}
.episode span button{
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    cursor: pointer;
}
.episode span button:hover svg{
    fill:rgba(var(--secondary-color),0.8) !important;

}

.manga_extra_info{
    flex: 1;
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    box-sizing: border-box;
    background-color: rgb(var(--secondary-color));
    height: fit-content;
}
.manga_extra_info{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.manga_extra_info p a{
    color: rgba(var(--primary-color),1);
}
.search_holder{
    display: flex;
    gap: 1em;
    justify-content: space-around;
}


.search_ep{
    border: 1px solid rgba(var(--secondary-color),0.8);
    border-radius: 0.5em;
    display: flex;
    gap: 1em;
    padding: 0.5em;
    width: fit-content;
    background-color: rgba(var(--secondary-color),0.4);
    box-sizing: border-box;
    overflow: hidden;
}
.search_ep input{
    border: none;
    background-color: transparent;
    outline: none;
}

.search_ep svg{
    width: 1em;
    height: 1em;
}

/* Existing CSS remains the same until the media queries */

/* Tablet Styles (768px and below) */
@media (min-width:769) {
    body{
    max-height: 100vh;
}
}
@media (max-width: 768px) {
    .main_container {
        flex-direction: column;
        height: auto;
        padding: 2em 1em;
    }
    
    .manga {
        margin-top: 5vh;
        width: 100%;
        padding: 0;
        flex-direction: column;
        gap: 1em;
    }
    
    .manga_img {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }
    
    .description {
        width: 100%;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    .chapters_cotainer {
        width: 80%;
        padding: 1em 0;
        margin: 0 auto;
    }
    
    .btn_container {
        justify-content: center;
    }
    
    .read_chp_container {
        width: 100%;
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 0.5em;
        justify-content: center;
    }
    
    .read_chp_container > div {
        justify-content: center;
    }
    body::before{
        filter: blur(5px) !important;
        background-position: center;
    }
    .thumbnail{
        display: block;
        margin: 0 auto;
        max-width: 320px;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .title {
        font-size: 2em;
        text-align: center;
    }
    
    .description {
        font-size: 1.2em;
        text-align: center;
    }
    
    .info_holder {
        align-items: center;
    }
    
    .genres_container {
        justify-content: center;
    }
    
    .manga_img {
        width: 50%;
    }
    
    .content_score {
        font-size: 1.2em;
    }
    
    .scr3 {
        position: static;
        display: block;
        margin-top: 0.5em;
    }
    
    .chapters_header {
        font-size: 0.9em;
    }
    .chapters_cotainer {
        width: 90%;
        padding: 1em 0;
        margin: 0 auto;
    }
    
    .episode {
        font-size: 0.9em;
        height: 5vh;
        min-height: 5vh;
    }
    
    .read_chp_container a, 
    .read_chp_container button {
        font-size: 1em;
        padding: 0.5em;
    }
    
    .search_holder {
        flex-direction: row-reverse;
        align-items: center;
        gap: 0.5em;
    }
    
    .search_holder h2 {
        order: -1;
    }
    body::before{
        filter: blur(5px) !important;
        background-position: center;
    }
    .thumbnail{
        display: block;
        margin: 0 auto;
        max-width: 200px;
    }
}

/* Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .title {
        font-size: 1.8em;
    }
    
    .description {
        font-size: 1em;
    }
    
    .genre {
        font-size: 0.8em;
    }
    
    .chapters_header {
        font-size: 0.8em;
    }
    
    .episode {
        font-size: 0.8em;
    }
    body::before{
        filter: blur(5px) !important;
        background-position: center;

    }
    .thumbnail{
        display: block;
        margin: 0 auto;
        max-width: 180px;
    }
}