*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', sans-serif;
}
html, body{
  overflow-x:hidden;
}

body{
  background:#0e0e0e;
  color:white;
}

/* ================= HERO ================= */

.hero{
  height:100vh;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
}

.hero h1{
  font-size:3.5rem;
  margin-bottom:15px;
}

.hero p{
  opacity:.8;
  margin-bottom:25px;
  font-size:18px;
}

.hero input{
  padding:14px;
  border-radius:10px;
  border:none;
  width:280px;
  margin-bottom:20px;
}

.read-btn{
  display:inline-block;
  background:linear-gradient(45deg,crimson,orangered);
  padding:12px 28px;
  color:white;
  border-radius:30px;
  text-decoration:none;
  font-weight:bold;
  transition:.3s;
}

.read-btn:hover{
  transform:scale(1.05);
}

/* ================= LIBRARY ================= */

.library{
  padding:80px 40px;
  display:grid;
  grid-template-columns:repeat(auto-fill,180px);
  gap:40px;
  justify-content:center;
}

.card{
  background:#1c1c1c;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:white;
  transition:.3s;
  box-shadow:0 10px 25px rgba(0,0,0,.4);
}

.card img{
  width:100%;
  height:260px;
  object-fit:cover;
}

.card h3{
  font-size:15px;
  padding:14px;
  text-align:center;
}

.card:hover{
  transform:translateY(-10px);
}

/* ================= STORY PAGE ================= */

.story-hero{
  height:80vh;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  align-items:flex-end;
}

.story-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,#000,transparent);
}

.story-box{
  display:flex;
  gap:50px;
  padding:60px;
  position:relative;
  z-index:2;
}

.story-cover{
  width:240px;
  border-radius:16px;
}

.story-meta h1{
  font-size:42px;
}

.tags{
  margin:15px 0 25px;
}

.tags span{
  display:inline-block;
  background:#222;
  padding:6px 14px;
  margin-right:8px;
  border-radius:20px;
  font-size:14px;
}

.story-stats{
  margin-top:15px;
  opacity:.9;
  font-size:14px;
}

.secondary-btn{
  display:inline-block;
  margin-left:15px;
  padding:12px 24px;
  border:1px solid #444;
  border-radius:30px;
  text-decoration:none;
  color:white;
  transition:.3s;
}

.secondary-btn:hover{
  background:#222;
}

.story-desc{
  max-width:900px;
  margin:60px auto;
  line-height:1.9;
  padding:20px;
}

blockquote{
  border-left:4px solid crimson;
  padding-left:15px;
  opacity:.85;
}

/* ================= CHAPTER LIST (CLEAN COMPACT) ================= */

.chapter-list{
  max-width:850px;
  margin:60px auto;
}

.chapter-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.chapter-card{
  background:#151515;
  padding:12px 18px;
  margin-bottom:10px;
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  transition:.2s;
  border:1px solid #222;
}

.chapter-card:hover{
  background:#1c1c1c;
  transform:translateX(4px);
}

