:root{
  --green:#00d564;
  --ink:#111;
  --muted:#888;
  --line:#e6e6e6;
  --pill:#f2f2f2;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{color:inherit}
img{display:block;width:100%}

.content-shell{
  width:min(1205px,calc(100% - 52px));
  margin:0 auto;
}

/* NAV */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid #ddd;
}
.nav-shell{
  width:100%;
  height:104px;
  display:flex;
  align-items:center;
  padding:0 6px;
}
.brand{
  width:76px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:none;
  margin-right:14px;
}
.brand-shape{
  width:66px;
  height:58px;
  background:var(--green);
  color:#fff;
  font-size:16px;
  line-height:.85;
  font-weight:900;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  transform:rotate(-5deg);
  clip-path:polygon(7% 8%,92% 0,86% 29%,100% 38%,94% 83%,48% 100%,48% 87%,8% 94%,0 43%);
  letter-spacing:-1px;
}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:26px;
}
.desktop-nav a,
.nav-right>a{
  font-size:16px;
  font-weight:800;
  white-space:nowrap;
}
.desktop-nav a{padding:40px 0}
.desktop-nav a:hover,
.desktop-nav a.active{color:#000}

.nav-right{
  margin-left:auto;
  display:flex;
  gap:14px;
  align-items:center;
}
.nav-right>a{
  font-size:13px;
}
.dashboard,
.login{
  border-radius:999px;
  padding:11px 17px;
}
.dashboard{
  background:#050505;
  color:#fff;
}
.login{
  background:#f3f3f3;
}
.search-btn{
  border:0;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#f3f3f3;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.search-btn svg,
.search-inner svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:#111;
  stroke-width:2;
  stroke-linecap:round;
}
.mobile-toggle{display:none}

.search-panel{
  max-height:0;
  overflow:hidden;
  border-top:0 solid var(--line);
  transition:.25s ease;
}
.search-panel.open{
  max-height:82px;
  border-top-width:1px;
}
.search-inner{
  height:80px;
  display:flex;
  align-items:center;
  gap:12px;
}
.search-inner input{
  flex:1;
  border:0;
  outline:0;
  font-size:15px;
}
.search-inner button{
  border:0;
  background:#f2f2f2;
  padding:9px 14px;
  border-radius:999px;
  cursor:pointer;
}
.mobile-menu{display:none}

/* SECTIONS */
.first-section{padding-top:41px}
.category-section{padding-top:38px}
.latest-section{padding:46px 0 70px}

.section-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.section-title-row h1,
.section-title-row h2{
  font-size:23px;
  line-height:1.2;
  margin:0;
  font-weight:800;
  letter-spacing:-.7px;
}
.see-all{
  margin-right:7px;
  color:#666;
  font-size:12px;
}
.see-all span{
  margin-left:6px;
  font-size:22px;
  vertical-align:-2px;
}

.feed-tabs,
.category-tabs{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:14px;
}
.feed-tab,
.category-tab{
  border:0;
  border-radius:999px;
  background:var(--pill);
  font-size:12px;
  font-weight:700;
  height:48px;
  padding:0 21px;
  cursor:pointer;
  transition:.15s ease;
}
.feed-tab.active,
.category-tab.active{
  color:#fff;
  background:#050505;
}
.category-tabs{
  overflow-x:auto;
  scrollbar-width:none;
}
.category-tabs::-webkit-scrollbar{display:none}
.category-tab{
  height:48px;
  padding:0 20px;
  flex:none;
}

/* CAROUSELS */
.slider-shell{position:relative}
.rank-carousel,
.category-carousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 40px)/5);
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding-bottom:4px;
}
.rank-carousel::-webkit-scrollbar,
.category-carousel::-webkit-scrollbar{display:none}

