*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    background-color:#000000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

body::-webkit-scrollbar{
    background-color: #000;
    width: 10px;
}

body::-webkit-scrollbar-thumb{
    background:#252525 ;
}
/* navbar start */
/* ===== NAVBAR CONTAINER ===== */
.navbar-container{
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

/* ===== NAVBAR ===== */
.navbar{
    height: auto;
    backdrop-filter: blur(0.1px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 25px;
    border-bottom:1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    flex-wrap: wrap;
     transition: background-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
/* ===== MENU GROUP (LOGO + NAV LINKS) ===== */
.menu{
    display: flex;
    align-items: center;
    gap: 35px;
}

/* ===== LOGO ===== */
.logo{
    margin-right: 5px;
}

.logo img{
    height: 25px;
    cursor: pointer;
    transition: .3s;
}

.logo img:hover{
    opacity: .8;
}

/* ===== NAV MENU ===== */
.nav-menu{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu li a{
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    transition: .3s;
}



/* ===== SEARCH BOX ===== */
.search-box{
    overflow: visible;
    position: relative;
    width: 350px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 1px;
    z-index: 10;
}

.search-dropdown{
    font-weight: 600;
    margin-top: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 99%;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10);
    transition: all .3s ease;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow-x: hidden;
    overflow-y: auto;
}

.search-dropdown.active{
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.bux{
    padding: 0px 5px;
    margin-bottom: 5px;
    background-color: rgba(78, 78, 78, 0.05);
}

.search-box input{
    height: 25px;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    outline: none;
    backdrop-filter: blur(25px);
    transition: all .4s ease;
    box-shadow: 
    inset 0 0 15px rgba(255, 255, 255, 0.08), 
    0 0 10px rgba(150, 255, 255, 0.05);
}

.search-box input::placeholder{
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}

/* SEARCH SHINE EFFECT */
.search-box::before{
    content: "";
    position: absolute;
    top: -40%;
    left: -27%;
    width: 220%;
    height: 280%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.15),transparent 100%);
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 0;
    animation: shine 6s infinite ease-in-out;
}

@keyframes shine {
    0%{
        transform: rotate(25deg)translate(0%, 0%);
        opacity: 0.3;
    }
    50%{
        transform: rotate(25deg)translate(5%, 5%);
        opacity: 0.6;
    }
    100%{
        transform: rotate(25deg)translate(0%, 0%);
        opacity: 0.3;
    }
}

/* ====== CUSTOM SCROLL BAR ===== */
.search-dropdown::-webkit-scrollbar{
    background-color: transparent;
    width: 8px;
}
.search-dropdown::-webkit-scrollbar-thumb{
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

/* ===== RESPONSIVE ===== */

@media(max-width: 1024px){
    .search-box{
        width: 250px;
    }
}

@media(max-width: 768px){
    .nav-menu{
        gap: 18px;
    }
    .search-box{
        width: 220px;
    }
}

/* ✅ REAL FIX REQUESTED */
@media(max-width: 650px){
    .navbar{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 18px;
    }

    .menu{
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
     

    .search-box{
        width: 100%;
    }

    .nav-menu{
        gap: 50px;
    }
}

@media(max-width: 460px){
     .logo img{
        height: 20px;
     }

    .nav-menu{
        gap: 20px;
    }
    
    .nav-menu li a{
        font-size: 11px;
    }
}

@media(max-width: 430px){
     .logo img{
        height: 17px;
     }

    .nav-menu{
        gap: 15px;
    }
    
    .nav-menu li a{
        font-size: 11px;
    }
    
}
/*navbar-end*/
.hero-section{
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    z-index: 1;
}

.hero-section::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(0deg, #000000, transparent);
    z-index: 2;
    margin-bottom: 0;
}

.hero-section::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg ,#0d0d0d, transparent);
    top: 0;
    left: 0;
    z-index: -2;
}

.hero-content{
    margin-top: 0;
    position: absolute;     
    left: 30px;
    right: 30px;
    bottom: 32px;          
    z-index: 3;
    max-width: 700px;
    width: calc(100% - 60px);
    box-sizing: border-box;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-meta{
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.hero-description {
  color: rgba(240,240,240,0.85);
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.08);
  padding: 5px 10px;
  border-radius: 10px;
  animation: mistAppear 2s ease-out both;
}
@keyframes mistAppear {
  from { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-genre {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    top: 1px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: transparent;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 6px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-genre:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: glassShine 2s ease-out forwards;
}
@keyframes glassShine {
    0% { left: -120%; }
    100% { left: 120%; }
}

@media (max-width: 700px) {
    .hero-genre {
        font-size: 12px;
        padding: 2px 7px;
        border-radius: 8px;
        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 450px) {
    .hero-genre {
        font-size: 11.5px;
        padding: 2px 6px;
        border-radius: 7px;
    }
}

@media (max-width: 360px) {
    .hero-genre {
        font-size: 11px;
        padding: 1.5px 5px;
    }
} 

#hero-rating{
    margin-left: 4px;
}

.rating-star {
    font-size: 14px;
    margin-left: 1px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1; 
}




@media (max-width: 768px) {
    .hero-title{
        font-size: 26px;
    }

    .hero-description{
        font-size: 14px;
    }

    .hero-meta {
        font-size: 12px;
    }

    .hero-section{
        padding: 20px;
        height: 350px;
    }
}
@media (max-width: 768px) {
    .hero-title{
        font-size: 26px;
    }

    .hero-description{
        font-size: 14px;
    }

    .hero-meta {
        font-size: 12px;
    }

    .hero-section{
        padding: 20px;
        height: 350px;
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-section{
        height: 320px;
    }
}

@media (max-width: 768px) {
    .hero-content{
        left: 18px;
        right: 18px;
        bottom: 24px;
        max-width: 92%;
    }
}

@media (max-width: 480px) {
    .hero-content{
        bottom: 18px;
        left: 12px;
        right: 12px;
    }
}
.slider-wrapper {
    padding: 40px 5px;
}

.slider-section{
    margin-bottom: 0px; 
}

.slider-title{
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    margin-bottom: 1px;
    margin-left: 8px;
    color: #ffffff;
    border-left: 5px solid #0131b7;
    padding-left: 10px;
}

.slider-title .view-all{
    color: #454545;
    font-weight: 650;
    font-size: 15px;
    cursor: pointer;
}

.slider-row{
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    gap: 10px;
    margin-bottom: 15px;
}
.slider-row::-webkit-scrollbar{
    height: 6px;
}

.slider-row::-webkit-scrollbar-thumb{
    background-color: #121212;
    border-radius: 4px;
}

.card{
    width: 160px;
    height: 230px;
    background-color: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.card:hover{
    transform: scale(1.05);
}
.card img{
    border-radius: 2px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
    border-bottom: 1px solid rgb(100, 100, 100);
}
.card-title{
    width: 100%;
    padding: 5px 7px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid rgb(100, 100, 100);
    border-top: none;
}
@media (max-width: 768px) {
    .card {
        width: 140px;
        height: 220px;
    }

    .card img{
        height: 180px;
    }
    .card-title{
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 120px;
        height: 200px;
    }
    .card img{
        height: 160px;
    }
    .card-title{
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .card {
        width: 105px;
        height: 168px;
    }
    .card img{
        height: 140px;
    }
    .card-title{
        font-size: 11px;
    }
}
#view-all-container{
    width: 100%;
    padding: 3px ;
    background-color: #000000;
    min-height: 100vh;
}

.view-all-header{
    width: 100%;
    position: sticky;
    top: 54px;
    display: flex;
    background-color: #000000;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 25px;
    border-right: 5px solid rgb(1, 49, 183);
    padding-right: 10px;
    margin-right: 10px;
    z-index: 998;
}

@media (max-width: 650px) {
    .view-all-header{
        top: 80px;
    }
    #view-all-cards{
        padding-top: 35px;
    }
}
.back-button{
    font-weight: 650;
    font-size: 18px;
    color: #4c4c4c;
    cursor: pointer;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.back-button:hover{
    color: #565656;
}

.view-all-title{
    font-size: 24px;
    color: white;
    font-weight: 600;
}

#view-all-cards{
    display: flex;
    flex-wrap:wrap;
    gap: 16px;
    justify-content: start;
    margin-left: 1px;
    margin-right: 1px;
}

.view-all-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#view-all-container .card{
    animation: fadeIn 0.4s ease;
}

#view-all-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-content: center;
}

#view-all-cards .card {
  width: 100%;
  max-width: 110px;
}

@media (max-width: 430px) { #view-all-cards .card { max-width: 118px; height: auto; } }
@media (max-width: 414px) { #view-all-cards .card { max-width: 116px; height: auto; } }
@media (max-width: 390px) { #view-all-cards .card { max-width: 112px; height: auto; } }
@media (max-width: 375px) { #view-all-cards .card { max-width: 109px; height: auto; } }
@media (max-width: 360px) { #view-all-cards .card { max-width: 107px; height: auto; } }
@media (max-width: 350px) { #view-all-cards .card { max-width: 97px; height: auto; } }
@media (max-width: 340px) { #view-all-cards .card { max-width: 94px; height: auto; } }
@media (max-width: 330px) { #view-all-cards .card { max-width: 92px; height: auto; } }
@media (max-width: 320px) { #view-all-cards .card { max-width: 90px; height: auto; } }
@media (max-width: 310px) { #view-all-cards .card { max-width: 88px; height: auto; } }
@media (max-width: 300px) { #view-all-cards .card { max-width: 86px; height: auto; } }
@media (max-width: 290px) { #view-all-cards .card { max-width: 84px; height: auto; } }
@media (max-width: 280px) { #view-all-cards .card { max-width: 82px; height: auto; } }
@media (max-width: 270px) { #view-all-cards .card { max-width: 80px; height: auto; } }
@media (max-width: 260px) { #view-all-cards .card { max-width: 78px; height: auto; } }
@media (max-width: 250px) { #view-all-cards .card { max-width: 76px; height: auto; } }
@media (max-width: 240px) { #view-all-cards .card { max-width: 74px; height: auto; } }
@media (max-width: 230px) { #view-all-cards .card { max-width: 72px; height: auto; } }
@media (max-width: 220px) { #view-all-cards .card { max-width: 70px; height: auto; } }
@media (max-width: 210px) { #view-all-cards .card { max-width: 68px; height: auto; } }
@media (max-width: 200px) { #view-all-cards .card { max-width: 66px; height: auto; } }


@media (min-width: 600px) and (max-width: 767px) {
  #view-all-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  #view-all-cards .card { max-width: 140px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  #view-all-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  #view-all-cards .card { max-width: 150px; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  #view-all-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 160px; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  #view-all-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 170px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  #view-all-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 175px; }
}
@media (min-width: 1440px) and (max-width: 1599px) {
  #view-all-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 180px; }
}
@media (min-width: 1600px) and (max-width: 1919px) {
  #view-all-cards{ grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 190px; }
}
@media (min-width: 1920px) {
  #view-all-cards { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; }
  #view-all-cards .card { max-width: 195px; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.loader {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

.player-container {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.video-section {
    flex: 1 1 640px;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    position: relative;
    background-color: #0a0a0a;
}

.video-section iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: black;
}

#animeTitle {
    margin-top: 18px;
    font-size: 1.5rem;
    color: white;
}

.control-section {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quality-box h3,
.download-box h3,
.episode-box h3 {
    margin-bottom: 10px;
    font-size: 15px;
    border-left: 3.5px solid #0131b7;
    padding-left: 5px;
    margin-left: 8px;
}

.quality-box {
    display: flex;
    flex-direction: column;
    transition: margin-bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #0d0d0d;
    border-radius: 5px;
    padding-top: 10px;
}

.episode-box{
     background-color: #0d0d0d;
     border-radius: 5px;
     padding-top: 10px;
     
}


.button-group {
    max-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.quality-button,
.episode-button,
.glow-button {
    position: relative;
    background-color: transparent;
    font-weight: bold;
    cursor: pointer;
    border: none;
    z-index: 1;
    color: transparent;
    background-image: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, background, color;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-button {
    padding: 5px 10px;
    border-radius: 3px;
    flex: 1 1 45%;
    text-align: center;
    min-width: 60px;
}

.episode-button {
    width: 36px;
    padding: 8px 13px;
    border-radius: 3px;
    margin-bottom: 5px;
    margin-top: 8px;
    font-size: 13px;
    margin-left: 12px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-button {
    padding: 8px 16px;
    border-radius: 4px;
    flex: 1 1 45%;
    min-width: 80px;
}

/* Button borders */
.quality-button::before,
.episode-button::before,
.glow-button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.quality-button.active,
.episode-button.active{
    background: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    color: white;
    transform: scale(1.02);
}

.glow-button.active{
    background: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    color: white;
    transform: scale(1.02);
    border-radius: 0;
}

.episode-group {
    max-height: 209px;
    max-width: 350px;
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.4s ease;
}

.episode-group::-webkit-scrollbar {
    background-color: #262626;
    width: 5px;
    border-radius: 15px;
}

.episode-group::-webkit-scrollbar-thumb {
    background-color: rgb(77, 77, 77);
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
    display: inline-block;
    width: auto;
    box-sizing: border-box;
}


#downloadBtn {
    width: 100%;
    box-sizing: border-box;
}

/* Smooth dropdown content */
.dropdown-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    background-color: #111;
    opacity: 0;
    transform: scaleY(0.9);
    transform-origin: top;
    transition:
        max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.6s ease,
        transform 0.6s ease;
    color: transparent;
    background-image: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    background-clip: text;
    -webkit-background-clip: text;
    border: none;
}

.dropdown.active .dropdown-content {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
}

.dropdown-content a {
    text-align: center;
    padding: 6px;
    display: block;
    text-decoration: none;
    transition: all 0.4s ease;
    color: transparent;
    background-image: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 500;
    width: 100%;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: linear-gradient(90deg, white, #00bdff, #00bdff, #0079ff);
    color: white;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    width: 55%;
}


.dropdown.active ~ .episode-box {
    margin-top: 25px;
    transition: margin-top 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
 .quality-download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
    padding-right: 5px;
}
.anime-meta i {
    font-size: 14px;
    color: #d0d0d0; 
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    vertical-align: middle; 
}

.anime-meta .rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #ffea00; 
    font-weight: 350;
}

.anime-meta .rating .star {
    font-size: 12px;
    color: #ffea00;
    line-height: 1;
    vertical-align: middle;
}

.anime-meta .separator {
    color: #dedddd; 
}

.anime-meta .year,
.anime-meta .country {
    font-size: 12px;
    color: #f2f2f2;
}



#animeMeta {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 2px;
    width: 175px;
}

.anime-meta {
    display: flex;              
    align-items: center;
    justify-content: flex-start;  
    gap: 4px;
    margin-top: 4px;
    font-size: 13px;
    color: #dedddd;
    flex-wrap: nowrap;
    line-height: 1;
    max-width: 250px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



#animeMeta .separator {
    margin: 0 2px;
}

@media (max-width: 768px) {
  .anime-meta {
    font-size: 14px; 
    max-width: 250px;
    margin-left: 6px;
  }

  .anime-meta i {
    font-size: 12px;
  }
  #animeTitle{
    padding-left: 10px;
  }

  .anime-meta .rating,
  .anime-meta .year,
  .anime-meta .country {
    font-size: 11px;
  }

  .anime-meta .rating .star {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .anime-meta {
    font-size: 10px; 
    margin-left:10px ;
    max-width: 220px;
  }

  #animeTitle{
    padding-left: 9px;
  }

  .anime-meta i {
    font-size: 10px;
  }

  .anime-meta .rating,
  .anime-meta .year,
  .anime-meta .country {
    font-size: 8px;
  }

  .anime-meta .rating .star {
    font-size: 8px;
  }
}

@media(max-width: 400px) {
    .glow-button{
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    #animeTitle{
        font-size: 1.2rem;
    }
    .quality-box h3,
    .download-box h3,
    .episode-box h3{
        font-size: 1rem;
    }
}


#search-resultl-container{
    width: 100%;
    padding: 3px ;
    background-color: #000000;
    min-height: 100vh;
}

.search-result-header{
    height: 50px;
    width: 100%;
    position: sticky;
    top: 54px;
    display: flex;
    background-color: #000000;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 25px;
    border-right: 5px solid rgb(1, 49, 183);
    padding-right: 10px;
    margin-right: 10px;
    z-index: 998;
}

.home-button{
    font-weight: 650;
    font-size: 18px;
    color: #4c4c4c;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.home-button:hover{
    color: #565656;
}

.search-result-title{
    font-size: 24px;
    color: white;
    font-weight: 600;
}

#search-result-cards{
    display: flex;
    flex-wrap:wrap;
    gap: 16px;
    justify-content: start;
    margin-left: 1px;
    margin-right: 1px;
    padding-left: 10px;
}
@media(max-width: 370px) {
    #search-result-cards{
        border: none;
        padding-left: 10px;
    }
}
.search-result-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#search-result-container .card{
    animation: fadeIn 0.4s ease;
}

#suggest-container{
    width: 100%;
    padding: 3px ;
    background-color: #0a0a0a;
    min-height: 50vh;
}

#search-result-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-content: center;
}

#search-result-cards .card {
  width: 100%;
  max-width: 110px;
}



@media (max-width: 430px) { #search-result-cards .card { max-width: 114px; height: auto; } }
@media (max-width: 414px) { #search-result-cards .card { max-width: 112px; height: auto; } }
@media (max-width: 390px) { #search-result-cards .card { max-width: 108px; height: auto; } }
@media (max-width: 375px) { #search-result-cards .card { max-width: 115px; height: auto; } }
@media (max-width: 360px) { #search-result-cards .card { max-width: 120px; height: auto; } }
@media (max-width: 350px) { #search-result-cards .card { max-width: 97px; height: auto; } }
@media (max-width: 340px) { #search-result-cards .card { max-width: 94px; height: auto; } }
@media (max-width: 330px) { #search-result-cards .card { max-width: 92px; height: auto; } }
@media (max-width: 320px) { #search-result-cards .card { max-width: 90px; height: auto; } }
@media (max-width: 310px) { #search-result-cards .card { max-width: 88px; height: auto; } }
@media (max-width: 300px) { #search-result-cards .card { max-width: 86px; height: auto; } }
@media (max-width: 290px) { #search-result-cards .card { max-width: 84px; height: auto; } }
@media (max-width: 280px) { #search-result-cards .card { max-width: 82px; height: auto; } }
@media (max-width: 270px) { #search-result-cards .card { max-width: 80px; height: auto; } }
@media (max-width: 260px) { #search-result-cards .card { max-width: 78px; height: auto; } }
@media (max-width: 250px) { #search-result-cards .card { max-width: 76px; height: auto; } }
@media (max-width: 240px) { #search-result-cards .card { max-width: 74px; height: auto; } }
@media (max-width: 230px) { #search-result-cards .card { max-width: 72px; height: auto; } }
@media (max-width: 220px) { #search-result-cards .card { max-width: 70px; height: auto; } }
@media (max-width: 210px) { #search-result-cards .card { max-width: 68px; height: auto; } }
@media (max-width: 200px) { #search-result-cards .card { max-width: 66px; height: auto; } }



@media (min-width: 600px) and (max-width: 767px) {
  #search-result-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  #search-result-cards .card { max-width: 140px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  #search-result-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  #search-result-cards .card { max-width: 150px; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  #search-result-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 160px; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  #search-result-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 170px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  #search-result-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 175px; }
}
@media (min-width: 1440px) and (max-width: 1599px) {
  #search-result-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 180px; }
}
@media (min-width: 1600px) and (max-width: 1919px) {
  #search-result-cards { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 190px; }
}
@media (min-width: 1920px) {
  #search-result-cards { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; }
  #search-result-cards .card { max-width: 210px; }
}

/* Parent overlay */
.js-iframe-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Neon ring loader */
.loader-ring {
    width: 80px;
    height: 80px;
    border: 6px solid transparent;
    border-top: 6px solid #00fff7; /* neon cyan */
    border-radius: 50%;
    animation: spin 1s linear infinite, neonGlow 1.5s ease-in-out infinite alternate;
    box-shadow:
        0 0 10px #00fff7,
        0 0 20px #00fff7,
        0 0 30px #00fff7,
        0 0 40px #00fff7;
}

/* Rotate animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow pulse animation */
@keyframes neonGlow {
    0% {
        box-shadow:
            0 0 5px #00fff7,
            0 0 10px #00fff7,
            0 0 15px #00fff7,
            0 0 20px #00fff7;
    }
    100% {
        box-shadow:
            0 0 15px #00fff7,
            0 0 30px #00fff7,
            0 0 45px #00fff7,
            0 0 60px #00fff7;
    }
}

/* Optional: smoother fade when overlay hides */
.js-iframe-loader-overlay[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
}

.category-header{ 
    margin-top: 40px; 
    height: 30px; 
    width: 100%; 
    position: sticky; 
    top: 48px; 
    display: flex;
     background-color: #0d0d0d; 
     align-items: center; 
     justify-content: flex-start; 
     gap: 2px; 
     margin-bottom: 10px; 
     padding-right: 10px; 
     margin-right: 10px; 
     z-index: 998; 
     padding-left: 15px; 
     font-weight: 500; 
     font-size: 15px; 
    } 
    
    .category-header{ 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
    } 
    
    @media (max-width: 650px) 
    { .category-header 
        { margin-top: 83px; 
        } 
    }