.chapter-info{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.chapter-main{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  font-size:14px;
}

.chapter-sub{
  font-size:12px;
  opacity:.5;
}

.chapter-arrow{
  font-size:14px;
  opacity:.5;
}

.badge-new{
  background:crimson;
  font-size:10px;
  padding:3px 8px;
  border-radius:20px;
}

/* ================= READER ================= */

/* ===== READER LAYOUT UPGRADE ===== */



/* Tạo chiều sâu hai bên */
.reader-wrapper{
  position:relative;
}

/* Glow nhẹ phía sau nội dung */
.reader{
  max-width:820px;
  margin:80px auto;
  padding:50px 60px;
  background:linear-gradient(145deg,#1a1a1a,#151515);
  border-radius:20px;
  box-shadow:
    0 0 80px rgba(0,0,0,.8),
    0 0 30px rgba(255,255,255,.03);
  position:relative;
}

/* Viền ánh sáng nhẹ */
.reader::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:20px;
  background:linear-gradient(45deg,transparent,rgba(255,255,255,.05),transparent);
  pointer-events:none;
}

/* Nội dung chữ đẹp hơn */
.reader-content{
  font-size:19px;
  line-height:2.1;
  letter-spacing:.2px;
  color:#f1f1f1;
}


.reader-content{
  font-size:19px;
  line-height:2;
  white-space:pre-wrap;
}

/* ================= READER TOOLBAR UPGRADE ================= */

.reader-top{
  position:sticky;
  top:0;
  background:rgba(15,15,15,.9);
  backdrop-filter:blur(12px);
  padding:14px 25px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #1f1f1f;
  z-index:30;
}

/* Nút & select chung */
.reader-top button,
.reader-top select,
.back-btn{
  background:linear-gradient(145deg,#1a1a1a,#141414);
  border:1px solid #262626;
  color:#e5e5e5;
  padding:8px 14px;
  border-radius:14px;
  font-size:13px;
  cursor:pointer;
  transition:all .25s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:36px;
  text-decoration: none;
}

/* Hover */
.reader-top button:hover,
.reader-top select:hover,
.back-btn:hover{
  background:#222;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,.6);
}

/* Active */
.reader-top button.active{
  background:crimson;
  border-color:crimson;
  color:white;
  box-shadow:0 4px 18px rgba(220,20,60,.5);
}

/* Select đẹp hơn */
.reader-top select{
  appearance:none;
  padding:8px 28px 8px 14px;
}

/* Nút prev & next */
#prevBtn,
#nextBtn{
  width:36px;
  font-weight:bold;
  font-size:14px;
}

/* Nút font */
#fontMinus,
#fontPlus{
  font-weight:600;
}

/* Nút đổi font */
#fontFamilyBtn{
  font-weight:bold;
  font-size:14px;
}

/* Nút pin */
#toggleNotes{
  color:crimson;
}

/* Trang truyện */
.back-btn{
  font-weight:500;
}


/* Nút điều hướng */
#prevBtn,
#nextBtn{
  width:36px;
  justify-content:center;
  font-weight:bold;
}

/* Nút font */
#fontMinus,
#fontPlus{
  font-weight:600;
}

/* Nút pin */
#toggleNotes{
  color:crimson;
}


.progress-bar{
  height:4px;
  background:#222;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:20;
}

#progress{
  height:100%;
  width:0%;
  background:crimson;
}

.scroll-top{
  position:fixed;
  bottom:30px;
  right:30px;
  padding:12px 16px;
  border:none;
  background:crimson;
  color:white;
  border-radius:50%;
  cursor:pointer;
  display:none;
}
/* NOTE BUTTON */

.note-btn{
  position:fixed;
  bottom:90px;
  right:30px;
  background:#222;
  color:white;
  padding:10px 16px;
  border:none;
  border-radius:20px;
  cursor:pointer;
}

/* NOTE PANEL */

.note-panel{
  position:fixed;
  top:0;
  right:0;
  width:300px;
  height:100%;
  background:#111;
  padding:20px;
  overflow-y:auto;
  transform:translateX(100%);
  transition:transform .3s ease;
  z-index:200;
  border-left:1px solid #222;
}

.note-panel.open{
  transform:translateX(0);
}


.note-panel.open{
  right:0;
}

.note-panel h3{
  margin-bottom:15px;
}

.note-item{
  background:#1c1c1c;
  padding:10px;
  margin-bottom:10px;
  border-radius:8px;
  font-size:13px;
}

.highlight{
  background:rgba(255,255,0,0.3);
}
/* STORY NOTES */

.story-notes{
  max-width:850px;
  margin:60px auto;
}

.story-notes h2{
  margin-bottom:20px;
}

.story-note-item{
  background:#151515;
  padding:15px 18px;
  border-radius:10px;
  margin-bottom:12px;
  border:1px solid #222;
}

.note-chapter{
  font-size:13px;
  opacity:.6;
  margin-bottom:6px;
}

.note-text{
  font-size:14px;
  margin-bottom:4px;
}

.note-comment{
  font-size:13px;
  opacity:.7;
}
.delete-note{
  margin-top:8px;
  padding:4px 8px;
  background:#333;
  border:none;
  color:white;
  font-size:11px;
  border-radius:6px;
  cursor:pointer;
}