.comic-card{
  min-width:0;
  cursor:pointer;
}
.cover{
  position:relative;
  overflow:hidden;
  background:#eee;
  aspect-ratio:232/300;
}
.cover img{
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.comic-card:hover .cover img{transform:scale(1.025)}

.rank-info{
  height:32px;
  margin-top:-31px;
  position:relative;
  z-index:3;
  display:flex;
  align-items:flex-end;
  pointer-events:none;
}
.big-rank{
  font-size:72px;
  line-height:.76;
  font-weight:900;
  color:#050505;
  letter-spacing:-6px;
  -webkit-text-stroke:2px #fff;
  text-shadow:
    2px 0 #fff,-2px 0 #fff,0 2px #fff,0 -2px #fff,
    2px 2px #fff,-2px -2px #fff,2px -2px #fff,-2px 2px #fff;
}
.rank-change{
  color:#00b858;
  font-size:11px;
  font-weight:800;
  margin:0 0 3px 5px;
}
.title-row{padding-top:8px}
.comic-title{
  font-size:17px;
  font-weight:600;
  margin:0 0 5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.comic-genre{
  font-size:12px;
  color:#909090;
}
.new-flag{
  position:absolute;
  top:8px;
  left:8px;
  background:var(--green);
  color:#031d0d;
  font-size:10px;
  font-weight:800;
  padding:4px 7px;
}
.category-card .cover{
  aspect-ratio:192/250;
}
.category-card .comic-title{
  padding-top:9px;
}
.carousel-next,
.carousel-prev{
  position:absolute;
  z-index:8;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #e2e2e2;
  background:rgba(255,255,255,.97);
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  top:133px;
  display:grid;
  place-items:center;
  font-size:31px;
  line-height:1;
  cursor:pointer;
}
.carousel-next{right:-20px}
.carousel-prev{left:-20px}
.category-next,.category-prev{top:105px}

/* LATEST */
.latest-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:28px 10px;
}
.latest-card .cover{aspect-ratio:232/300}
.latest-card .episode{
  display:inline-block;
  margin-top:8px;
  font-size:11px;
  font-weight:800;
  color:#00ae53;
}

/* VERTICAL "TERBARU" */
.latest-rail{
  position:fixed;
  right:0;
  top:392px;
  width:42px;
  height:157px;
  border:1px solid #e3e3e3;
  border-right:0;
  border-radius:10px 0 0 10px;
  background:#fff;
  z-index:70;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction:column;
  padding:16px 0 8px;
}
.latest-rail span{
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-size:13px;
  font-weight:600;
}
.latest-rail button{
  border:0;
  background:transparent;
  font-size:24px;
  cursor:pointer;
}

.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:11px 17px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:200;
}
.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

