/* Ryuga web, Webtoon-style layout (plan: design/web-webtoon/KE-HOACH.md). Brand tokens come from brand.css.
   Every class is prefixed wt- so this file never fights style.css (play.html / story.html keep their own look). */
:root{--wt-green:#00DC64;--wt-green-t:#00A84C;--wt-ink:#121212;--wt-mute:#8C8C8C;--wt-chip:#F3F3F3;--wt-foot:#F5F5F5;--wt-line:#E6E6E6;
  --wt-head:'Sora',system-ui,sans-serif;--wt-body:'Manrope',system-ui,sans-serif;--wt-wrap:1200px;--wt-gap:10px}
.wt *{box-sizing:border-box}
body.wt{margin:0;background:#fff;color:var(--wt-ink);font-family:var(--wt-body);-webkit-font-smoothing:antialiased}
.wt a{color:inherit;text-decoration:none}
.wt-wrap{width:var(--wt-wrap);max-width:100%;margin:0 auto}

/* header (header.js) — BOC.md muc 1 */
.wt-header{height:109px;border-bottom:1px solid var(--wt-line);background:#fff;position:relative}
.wt-header .wt-wrap{height:100%;display:flex;align-items:center;gap:32px}
.wt-logo{display:flex;align-items:center;gap:10px;flex:none}
.wt-logo img{width:56px;height:56px;border-radius:14px;display:block}
.wt-logo b{font-family:var(--wt-head);font-weight:800;font-size:26px;letter-spacing:-.02em}
.wt-logo b i{font-style:normal;color:var(--wt-green)}
.wt-nav{display:flex;gap:28px}
.wt-nav a{font-family:var(--wt-head);font-size:15px;line-height:22px;font-weight:700;text-transform:uppercase;color:#8C8C8C}
.wt-nav a.on,.wt-nav a:hover{color:#000}
.wt-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.wt-search{display:none;align-items:center;height:38px;border-radius:64px;background:#F3F4F5;padding:0 14px}
.wt-search.open{display:flex}
.wt-search input{border:0;background:transparent;outline:0;font:500 13px var(--wt-body);width:170px;color:var(--wt-ink)}
.wt-sbtn,.wt-mbtn{width:38px;height:38px;border-radius:50%;border:0;background:#F3F3F3;color:#000;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;flex:none}
.wt-mbtn{display:none;background:transparent}
.wt-login{height:38px;padding:0 16px;border-radius:64px;background:#F3F4F5;color:#000;font:700 13px var(--wt-body);display:inline-flex;align-items:center;white-space:nowrap}
.wt-btn{height:38px;padding:0 18px;border-radius:64px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;border:0;cursor:pointer;font-family:var(--wt-body);white-space:nowrap}
.wt-btn.dark{background:var(--wt-ink);color:#fff}.wt-btn.soft{background:var(--wt-chip);color:var(--wt-ink)}
.wt-btn.go{background:var(--wt-green);color:var(--wt-ink)}
/* sub tab bar under the header on Genres / Ranking: UPPERCASE 16/600, 60px */
.wt-snb{border-bottom:1px solid var(--wt-line);background:#fff}
.wt-snb .wt-wrap{display:flex;gap:28px;height:60px;align-items:stretch;overflow-x:auto;scrollbar-width:none}
.wt-snb .wt-wrap::-webkit-scrollbar{display:none}
.wt-snb a{flex:none;display:flex;align-items:center;height:60px;font:600 16px var(--wt-body);text-transform:uppercase;color:#242424;border-bottom:3px solid transparent;box-sizing:border-box;padding-top:3px;white-space:nowrap}
.wt-snb a.on{color:#000;border-bottom-color:#000}
.wt-sub{display:flex;gap:6px;margin-bottom:16px}
.wt-rk .wt-info{align-items:flex-start}
.wt-chg{font-size:14px;font-weight:600;color:#8C8C8C;margin-top:3px;white-space:nowrap}
.wt-chg.up{color:#03AA5A}
.wt-note{color:var(--wt-mute);font-size:13px;margin:-6px 0 14px}
#authSlot:empty{display:none}

/* featured banner */
.wt-hero{margin:24px auto 0;display:grid;grid-template-columns:232px minmax(0,1fr);gap:28px;align-items:center;background:var(--wt-ink);color:#fff;border-radius:6px;padding:24px;overflow:hidden}
.wt-hero img{width:232px;aspect-ratio:192/249;object-fit:cover;border-radius:4px;display:block}
.wt-hero .k{font-size:13px;color:var(--wt-green);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.wt-hero h1{font-family:var(--wt-head);font-size:40px;font-weight:800;line-height:1.1;margin:8px 0 10px}
.wt-hero p{color:#cfcfcf;font-size:15px;line-height:1.5;max-width:560px;margin:0}
.wt-hero .row{display:flex;gap:10px;margin-top:18px;align-items:center}
.wt-age{display:inline-block;border:1px solid #777;border-radius:3px;padding:1px 6px;font-size:12px;font-weight:700}

/* blocks */
.wt-blk{margin:34px auto 0}
.wt-hd{height:68px;display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:16px}
.wt-hd h2{font-family:var(--wt-head);font-size:22px;font-weight:700;line-height:26px;margin:0}
.wt-hd a{font-size:13px;color:var(--wt-mute)}
.wt-tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.wt-tab{flex:none;height:48px;padding:0 20px;border-radius:70px;background:#F3F3F3;font:600 14px var(--wt-body);display:inline-flex;align-items:center;border:0;cursor:pointer;color:#000;white-space:nowrap}
.wt-tab.on{background:#000;color:#fff}
.wt-soon{text-align:center;font-weight:600}
.wt-grid{display:grid;gap:var(--wt-gap)}
.wt-g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.wt-g6{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:22px}
.wt-empty{color:var(--wt-mute);font-size:14px;padding:30px 0}

/* card: cover, then text under it. Play label = top-right corner of the cover, never over the title text.
   Rank number sits OUTSIDE the cover, left of the title. */
.wt-card{display:block;min-width:0}
.wt-cv{position:relative;overflow:hidden;aspect-ratio:192/249;background:var(--wt-chip);border-radius:4px}
.wt-cv img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s cubic-bezier(.15,0,.2,1)}
.wt-card:hover .wt-cv img{transform:scale(1.04)}
.wt-play{position:absolute;right:6px;top:6px;background:var(--wt-green);color:var(--wt-ink);font-size:11px;font-weight:800;padding:4px 8px;border-radius:64px;line-height:1}
.wt-badge{position:absolute;left:0;top:0;background:var(--wt-ink);color:var(--wt-green);font-size:10px;font-weight:800;padding:3px 6px;text-transform:uppercase}
.wt-info{display:flex;gap:10px;align-items:flex-start;margin-top:8px;min-width:0}
.wt-info .tx{min-width:0;flex:1}
.wt-rank{flex:none;font-family:var(--wt-head);font-weight:800;font-size:40px;line-height:1;color:var(--wt-ink);min-width:24px}
.wt-card .g{font-size:13px;color:var(--wt-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt-card .t{font-size:15px;font-weight:600;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt-card .m{font-size:13px;font-weight:700;color:var(--wt-green-t);margin-top:3px}
.wt-big .t{font-size:18px}

/* footer */
.wt-foot{margin-top:48px;background:var(--wt-foot);padding:36px 0 28px}
.wt-foot .wt-wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.wt-foot .links{display:flex;gap:18px;font-size:14px;color:#242424}
.wt-foot small{color:var(--wt-mute);font-size:12px}
.wt-foot .wt-logo img{width:40px;height:40px;border-radius:10px}

@media (max-width:1240px){.wt-wrap{padding:0 20px}.wt-hero.wt-wrap{padding:24px}}
@media (max-width:900px){.wt-search input{width:90px}.wt-nav{gap:16px}.wt-nav a{font-size:15px}}
/* 390: 3 columns, gap 6, side margin 16 */
@media (max-width:600px){
  :root{--wt-gap:6px}
  .wt-wrap{padding:0 16px}
  .wt-header{height:auto;border:0;padding-bottom:44px}
  .wt-header .wt-wrap{height:64px;gap:4px}
  .wt-logo img{width:40px;height:40px;border-radius:10px}.wt-logo b{font-size:20px}
  .wt-nav{position:absolute;left:0;top:64px;width:100%;padding:0 16px;height:44px;align-items:center;gap:22px;border-bottom:1px solid var(--wt-line);box-sizing:border-box}
  .wt-nav a{font-size:15px;font-weight:700;line-height:44px}
  .wt-sbtn,.wt-mbtn{width:44px;height:44px;background:transparent}
  .wt-mbtn{display:inline-flex}
  .wt-right #authSlot,.wt-right .wt-btn.go{display:none}
  .wt-search.open{position:absolute;left:16px;right:16px;top:116px;z-index:5;height:40px}
  .wt-search input{width:100%}
  .wt-header.menu-open{padding-bottom:100px}
  .wt-header.menu-open .wt-right #authSlot,.wt-header.menu-open .wt-right .wt-btn.go{display:inline-flex;position:absolute;top:120px}
  .wt-header.menu-open .wt-right #authSlot{left:16px}.wt-header.menu-open .wt-right .wt-btn.go{left:110px}
  .wt-snb .wt-wrap{gap:22px}
  .wt-hero,.wt-hero.wt-wrap{grid-template-columns:minmax(0,1fr);padding:16px;gap:14px;margin:16px 16px 0;width:auto}
  .wt-hero img{width:100%;aspect-ratio:3/2;object-position:top}
  .wt-hero h1{font-size:24px}.wt-hero p{font-size:14px}
  .wt-hero .row .wt-btn.go{flex:1;justify-content:center;height:44px;border-radius:4px;font-size:14px}
  .wt-blk{margin-top:22px}
  .wt-hd{height:auto;padding:0 0 12px}.wt-hd h2{font-size:18px}
  #cats.wt-tabs{margin:0 -16px 16px;padding:0 16px}
  .wt-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.wt-tabs::-webkit-scrollbar{display:none}
  .wt-tab{height:34px;padding:0 14px;border-radius:17px;font-size:13px;font-weight:500}
  .wt-g5,.wt-g6{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wt-g6{row-gap:16px}
  .wt-g5 .wt-card:nth-child(n+4){display:none}
  .wt-card .g{font-size:11px}.wt-card .t,.wt-big .t{font-size:13px;line-height:16px}.wt-card .m{font-size:11px}
  .wt-info{gap:5px;margin-top:6px}
  .wt-rank{font-size:26px;min-width:14px}
  .wt-play{font-size:10px;padding:3px 6px;right:4px;top:4px}
  .wt-foot .links{flex-wrap:wrap;font-size:12px;text-transform:uppercase;color:#484848}
}

/* Cover fallback: colored block + title behind every cover; shown alone if the image fails */
.wt-cv[data-t]::before,.wt-cvh[data-t]::before{content:attr(data-t);position:absolute;left:0;right:0;bottom:0;padding:10px;color:#fff;font-family:var(--wt-head);font-weight:800;font-size:15px;line-height:1.15;text-transform:uppercase;word-break:break-word}
.wt-cv img{position:relative;z-index:1}
.wt-cvh{position:relative;display:block;border-radius:4px;overflow:hidden}
.wt-cvh img{position:relative;z-index:1}
.wt-cvh.cv-err{width:232px;aspect-ratio:192/249}
@media (max-width:600px){.wt-cvh.cv-err{width:100%;aspect-ratio:3/2}}
.wt-cv.cv-err img,.wt-cvh.cv-err img{display:none}

/* Get the app (index.html#tai). Store badges are "Coming soon" until app-links.js has real URLs. */
.tai{display:grid;grid-template-columns:minmax(0,1fr) auto 260px;gap:40px;align-items:center;background:var(--wt-chip);border-radius:16px;padding:40px 48px 0;overflow:hidden;scroll-margin-top:16px}
.tai-tx{padding-bottom:40px}
.tai-k{color:var(--wt-green-t);font:800 13px var(--wt-head);text-transform:uppercase;letter-spacing:.06em}
.tai h2{font:800 34px/1.15 var(--wt-head);letter-spacing:-.02em;margin:8px 0 12px}
.tai p{margin:0 0 22px;font-size:16px;line-height:1.55;color:#484848;max-width:480px}
.tai-badges{display:flex;gap:12px;flex-wrap:wrap}
.tai-b{display:inline-flex;flex-direction:column;justify-content:center;min-width:160px;height:56px;padding:0 20px;border-radius:12px;background:var(--wt-ink);color:#fff;font-family:var(--wt-head)}
.tai-b .tai-bk{font-weight:800;font-size:17px;line-height:1.1}
.tai-b .tai-bs{font-size:12px;font-weight:600;opacity:.8}
.tai-b.soon{background:#fff;color:var(--wt-ink);border:1.5px solid var(--wt-line);cursor:default}
.tai-b.soon .tai-bs{color:var(--wt-green-t);opacity:1}
.tai-web{display:inline-block;margin-top:16px;font-weight:700;font-size:14px;text-decoration:underline!important;text-underline-offset:3px}
.tai-qr{display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:40px;text-align:center}
.tai-qr img{width:120px;height:120px;background:#fff;padding:8px;border-radius:12px;display:block}
.tai-qr small{max-width:130px;font-size:12px;color:var(--wt-mute);line-height:1.35}
.tai-ph{align-self:end;width:260px;border:8px solid var(--wt-ink);border-bottom:0;border-radius:36px 36px 0 0;overflow:hidden;background:#fff;height:340px}
.tai-ph img{width:100%;height:auto;display:block}
@media (max-width:600px){
  .tai{grid-template-columns:1fr;gap:20px;padding:24px 16px 0;border-radius:0;text-align:center}
  .tai-tx{padding-bottom:0}
  .tai h2{font-size:24px}
  .tai p{font-size:14px;margin:0 auto 16px}
  .tai-badges{justify-content:center;gap:8px}
  .tai-b{min-width:0;flex:1;height:50px;padding:0 12px}
  .tai-b .tai-bk{font-size:15px}
  .tai-qr{display:none}
  .tai-ph{justify-self:center;width:200px;height:220px;border-width:6px;border-radius:28px 28px 0 0}
}
@media (min-width:601px) and (max-width:900px){.tai{grid-template-columns:minmax(0,1fr) 220px;padding:32px 28px 0}.tai-qr{display:none}.tai-ph{width:220px}}
.wt-header[data-on="home"] .wt-nav a{color:#000}