.delete-note:hover{
  background:crimson;
}
/* NOTE MODAL */

.note-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999;
}

.note-modal-box{
  background:#1a1a1a;
  padding:25px;
  border-radius:16px;
  width:400px;
  max-width:90%;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
  animation:fadeIn .2s ease;
}

.note-modal-box h3{
  margin-bottom:15px;
}

.note-modal-box textarea{
  width:100%;
  height:100px;
  background:#111;
  border:1px solid #333;
  border-radius:8px;
  padding:10px;
  color:white;
  resize:none;
  font-family:inherit;
}

.note-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:15px;
}

.note-modal-actions button{
  padding:8px 16px;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

#noteCancel{
  background:#333;
  color:white;
}

#noteSave{
  background:crimson;
  color:white;
}

#noteSave:hover{
  opacity:.85;
}

@keyframes fadeIn{
  from{transform:scale(.95);opacity:0}
  to{transform:scale(1);opacity:1}
}
/* CUSTOM ALERT */

.alert-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:1000;
}

.alert-box{
  background:#1a1a1a;
  padding:25px 30px;
  border-radius:18px;
  width:360px;
  max-width:90%;
  text-align:center;
  box-shadow:0 15px 50px rgba(0,0,0,.7);
  animation:popIn .25s ease;
}

.alert-icon{
  font-size:32px;
  margin-bottom:10px;
  color:crimson;
}

.alert-text{
  margin-bottom:20px;
  font-size:15px;
  opacity:.9;
}

#alertOk{
  padding:8px 20px;
  border:none;
  border-radius:8px;
  background:crimson;
  color:white;
  cursor:pointer;
}

#alertOk:hover{
  opacity:.85;
}

@keyframes popIn{
  from{transform:scale(.9);opacity:0}
  to{transform:scale(1);opacity:1}
}
/* Hai bên mờ dần tạo focus */