.footer{
  border-top:1px solid var(--line);
  padding:28px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#888;
}
.footer-inner strong{color:#111}

/* TABLET */
@media(max-width:1050px){
  .shop-link{display:none}
  .desktop-nav{gap:18px}
  .desktop-nav a{font-size:14px}
  .rank-carousel,.category-carousel{
    grid-auto-columns:calc((100% - 24px)/4);
    gap:8px;
  }
  .latest-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* MOBILE */
@media(max-width:760px){
  .content-shell{width:calc(100% - 28px)}
  .nav-shell{height:68px;padding:0 14px}
  .brand{width:58px;height:54px;margin-right:6px}
  .brand-shape{width:52px;height:44px;font-size:12px}
  .desktop-nav,.nav-right>a,.search-btn{display:none}
  .mobile-toggle{
    display:block;
    border:0;
    background:#f3f3f3;
    width:40px;height:40px;
    border-radius:50%;
    padding:10px;
    cursor:pointer;
  }
  .mobile-toggle span{
    display:block;
    height:2px;
    background:#111;
    margin:4px 0;
  }
  .mobile-menu{
    background:#fff;
    border-top:1px solid var(--line);
    padding:10px 14px 16px;
  }
  .mobile-menu.open{display:grid}
  .mobile-menu a{
    padding:13px 4px;
    border-bottom:1px solid #f1f1f1;
    font-size:13px;
    font-weight:800;
  }
  .search-panel.open{max-height:72px}
  .search-inner{height:70px}

  .first-section{padding-top:26px}
  .category-section{padding-top:34px}
  .latest-section{padding-top:34px}
  .section-title-row h1,
  .section-title-row h2{font-size:20px}
  .see-all{font-size:11px}

  .feed-tab,.category-tab{
    height:42px;
    padding:0 17px;
  }
  .rank-carousel,.category-carousel{
    grid-auto-columns:calc((100% - 10px)/2.15);
    gap:10px;
  }
  .big-rank{font-size:56px}
  .comic-title{font-size:14px}
  .carousel-prev{display:none}
  .carousel-next{
    right:-10px;
    width:38px;height:38px;
    top:31%;
  }
  .category-next{top:35%}

  .latest-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px 10px;
  }
  .latest-rail{display:none}
  .footer-inner{display:grid;gap:6px}
}

@media(max-width:390px){
  .rank-carousel,.category-carousel{
    grid-auto-columns:76%;
  }
}


/* =========================
   READER PAGE
   ========================= */
.reader-body{
  margin:0;
  background:#111;
  color:#111;
  font-family:Inter,Arial,sans-serif;
}
.reader-topbar{
  position:sticky;
  top:0;
  z-index:120;
  height:66px;
  background:#fff;
  border-bottom:1px solid #e7e7e7;
}
.reader-topbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  padding:0 22px;
}
.reader-logo{
  width:58px;
  flex:none;
  display:flex;
  align-items:center;
}
.reader-logo .brand-shape{
  width:48px;
  height:42px;
  font-size:11px;
}
.reader-series-info{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.reader-series-title{
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.reader-divider{
  width:1px;
  height:18px;
  background:#ddd;
}
.reader-series-info strong{
  font-size:12px;
  color:#777;
}
.reader-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.reader-icon-btn,
.reader-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#f3f3f3;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:18px;
}
.reader-close{
  background:#111;
  color:#fff;
  font-size:25px;
  line-height:1;
}

.reader-page{
  background:#111;
}
.reader-intro{
  min-height:330px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:55px 20px;
}
.reader-intro span{
  color:#00bd59;
  font-size:11px;
  letter-spacing:2px;
  font-weight:900;
}
.reader-intro h1{
  font-size:42px;
  margin:10px 0 8px;
  letter-spacing:-1.5px;
}
.reader-intro p{
  margin:0;
  color:#777;
  font-size:14px;
}

.webtoon-canvas{
  width:min(720px,100%);
  margin:0 auto;
  background:#fff;
}
.story-panel{
  width:100%;
  position:relative;
  overflow:hidden;
}
.panel-city{
  height:780px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,240,137,.95) 0 3%, transparent 3.4%),
    radial-gradient(circle at 75% 33%, rgba(0,213,100,.55) 0 1.4%, transparent 1.8%),
    linear-gradient(150deg,#11162c 0%,#302263 48%,#7f255e 100%);
}
.panel-city:before,
.panel-city:after{
  content:"";
  position:absolute;
  bottom:0;
  width:43%;
  height:62%;
  background:#0d1020;
  clip-path:polygon(0 22%,100% 0,100% 100%,0 100%);
}
.panel-city:before{left:0}
.panel-city:after{
  right:0;
  clip-path:polygon(0 5%,100% 30%,100% 100%,0 100%);
}
.city-lights{
  position:absolute;
  inset:0;
  opacity:.55;
  background-image:
    radial-gradient(circle,#ffdc6d 0 2px,transparent 3px),
    radial-gradient(circle,#65ffd3 0 2px,transparent 3px);
  background-size:78px 84px,117px 102px;
  background-position:15px 280px,40px 370px;
}
.story-caption{
  position:absolute;
  z-index:2;
  top:80px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-size:14px;
  letter-spacing:.8px;
  white-space:nowrap;
}

.panel-phone{
  height:820px;
  background:#f6f6f6;
  display:flex;
  align-items:center;
  justify-content:center;
}
.phone-card{
  width:330px;
  min-height:610px;
  border-radius:42px;
  background:#151515;
  padding:80px 24px 30px;
  box-shadow:0 30px 65px rgba(0,0,0,.20);
  position:relative;
}
.phone-notch{
  position:absolute;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  width:95px;
  height:22px;
  background:#050505;
  border-radius:30px;
}
.chat-line{
  max-width:78%;
  margin:18px 0;
  padding:12px 15px;
  border-radius:17px;
  font-size:13px;
  line-height:1.55;
}
.chat-line.left{
  background:#2b2b2b;
  color:#fff;
}
.chat-line.right{
  margin-left:auto;
  background:#00d564;
}
.chat-line.small{
  color:#bbb;
}

.panel-face{
  min-height:900px;
  background:#231a45;
}
.panel-face img{
  width:100%;
  min-height:900px;
  object-fit:cover;
  filter:saturate(.9) contrast(1.04);
}
.panel-face:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,transparent 55%,rgba(18,10,30,.72));
}

.panel-text-only{
  min-height:630px;
  display:grid;
  place-items:center;
  background:#fff;
  padding:80px;
}
.panel-text-only p{
  max-width:490px;
  text-align:center;
  font-size:28px;
  line-height:1.55;
  font-weight:700;
  letter-spacing:-.8px;
}

