@import url(css/font.css);




 *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Roboto-Regular";
    
    
}
body{
    height: 100vh;
    background: #141A20;
    
}
.container{
    max-width: 1200px;
    width: 100%;
    
    margin: 0 auto;
    padding: 0 15px;
    
    
}


.nav{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}
.nav__content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}
.nav__content-logo{
    font-size: 2rem;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    padding: 5px 0;
    padding-right: 140px;
}
.nav__content-items{
    display: flex;
    text-align: center;
    align-items: center;
    column-gap: 30px;
   
}
.nav__content-item{
    color: #ccc;
    font-size: 1.3rem;
    font-weight: 500;
    
    transition: all 0.7s ease;
    white-space: nowrap;
}

.nav__content-item:hover{
    color: #ff9800;
}
.nav__content-toggle{
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
    display: none;
}
.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #FFF;
    transition: all 0.3s ease-in-out;
}









.dropdawn{
    position: relative;
    scrollbar-color: #ff9800 #1a1a1a; 
}

.dropdawn-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background: #141A20;
    width: 180px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    overflow-y: auto;
    height: 300px;
}

.dropdawn:hover .dropdawn-menu{
    opacity: 1;
    visibility: visible;
    transition: 0.5s;
   
}
.dropdawn-menu li a{
    padding: 10px;
    display: block;
    color: #FFFFFF;
}
.dropdawn:hover > .nav__content-item{
    color: #ff9800;
}


/* ================= SEARCH FINAL FIX ================= */

.nav__content-search {
    position: relative;
    display: flex;
    align-items: center;
    
              
}

/* SEARCH ICON */
.search__icon {
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.search__icon:hover {
    color: #ff9800;
}

/* INPUT */
.input__search {
    width: 0;
    opacity: 0;
    pointer-events: none;
    
    padding: 8px 5px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #141a20;
    color: #fff;

    transition: width 0.3s ease, opacity 0.2s ease;
}

/* ACTIVE STATE */
.nav__content-search.active .input__search {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
}

/* 🔴 ICON YO‘QOLADI */
.nav__content-search.active .search__icon {
    display: none;
}

/* SEARCH RESULTS */
.search-results {
    position: absolute;
    top: 42px;
    right: 30px;
    width: 220px;

    background: #1b1f27;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 300px;

    display: none;
    z-index: 9999;
}

/* ITEM */
.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid #2a2f3a;
    transition: 0.2s;
}

.search-item:hover {
    background: #ff9800;
    color: #000;
}

.search-item img {
    width: 38px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
}

/* EMPTY */
.search-empty {
    padding: 12px;
    text-align: center;
    color: #aaa;
}

/* ================= TABLET ================= */
@media (max-width: 768px) {
    .nav__content-search.active .input__search,
    .search-results {
        width: 200px;
    }
   
   
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
    .nav__content-search.active .input__search,
    .search-results {
        width: 170px;
    }
   
    .input__search {
        font-size: 14px;
    }
}





 


.user__icon-profil{
    font-size: 25px;
    color: #FFFFFF;
    
    
}
.user__icon-profil:hover{
    color: #ff9800;
}

.btn__user{
    /* display: none !important; */
    font-size: 25px;
    color: #FFFFFF;
    padding-left: 10px;
}
.btn__user:hover{
    color: #ff9800;
}








.header{
    overflow: hidden;
}

.header__slider{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    
}

.header__slider-item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.header__slider-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}
.header__slider-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}
.header__slider-content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-54%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #FFF;
    text-shadow: 0 5px 10px #0004;
}
.header__slider-title{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.header__slider-type{
    font-size: 2em;
    color: #ff9800;
    font-weight: bold;
    line-height: 1.3em;
    padding: 5px 0;
}
.header__slider-desc{
    font-size: 14px;
    font-family: "Roboto-Regular";
   
    width: 500px;
}
.header__slider-button{
    margin-top: 20px;
}
.header__slider-button button{
    border: none;
    background: #ff9800;
    padding:10px 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 2px;
    transition: 0.4s;
    border-radius: 6px;
}
.header__slider-button button:hover{
    background-color: #eee;
}

.header__slider-thumbnail{
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
}

.header__slider-card{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.header__slider-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}
.header__slider-arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header__slider-arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff9800;
    border: none;
    color: #ccc;
    font-weight: bold;
    cursor: pointer;
    transition: 0.5s;
}
.header__slider-arrows button:hover{
    background: #FFF;
    color: #000;
}
.header__slider-item:nth-child(1){
    z-index: 1;
}

