
/*---------------------------   main ---------------------------*/
main{
    display: flex;
    flex-direction: column;
    gap: 10vh;
}

/*----------------------    welcom    ----------------------*/
.welcom_container {
    display: flex;
    flex-direction: column;
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
    width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.welcom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.welcom_el {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1em;
    box-sizing: border-box;
}
.welcom_el_img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5em;
}

.welcomel_info {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    max-width: 90%;
    padding: 0.1em;
    background: rgba(var(--bg-color), 0.7);
    border-radius: 0.5em;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.753);
    transition: all 0.3s ease;
}

.welcomel_info .btitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin: 0;
    color: rgb(var(--text-color));
    background: linear-gradient(-60deg, rgba(var(--bg-color),0.6), rgba(var(--primary-color),1));
    padding: 0.5em;
    border-radius: 0.3em;
    box-shadow: 3px 3px 5px rgba(var(--bg-color),0.5);
}



.welcomel_info:hover {
    color: rgb(var(--secondary-color));
    transform: translateY(-5px);
    box-shadow: 3px 3px 5px rgba(var(--primary-color),0.8);
}

.welcomel_info svg {
    transition: all 0.3s ease;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.slid_welcom {
    position: absolute;
    bottom: 1vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8em;
    z-index: 2;
    padding: 0.5em;
    background: rgba(var(--bg-color), 0.5);
    border-radius: 2em;
}

.nav_welcom {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border: none;
    background-color: rgba(128, 128, 128, 0.432);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav_welcom:hover {
    background-color: rgba(128, 128, 128, 0.932);
    transform: scale(1.2);
}

.active_welcom_btn {
    background-color: rgb(var(--secondary-color)) !important;
    transform: scale(1.2);
}
.slide_r, .slide_l {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    width: 2em;
    height: 2em;
    background-color: rgba(var(--bg-color), 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.3s ease;
    outline: none;
}
.slide_r svg, .slide_l svg{
    width: 1em;
    height: 1em;
}
.slide_r:hover, .slide_l:hover {
    background-color: rgba(var(--secondary-color), 1);
    transform: translateY(-50%) scale(1.1);
}
.slide_l{
    left: -2.5em;
}
.slide_r{
    right: -2.5em;
}
.slide_l + .slide_r,.last_favorited_added + .slide_l{
    top: 50%;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .welcom_container {
        height: 45vh;
    }
}

@media (max-width: 992px) {
    .welcom_el {
        justify-content: center;
        padding: 0.5em;
    }
    .welcomel_info {
        max-width: 80%;
        text-align: center;
    }
    .welcomel_info a {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .welcom_container {
        height: 40vh;
        min-height: 250px;
        width: 100%;

    }
    .welcomel_info {
        max-width: 90%;
        padding: 1em;
    }
    .welcomel_info .btitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .welcom_container {
        height: 35vh;
        width: 100%;

    }
    .welcomel_info {
        max-width: 95%;
    }
    .welcomel_info .btitle {
        font-size: 1.1rem;
        padding: 0.3em;
    }
    .nav_welcom {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }
    .slide_r, .slide_l {
        display: none;
    }
}

@media (max-width: 400px) {
    .welcom_container {
        height: 30vh;
        min-height: 200px;
        width: 100%;

    }
    .welcomel_info {
        gap: 0.5em;
    }
}
/*----------------------    section    ----------------------*/

/* Base Section Styles */
    .content-block {
        padding: 3rem 0;
        position: relative;
        max-width: 90%;
        min-width: 90%;
        margin: 0 auto;
    }

    .block-header {
      display: flex;
      flex-direction: row-reverse;
      justify-content: space-between;
      align-items: center;
      padding: 0 5%;
      margin-bottom: 1.5rem;

    }

    .block-title {
      font-size: 1.8rem;
      font-weight: 700;
      position: relative;
      color: rgb(var(--secondary-color));
    }

    .block-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 60px;
      height: 3px;
      background: rgb(var(--secondary-color));
      border-radius: 3px;
    }

    .slider-controls {
      display: flex;
      gap: 0.8rem;
    }

    .slider-controls button {
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 50%;
      background: rgba(var(--secondary-color), 0.1);
      border: 1px solid rgba(var(--secondary-color), 0.3);
      color: rgb(var(--secondary-color));
      font-size: 1.2rem;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .slider-controls button:hover {
      background: rgb(var(--secondary-color));
      color: white;
      transform: scale(1.1);
    }

    .recommended-slider {
      padding: 0rem 0%  1rem 0% !important;
      overflow: hidden;
      max-width: 90%;
      margin: 0 auto;
    }

    

    

    /* ===== RESPONSIVE ADJUSTMENTS ===== */
    @media (max-width: 1024px) {
      .recommended-slider {
        padding: 1rem 5%;
      }
    }

    @media (max-width: 768px) {
      .block-header {
        align-items: flex-start;
        gap: 1rem;
      }
      
      .content-block{
        max-width: 100%;
      }
    }

    @media (max-width: 480px) {
      .content-block {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100%;
        min-width: 100%;
      }
      
      .comments-placeholder {
        padding: 1.5rem;
      }
      
      .block-title {
        font-size: 1.5rem;
      }
    }
    .slider-controls button[disabled] {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none !important;
    }
    
    .slider-controls button[disabled]:hover {
        background: rgba(var(--secondary-color), 0.1) !important;
        color: rgb(var(--secondary-color)) !important;
    }
        @media (max-width: 270px) {
      .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }
    }


.section_header_cadre{
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-left: 1em;
}
.section_header {
    background-color: rgb(var(--secondary-color));
    width: fit-content;
    padding: 0.8em;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0.3em;
    margin-bottom: 0.5em;
}

.section_header p {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: white;
}

.section_header_icon {
    width: 1.2em;
    height: 1.2em;
    margin-left: 0.5em;
    fill: white;
}

.section_header_svg {
    position: absolute;
    right: 0.5em;
    top: 99%;
    width: 1em;
    height: auto;
    fill: rgb(var(--secondary-color)) !important;
    transform: rotateY(180deg);
}

/* Content Containers */


/* Trending Content Cards */
.trcontent_cadre{
    position: relative;
    width: fit-content !important;
    overflow: hidden;
    flex-shrink: 0;
}
.trfav_btns{
    position: absolute;
    left: 2%;
    top: 2%;
    z-index: 2;
    display: flex;
    gap: 0.5em;
    transform: translateY(-150%);
    transition: all 0.3s ease;
}
.trcontent_cadre:hover .trfav_btns{
    transform: translateY(0%);
}
.trcontent_card {
    background-size: cover;
    background-position: center;
    height: 18em;
    aspect-ratio: 11/16;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0.5em;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}
.trcontent_card_img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

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

.trcontent_content {
    background: linear-gradient(0deg, rgba(var(--secondary-color), 0.8), transparent);
    padding: 1em;
    transition: all 0.3s ease;
}

.trcontent_card:hover .trcontent_content {
    background: linear-gradient(0deg, rgba(var(--secondary-color), 0.9), transparent);
}

.trcontent_content h4 {
    margin: 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.trcontent_hidden {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.trcontent_card:hover .trcontent_hidden {
    height: 1.5em;
    margin-top: 0.5em;
}

.trcontent_hidden p {
    margin: 0;
    font-size: 0.9em;
    color: white;
}

.trcontent_wishlist {
    background: rgba(var(--secondary-color), 0.4);
    border: none;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trcontent_wishlist svg {
    width: 1em;
    height: 1em;
    fill: white;
}

.trcontent_wishlist:hover {
    background: rgba(var(--primary-color), 0.8);
}


/* Watched Episode Cards */
.watched_ep_cadre{
    position: relative;
    width: fit-content !important;
    height: fit-content;
}
.watched_ep {
    display: flex;
    width: 22vw;
    height: 10em;
    min-width: 160px;
    max-width: 220px;
    border-radius: 0.5em;
    border: 1px solid rgb(var(--primary-color));
    background-color: rgba(var(--primary-color), 0.5);
    overflow: hidden;
    position: relative;
    background-position: center ;
    background-repeat: no-repeat ;
    background-size: cover ;
    box-shadow: 0px 0px 5px rgba(var(--secondary-color), 0.5);
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease;
}
.watched_ep_img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-position: center !important;
    background-repeat: no-repeat !important;
    object-fit: cover !important;
}

.watched_ep_cadre:hover .watched_ep {
    box-shadow: 1px 0px 5px 1px rgba(var(--secondary-color), 0.5);
}

.watched_ep .episode_info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: rgba(1, 15, 34, 0.418);
    flex: 1;
    box-sizing: border-box;
    padding: 0.8em;
    gap: 0.3em;
}

.watched_ep .title {
    margin-top: auto;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    overflow: hidden;
}

.watched_ep .episode {
    background-color: rgb(95, 165, 95);
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    padding: 0.3em 0.5em;
    border-radius: 0.3em;
}

.watched_ep .episode_info > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.watched_ep .ep_onhover {
    position: absolute;
    inset: 0;
    background-color: rgba(var(--bg-color), 0.6);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.watched_ep .ep_onhover svg {
    width: 2.5em;
    height: 2.5em;
    fill: rgba(var(--secondary-color), 1);
    transition: all 0.3s ease;
}
.watched_ep_cadre .next_episode{
    position: absolute;
    display: flex;
    gap: 0.5em;
    top: 2%;
    right: 2%;
    padding: 0.2em 0.5em;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(var(--primary-color), 1);
    z-index: 4;
    border-radius: 0.5em;
    transform: translateX(50%);
    transition: all 0.3s ease;
}

.watched_ep_cadre .next_episode svg{
    width: 1.2rem;
    height: 1.2rem;
    transition: all 0.3s ease;
}

.watched_ep_cadre .next_episode:hover{
    background-color: rgb(95, 165, 95);
}
.watched_ep_cadre:hover .next_episode{
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateX(0%);

}

.watched_ep_cadre:hover .watched_ep .ep_onhover {
    opacity: 1;
    pointer-events: all;
}






















.last_favorited_added{
    gap: 2em;
}
.last_favorited_added>.manga_card{
    max-width: 150px;
    min-width: 140px;
}
.last_favorited_added .chapter_svg{
    display: none;
}
.last_favorited_added .watched_chapter{
    background-color: rgb(95, 165, 95) !important;
}

.section_header_cadre{
    display: flex;
    justify-content: center;
    align-items: center;
}
.daily_container{
    opacity: 0;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1em;
    margin: 20px 0;
}

.pagination button{
    padding: 0.5em;
    background-color: rgba(var(--primary-color),0.5);
    border: 1px solid rgb(var(--primary-color));
    border-radius: 0.3em;
    transition: all 0.3s ease;
    align-content: center;
    text-align: center;
    cursor: pointer;
}
.pagination button:hover{
    background-color: rgba(var(--secondary-color),1);
}
.pagination button svg{
    width: 1em;
    height: 1em;
}
/* Responsive Adjustments */
@media (max-width: 1200px) {
    .section_container {
        width: 95%;
    }
    .last_favorited_added>.manga_card{
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .trcontent_card {
        height: 16em;
    }
    
    .watched_ep {
        height: 9em;
    }
}

@media (max-width: 768px) {
    .section_header {
        padding: 0.6em;
    }
    
    .trcontent_card {
        height: 14em;
        min-width: 120px;
    }
    
    .watched_ep {
        height: 8em;
        min-width: 120px;
    }
    
    .advs h2 {
        min-width: 150px;
    }
    .last_favorited_added>.manga_card{
        min-width: 100px;
    }
.watched_ep .title {
    margin-top: auto;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    line-clamp: 2;
    overflow: hidden;
}
}

@media (max-width: 576px) {
    .section_container {
        padding: 0.5em;
        gap: 1.5em;
    }
    
    .trcontent_card {
        height: 12em;
        min-width: 100px;
    }
    
    .watched_ep {
        height: 7em;
        min-width: 100px;
    }
    
    .section_header_svg {
        width: 2.5em;
    }
    .last_favorited_added>.manga_card{
        min-width: 90px;
    }
}

@media (max-width: 400px) {
    .trcontent_card {
        height: 10em;
    }
    
    .watched_ep {
        height: 6em;
    }
    
    .advs h2 {
        min-width: 100%;
    }
}


#last_added_holder{
    display: flex;
    flex-wrap: wrap;
}