body{
    background:none;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    filter: blur(5px);
    z-index: -1;
}       
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(var(--bg-color),1) 10% 55% , rgba(var(--bg-color),0) 65% 100%);
    z-index: -1;
    backdrop-filter: blur(0px);
}       
#tmdb_disclamer{
    font-size: 0.8rem;
    color: rgba(var(--text-color),0.6);
}
/*footer{
    display: none !important;
}*/
.main_container{
    width: 100%;
    height: fit-content;
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 1em 5%;
}
.content{
    width: 50%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    box-sizing: border-box;
    gap: 1em;

}
.content title{
    font-size: 2em;
    font-weight: bold;
}
.content .header{
    display: flex;
    gap: 1em;
}
.content .type{
    color: rgb(var(--secondary-color));
    font-weight: bold;
    font-size: 1.5em;
    transition: all 0.3s ease;
    width: fit-content;
}
.content .type:hover{
    color: rgba(var(--secondary-color),0.8);
}
.mal{
    width: 2em;
    aspect-ratio: 1 ;
    opacity: 0.5;
    
}
.yout{
    width: 2em;
    height: 2em;
    border-radius: 100% !important;
    background-color: #FF0000;
    opacity: 0.5;
}
.content-wrapper{
    width: 100%;
}
.content .thumbnail{
    width: 35%;
    height: fit-content;
    border-radius: 1em;
    display: inline;
    float: left;
    margin: 0em 2em 1em 1em;
    position: relative;
}
.content .thumbnail img{
    object-fit: contain;
    border-radius: 1em;
    width: 100%;
}
.trailer{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-100%);
    z-index: 2;
    transition: all 0.3s ease;
}
.trailer svg{
    width: 3em;
    height: 3em;
    fill: rgba(var(--text-color),0.4);
    transition: all 0.3s ease;
}

.thumbnail:hover .trailer svg{
    fill: rgba(var(--text-color),1);
}
.trailer:hover{
    transform: translate(-50%,-100%);
}
.trailer svg:hover{
    fill: rgba(var(--secondary-color),1) !important;
}

.content .description{
    font-size: 1.2em;
    text-align: justify;
    line-height: 1.5em;
    display: inline;
}
.content .genres{
    display: flex;
    gap: 0.5em;
    flex-direction: column;
    margin-bottom: 1em;
}
.content .genres>div{
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}
.content .genres a{
    padding: 0.5em;
    border-radius: 0.5em;
    background-color: rgba(var(--primary-color),0.7);
    border: 1px solid rgb(var(--secondary-color));
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.content .genres a:hover{
    background-color: rgba(var(--secondary-color),1);
}
.fav_content{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: fit-content;
    min-width: 40%;
}
.fav_content>div{
    display: flex;
    gap: 0.5em;
}
.fav_content button, .fav_content a{
    background-color: rgba(var(--primary-color),1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 1.1em;
    transition: all 0.3s ease;
    justify-content: center;
    flex: 1;
}
.fav_content button svg, .fav_content a svg{
    transition: all 0.3s ease  ;
    height: 1.2em;
    aspect-ratio: 1;
}
#continue_wtch{
    border: 1px solid rgb(var(--secondary-color));
    background-color: rgba(var(--secondary-color),0.3);
    font-size: 1.2em;
    padding: 0.5em 1em;
}
#continue_wtch:hover{
    background-color: rgba(var(--secondary-color),0.8);
    color: rgba(var(--primary-color),1);
}
#continue_wtch:hover svg{
    fill: rgba(var(--primary-color),1);
}
.fav_content button:hover, .fav_content a:hover{
    background-color: rgba(var(--secondary-color),0.8);
}
.fav_content button:hover svg, .fav_content a:hover svg{
    fill: rgba(var(--text-color),0.8);
}

.external_links{
    display: flex;
    gap: 1em;
}
.external_links a{
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.external_links a svg{
    height: 1.5em;
    aspect-ratio: 1;
}

.score{
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 1em;
}
.content_score{
    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.8em;
    position: absolute;
    width: fit-content;
    white-space: nowrap;
    height: fit-content;
    height: 100%;
    top: 0.3em;    
}
.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;
}


.content_sup{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 60%;
    gap: 10px;
}
.sup{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-left: auto;
}