.header__slider-item:nth-child(1) .header__slider-title,
.header__slider-item:nth-child(1) .header__slider-type,
.header__slider-item:nth-child(1) .header__slider-desc,
.header__slider-item:nth-child(1) .header__slider-button{
    
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
    to{
        transform: translateY(0px);
        filter: blur(00px);
        opacity: 1;
    }
}
.header__slider-item:nth-child(1) .header__slider-title{
    animation-delay: 0.4s;
}
.header__slider-item:nth-child(1) .header__slider-type{
    animation-delay: 0.6s;
}
.header__slider-item:nth-child(1) .header__slider-desc{
    animation-delay: 0.8s;
}
.header__slider-item:nth-child(1) .header__slider-button{
    animation-delay: 1s;
}


.header__slider.next .header__slider-item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
.header__slider-card:nth-last-child(1){
    overflow: hidden;
    animation:  showThumbnail 0.5s linear 1 forwards;
}
.header__slider.prev .header__slider-item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.header__slider.next .header__slider-thumbnail{
    animation: effectNext .5s linear 1 forwards;
}
@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

.header__slider.prev .header__slider-item:nth-child(2){
    z-index: 2;
}
.header__slider.prev .header__slider-item:nth-child(2) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outFrame 0.5s linear 1 forwards;
}
@keyframes outFrame {
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.header__slider.prev .header__slider-card:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.header__slider.prev .header__slider-item:nth-child(1) .header__slider-title,
.header__slider.prev .header__slider-item:nth-child(1) .header__slider-type,
.header__slider.prev .header__slider-item:nth-child(1) .header__slider-desc,
.header__slider.prev .header__slider-item:nth-child(1) .header__slider-button{
    animation: contentOut 0.5s 1s linear 1 forwards;
}
@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}




.new {
    padding:15px;
    
}

.new__title {
    font-size: 30px;
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}
.btn__see{
    font-size: 16px;
    padding-left: 10px;
    padding-top: 2px;
    color: #ff9800;
    font-family: "Poppins-Bold";
}

.new__card {
    display: block;
    display: flex;
    
}

.new__card-img {
    width: 150px;
    height: 200px;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.new__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: .3s;
}

.new__card:hover img {
    filter: brightness(30%);
}

.new__card-info {
    color: white;
    padding: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.5);
    border-radius: 10px;
    text-align: center;
}

.new__top {
    
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.swiper {
	height: 240px !important;
}

.swiper-wrapper {
	height: 100% !important;
}

.swiper-slide {
	height: 100% !important;
}
.swiper-buttons {
    position: absolute;
    right: 10px;
    top: 40px;

    display: flex;
    gap: 10px;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;  
}

.swiper-buttons button {
    position: static;
    width: 35px;
    height: 35px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.swiper-buttons button:hover {
    background: #dcdcdc;
}

 .footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
  }
  
  .footer .container {
    width: 90%;
    margin: auto;
  }
  
  .footer__title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer__column {
    list-style: none;
  }
  
  .footer__column h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffcb39;
  }
  
  .footer__column li {
    margin-bottom: 8px;
  }
  
  .footer__column a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer__column a:hover {
    color: #ff9800;
  }
  
  .footer__bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
  }
  .pagination{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.page-btn{
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.page-btn:hover:not(:disabled){
  background: #444;
}

.page-btn.active{
  background: #ff4757;
}

.page-btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transition: opacity 0.3s ease;
}

.btn-active {
    opacity: 1;
    cursor: pointer;
}
.wrapper__login h2 {
    margin-bottom: 30px;
}
 .disabled {
  opacity: 0.5;
  cursor: not-allowed;
} 

.hidden {
  display: none;
}

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .footer__content {
      flex-direction: column;
      text-align: center;
    }
  }
  


@media screen and (max-width:678px){
    .header__slider-content{
        padding-right: 0;
    }
    .header__slider-title{
        font-size: 30px;
    }
    .header__slider-arrows{
        display: none;
    }
}
.wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(../img/solo__leveling.jpg) no-repeat center/cover;
}
.wrapper{
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition:transform .5s ease, height .2s ease;
    overflow: hidden;
    transform: scale(0);
}
.wrapper.active-popup{
    transform: scale(1);
}
.wrapper.active{
    height: 520px;
}
.wrapper__login{
    width: 100%;
    padding: 40px;
    transition: transform .18s ease;
    transform: translateX(0);
}
.wrapper.active .wrapper__login{
    transition: none;
    transform: translateX(-400px);
    transition: transform .18s ease;
}


