/* ===== GLOBAL ===== */
*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  max-width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  font-family:Inter,Arial,sans-serif;
  background:#0b0b0b; 
 /* background: linear-gradient(135deg, #111, #1f1f1f);*/
  color:#fff;
}

body, input, select, textarea {
    font-size: 16px;
}

html {
  touch-action: manipulation;
}


/* ===== HEADER ===== */
.site-header{
  background:#fff;
  border-bottom:1px solid #ddd;
  position:sticky;
  top:0;
  z-index:1000;
  overflow:visible;
}

.header-inner{
  max-width:1200px;
  margin:auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LEFT */
.left{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo a{
  font-size:20px;
  font-weight:700;
  text-decoration:none;
  color:#111;
}

/* HAMBURGER – ALWAYS VISIBLE*/
.hamburger{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
  color:#111;
  margin-right:10px;
}


/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: -250px;
  top: 0;
  width: 250px;
  height: 100%;
  background: #1a1a1a;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 2000;   /* 🔥 change this */
  padding-top: 17px;
}


.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.close-btn {
  color: #eee;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-menu {
  margin: 0;
  list-style: none;
  padding: 10px 0;
}

.sidebar-menu li {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar-menu li:hover {
  background: #2a2a2a;
  /*background: #ff4b2b; */
  color: #fff;
}

.sidebar-menu li i {
  width: 20px;
  text-align: center;
}

/* SHOW SIDEBAR */
.sidebar.show {
  left: 0;
}

.sidebar-menu li a{
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ===== SIDEBAR ===== */

.sidebar{
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background: #111;
  color: #fff;
  transition: 0.3s ease;
  z-index: 1001;
}

.sidebar.active{
  border-top-right-radius: .8rem;
  background: linear-gradient(270deg, #272727, #000);
  left: 0;
}

/* ===== OVERLAY ===== */

.overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}

.overlay.active{
  display: block;
}

/* Sidebar open ho to body scroll band */
body.no-scroll{
  overflow: hidden;
}






/* ===== HEADER LAYOUT ===== */

.site-header{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.left{
  display: flex;
  align-items: center;
}

.main-nav{
  display: flex;
  gap: 20px;
}

.main-nav a,
.main-nav span{
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-nav a:hover{
  color: #ff4b2b;
}

/* Mobile me hide karo */
@media(max-width: 768px){
  .main-nav{
    display: none;
  }
}



/* ===== RIGHT ICONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  transition: 0.3s;
}

.icon-btn:hover {
  color: #ff4b2b;
}

/* ===== SEARCH BOX ===== */

/* HEADER ko reference bana do */
.site-header{
    position: relative;
}

/* SEARCH PANEL */
.header-search{
    position: absolute;
    top: 100%;              /* header ke bilkul niche */
    left: 0;
    width: 100%;            /* header jitni width */
    background: #111;       /* apna color rakh sakte ho */
    padding: 12px 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
}

/* ACTIVE STATE */
.header-search.active{
    display: block;   /* agar flex chahiye to flex kar sakte ho */
}

/* INPUT FULL WIDTH */
.header-search input{
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    outline: none;
}


/*
.header-search {
  position: absolute;
  top: 100%;
  right: 20px;
  width: 250px;
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}*/

/*
.header-search input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  border-radius: 6px;
}
*/

/* ===== USER PANEL ===== */
.user-panel {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.user-panel a {
  padding: 10px 15px;
  transition: 0.3s;
}

.user-panel a:hover {
  background: #ff4b2b;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #ddd;
    display: none;
  }

  .main-nav.show {
    display: flex;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }
}


/* SEARCH */
/*
.header-search{
  display:none;
  background:#fff;
  border-top:1px solid #ddd;
}

.header-search input{
  width:100%;
  padding:12px 16px;
  border:none;
  outline:none;
  font-size:15px;
}*/

/* USER PANEL */
.user-panel{
  border-radius: .5rem;
  display:none;
  position:absolute;
  right:16px;
  top:60px;
  background:#fff;
  border:1px solid #ddd;
  width:170px;
  z-index:2000;
}

.user-panel a{
  display:block;
  padding:10px 14px;
  text-decoration:none;
  color:#333;
}

.user-panel a:hover{
  background:#f2f2f2;
}

/* ===== PAGE ===== */
.page-content{
  padding:16px;
  min-height:100vh;
}
@media (min-width: 992px){
  .page-content{
    max-width: 1100px;
    margin: auto;
  }
}



/* ===== HERO ===== */
.hero{
  display:flex;
  align-items:center;
  background:radial-gradient(circle at top,#1a1a1a,#000);
  padding:60px 40px;
}

.hero-inner{
  max-width:720px;
}

.hero h1{
  font-size:56px;
  margin:0 0 18px;
  line-height:1.1;
}

.hero p{
  font-size:18px;
  color:#bbb;
}

/* ===== SECTIONS ===== */

.block{
  padding:10px 0px;
} 

.block.alt{
  border-radius: .8rem;
  background:#111;
}

.block-title{
  margin:0 0 10px;
  font-size:26px;
}

/* ===== HORIZONTAL SCROLL ===== */
.h-scroll{
  width:100%;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:180px;
  gap:20px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
  scroll-behavior:smooth;
}

.h-scroll::-webkit-scrollbar{
  display:none;
}

.block-head{
  border-bottom: 1px solid #636467;
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

.nav-btns{
  display:flex;
  gap:8px;
}

.nav-btns button{
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:#222;
  color:#fff;
  cursor:pointer;
}

.nav-btns button:hover{
  background:#5fe3b3;
  color:#000;
}



/* CARD */
.card{
  width:180px;
  text-decoration:none;
  color:#fff;
  scroll-snap-align:start;
}

.card img{
  width:100%;
  height:260px;
  object-fit:fill;
  border-radius:14px;
  transition:transform .35s ease;
}

.card span{
  display:block;
  margin-top:8px;
  font-size:14px;
}

.card:hover img{
  transform:scale(1.06);
}

.card .title{
  font-weight:600;
  display:-webkit-box;
  -webkit-line-clamp:2;   /* max 2 lines */
  -webkit-box-orient:vertical;
  overflow:hidden;
}


/*
.card .title{
  font-weight:600;
  display:block;
} */

.card .time{
  font-size:12px;
  color:#999;
}

/* ===== RANKING ===== */
.ranking-title{
  text-align: center;
}

.ranking-wrap{
  margin:30px auto;
  padding:10px;
}

.ranking-gird{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

@media(max-width:600px){
  .ranking-gird{
    grid-template-columns: 1fr;
  }
}

.ranking-tabs{
  border-bottom: 1px solid #373738;
  display:flex;
  gap:10px;
  margin-bottom:15px;
  justify-content: center;
}

.ranking-tabs a{
  margin-bottom: 1rem;
  padding:6px 20px;
  border-radius:20px;
  background:#222;
  color:#aaa;
  text-decoration:none;
  font-size:14px;
}

.ranking-tabs a.active{
  background:#3b6cff;
  color:#fff;
}

/* Each item wrapper */
.rank-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:#111;
  transition:0.2s;
}

/* Make the link cover the whole content */
.rank-item a.rank-link{
  display:flex;
 /* align-items:center; */
  gap:12px;
  text-decoration:none;
  color:inherit;
  flex:1;
}

/* Hover effect for link */
.rank-item a.rank-link:hover{
  background:#272727;
}

/* Rank number */
.rank-num{
  width:28px;
  font-weight:bold;
  color:#00ffd2;
  text-align:right;
  flex-shrink:0;
}

/* Cover image */
.rank-cover{
  width:80px;   /* thoda chhota rakha */
  height:110px;
  object-fit:cover;
  border-radius:4px;
  flex-shrink:0;
}

/* Info wrapper */
.rank-info{
  flex:1;
  overflow:hidden;
}

/* Title */
.rank-info h4{
  margin:0;
  font-size:14px;
  white-space:normal;       /* allow wrapping */
  overflow-wrap: break-word; /* break long words if needed */
  word-break: break-word;    /* ensures very long words wrap */
  line-height:1.2em;         /* thoda spacing for readability */
}


/* Meta info */
.rank-meta{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  margin-top:4px;
}

.rank-meta svg{
  fill: currentColor;
}

.rank-meta .views{
  display:flex;
  align-items:center;
  gap:5px;
  color:#777;
}

.rank-meta .rating{
  font-size:14px;
  display:flex;
  align-items:center;
  gap:4px;
  color: #00bbff; /* star yellow */
}


/* ===== FOOTER ===== */
.footer{
  text-align:center;
  padding:30px;
  font-size:14px;
  color:#777;
}

/* ===== FOOTER ===== */
.site-footer{
  background:#0e0e0e;
  border-top:1px solid #222;
  margin-top:40px;
}

.footer-inner{
  max-width:1200px;
  margin:auto;
  padding:10px 20px;
  display:flex;
  /*gap:30px;*/
  justify-content:space-between;
  flex-wrap:wrap;
}

.footer-left h3{
  margin:0 0 6px;
  font-size:18px;
  color:#fff;
}

.footer-left p{
  margin:0;
  font-size:14px;
  color:#aaa;
}

.footer-links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.footer-links a{
  text-decoration:none;
  font-size:14px;
  color:#bbb;
}

.footer-links a:hover{
  color:#fff;
}

.footer-right{
  font-size:13px;
  color:#777;
  text-align:right;
}

/* MOBILE */
@media(max-width:768px){
  .footer-inner{
    flex-direction:column;
    text-align:center;
  }

  .footer-links{
    justify-content:center;
  }

  .footer-right{
    text-align:center;
  }
}


.h-scroll{
  cursor:grab;
}

.h-scroll.dragging{
  cursor:grabbing;
}



/* ===== MOBILE TUNING ===== */
@media(max-width:768px){

  .hero{
    padding:36px 24px;
  }

  .hero h1{
    font-size:36px;
  }

  .hero p{
    font-size:16px;
  }

  .h-scroll{
    grid-auto-columns:140px;
  }

  .card{
    width:145px;
  }

  .card img{
    height:200px;
  }

  .ranking-wrap{
    padding:5px;
  }

  .rank-item{
    padding:8px 6px;
  }

  .rank-cover{
    width:100px;
    height:140px;
  }

  .rank-info h4{
    font-size:13px;
  }

  .novel-detail{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .novel-cover img{
    width:180px;
    height:260px;
  }

  .novel-actions{
    justify-content:center;
  }

}



/* ===== NOVEL DETAIL ===== */

.novel-detail{
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 1rem;
  border-radius: .5rem;
  background: #111;
  display:flex;
  gap:30px;
  margin-bottom:40px;
}

.novel-cover img{
  width:220px;
  height:320px;
  object-fit:fill;
  border-radius:16px;
}

.novel-meta h1{
  margin:0 0 12px;
  font-size:32px;
}

@media (min-width: 992px){
  .novel-detail{
    align-items:flex-start;
  }

  .novel-meta{
    max-width: 650px;
  }
}


.meta-row{
  padding: 10px;
 /* margin: 10px; */
  border-radius: .5rem;
  border: 1px solid #999;
  margin-bottom: 8px;
  color: #f2f2f2;
}

.meta-row span{
  color:#888;
  margin-right:6px;
}

.rating{
  font-size:16px;
  color:gold;
}
.meta-row.rating .rating-number{
  color: #eee;;
}

.meta-row.rating small{
  font-size: 11px;
  color: #999;
}



.novel-actions{
  margin-top:20px;
  display:flex;
  gap:12px;
}

.btn-primary{
  background:#00bbff;
  border:none;
  padding:10px 18px;
  border-radius:20px;
  color:#fff;
  cursor:pointer;
}

.btn-outline{
  background:transparent;
  border:1px solid #555;
  padding:10px 18px;
  border-radius:20px;
  color:#fff;
  cursor:pointer;
}

.btn-outline:hover{
  background:#222;
}

/* DESCRIPTION */
/*
.novel-desc{
  max-width:800px;
  margin-bottom:40px;
}

.novel-desc h2{
  margin-bottom:10px;
}*/

.novel-desc{
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom:40px;
}

/* CHAPTER LIST */
.chapter-list{
  padding: 1rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .08);
}

@media (min-width: 992px){
  .meta-row{
    display:inline-block;
    margin-right:10px;
  }
}


.chapter-list ul{
  list-style:none;
  padding:0;
}

.chapter-list li{
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .08);
}
/*
.chapter-list a{
  border-radius: .5rem;
  background: #111; 
  display:block;
  padding:12px 6px;
  text-decoration:none;
  color:#ddd;
}
*/
.chapter-list a:hover{
  background:#111;
}

/* ===== DESCRIPTION TOGGLE ===== */

.desc-box{
 /* background: #111;*/
  text-align: justify;
  border-radius: .5rem;
  border: .1rem solid rgba(255, 255, 255, .08);
  padding: .5rem;
  color: #ddd;
  max-height:90px;          /* preview height */
  overflow:hidden;
  position:relative;
  transition:max-height .4s ease;
}

.desc-box p {
  margin: 0;
}

.desc-box::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:40px;
  background:linear-gradient(to bottom, rgba(11,11,11,0), #0b0b0b);
}

.desc-box.open{
  max-height:2000px;
}

.desc-box.open::after{
  display:none;
}

.desc-toggle{
  background:none;
  border:none;
  color:#00ff99;
  font-size:14px;
  cursor:pointer;
  margin-top:8px;
  padding:0;
}

.desc-toggle:hover{
  text-decoration:none;
}
.desc-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.desc-toggle i{
  font-size:12px;
  transition:transform .3s ease;
}












/* ===== AUTH & PROFILE ===== */
.auth-container, .profile-box{
    max-width:420px;
    margin:40px auto;
    background:#fff;
    padding:28px;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.auth-container h2,
.profile-box h2{
    color: #1a1a1a;
    text-align:center;
    margin-bottom:22px;
}

.auth-container input{
    width:100%;
    padding:14px;
    margin-bottom:14px;
    border-radius:10px;
    border:1px solid #ddd;
    font-size:15px;
}

.auth-container button{
    width:100%;
    padding:14px;
    background:#3b6cff;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
}

.auth-error{
    background:#ffe6e6;
    color:#c00;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
    text-align:center;
}

.auth-success{
    background:#e6fff0;
    color:#006b2e;
    padding:10px;
    border-radius:8px;
    margin-bottom:15px;
    text-align:center;
}

.profile-info{
    background: #1a1a1a;
    padding:16px;
    border-radius:14px;
    margin-bottom:20px;
}

.profile-actions{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.profile-actions a{
    padding:14px;
    background:#3b6cff;
    color:#fff;
    text-decoration:none;
    text-align:center;
    border-radius:12px;
}

.simple-list{
    max-width:700px;
    margin:30px auto;
    list-style:none;
    padding:0;
}

.simple-list li{
    background:#fff;
    padding:15px;
    border-radius:14px;
    margin-bottom:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

@media(max-width:600px){
    .auth-container,.profile-box{
        margin:20px;
    }
    .profile-actions{
        grid-template-columns:1fr;
    }
}




/* ===== PROFILE HEADER ===== */
.profile-header{
    text-align:center;
    margin-bottom:25px;
}

.profile-avatar{
    width:90px;
    height:90px;
    margin:0 auto 12px;
    border-radius:50%;
    background:#3b6cff;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    font-weight:700;
    box-shadow:0 10px 30px rgba(59,108,255,.45);
}

.profile-title{
    font-size:20px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#1a1a1a;
}

.profile-title i{
    color:#3b6cff;
}




/* ===== READING HISTORY ===== */
.history-list{
    max-width:800px;
    margin:30px auto;
    padding:0;
    list-style:none;
}

.history-item{
    color: #1a1a1a;
    display:flex;
    gap:14px;
    background:#fff;
    padding:14px;
    border-radius:16px;
    margin-bottom:14px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    align-items:center;
}

.history-cover{
    width:70px;
    height:95px;
    border-radius:10px;
    overflow:hidden;
    flex-shrink:0;
}

.history-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.history-info{
    flex:1;
}

.history-info h3{
    margin:0;
    font-size:16px;
    color:#1a1a1a;
}

.history-info .meta{
    font-size:13px;
    color:#666;
    margin-top:4px;
}

.history-info .continue{
    text-decoration: none;
    margin-top:8px;
    display:inline-block;
    font-size:13px;
    color:#3b6cff;
    font-weight:600;
}

.history-item:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(0,0,0,.12);
    transition:.25s;
}

.history-item a{
    text-decoration: none;
    cursor:pointer;
}



@media(max-width:600px){
    .history-cover{
        width:60px;
        height:85px;
    }
}


.novel-actions a{
    text-decoration:none;
}



.genre-link{
  background:#222;
  color:#fff;
  padding:4px 10px;
  border-radius:20px;
  font-size:13px;
  text-decoration:none;
}
.genre-link:hover{
  background:#444;
}

.genre-menu{
  display:flex;
  gap:10px;
  overflow-x:auto;
}
.genre-menu a{
  padding:6px 14px;
  background:#1e1e1e;
  color:#fff;
  border-radius:20px;
  text-decoration:none;
  font-size:14px;
}
.genre-menu a:hover{
  background:#333;
}






.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    color: #fff;
    gap: 10px;
}

.suggestion-item img.sug-img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggestion-item:hover, .suggestion-item.active {
    background: #272727;
}

.suggestion-item.see-more {
    justify-content: center;
    font-weight: bold;
}




/* Popular slider */
.popular-card{
  width: 100%;
  display: flex;
  gap: 12px;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  flex-wrap: wrap;
}

@media(max-width:600px){
  .popular-card{
      height: 540px;
      flex-direction: column;
      align-items: center;
      padding: 10px;
  }
}

.popular-cover{
  width:200px;
  height:280px;
  object-fit:cover;
  border-radius:6px;
  flex-shrink:0;
}

.popular-info{
  flex: 1;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start; 
}

@media(max-width:600px){

  .popular-info{
    align-items: center;
  }

}

.popular-info h3{
  text-align:center;
  margin:0;
  font-size:16px;
  line-height:1.2em;
}


.popular-desc{
  text-align: justify;
  font-size:16px;
  color:#ccc;
  margin:5px 10px;
  overflow:hidden;
  /*width: 800px;*/
}

@media(max-width:600px){

  .popular-desc{
    font-size:12px;
    width:auto;
  }

}

.popular-meta{
  margin: 5px;
  display:flex;
  gap:14px;
  font-size:14px;
  color:#eee;
}

.popular-meta svg{
  fill: currentColor;
}
 
.popular-meta strong{
  color: gold;
}
.popular-meta strong>span{
  color: white;
}

.meta-item{
  display:flex;
  align-items:center;
  gap:4px;
}

/* exact feel */
.meta-item.rating{ 
  font-size:14px;
}    

.meta-item.bookmark{ 
  color:#eee;
}   /* cute red */
.meta-item.chapter{ 
  color:#eee; 
}    /* soft blue */
.meta-item.view{
  color:#eee;
}          /* neutral */





.ranking-page{
  max-width:1100px;
  margin:auto;
 /*padding:20px;*/
} 

/* TABS */
.ranking-tabs{
  gap:0;
  display:flex;
  column-gap: 10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.ranking-tabs button{
  margin-bottom: .5rem;
  padding:10px 18px;
  border-radius:30px;
  border:none;
  background:#222;
  color:#bbb;
  cursor:pointer;
  font-weight:600;
}
.ranking-tabs .active{
  background:#5fe3b3;
  color:#000;
}

/* GRID */
.rank-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:18px;
}

/* CARD */
.rank-card{
  position:relative;
  background:#141414;
  border-radius:16px;
  overflow:hidden;
  transition:.25s;
}
.rank-card:hover{
  transform:translateY(-4px);
}

/* BADGE */
.rank-badge{
  position:absolute;
  top:10px;
  left:10px;
  background:#5fe3b3;
  color:#000;
  font-weight:bold;
  padding:4px 10px;
  border-radius:20px;
  font-size:13px;
  z-index:2;
}

/* LINK */
.rank-card-link{
  display:flex;
  gap:14px;
  padding:14px;
  color:#fff;
  text-decoration:none;
}

/* IMAGE */
.rank-cover{
  width:90px;
  height:125px;
  object-fit:cover;
  border-radius:10px;
}

/* INFO */
.rank-info h3{
  margin:0 0 6px;
  font-size:17px;
}
.rank-desc{
  font-size:13px;
  opacity:.75;
  margin-bottom:10px;
}

/* META */
.rank-meta{
  display:flex;
  gap:12px;
  font-size:13px;
  flex-wrap:wrap;
  opacity:.9;
}

/* PAGINATION */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:30px 0;
}
.pagination button{
  padding:8px 16px;
  border-radius:20px;
  border:none;
  background:#5fe3b3;
  color:#000;
  font-weight:bold;
  cursor:pointer;
}






.view-more-card{
  display:flex;
  align-items:center;
  justify-content:center;
 /* background:#111;
  min-width:160px; */
}

.view-more-inner{
  text-align:center;
  color:#fff;
}

.view-more-inner i{
  font-size:28px;
  margin-bottom:8px;
  display:block;
}

.view-more-inner span{
  font-size:14px;
  font-weight:600;
}





.ranking-more{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  margin-top:12px;
  border-radius:14px;
  background:linear-gradient(135deg,#111,#1f1f1f);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.ranking-more i{
  opacity:0.7;
}

.ranking-more:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg,#ff4d4d,#ff1f1f);
}



.library-page {
  background: linear-gradient(135deg, #111, #1f1f1f);
  padding: 20px;
}

.page-title {
  margin-bottom: 20px;
}

.library-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header a {
  font-size: 14px;
  color: #ff6a00;
  text-decoration: none;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.library-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 10px;
  padding: 10px;
  transition: 0.3s;
}

.library-card img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.card-info h4 {
  margin-top: 0;
  font-size: 15px;
  margin-bottom: 5px;
}

.card-info p {
  font-size: 13px;
  color: #aaa;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
}