.panel-station{
  min-height:790px;
  background:linear-gradient(#dde2e8 0 55%,#858993 55%);
}
.station-sign{
  position:absolute;
  top:125px;
  left:50%;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:18px 28px;
  letter-spacing:2px;
  font-size:15px;
  font-weight:800;
  white-space:nowrap;
}
.station-floor{
  position:absolute;
  left:0;right:0;bottom:0;
  height:45%;
  background:
    linear-gradient(105deg,transparent 48%,rgba(255,255,255,.35) 49%,transparent 50%),
    linear-gradient(75deg,transparent 48%,rgba(255,255,255,.18) 49%,transparent 50%);
  background-size:150px 150px;
}

.panel-chat{
  min-height:780px;
  background:#fff;
  padding:130px 78px;
}
.bubble{
  width:max-content;
  max-width:78%;
  padding:16px 19px;
  border-radius:24px;
  margin-bottom:42px;
  line-height:1.55;
  font-size:17px;
}
.b1,.b3{
  background:#efefef;
}
.b2,.b4{
  margin-left:auto;
  background:#00d564;
}
.b4{
  margin-top:90px;
  font-weight:700;
}

.panel-end{
  height:620px;
  background:#111;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.end-mark{
  font-size:11px;
  letter-spacing:4px;
  color:#00d564;
  font-weight:800;
  margin-bottom:20px;
}
.panel-end strong{
  font-size:48px;
  letter-spacing:-2px;
}
.panel-end span{
  margin-top:12px;
  font-size:10px;
  letter-spacing:2px;
  color:#888;
}

.reader-bottom{
  background:#fff;
  padding:44px 22px 64px;
}
.reader-bottom-inner{
  max-width:900px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
}
.episode-nav{
  border:1px solid #ddd;
  background:#fff;
  min-height:70px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:15px;
  cursor:pointer;
  text-align:left;
}
.episode-nav.next{
  justify-content:flex-end;
  text-align:right;
}
.episode-nav>span{
  font-size:24px;
}
.episode-nav small{
  display:block;
  color:#999;
  margin-bottom:4px;
}
.episode-nav strong{
  font-size:13px;
}
.episode-nav.disabled{
  opacity:.35;
  cursor:not-allowed;
}
.episode-list-btn{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.reader-reaction{
  margin:48px auto 0;
  text-align:center;
}
.reader-reaction p{
  font-size:13px;
  color:#777;
}
.reader-reaction button{
  min-width:120px;
  height:46px;
  border:1px solid #ddd;
  background:#fff;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.reader-reaction button.liked{
  background:#eafff3;
  color:#00af52;
  border-color:#b7f1d0;
}

.reader-side-tools{
  position:fixed;
  right:22px;
  bottom:25px;
  z-index:80;
  display:grid;
  gap:8px;
}
.reader-side-tools button,
.reader-side-tools a{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid #ddd;
  background:#fff;
  display:grid;
  place-items:center;
  color:#111;
  cursor:pointer;
  box-shadow:0 5px 18px rgba(0,0,0,.08);
}
.reader-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translate(-50%,15px);
  opacity:0;
  background:#111;
  color:#fff;
  padding:11px 18px;
  border-radius:999px;
  z-index:150;
  font-size:12px;
  pointer-events:none;
  transition:.2s ease;
}
.reader-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

@media(max-width:760px){
  .reader-topbar-inner{padding:0 10px}
  .reader-logo{width:52px}
  .reader-series-info{gap:8px}
  .reader-series-title{max-width:100px}
  .reader-actions{gap:4px}
  .reader-icon-btn{display:none}
  .reader-intro{min-height:240px}
  .reader-intro h1{font-size:32px}
  .panel-city{height:580px}
  .panel-phone{height:640px}
  .phone-card{
    width:270px;
    min-height:500px;
  }
  .panel-face,
  .panel-face img{min-height:650px}
  .panel-text-only{
    min-height:470px;
    padding:45px 28px;
  }
  .panel-text-only p{
    font-size:22px;
  }
  .panel-station{min-height:570px}
  .panel-chat{
    min-height:600px;
    padding:80px 22px;
  }
  .bubble{
    font-size:15px;
  }
  .panel-end{height:470px}
  .panel-end strong{font-size:37px}
  .reader-bottom-inner{
    grid-template-columns:1fr 1fr;
  }
  .episode-list-btn{
    grid-column:1 / -1;
    grid-row:1;
  }
  .episode-nav{grid-row:2}
  .reader-side-tools{
    right:12px;
    bottom:12px;
  }
}
/* =========================
   EPISODE THUMBNAIL FIX
   ========================= */

.episode-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto 24px;
    gap: 18px;
    align-items: center;
    min-height: 110px;
}