.tags{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
    align-items: center;
}
.tags a{
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    background: rgba(var(--primary-color), 0.7);
    color: rgba(var(--text-color), 0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--secondary-color), 0.3);
    font-size: 0.9em;
    cursor: pointer;
}
.tags a:last-child{
    border-right: none;
}

.tags a:hover {
    background: rgba(var(--secondary-color), 0.3);
    color: rgb(var(--text-color));
    transform: translateY(-2px);
}
.episodes {
    background: rgba(var(--primary-color), 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(var(--secondary-color), 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px black;
}

.episodes::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    background-color: rgba(var(--primary-color),0.01);
    z-index: 0;
    backdrop-filter: blur(10px);
    border-radius: 1em;
}
.episodes *{
    z-index: 2;
}

.search_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search_ep {
    display: flex;
    align-items: center;
    background: rgba(var(--primary-color), 0.9);
    border-radius: 8px;
    border: 1px solid rgba(var(--secondary-color), 0.3);
    padding-left: 1rem;
}

.search_ep label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search_ep svg {
    width: 18px;
    height: 18px;
    fill: rgba(var(--text-color), 0.7);
    margin-right: 0.5rem;
}

.search_ep input {
    background: transparent;
    border: none;
    color: rgb(var(--text-color));
    outline: none;
    padding: 0.5rem 1rem;
}


.search_header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.episode_list {
    display: flex;
    overflow-x: auto;
    gap: 1em;
    padding-top: 1.5em;
    height: 100%;
    padding-bottom: 5px;
}
.episode_list::-webkit-scrollbar{
    height: 6px;
}


.episode {
    background: rgba(var(--primary-color), 0.8);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--secondary-color), 0.2);
    text-decoration: none;
    aspect-ratio: 4/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 150px;
}

.episode:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--secondary-color), 0.2);
    border-color: rgba(var(--secondary-color), 0.5);
}

.episode span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.episode svg {
    width: 24px;
    height: 24px;
    fill: rgba(var(--text-color), 0.7);
    transition: all 0.3s ease;
}

.episode:hover svg {
    fill: rgb(var(--secondary-color));
}

.episode .watched_ep {
    fill: rgb(76, 141, 76);
}

.watched_ep{

    fill: rgb(95, 165, 95);

}
.season_select{
    background-color: transparent;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    border: none;
}
.season_select option{
    background-color: rgba(var(--primary-color),0.6);
    color: seashell;
}

body::-webkit-scrollbar{
    display: none !important;
}
.eps-sect{
    position: relative;
}
.eps-sect .slider-controls{
    margin-top: 20px;
}
.eps-sect .slider-controls button{
    padding: 0 !important;
    border-radius: 0.5rem !important;
    height: fit-content;
}
.eps-cont{
    padding: 0.5rem 0 !important;
}

/* Mobile First Approach */
.content{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    gap: 1em;
}

.content title{
    font-size: 1.5em; /* Smaller on mobile */
    font-weight: bold;
}

.content .header{
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.content .type{
    color: rgb(var(--secondary-color));
    font-weight: bold;
    font-size: 1.2em; /* Smaller on mobile */
    transition: all 0.3s ease;
    width: fit-content;
}

.mal, .yout {
    width: 1.5em; /* Smaller icons on mobile */
    height: 1.5em;
}

.content-wrapper{
    width: 100%;
}



/* Thumbnail moves above text on mobile */
.content .thumbnail{
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 1em;
    margin: 0 auto 1em; /* Center on mobile */
    float: none; /* Remove float on mobile */
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--secondary-color), 0.3);
    transition: all 0.4s ease;
}
.thumbnail:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--secondary-color), 0.3);
}

.thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Description below thumbnail on mobile */
.content .description{
    font-size: 1em; /* Smaller on mobile */
    text-align: justify;
    line-height: 1.5em;
    display: block; /* Change from inline */
    width: 100%;
}

/* Genres wrap on mobile */
.content .genres>div{
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: left; /* Center on mobile */
}

/* Favorite content full width on mobile */
.fav_content{
    width: 100%;
    min-width: 100%;
}
.fav_content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.fav_content > div {
    display: flex;
    gap: 1rem;
}

.fav_content button, .fav_content a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.fav_content button svg, .fav_content a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.fav_content button:first-child, .fav_content a:first-child {
    background: rgba(var(--secondary-color), 0.2);
    color: rgb(var(--text-color));
    border: 1px solid rgba(var(--secondary-color), 0.4);
}