/* Fade hai bên chỉ chạy trên desktop */
@media (min-width:1024px){

  body::before,
  body::after{
    content:"";
    position:fixed;
    top:0;
    bottom:0;
    width:200px;
    pointer-events:none;
    z-index:0;
  }

  body::before{
    left:0;
    background:linear-gradient(to right,#000,transparent);
  }

  body::after{
    right:0;
    background:linear-gradient(to left,#000,transparent);
  }

}

/* ================= MOBILE STORY REDESIGN ================= */

@media (max-width:768px){

  /* TẮT FADE HOÀN TOÀN */
  body::before,
  body::after{
    content:none !important;
  }

  /* HERO */
  .story-hero{
    height:auto;
    padding-top:40px;
    padding-bottom:30px;
  }

  .story-box{
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:20px;
    gap:18px;
  }

  .story-cover{
    width:150px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.6);
  }

  .story-meta h1{
    font-size:20px;
    line-height:1.4;
  }

  .tags{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
  }

  .tags span{
    font-size:12px;
    padding:5px 10px;
  }

  .read-btn,
  .secondary-btn{
    display:block;
    width:100%;
    max-width:260px;
    margin:10px auto 0;
  }

  /* GIỚI THIỆU */
  .story-desc{
    padding:0 16px;
    margin:25px auto;
    font-size:14px;
    line-height:1.8;
  }

  /* CHAPTER LIST FULL WIDTH */
  .chapter-list{
    margin:30px 0;
    padding:0 12px;
  }

  .chapter-card{
    padding:16px;
    border-radius:14px;
  }

}
/* ================= MOBILE READER FIXED ================= */

@media (max-width:768px){

  /* Tắt fade */
  body::before,
  body::after{
    content:none !important;
  }

  /* KHÔNG ẨN TOOLBAR */
  .reader-top{
    gap:6px;
    padding:10px 8px;
    overflow-x:auto;
    justify-content:flex-start;
  }

  .reader-top button,
  .reader-top select,
  .back-btn{
    padding:6px 10px;
    font-size:12px;
    border-radius:10px;
  }

  /* Reader full width */
  .reader{
    margin:0;
    border-radius:0;
    max-width:100%;
    padding:20px 18px 80px;
  }

  .reader-content{
    font-size:18px;
    line-height:2;
  }

  /* Note panel full */
  .note-panel{
    width:100%;
  }

}
/* ===== CUSTOM ALERT ===== */
.custom-alert{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.custom-alert-box{
  background:rgba(25,25,25,0.9);
  padding:25px 35px;
  border-radius:16px;
  text-align:center;
  min-width:280px;
  box-shadow:0 15px 40px rgba(0,0,0,0.4);
  animation:fadeIn .2s ease;
}

.alert-icon{
  font-size:28px;
  margin-bottom:10px;
}

.alert-message{
  margin-bottom:20px;
  font-size:15px;
}

.alert-ok{
  padding:8px 20px;
  border:none;
  border-radius:20px;
  cursor:pointer;
  background:#ff7a5c;
  color:white;
  transition:.2s;
}

.alert-ok:hover{
  transform:scale(1.05);
}

/* ===== NOTE DELETE BUTTON ===== */
.delete-note{
  margin-top:8px;
  padding:4px 12px;
  border-radius:15px;
  border:none;
  font-size:12px;
  cursor:pointer;
  background:rgba(255,255,255,0.08);
  color:#ccc;
  transition:.2s;
}

.delete-note:hover{
  background:#ff5c5c;
  color:white;
}

/* ===== CLOSE PANEL BUTTON ===== */
.note-header button{
  width:28px;
  height:28px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background:rgba(255,255,255,0.08);
  color:#aaa;
  transition:.2s;
}

.note-header button:hover{
  background:#ff5c5c;
  color:white;
}
/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px){

  /* TOP BAR gọn lại */
  .reader-top{
    flex-wrap:wrap;
    gap:6px;
    padding:8px;
  }

  .reader-top button,
  .reader-top a{
    padding:6px 10px;
    font-size:13px;
  }

  #chapterSelect{
    flex:1;
    min-width:120px;
    font-size:13px;
  }

  /* Nội dung đọc */
  .reader-content{
    font-size:18px !important;
    line-height:1.7;
    padding:0 14px;
  }

  /* Panel ghi chú full width */
  .note-panel{
    width:100%;
  }

  /* Nút ghi chú nổi */
  .note-btn{
    bottom:80px;
    right:20px;
  }

  /* Scroll to top mobile */
  .scroll-top-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    width:48px;
    height:48px;
    border-radius:50%;
    border:none;
    background:#ff7a5c;
    color:white;
    font-size:18px;
    box-shadow:0 8px 20px rgba(0,0,0,0.4);
    display:none;
    z-index:999;
    cursor:pointer;
  }

}

/* Desktop scroll button */
.scroll-top-btn{
  position:fixed;
  bottom:30px;
  right:30px;
  padding:12px 18px;
  border-radius:25px;
  border:none;
  background:#111;
  color:white;
  font-size:14px;
  display:none;
  z-index:999;
  cursor:pointer;
  transition:.2s;
}

.scroll-top-btn:hover{
  transform:scale(1.05);
}
/* ================= CATEGORY LAYOUT ================= */

.library{
  padding:100px 40px;
  max-width:1200px;
  margin:auto;
}

.category{
  margin-bottom:100px;
}

.category-title{
  font-size:28px;
  margin-bottom:40px;
  font-weight:600;
  letter-spacing:1px;
  position:relative;
  padding-left:20px;
}

/* Thanh màu bên trái tiêu đề */
.category-title::before{
  content:"";
  position:absolute;
  left:0;
  top:5px;
  bottom:5px;
  width:5px;
  border-radius:4px;
}

/* Màu riêng từng quốc gia */
.category-title.china::before{
  background:#c62828; /* đỏ Trung */
}

.category-title.korea::before{
  background:#1565c0; /* xanh Hàn */
}

.category-title.japan::before{
  background:#d81b60; /* hồng Nhật */
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:40px;
}
/* ===== CATEGORY COMPACT REDESIGN ===== */

.library{
  max-width:1200px;
  margin:80px auto;
  padding:0 20px;
}