.episode-thumb {
    width: 120px;
    height: 80px;
    overflow: hidden;
    background: #eee;
    border-radius: 6px;
}

.episode-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

@media (max-width: 760px) {

    .episode-row {
        grid-template-columns: 90px minmax(0, 1fr) 20px;
        gap: 12px;
    }

    .episode-thumb {
        width: 90px;
        height: 65px;
    }

    .episode-date {
        display: none;
    }
}
/* =========================================
   FIX FINAL THUMBNAIL DAFTAR EPISODE
   ========================================= */

.comic-body .episode-list {
    width: 100%;
}

.comic-body .episode-row {
    display: grid !important;
    grid-template-columns: 140px minmax(0, 1fr) 110px 24px !important;
    gap: 18px !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 115px !important;

    padding: 12px 0 !important;

    border-bottom: 1px solid #eeeeee;
}

.comic-body .episode-thumb {
    width: 140px !important;
    height: 90px !important;

    max-width: 140px !important;

    overflow: hidden !important;

    border-radius: 6px;

    background: #eeeeee;
}

.comic-body .episode-thumb img {
    display: block !important;

    width: 140px !important;
    height: 90px !important;

    max-width: 140px !important;
    max-height: 90px !important;

    object-fit: cover !important;
}

.comic-body .episode-main {
    min-width: 0 !important;
}

.comic-body .episode-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comic-body .episode-subtitle {
    display: block;
    margin-top: 6px;
}

.comic-body .episode-date {
    font-size: 11px;
    color: #999;
}

.comic-body .episode-arrow {
    font-size: 24px;
    text-align: right;
}

/* MOBILE */

@media (max-width: 760px) {

    .comic-body .episode-row {
        grid-template-columns: 90px minmax(0, 1fr) 20px !important;
        gap: 12px !important;
    }

    .comic-body .episode-thumb {
        width: 90px !important;
        height: 65px !important;
        max-width: 90px !important;
    }

    .comic-body .episode-thumb img {
        width: 90px !important;
        height: 65px !important;
        max-width: 90px !important;
        max-height: 65px !important;
    }

    .comic-body .episode-date {
        display: none !important;
    }
}
/* =====================================================
   TOONLOKA - FINAL COMIC DETAIL POLISH
   ===================================================== */

/* PAGE */
.comic-detail-page {
    background: #fff;
    color: #111;
}

.comic-detail-page .content-shell {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}


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

.comic-hero {
    position: relative;

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(0, 213, 100, .12),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
        );

    border-bottom: 1px solid #ececec;
}

.comic-hero-inner {
    display: grid !important;

    grid-template-columns:
        285px
        minmax(0, 1fr);

    gap: 55px;

    align-items: center;

    padding-top: 55px !important;
    padding-bottom: 55px !important;
}


/* COVER */

.comic-cover-wrap {
    position: relative;

    width: 285px !important;
    max-width: 285px !important;
}

.comic-detail-cover {
    display: block;

    width: 285px !important;
    height: 370px !important;

    object-fit: cover !important;

    border-radius: 12px;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .16);
}

.detail-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 7px 10px;

    border-radius: 5px;

    background: #00d564;

    color: #071b10;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .6px;
}


/* =====================================================
   INFO KOMIK
   ===================================================== */

.comic-info {
    max-width: 760px;
}

.comic-kicker {
    margin-bottom: 10px;

    color: #00b957;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1.8px;
}

.comic-info h1 {
    margin: 0 0 18px !important;

    font-size: clamp(38px, 4vw, 58px) !important;

    line-height: 1;

    letter-spacing: -2px;

    font-weight: 900;
}


/* GENRE */

.comic-meta-row {
    display: flex !important;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px !important;
}

.comic-meta-row span {
    display: inline-flex;

    align-items: center;

    min-height: 32px;

    padding: 0 13px;

    border-radius: 999px;

    background: #f1f1f1;

    font-size: 11px;
    font-weight: 700;
}

.comic-meta-row i {
    display: none !important;
}


/* AUTHOR */

.comic-author {
    margin-top: 15px !important;

    color: #777;

    font-size: 13px;
}

.comic-author strong {
    color: #111;
}


/* SINOPSIS */

.comic-description {
    max-width: 720px;

    margin: 25px 0 !important;

    color: #555;

    font-size: 14px;

    line-height: 1.8;
}


/* =====================================================
   STATISTIK
   ===================================================== */

