/* 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) */
.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:28px}
.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:26px}
.wt-nav a{font-family:var(--wt-head);font-size:18px;font-weight:700;text-transform:uppercase;color:var(--wt-mute)}
.wt-nav a.on,.wt-nav a:hover{color:var(--wt-ink)}
.wt-right{margin-left:auto;display:flex;gap:10px;align-items:center}
.wt-search{display:flex;align-items:center;height:38px;border-radius:64px;background:var(--wt-chip);padding:0 6px 0 14px}
.wt-search input{border:0;background:transparent;outline:0;font:500 13px var(--wt-body);width:150px;color:var(--wt-ink)}
.wt-search button{border:0;background:transparent;font-size:15px;cursor:pointer;width:26px;height:26px;color:var(--wt-ink)}
.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)}
#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{height:48px;padding:0 20px;border-radius:70px;background:var(--wt-chip);font:600 14px var(--wt-body);display:inline-flex;align-items:center;border:0;cursor:pointer;color:var(--wt-ink);white-space:nowrap}
.wt-tab.on{background:var(--wt-ink);color:#fff}
.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:10px}
  .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:18px;border-bottom:1px solid var(--wt-line)}
  .wt-nav a{font-size:15px}
  .wt-search{display:none}
  .wt-right .wt-btn{height:34px;padding:0 12px;font-size:12px}
  .wt-right .wt-btn.soft{display:none}
  .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}
  .wt-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width: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}
}