.category{
  margin-bottom:70px;
}

.category-title{
  font-size:20px;
  font-weight:600;
  margin-bottom:25px;
  letter-spacing:1px;
  display:flex;
  align-items:center;
  gap:12px;
}

.category-title::after{
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(to right,#333,transparent);
}

/* GRID NHẸ – GỌN */
.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:24px;
}
.card{
  background:#141414;
  border-radius:14px;
  overflow:hidden;
  transition:.25s ease;
  border:1px solid #1f1f1f;
}

.card img{
  height:220px;
  object-fit:cover;
}

.card h3{
  font-size:14px;
  padding:10px;
  text-align:center;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,.5);
}

/* ===== MAIN BANNER ===== */

.main-banner{
  height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(135deg,#0f172a,#111827);
  border-bottom:1px solid #1f2937;
}

.banner-content h1{
  font-size:28px;
  margin-bottom:8px;
}

.banner-content p{
  font-size:14px;
  color:#aaa;
}


/* ===== REGION SECTION ===== */

.region-section{
  max-width:1300px;
  margin:70px auto;
  padding:0 40px;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.section-header h2{
  font-size:18px;
  font-weight:600;
}

.view-all{
  font-size:13px;
  color:#777;
  text-decoration:none;
}

.view-all:hover{
  color:white;
}


/* ===== HORIZONTAL SCROLL ===== */

.horizontal-scroll{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:28px;
}

.region-section{
  max-width:1200px;
  margin:80px auto;
  padding:0 40px;
}

.horizontal-scroll{
  justify-content:start;
}

.horizontal-scroll::-webkit-scrollbar{
  height:8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb{
  background:#333;
  border-radius:4px;
}


/* ===== CARD ===== */

/* ===== REGION GRID GỌN ===== */

.horizontal-scroll{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
}

/* CARD MỚI */

.card{
  width:170px;
  text-decoration:none;
  color:white;
  transition:.25s ease;
}

.card img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:16px;
  display:block;
}

.card span{
  display:block;
  margin-top:8px;
  font-size:14px;
  color:#ddd;
}

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

.card:hover img{
  box-shadow:0 10px 25px rgba(0,0,0,.6);
}
/* ===== APP STYLE HERO ===== */

.app-hero{
  position:relative;
  height:360px;
  background:url("images/bg1.jpg") center/cover no-repeat;
  display:flex;
  align-items:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to right,rgba(0,0,0,.8),rgba(0,0,0,.3));
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:1300px;
  width:100%;
  margin:auto;
  padding:0 60px;
}

.hero-text h1{
  font-size:40px;
  margin-bottom:15px;
}

.hero-text p{
  color:#bbb;
  margin-bottom:25px;
  font-size:16px;
}

.hero-buttons{
  display:flex;
  gap:15px;
}

/* Buttons */

.btn-primary{
  background:#ff7a5c;
  padding:10px 22px;
  border-radius:30px;
  text-decoration:none;
  color:white;
  font-size:14px;
  transition:.2s;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,122,92,.4);
}

.btn-secondary{
  border:1px solid #444;
  padding:10px 22px;
  border-radius:30px;
  text-decoration:none;
  color:white;
  font-size:14px;
  transition:.2s;
}

.btn-secondary:hover{
  background:#1c1c1c;
}
/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width:768px){

  .region-section{
    padding:0 16px;
    margin:50px auto;
  }

  .section-header{
    margin-bottom:18px;
  }

  .section-header h2{
    font-size:16px;
  }

  .view-all{
    font-size:12px;
  }

  /* GRID 2 CỘT */
  .horizontal-scroll{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
  }

  .card{
    width:100%;
  }

  .card img{
    border-radius:14px;
  }

  .card span{
    font-size:13px;
  }
}
/* ===== HORIZONTAL SCROLL CHUẨN APP ===== */

.horizontal-scroll{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}

.horizontal-scroll::-webkit-scrollbar{
  display:none;
}

/* CARD GỌN */