.comic-stats {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(100px, 1fr));

    gap: 10px !important;

    max-width: 620px;

    margin: 0 0 28px !important;
}

.comic-stats div {
    padding: 15px 16px;

    border: 1px solid #e8e8e8;

    border-radius: 10px;

    background: #fff;
}

.comic-stats strong {
    display: block;

    margin-bottom: 4px;

    font-size: 20px !important;

    font-weight: 900;
}

.comic-stats span {
    display: block;

    color: #999;

    font-size: 10px !important;

    text-transform: uppercase;

    letter-spacing: .5px;
}


/* =====================================================
   ACTION BUTTON
   ===================================================== */

.comic-actions {
    display: flex !important;

    align-items: center;

    gap: 9px;
}

.primary-read {
    min-height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 26px;

    border-radius: 999px;

    background: #111 !important;

    color: #fff !important;

    font-size: 12px;

    font-weight: 800;

    transition: .18s ease;
}

.primary-read:hover {
    transform: translateY(-2px);

    background: #00c75d !important;

    color: #08150e !important;
}

.secondary-action {
    min-height: 48px;

    padding: 0 22px;

    border: 0;

    border-radius: 999px;

    background: #f0f0f0 !important;

    font-weight: 800;

    cursor: pointer;
}


/* =====================================================
   BODY DETAIL KOMIK
   ===================================================== */

.comic-body {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        290px;

    gap: 42px !important;

    align-items: start;

    padding-top: 52px !important;
    padding-bottom: 90px !important;
}


/* =====================================================
   EPISODE HEADER
   ===================================================== */

.episode-heading {
    display: flex !important;

    align-items: end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px !important;
}

.eyebrow {
    color: #00b957;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.8px;
}

.episode-heading h2 {
    margin: 7px 0 0 !important;

    font-size: 27px !important;

    letter-spacing: -.7px;
}


/* =====================================================
   EPISODE LIST
   ===================================================== */

.episode-list {
    overflow: hidden;

    border: 1px solid #e5e5e5 !important;

    border-radius: 12px;

    background: #fff;
}

.comic-body .episode-row {
    display: grid !important;

    grid-template-columns:
        140px
        minmax(0, 1fr)
        100px
        24px !important;

    gap: 18px !important;

    align-items: center !important;

    min-height: 115px !important;

    padding: 12px 16px !important;

    border-bottom:
        1px solid #eeeeee !important;

    transition: .18s ease;
}

.comic-body .episode-row:last-child {
    border-bottom: 0 !important;
}

.comic-body .episode-row:hover {
    background: #f8fffB;

    transform: translateX(3px);
}


/* THUMBNAIL */

.comic-body .episode-thumb {
    width: 140px !important;
    height: 90px !important;

    overflow: hidden !important;

    border-radius: 7px;

    background: #eee;
}

.comic-body .episode-thumb img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block;
}


/* EPISODE TEXT */

.episode-title-line {
    display: flex !important;

    align-items: center;

    gap: 8px;
}

.episode-title-line strong {
    font-size: 13px;
}

.episode-new {
    padding: 4px 7px !important;

    border-radius: 4px;

    background: #00d564 !important;

    font-size: 8px !important;

    font-weight: 900;
}

.episode-subtitle {
    display: block;

    margin-top: 7px !important;

    color: #777 !important;

    font-size: 11px !important;
}

.episode-date {
    color: #999 !important;

    font-size: 10px !important;

    text-align: right;
}

.episode-arrow {
    color: #aaa;

    font-size: 24px !important;

    text-align: right;
}


/* =====================================================
   SIDEBAR
   ===================================================== */

.comic-side {
    display: grid !important;

    gap: 18px;

    position: sticky;

    top: 125px;
}

.side-box {
    padding: 22px !important;

    border: 1px solid #e5e5e5 !important;

    border-radius: 12px;

    background: #fff !important;

    box-shadow:
        0 7px 25px
        rgba(0,0,0,.035);
}

.side-box h3 {
    margin: 0 0 17px !important;

    font-size: 15px !important;
}

.side-box dl {
    margin: 0;
}

.side-box dl div {
    display: flex !important;

    justify-content: space-between;

    align-items: flex-start;

    gap: 14px;

    padding: 11px 0 !important;

    border-bottom:
        1px solid #f0f0f0 !important;
}

.side-box dl div:last-child {
    border-bottom: 0 !important;
}

.side-box dt {
    color: #999;

    font-size: 11px;
}