.fav_content button:first-child:hover, .fav_content a:first-child:hover {
    background: rgba(var(--secondary-color), 0.4);
}

.fav_content button:first-child.active_user_content, .fav_content a:first-child.active_user_content {
    background: rgb(var(--secondary-color),0.2);
    color: white;
}

.fav_content button:nth-child(2), .fav_content a:nth-child(2) {
    background: rgba(var(--primary-color), 0.7);
    color: rgb(var(--text-color));
    border: 1px solid rgba(var(--text-color), 0.2);
}

.fav_content button:nth-child(2):hover, .fav_content a:nth-child(2):hover {
    background: rgba(var(--primary-color), 0.9);
}

.fav_content button:nth-child(2).active_user_content, .fav_content a:nth-child(2).active_user_content {
    background: rgba(var(--secondary-color), 0.2);
    color: white;
    border: 1px solid rgba(var(--secondary-color), 0.4);

}

#continue_wtch {
    background: linear-gradient(135deg, rgb(var(--secondary-color)), rgb(var(--secondary-color)));
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#continue_wtch:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--secondary-color), 0.4);
}

#continue_wtch svg {
    fill: white;
}




/* Content sup full width on mobile */
.content_sup{
    width: 100%;
    margin-top: 2em;
}

/* Score adjustments */
.content_score{
    font-size: 1.2em; /* Smaller on mobile */
}

.search_ep{
    max-width: 100%;
    width: 100%;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(var(--bg-color),1) 10% 55% , rgba(var(--bg-color),0) 65% 100%);
    z-index: -1;
    backdrop-filter: blur(0px);
}       


@media (max-width: 768px) {
    .main_container{
        flex-direction: column;
    }
    .content .thumbnail{
        width: 35%;
        max-width: 150px;
        min-width: 150px;
        float: left;
        margin: 0 2em 1em 1em;
    }
    .genres>div{
        margin: 0 !important;
        padding: 0 !important;
    }
    .genres a{
        font-size: 0.6em;
    }
    .content_score{
        font-size: 0.8em;
    }
    body::before {
        width: 100% !important;
        background-position: center;
        filter: blur(0px);
    }       
    body::after {
        background:
            linear-gradient(0deg, rgba(var(--bg-color),1) 30%, rgba(var(--bg-color),0) ) !important;
    }       
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .main_container{
        flex-direction: row;
        height: 60vh;
    }
    
    .content{
        width: 50%;
    }
    
    .content title{
        font-size: 2em;
    }
    
    .content .type{
        font-size: 1.5em;
    }
    
    .content .thumbnail{
        width: 35%;
        float: left;
        margin: 0 2em 1em 1em;
    }
    
    .content .description{
        font-size: 1.2em;
        display: inline;
    }
    
    .fav_content{
        width: fit-content;
        min-width: 40%;
    }
    
    .content_sup{
        width: 60%;
    }
    
    .content_score{
        font-size: 1.5em;
    }
    
    .search_ep{
        max-width: 30%;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {

}

/* Mobile First Styles */


.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1em;
}



/* Header adjustments for mobile */
.header {
    flex-wrap: wrap;
    gap: 0.5em;
}

/* Thumbnail adjustments for mobile */
.thumbnail {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1em;
    float: none;
}

/* Description below thumbnail on mobile */
.description {
    width: 100%;
}

/* Genres wrap on mobile */
.genres > div {
    justify-content: center;
}

/* Favorite buttons full width on mobile */


.fav_content button, .fav_content a {
    width: 100%;
}



/* Search header adjustments */
.search_header {
    align-items: flex-start;
}



/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .main_container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }
    
    .content {
        width: 50%;
    }
    
    .content_sup {
        width: 45%;
    }
    
    .thumbnail {
        width: 35%;
        float: left;
        margin: 0 2em 1em 1em;
    }
    
    .description {
        display: inline;
    }
    
    .fav_content > div {
        flex-direction: row;
    }
    
    .search_header {
        flex-direction: row;
        align-items: center;
    }
    
    .search_ep {
        max-width: 30%;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .main_container {
        flex-wrap: nowrap;
    }
    
    .content {
        width: 50%;
    }
    
    .content_sup {
        width: 45%;
    }
    
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    .content_sup {
        width: 50%;
    }
}
