.card{
  flex:0 0 auto;
  width:140px; /* nhỏ gọn */
  text-decoration:none;
  color:white;
  scroll-snap-align:start;
  transition:.25s ease;
}

.card img{
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:14px;
  display:block;
  box-shadow:0 6px 18px rgba(0,0,0,.5);
}

.card span{
  display:block;
  margin-top:8px;
  font-size:13px;
  color:#ddd;
}

.card:hover{
  transform:translateY(-4px);
}
@media (max-width:768px){

  .card{
    width:130px;
  }

}
/* ===== CUSTOM SCROLL BAR ===== */

.horizontal-scroll{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:12px;
  scroll-snap-type:x mandatory;
}

/* Chrome / Edge */
.horizontal-scroll::-webkit-scrollbar{
  height:6px;
}

.horizontal-scroll::-webkit-scrollbar-track{
  background:#111;
  border-radius:10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb{
  background:#333;
  border-radius:10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover{
  background:#555;
}

/* Firefox */
.horizontal-scroll{
  scrollbar-width:thin;
  scrollbar-color:#333 #111;
}
/* ===== LIST PAGE ===== */

.list-page{
  max-width:1200px;
  margin:80px auto;
  padding:0 40px;
}

.list-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px;
}

.list-header h1{
  font-size:28px;
}

.back-btn{
  text-decoration:none;
  color:#aaa;
}

.back-btn:hover{
  color:white;
}

/* GRID */

.list-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:30px;
}
/* ================= UNIVERSAL LIST DESIGN ================= */

/* ===== MOBILE FIRST ===== */

.list-page{
  width:100%;
  margin:0;
  padding:0;
}

.list-header{
  padding:16px;
}

.list-vertical{
  display:flex;
  flex-direction:column;
}

.story-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px;
  background:#2a2a2a;
  border-bottom:1px solid #3a3a3a;
  text-decoration:none;
  color:white;
}

.story-item img{
  width:95px;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}

.story-info{
  flex:1;
}

.story-info h3{
  font-size:18px;
  margin-bottom:6px;
}

.story-info p,
.story-info span{
  font-size:14px;
  color:#ccc;
}

.story-more{
  font-size:20px;
  color:#aaa;
}

/* ===== DESKTOP SCALE UP ===== */

@media (min-width:769px){

  .list-page{
    max-width:1000px;
    margin:70px auto;
    padding:0 40px;
  }

  .story-item{
    border-radius:14px;
    margin-bottom:16px;
  }

}
/* ================= MOBILE POLISHED DESIGN ================= */

@media (max-width:768px){

  body{
    background:#0f1115;
  }

  .list-header{
    padding:20px 16px 10px;
  }

  .story-item{
    margin:12px 16px;
    padding:14px;
    border-radius:18px;
    background:linear-gradient(145deg,#1c1f26,#181b22);
    box-shadow:0 6px 14px rgba(0,0,0,0.35);
    border:none;
  }

  .story-item img{
    width:92px;
    border-radius:14px;
    box-shadow:0 4px 10px rgba(0,0,0,0.4);
  }

  .story-info h3{
    font-size:17px;
    font-weight:600;
    letter-spacing:.2px;
  }

  .story-info p{
    font-size:13px;
    opacity:.8;
  }

  .story-info span{
    font-size:13px;
    opacity:.7;
  }

  .story-item:active{
    transform:scale(.98);
    transition:.1s;
  }

}
.read-btn {
  cursor: pointer;
}
.search-box {
  margin: 20px 0;
  text-align: center;
}

.search-box input {
  width: 80%;
  max-width: 400px;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #1e1e2f;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.search-box input::placeholder {
  color: #aaa;
}
.region-section {
  padding: 0;
  margin-bottom: 60px;
}

.section-header,
.horizontal-scroll {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.empty-state {
  text-align: center;
  margin-top: 80px;
  color: white;
}

.empty-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.empty-state h2 {
  margin-bottom: 10px;
}

.empty-state p {
  color: #aaa;
  margin-bottom: 25px;
}

.empty-btn {
  padding: 10px 20px;
  background: #1e1e2f;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.empty-btn:hover {
  background: #2c2c44;
}