.side-box dd {
    margin: 0;

    max-width: 155px;

    text-align: right;

    font-size: 11px;

    font-weight: 700;
}


/* =====================================================
   RECOMMENDATION
   ===================================================== */

.mini-rec {
    display: grid !important;

    grid-template-columns:
        60px
        minmax(0, 1fr);

    gap: 12px;

    align-items: center;

    padding: 9px 0;
}

.mini-rec img {
    width: 60px !important;
    height: 78px !important;

    border-radius: 5px;

    object-fit: cover !important;
}

.mini-rec strong {
    display: block;

    font-size: 11px;
}

.mini-rec span {
    display: block;

    margin-top: 5px;

    color: #999;

    font-size: 9px;
}


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

@media (max-width: 800px) {

    .comic-detail-page .content-shell {
        width: calc(100% - 28px);
    }


    .comic-hero-inner {
        grid-template-columns: 1fr !important;

        gap: 28px !important;

        padding-top: 30px !important;
    }


    .comic-cover-wrap {
        width: 210px !important;

        margin: 0 auto;
    }


    .comic-detail-cover {
        width: 210px !important;
        height: 275px !important;
    }


    .comic-info {
        text-align: center;
    }


    .comic-meta-row {
        justify-content: center;
    }


    .comic-description {
        text-align: left;
    }


    .comic-stats {
        grid-template-columns:
            repeat(2, 1fr);

        margin-left: auto !important;
        margin-right: auto !important;
    }


    .comic-actions {
        justify-content: center;
    }


    .comic-body {
        grid-template-columns: 1fr !important;

        gap: 35px !important;

        padding-top: 35px !important;
    }


    .comic-side {
        position: static;
    }


    .comic-body .episode-row {
        grid-template-columns:
            90px
            minmax(0, 1fr)
            20px !important;

        gap: 12px !important;

        min-height: 90px !important;

        padding: 10px !important;
    }


    .comic-body .episode-thumb {
        width: 90px !important;
        height: 65px !important;
    }


    .episode-date {
        display: none !important;
    }

}
/* =====================================================
   TOONLOKA SEARCH + CATEGORY FILTER
   ===================================================== */

.catalog-tools {
    padding: 30px 0 24px;
}


/* SEARCH BOX */

.comic-search-form {
    width: 100%;
}

.comic-search-box {
    width: min(760px, 100%);
    height: 54px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    padding-left: 18px;

    border: 1px solid #ddd;
    border-radius: 999px;

    background: #fff;

    overflow: hidden;

    transition: .2s ease;
}

.comic-search-box:focus-within {
    border-color: #00d564;

    box-shadow:
        0 0 0 4px
        rgba(0, 213, 100, .10);
}

.search-icon {
    flex: none;

    margin-right: 10px;

    font-size: 21px;

    color: #888;
}

.comic-search-box input {
    flex: 1;

    min-width: 0;
    height: 100%;

    padding: 0;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    font-size: 13px;
}

.comic-search-box button {
    align-self: stretch;

    min-width: 95px;

    padding: 0 22px;

    border: 0;

    background: #111;
    color: #fff;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition: .2s ease;
}

.comic-search-box button:hover {
    background: #00d564;
    color: #08170e;
}


/* CATEGORY FILTER */

.catalog-category-filter {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.catalog-filter-pill {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

    border-radius: 999px;

    background: #f2f2f2;

    color: #111;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition: .15s ease;
}

.catalog-filter-pill:hover {
    background: #e5e5e5;
}

.catalog-filter-pill.active {
    background: #111;
    color: #fff;
}


/* INFO HASIL SEARCH */

.active-filter-info {
    width: min(760px, 100%);

    margin: 16px auto 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 15px;

    border-radius: 8px;

    background: #f7f7f7;

    font-size: 11px;
}

.active-filter-info a {
    color: #00a950;

    font-weight: 800;

    text-decoration: none;
}


/* HASIL SEARCH */

.search-result-section {
    padding-top: 30px;
    padding-bottom: 45px;

    border-bottom: 1px solid #eee;
}

.search-result-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 28px 12px;
}

.search-comic-card {
    cursor: pointer;
}

.search-comic-card .cover {
    overflow: hidden;

    aspect-ratio: 232 / 300;

    border-radius: 8px;
}

.search-comic-card .cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .2s ease;
}

.search-comic-card:hover .cover img {
    transform: scale(1.03);
}

.search-card-meta {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;

    color: #999;

    font-size: 9px;
}


/* EMPTY RESULT */