.wrapper__register{
    position: absolute;
    transform: translateX(400px);
    transition: none;
    transition: transform .18s ease;
}
.wrapper.active .wrapper__register{
    transition: transform .18s ease;
    transform: translateX(0);
}
.wrapper__close{
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #162938;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}
.wrapper__login h2{
    font-size: 2em;
    color: #495c6b;
    text-align: center;
}
.wrapper__login-box{
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #162938;
    margin: 30px 0;
}
.wrapper__login-box label{
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: #495c6b;
    font-weight: 500;
    pointer-events: none;
    transition: .3s;
}

/* FOCUS yoki qiymat bo‘lsa */
.wrapper__login-box input:focus + label,
.wrapper__login-box input:not(:placeholder-shown) + label {
    top: -5px;
    font-size: 0.8em;
    color: #ff9800;
}

/* 🔥 GOOGLE AUTOFILL FIX */
.wrapper__login-box input:-webkit-autofill + label {
    top: -5px;
    font-size: 0.8em;
    color: #ff9800;
}

.wrapper__login-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #495c6b;
    font-weight: 600;
    padding: 0 35px 0 5px;
}
.wrapper__login-icon{
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #162938;
    line-height: 57px;
}
.wrapper__login-forgot{
    font-size: .9em;
    color: #495c6b;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}
.wrapper__login-forgot label input{
    accent-color: #495c6b;
    margin-right: 3px;
}
.wrapper__login-forgot a{
    color: #ff9800;
    text-decoration: none;

}
.wrapper__login-forgot a:hover{
    text-decoration: underline;
}
.btn{
    width: 100%;
    height: 45px;
    background: #162938;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
}
.wrapper__login-register{
    font-size: .9em;
    color: #162938;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}
.wrapper__login-link{
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
    padding-left: 5px;
}
.wrapper__register-link{
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
    padding-left: 5px;
}
.wrapper__login-link:hover{
    text-decoration: underline;
}
/* ===== SUCCESS OVERLAY ===== */
#successOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.successBox {
    background: #fff;
    padding: 35px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    animation: scaleIn 0.3s ease;
}

.successBox h2 {
    color: #28a745;
    margin-bottom: 10px;
}

.successBox p {
    font-size: 16px;
    margin-bottom: 8px;
}

.successBox span {
    font-size: 13px;
    color: #777;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}



/* ===== EMPTY WATCHED CARD ===== */

.disabled-card {
    pointer-events: none;
}

.disabled {
    background: #1b1f27;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
    border-radius: 10px;
}

.empty-watched {
    text-align: center;
    color: #aaa;
    padding: 10px;
}

.empty-watched i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #ff9800;
}

.empty-watched p {
    font-size: 14px;
}
/* ===== CUSTOM CHAPTER DROPDOWN ===== */

.chapter-dropdown {
    position: relative;
}

.chapter-dropdown-btn {
    background: #ff9800;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* LIST */
.chapter-dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 136px;
    max-height: 260px;
    overflow-y: auto;
    background: #1b1f27;
    border-radius: 8px;
    display: none;
    z-index: 1000;
}

/* ITEM */
.chapter-dropdown-item {
    padding: 10px;
    color: #ff9800;
    cursor: pointer;
    border-bottom: 1px solid #2a2f3a;
    
}

.chapter-dropdown-item:hover {
    background: #ff9800;
    color: #000;
}

/* ACTIVE */
.chapter-dropdown.show .chapter-dropdown-list {
    display: block;
}

/* 📱 MOBILE */
@media (max-width: 480px) {
    .chapter-dropdown-btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .chapter-dropdown-list {
        width: 110px;
    }

    .chapter-dropdown-item {
        font-size: 13px;
        padding: 8px;
    }
}

.wrapper__agree {
    width: 250px;
    margin: 15px 0;
    font-size: 14px;
    color: black;
}

.wrapper__agree label {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.wrapper__agree b {
    color: #ff5c5c;
}





















@media(max-width:1100px){
    .nav{
        backdrop-filter: blur(10px);
        height: 60px;
    }
    

 
    .nav__content-items{
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        left: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        background-color: rgba(0,0,0,0.9);
    }

    .nav__content-items.active{
        display: flex;
        
    }
 
   
  
    .nav__content-toggle{
        display: block;
        z-index: 999;
        padding-top: 15px;
        
    }
    .nav__content-toggle.active .bar:nth-child(2){
        opacity: 0;
    }
    .nav__content-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .nav__content-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header__slider-title{
        font-size: 50px;
    }
    .new__title {
        font-size: 26px;
        padding: 10px 0;
    }

    .new__card-img {
        width: 120px;
        height: 160px;
    }

    .swiper-buttons {
        top: 35px;
        gap: 8px;
    }

    .swiper-buttons button {
        width: 28px;
        height: 28px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 12px;
    }
    .swiper-buttons{
        opacity: 0;
    }
    

}

@media (max-width:480px){
    .nav__content{
        padding: 0 1rem;
    }
    .nav__content-logo{
        font-size: 1.7rem;
    }
    .nav__content-item{
        font-size: 1.2rem;
        padding: 3px 15px;
    }
   

    .header__slider-title{
        font-size: 20px;
    }
    .header__slider-type{
        font-size: 15px;
    }
    .header__slider-desc{
        font-size: 10px;
    }
    .new__title {
        font-size: 16px;
        padding: 8px 0;
    }
 
    .btn__see{
        font-size: 12px;
        padding-top: 3px;
    }
    .new__card-img {
        width: 100px;
        height: 130px;
    }

    .swiper-buttons {
        top: 30px;
        gap: 6px;
    }

    .swiper-buttons button {
        width: 25px;
        height: 25px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 10px;
    }
  
    .footer__content-item{
       font-size: 8px;
        
    }
    .footer__content-call{
       
        padding-top: 32.5px;
       
    }
} 



.new__content{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.new__card {
    display: block;
    padding-top: 10px;
}

.new__card-img {
    width: 165px;
    height: 220px;
    position: relative;
    user-select: none;
    overflow: hidden;
}



.new__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: .3s;
}

.new__card:hover img {
    filter: brightness(30%);
}

.new__card-info {
    color: white;
    padding: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,.5);
    
    text-align: center;
}
.pagination{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.page-btn{
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.page-btn:hover:not(:disabled){
  background: #444;
}

.page-btn.active{
  background: #ff4757;
}

.page-btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}
@media (max-width: 600px) {

 .new__card{
    width: auto;
 }
}


.read__content{
    display: flex;
    margin-top: 100px;
    column-gap: 20px;
}
.read__content-left{
    border-radius: 6px;
}

.read__content-img {
    width: 400px;
    height: 450px;
    background: #000; 
    border-radius: 10px 10px 0 0;
}

.read__content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px 10px 0 0;
}
.read__content-button{
    width: 100%;
    padding: 10px;
    font-size: 25px;
    border-radius:0 0 10px 10px;
    transition: 0.5s;
    background: #ccc;
    border: none;
}
.read__content-button:hover{
    background: #ff9800;
}
.read__content-title{
    color: #ccc;
    font-size: 45px;
    
}
.read__content-right{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.read__content-right strong{
    color: #ff9800;
    font-size: 20px;
    padding-right: 5px;
    

}
.read__content-right p{
    color: #ccc;
    font-size: 15px;
    
}
.read__content-section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 50px;
    
}
#chapter-select{
    padding: 5px 10px;
    font-size: 20px;
    background: #ff9800;
    border-radius: 6px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}