.comic-empty-state {
    padding: 60px 20px;

    border: 1px solid #eee;
    border-radius: 12px;

    background: #fafafa;

    text-align: center;
}

.comic-empty-state strong {
    display: block;

    font-size: 20px;
}

.comic-empty-state p {
    margin: 9px 0 18px;

    color: #888;

    font-size: 12px;
}

.comic-empty-state a {
    display: inline-flex;

    align-items: center;

    min-height: 42px;

    padding: 0 18px;

    border-radius: 999px;

    background: #111;

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}


/* TABLET */

@media (max-width: 1000px) {

    .search-result-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 760px) {

    .catalog-tools {
        padding: 20px 0;
    }

    .comic-search-box {
        height: 48px;
    }

    .comic-search-box button {
        min-width: 74px;

        padding: 0 13px;
    }

    .catalog-category-filter {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 5px;

        scrollbar-width: none;
    }

    .catalog-category-filter::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter-pill {
        flex: none;
    }

    .search-result-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 10px;
    }

}
/* =====================================================
   FORCE SEARCH + FILTER TOONLOKA
   ===================================================== */

.catalog-tools {
    width: min(1200px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 28px 0 30px !important;
}

.comic-search-form {
    width: 100% !important;
    margin: 0 !important;
}

.comic-search-box {
    display: flex !important;
    align-items: center !important;

    width: min(760px, 100%) !important;
    height: 54px !important;

    margin: 0 auto !important;

    padding-left: 18px !important;

    border: 1px solid #ddd !important;
    border-radius: 999px !important;

    background: #fff !important;

    overflow: hidden !important;
}

.comic-search-box:focus-within {
    border-color: #00d564 !important;

    box-shadow:
        0 0 0 4px
        rgba(0, 213, 100, .10) !important;
}

.search-icon {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin-right: 10px !important;

    color: #888 !important;

    font-size: 20px !important;
}

.comic-search-box input[type="search"] {
    flex: 1 !important;

    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;

    padding: 0 5px !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    font-size: 13px !important;
}

.comic-search-box button {
    align-self: stretch !important;

    min-width: 95px !important;

    padding: 0 22px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #111 !important;
    color: #fff !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    cursor: pointer !important;
}

.comic-search-box button:hover {
    background: #00d564 !important;
    color: #07180e !important;
}


/* KATEGORI */

.catalog-category-filter {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-wrap: wrap !important;

    gap: 8px !important;

    margin-top: 18px !important;
}

.catalog-filter-pill {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    min-height: 40px !important;

    padding: 0 17px !important;

    border-radius: 999px !important;

    background: #f2f2f2 !important;

    color: #111 !important;

    font-size: 11px !important;
    font-weight: 700 !important;

    text-decoration: none !important;
}

.catalog-filter-pill:hover {
    background: #e5e5e5 !important;
}

.catalog-filter-pill.active {
    background: #111 !important;
    color: #fff !important;
}


/* INFO HASIL */

.active-filter-info {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: min(760px, 100%) !important;

    margin: 16px auto 0 !important;

    padding: 11px 15px !important;

    border-radius: 8px !important;

    background: #f7f7f7 !important;

    font-size: 11px !important;
}

.active-filter-info a {
    color: #00a950 !important;

    font-weight: 800 !important;

    text-decoration: none !important;
}


/* HASIL SEARCH */

.search-result-section {
    padding-top: 30px !important;
    padding-bottom: 45px !important;

    border-bottom: 1px solid #eee !important;
}

.search-result-grid {
    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;

    gap: 28px 12px !important;
}

.search-comic-card {
    cursor: pointer !important;
}

.search-comic-card .cover {
    overflow: hidden !important;

    aspect-ratio: 232 / 300 !important;

    border-radius: 8px !important;
}

.search-comic-card .cover img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

.search-card-meta {
    display: flex !important;

    justify-content: space-between !important;

    gap: 10px !important;

    margin-top: 7px !important;

    color: #999 !important;

    font-size: 9px !important;
}


/* MOBILE */

@media (max-width: 760px) {

    .catalog-tools {
        width: calc(100% - 28px) !important;
    }

    .comic-search-box {
        height: 48px !important;
    }

    .comic-search-box button {
        min-width: 75px !important;
        padding: 0 13px !important;
    }

    .catalog-category-filter {
        justify-content: flex-start !important;

        flex-wrap: nowrap !important;

        overflow-x: auto !important;
    }

    .catalog-filter-pill {
        flex: none !important;
    }

    .search-result-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}