.read__content-title{
    font-size: 20px;
    color: #ccc;
    
}
#ascBtn{
    padding:7px 10px;
    background: #ff9800;
    border-radius: 6px;
    font-size: 15px;
    border: none;
    cursor: pointer;
}
#descBtn{
    padding:7px 10px;
    background: #ff9800;
    border-radius: 6px;
    font-size: 15px;
    border: none;
    cursor: pointer;
}
.read__content-block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.read__content-first{
    display: flex;
    column-gap: 15px;
}
.read__content-read{
    color: green;
}
.read__content-notread{
    color: gray;
}
.read__content-lock{
    color: #ff9800;
}
.read__content-second{
    color: black;
    border: 1px solid;
    padding: 2px 5px;
    border-radius: 6px;
    background: #ccc;
}
.read__content-links{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: gray;
    position: relative;
    padding: 5px 0;
}
.read__content-links::before{
    content: "";
    height: 1px;
    background: #ccc;
    position: absolute;
    width: 100%;
    bottom: 0;
}

.comments {
    margin-top: 60px;
    background: #1b1f27;
    padding: 20px;
    border-radius: 10px;
}

.comments__title {
    color: #ff9800;
    font-size: 24px;
    margin-bottom: 15px;
}

.comments__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments__form textarea {
    resize: none;
    height: 100px;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: #141a20;
    color: #fff;
}

.comments__form button {
    align-self: flex-end;
    padding: 8px 20px;
    background: #ff9800;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.comments__form button:hover {
    opacity: 0.9;
}

.comments__list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    background: #141a20;
    padding: 12px;
    border-radius: 6px;
}

.comment__name {
    color: #ff9800;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment__text {
    color: #ccc;
    font-size: 13px;
}
.comment__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment__time {
    font-size: 11px;
    color: #888;
}
.comment__actions {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.comment__actions button {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.comment__actions button:hover {
    color: #ff9800;
}

.comment__actions i {
    font-size: 16px;
}

@media(max-width:800px){
    
    .read__content-img {
        width:300px;
        height: 350px;
    }
    .read__content-right strong{
        font-size: 15px;
    }
    .read__content-title{
        font-size: 15px;
    }
    .read__content-right p{
        font-size: 10px;
    }
    .read__content-button{
        font-size: 15px;
    }
    #chapter-select{
        font-size: 15px;
    }
    #ascBtn{
        font-size: 10px;
    }
    #descBtn{
        font-size: 10px;
    }
}
@media(max-width:560px){
    .read__content-img{
        width:200px;
        height: 250px;
    }
    .read__content-title{
        font-size: 13px;
    }
    .read__content-right strong{
        font-size: 10px;
    }
    .read__content-right p{
        font-size: 8px;
    }
    .read__content-first{
        font-size: 10px;
    }
    .read__content-second{
        font-size: 12px;
    }
    .read__content-links{
        font-size: 10px;
    }
}
@media(max-width:440px){
    .read__content-img{
        width:150px;
        height: 200px;
    }
    .read__content-button{
        font-size: 10px;
    }
    .read__content-title{
        font-size: 9px;
    }
    .read__content-right strong{
        font-size: 8px;
    }
    .read__content-right p{
        font-size: 6px;
    }
    .read__content-first{
        font-size: 8px;
    }
    .read__content-second{
        font-size: 10px;
    }
    .read__content-links{
        font-size: 8px;
    }
    #chapter-select{
        font-size: 10px;
    }
}
.btn__top{
    margin-top: 70px;
    
}
.readedChapter,
.readedChapter * {
    color: green !important;
}
.lockedLink {
    
    border-radius: 6px;
    border: 1px solid #333;
    padding: 5px 18px 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    color: #ff9800 !important;
}

.lockedLink:hover {
    background: #262626;
    transform: scale(1.01);
}

.lockedLink .read__content-lcenter {
    font-weight: bold;
}

.lockedLink .fa-lock {
    color: #ff9800;
    font-size: 16px;
}
.admin-add-chapter {
    margin: 15px 0;
    text-align: right;
}

.admin-add-chapter .btn-add {
    background: #ff9800;
    padding: 8px 16px;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}
/* ===== ADMIN CHAPTER ACTIONS ===== */

.admin-chapter-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

/* UMUMIY BUTTON */
.admin-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    color: #000;
}

/* ADD */
.admin-btn.add {
    background: #22c55e;
}

/* EDIT */
.admin-btn.edit {
    background: #3b82f6;
    color: #fff;
}

/* DELETE */
.admin-btn.delete {
    background: #ef4444;
    color: #fff;
}

/* HOVER */
.admin-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.admin-chapter-row {
    display: flex;
    gap: 8px;
}

.admin-chapter-row .admin-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
}

.admin-btn.edit {
    background: #3b82f6;
    color: #fff;
}

.admin-btn.delete {
    background: #ef4444;
    color: #fff;
}
/* ================= LOGIN / REGISTER MOBILE FIX ================= */
@media (max-width: 480px) {

    .wrap {
        padding: 20px;
        min-height: 100vh;
        align-items: center;
    }

    .wrapper {
        width: 100% !important;
        max-width: 360px;
        height: auto;
        transform: none !important;
    }

    .wrapper.active-popup {
        transform: none !important;
    }

    .wrapper__login,
    .wrapper__register {
        padding: 25px;
        transform: none !important;
    }

    .wrapper__login h2 {
        font-size: 1.6em;
    }

    .wrapper__login-box {
        margin: 20px 0;
    }

    .btn {
        height: 44px;
        font-size: 15px;
    }

    .wrapper__agree {
        width: 100%;
        font-size: 13px;
    }
}

/* ===== LOGIN / REGISTER MOBILE FIX ===== */
@media (max-width: 480px) {
    .wrapper {
        width: 90%;
        max-width: 360px;
        height: auto;
        transform: scale(1); /* ❗ zoomni o‘chiradi */
    }

    .wrapper__login,
    .wrapper__register {
        padding: 25px;
    }

    .wrapper__login h2,
    .wrapper__register h2 {
        font-size: 1.5em;
    }

    .wrapper__login-box {
        margin: 20px 0;
    }

    .btn {
        height: 42px;
        font-size: 0.95em;
    }
}
