/* Webnovel theme — homepage layouts (1.65.0). Colours, fonts and corners all
   come from Site Look, so every layout follows the chosen style. */

.wn-home { padding-bottom: 56px; }
.wn-home__inner { padding-top: 24px; }
.wn-hl { margin: 0 0 40px; }
.wn-hl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.wn-hl__title { margin: 0; font: 800 clamp(18px, 1.6vw, 22px)/1.25 var(--font-ui); color: var(--text-primary); letter-spacing: -.01em; }
.wn-hl__more { flex: none; font: 600 13px/1 var(--font-ui); color: var(--text-secondary); text-decoration: none; }
.wn-hl__more:hover { color: var(--wn-accent-text); }

/* Shared bits */
.wn-hl-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bg-surface-elevated); color: var(--text-muted); font: 800 28px var(--font-ui); }
.wn-hl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: calc(10px * var(--wn-round, 1)); background: var(--wn-accent); color: var(--wn-on-accent) !important; font: 700 14px/1 var(--font-ui); text-decoration: none; border: 1px solid var(--wn-accent); transition: background .15s, transform .15s; }
.wn-hl-btn:hover { background: var(--wn-accent-hover); }
.wn-hl-btn--ghost { background: transparent; color: var(--text-primary) !important; border-color: var(--border-card); }
.wn-hl-btn--ghost:hover { background: var(--bg-hover); }
.wn-hl-btn--light { background: #fff; color: #111 !important; border-color: #fff; padding: 8px 16px; font-size: 13px; }
.wn-hl-btn--warn { background: var(--accent-gold, #f59e0b); border-color: var(--accent-gold, #f59e0b); color: #1a1205 !important; }
.wn-hl-status { display: inline-block; padding: 3px 8px; border-radius: calc(999px * var(--wn-round, 1)); font: 700 11px/1.2 var(--font-ui); background: rgba(56, 189, 248, .16); color: #38bdf8; }
.wn-hl-status--completed { background: rgba(34, 197, 94, .16); color: #22c55e; }
.wn-hl-status--hiatus, .wn-hl-status--dropped { background: rgba(245, 158, 11, .16); color: #f59e0b; }
[data-theme="light"] .wn-hl-status { color: #0369a1; }
[data-theme="light"] .wn-hl-status--completed { color: #15803d; }
.wn-hl-stars { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 var(--font-ui); color: var(--text-secondary); }
.wn-hl-stars > span { position: relative; display: inline-block; width: 66px; height: 12px; background: linear-gradient(90deg, #fbbf24 var(--r), rgba(148, 163, 184, .35) var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 12'%3E%3Cpath d='M6 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L6 9.1 2.3 11.2l.9-4.1L0 4.3l4.2-.4zM19.5 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1-3.7-2.1-3.7 2.1.9-4.1-3.2-2.8 4.2-.4zM33 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L33 9.1l-3.7 2.1.9-4.1L27 4.3l4.2-.4zM46.5 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1-3.7-2.1-3.7 2.1.9-4.1-3.2-2.8 4.2-.4zM60 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L60 9.1l-3.7 2.1.9-4.1L54 4.3l4.2-.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 12'%3E%3Cpath d='M6 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L6 9.1 2.3 11.2l.9-4.1L0 4.3l4.2-.4zM19.5 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1-3.7-2.1-3.7 2.1.9-4.1-3.2-2.8 4.2-.4zM33 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L33 9.1l-3.7 2.1.9-4.1L27 4.3l4.2-.4zM46.5 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1-3.7-2.1-3.7 2.1.9-4.1-3.2-2.8 4.2-.4zM60 0l1.8 3.9 4.2.4-3.2 2.8.9 4.1L60 9.1l-3.7 2.1.9-4.1L54 4.3l4.2-.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.wn-hl-new { display: inline-block; padding: 2px 6px; border-radius: calc(4px * var(--wn-round, 1)); background: rgba(var(--wn-accent-rgb), .16); color: var(--wn-accent-text); font: 700 10px/1.3 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }

/* Chapter lines */
.wn-hl-chs { display: flex; flex-direction: column; }
.wn-hl-ch { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--border-subtle); color: var(--text-primary); text-decoration: none; font: 600 12.5px/1.3 var(--font-ui); min-width: 0; }
.wn-hl-ch:first-child { border-top: 0; }
.wn-hl-ch__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-hl-ch__time { margin-left: auto; flex: none; color: var(--text-muted, var(--text-secondary)); font-weight: 500; font-size: 11.5px; }
.wn-hl-ch.is-locked .wn-hl-ch__name { color: var(--wn-accent-text); }
.wn-hl-ch:hover .wn-hl-ch__name { text-decoration: underline; }
.wn-hl-lock { flex: none; color: var(--wn-accent-text); }

/* Tiles, rails, grids */
.wn-hl-tile { min-width: 0; }
.wn-hl-tile__cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(10px * var(--wn-round, 1)); background: var(--bg-surface-elevated); }
.wn-hl-tile__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.wn-hl-tile:hover .wn-hl-tile__cover img { transform: scale(1.04); }
.wn-hl-tile__cover .wn-hl-status { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }
.wn-hl-tile__rank { position: absolute; left: 6px; bottom: -6px; font: 900 64px/1 var(--font-ui); color: #fff; -webkit-text-stroke: 2px var(--wn-accent); text-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.wn-hl-tile__badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: calc(6px * var(--wn-round, 1)); background: var(--wn-accent); color: var(--wn-on-accent); font: 700 11px var(--font-ui); }
.wn-hl-tile__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 2px; color: var(--text-primary); font: 700 13.5px/1.35 var(--font-ui); text-decoration: none; }
.wn-hl-tile__title:hover { color: var(--wn-accent-text); }
.wn-hl-tile__sub { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-secondary); font: 500 12px/1.3 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.wn-hl-rail { position: relative; }
.wn-hl-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.wn-hl-rail__track::-webkit-scrollbar { display: none; }
.wn-hl-rail__track > * { scroll-snap-align: start; }
.wn-hl-rail__btn { position: absolute; top: 36%; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-card); background: var(--bg-surface-elevated); color: var(--text-primary); font: 700 22px/1 var(--font-ui); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .2s; }
.wn-hl-rail:hover .wn-hl-rail__btn, .wn-hl-rail__btn:focus-visible { opacity: 1; }
.wn-hl-rail__btn--prev { left: -14px; }
.wn-hl-rail__btn--next { right: -14px; }
.wn-hl-rail__btn[disabled] { visibility: hidden; }

/* Update cards (cover + chapters) */
.wn-hl-updates { display: grid; gap: 14px; }
.wn-hl-updates--cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wn-hl-updates--cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wn-hl-updates--covers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
.wn-hl-updates--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.wn-hl-ucard { display: flex; gap: 12px; padding: 12px; min-width: 0; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(12px * var(--wn-round, 1)); }
.wn-hl-ucard__cover { flex: none; width: 86px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(8px * var(--wn-round, 1)); background: var(--bg-surface-elevated); }
.wn-hl-updates--cards2 .wn-hl-ucard__cover { width: 96px; }
.wn-hl-ucard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-ucard__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wn-hl-ucard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; color: var(--text-primary); font: 700 14px/1.3 var(--font-ui); text-decoration: none; }
.wn-hl-ucard__stars { margin: 0 0 4px; }
.wn-hl-cover-card { min-width: 0; }
.wn-hl-cover-card__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(8px * var(--wn-round, 1)); background: var(--bg-surface-elevated); }
.wn-hl-cover-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.wn-hl-cover-card:hover img { transform: scale(1.03); }
.wn-hl-cover-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 9px 0 6px; text-align: center; color: var(--text-primary); font: 700 14px/1.3 var(--font-ui); text-decoration: none; min-height: 2.6em; }
.wn-hl-cover-card .wn-hl-ch { padding: 5px 2px; }
.wn-hl-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); min-width: 0; }
.wn-hl-row__cover { flex: none; width: 64px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(6px * var(--wn-round, 1)); background: var(--bg-surface-elevated); }
.wn-hl-row__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-row__body { min-width: 0; }
.wn-hl-row__title { display: block; color: var(--text-primary); font: 700 15px/1.3 var(--font-ui); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-row__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0; font: 500 12.5px/1.3 var(--font-ui); color: var(--text-secondary); }
.wn-hl-row__meta a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.wn-hl-row__blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--text-secondary); font: 400 13px/1.45 var(--font-ui); }
.wn-hl-chcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wn-hl-chcard { display: flex; gap: 10px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(10px * var(--wn-round, 1)); min-width: 0; }
.wn-hl-chcard > div { min-width: 0; flex: 1; }
.wn-hl-chcard__series { display: block; color: var(--text-primary); font: 700 14px/1.3 var(--font-ui); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-chcard__ch { display: block; margin: 8px 0; padding: 7px 10px; border: 1px solid rgba(var(--wn-accent-rgb), .35); border-radius: calc(6px * var(--wn-round, 1)); color: var(--wn-accent-text); font: 600 12.5px/1.3 var(--font-ui); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-chcard__meta { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--text-secondary); font: 500 12px var(--font-ui); }
.wn-hl-pages { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; }
.wn-hl-pages a { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-card); border-radius: calc(8px * var(--wn-round, 1)); color: var(--text-primary); text-decoration: none; font: 600 13px var(--font-ui); }
.wn-hl-pages a.is-on { background: var(--wn-accent); border-color: var(--wn-accent); color: var(--wn-on-accent); }

/* Heroes */
.wn-hero { position: relative; margin: 0 0 32px; }
.wn-hero__slide { display: none; position: relative; }
.wn-hero__slide.is-on { display: block; animation: wn-hl-fade .5s ease; }
@keyframes wn-hl-fade { from { opacity: 0; } to { opacity: 1; } }
.wn-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.wn-hero__inner { position: relative; display: flex; gap: 32px; align-items: center; }
.wn-hero__cover { flex: none; display: block; width: 210px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(12px * var(--wn-round, 1)); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); background: var(--bg-surface-elevated); }
.wn-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hero__text { min-width: 0; max-width: 680px; }
.wn-hero__eyebrow { margin: 0 0 8px; color: var(--wn-accent-text); font: 800 11.5px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.wn-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wn-hero__chips > span:not(.wn-hl-status) { padding: 4px 10px; border: 1px solid var(--border-card); border-radius: calc(6px * var(--wn-round, 1)); background: rgba(255, 255, 255, .04); color: var(--text-primary); font: 600 12px var(--font-ui); }
.wn-hero__title { margin: 0 0 8px; font: 800 clamp(24px, 3.2vw, 40px)/1.12 var(--font-ui); letter-spacing: -.02em; }
.wn-hero__title a { color: var(--text-primary); text-decoration: none; }
.wn-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; color: var(--text-secondary); font: 600 13px var(--font-ui); }
.wn-hero__blurb { margin: 0 0 18px; color: var(--text-secondary); font: 400 15px/1.6 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wn-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.wn-hero__dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 0; }
.wn-hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--border-active); cursor: pointer; transition: width .25s, background .25s; }
.wn-hero__dots button.is-on { width: 24px; background: var(--wn-accent); }
.wn-hero__progress { display: block; height: 3px; background: transparent; overflow: hidden; }
.wn-hero__progress i { display: block; height: 100%; width: 0; background: var(--wn-accent); }
.wn-hero.is-playing .wn-hero__progress i { animation: wn-hl-progress var(--wn-hl-delay, 7s) linear; }
@keyframes wn-hl-progress { from { width: 0; } to { width: 100%; } }

/* art: big artwork, full width */
.wn-hero--art .wn-hero__slide { min-height: 440px; }
.wn-hero--art .wn-hero__bg::after, .wn-hero--banner .wn-hero__bg::after, .wn-hero--blur .wn-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-base) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .15) 100%), linear-gradient(0deg, var(--bg-base) 0%, transparent 40%); }
.wn-hero--art .wn-hero__bg { filter: saturate(1.1); }
.wn-hero--art .wn-hero__inner { max-width: var(--wn-site-width, 1240px); margin: 0 auto; padding: 56px 24px 40px; min-height: 440px; box-sizing: border-box; }
.wn-hero--art .wn-hero__cover { width: 230px; }
.wn-hero--art .wn-hero__dots { position: absolute; right: max(24px, calc((100% - var(--wn-site-width, 1240px)) / 2 + 24px)); bottom: 22px; margin: 0; }
.wn-hero--art .wn-hero__progress { position: absolute; left: 0; right: 0; bottom: 0; }
/* banner: wide strip, cover small */
.wn-hero--banner { margin-bottom: 8px; }
.wn-hero--banner .wn-hero__bg { filter: blur(2px) brightness(.75); transform: scale(1.03); }
.wn-hero--banner .wn-hero__bg::after { background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .55) 100%); }
.wn-hero--banner .wn-hero__inner { max-width: var(--wn-site-width, 1240px); margin: 0 auto; padding: 30px 24px; min-height: 260px; box-sizing: border-box; align-items: flex-start; }
.wn-hero--banner .wn-hero__cover { width: 140px; }
.wn-hero--banner .wn-hero__title { font-size: clamp(22px, 2.4vw, 30px); }
.wn-hero--banner .wn-hero__title a, .wn-hero--banner .wn-hero__blurb, .wn-hero--banner .wn-hero__meta { color: #fff; }
.wn-hero--banner .wn-hero__blurb { color: rgba(255, 255, 255, .82); font-size: 14px; }
.wn-hero--banner .wn-hero__eyebrow, .wn-hero--banner .wn-hero__actions { display: none; }
.wn-hero--banner .wn-hero__dots { position: absolute; right: 24px; bottom: 14px; margin: 0; }
.wn-hero--banner .wn-hero__progress { height: 3px; background: rgba(255, 255, 255, .1); }
/* blur: blurred cover backdrop inside the container */
.wn-hero--blur .wn-hero__main { overflow: hidden; border-radius: calc(16px * var(--wn-round, 1)); }
.wn-hero--blur .wn-hero__bg { filter: blur(28px) brightness(.6) saturate(1.2); transform: scale(1.2); }
.wn-hero--blur .wn-hero__bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .1), var(--bg-base) 100%); }
.wn-hero--blur .wn-hero__inner { padding: 34px 34px 30px; min-height: 280px; }
.wn-hero--blur .wn-hero__cover { width: 170px; transform: rotate(-2deg); }
.wn-hero--blur .wn-hero__title a, .wn-hero--blur .wn-hero__meta { color: #fff; }
.wn-hero--blur .wn-hero__blurb { color: rgba(255, 255, 255, .8); }
.wn-hero--blur .wn-hero__dots { position: absolute; bottom: 14px; left: 0; right: 0; }
/* card: contained card */
.wn-hero--card .wn-hero__main, .wn-hero--thumbs .wn-hero__main { padding: 22px 24px 16px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(16px * var(--wn-round, 1)); }
.wn-hero--card .wn-hero__cover { width: 150px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wn-hero--card .wn-hero__title { font-size: clamp(22px, 2.2vw, 30px); }
.wn-hero--card .wn-hero__dots { justify-content: flex-start; padding-left: 4px; }
.wn-hero--with-side { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: 18px; align-items: stretch; }
.wn-hero__side { padding: 18px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(16px * var(--wn-round, 1)); }
.wn-hero__side .wn-hl__title { margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--wn-accent); font-size: 18px; }
/* thumbs: card + strip of covers */
.wn-hero--thumbs .wn-hero__cover { width: 140px; }
.wn-hero__thumbs { display: flex; gap: 10px; margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; }
.wn-hero__thumb { flex: none; width: 66px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: calc(8px * var(--wn-round, 1)); background: var(--bg-surface-elevated); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.wn-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hero__thumb.is-on, .wn-hero__thumb:hover { opacity: 1; border-color: var(--wn-accent); }
.wn-hero--thumbs .wn-hero__progress { margin-top: 12px; background: var(--border-subtle); }
/* coverflow */
.wn-hero--coverflow { overflow: hidden; padding: 18px 0 6px; }
.wn-hero__flow-track { display: flex; align-items: center; gap: 18px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.wn-hero__flow-item { position: relative; flex: none; width: 200px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(14px * var(--wn-round, 1)); background: var(--bg-surface-elevated); opacity: .45; transform: scale(.82); transition: transform .5s, opacity .5s, box-shadow .5s; text-decoration: none; }
.wn-hero__flow-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hero__flow-item.is-center { opacity: 1; transform: scale(1.08); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); z-index: 2; }
.wn-hero__flow-item.is-near { opacity: .75; transform: scale(.92); }
.wn-hero__flow-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); color: #fff; font: 700 14px/1.25 var(--font-ui); text-align: center; opacity: 0; transition: opacity .3s; }
.wn-hero__flow-item.is-center .wn-hero__flow-title { opacity: 1; }
.wn-hero--coverflow .wn-hl-rail__btn { opacity: 1; top: 42%; }
.wn-hero--coverflow .wn-hl-rail__btn--prev { left: 8px; }
.wn-hero--coverflow .wn-hl-rail__btn--next { right: 8px; }

/* Tabs and chips */
.wn-hl-tabs__bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.wn-hl-tabs__bar button, .wn-hl-chips button { padding: 8px 14px; border: 1px solid var(--border-card); border-radius: calc(8px * var(--wn-round, 1)); background: transparent; color: var(--text-secondary); font: 700 13px/1 var(--font-ui); cursor: pointer; }
.wn-hl-tabs__bar button.is-on { background: var(--wn-accent); border-color: var(--wn-accent); color: var(--wn-on-accent); }
.wn-hl-tabs__bar--pill { justify-content: flex-end; margin-top: -48px; }
.wn-hl-tabs--underline .wn-hl-tabs__bar { gap: 20px; border-bottom: 1px solid var(--border-subtle); }
.wn-hl-tabs--underline .wn-hl-tabs__bar button { padding: 10px 2px; border: 0; border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; border-bottom: 2px solid transparent; }
.wn-hl-tabs--underline .wn-hl-tabs__bar button.is-on { background: none; color: var(--text-primary); border-bottom-color: var(--wn-accent); }
.wn-hl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.wn-hl-chips button { flex: none; padding: 6px 12px; font-size: 12px; border-radius: calc(999px * var(--wn-round, 1)); }
.wn-hl-chips button.is-on { color: var(--text-primary); border-color: var(--text-secondary); }

/* Rankings */
.wn-hl--ranking .wn-hl-tile__cover { margin-left: 22px; }
.wn-hl-ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wn-hl-rank { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(12px * var(--wn-round, 1)); text-decoration: none; min-width: 0; }
.wn-hl-rank__n { flex: none; width: 34px; text-align: center; font: 800 26px/1 var(--font-ui); color: var(--text-muted, var(--text-secondary)); }
.wn-hl-rank:nth-child(-n+3) .wn-hl-rank__n { color: var(--wn-accent-text); }
.wn-hl-rank__cover { flex: none; width: 40px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(6px * var(--wn-round, 1)); }
.wn-hl-rank__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wn-hl-rank__body strong { color: var(--text-primary); font: 700 14px/1.3 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-rank__body small { color: var(--text-secondary); font: 500 12px var(--font-ui); }

/* Discover: trending + genres/tags */
.wn-hl--discover { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; }
.wn-hl-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.wn-hl-mini { display: flex; gap: 10px; text-decoration: none; min-width: 0; }
.wn-hl-mini__cover { flex: none; width: 40px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(4px * var(--wn-round, 1)); }
.wn-hl-mini__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-mini strong { display: block; color: var(--text-primary); font: 700 13px/1.3 var(--font-ui); }
.wn-hl-mini small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--text-secondary); font: 400 12px/1.4 var(--font-ui); }
.wn-hl-discover__side .wn-hl__title { margin: 0 0 12px; }
.wn-hl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.wn-hl-tag { padding: 4px 10px; border-radius: calc(4px * var(--wn-round, 1)); background: rgba(var(--wn-accent-rgb), .12); color: var(--wn-accent-text); font: 600 12px var(--font-ui); text-decoration: none; }
.wn-hl-tag:hover { background: rgba(var(--wn-accent-rgb), .22); }

/* Collections */
.wn-hl-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wn-hl-col { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 0; min-height: 250px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(14px * var(--wn-round, 1)); text-decoration: none; transition: border-color .2s, transform .2s; }
.wn-hl-col:hover { border-color: rgba(var(--wn-accent-rgb), .55); transform: translateY(-2px); }
.wn-hl-col__name { color: var(--text-primary); font: 800 16px/1.2 var(--font-ui); display: flex; justify-content: space-between; }
.wn-hl-col__desc { color: var(--text-secondary); font: 400 12px/1.4 var(--font-ui); }
.wn-hl-col__count { color: var(--text-primary); font: 700 11.5px var(--font-ui); }
.wn-hl-col__fan { position: relative; display: block; height: 150px; margin-top: auto; }
.wn-hl-col__c { position: absolute; bottom: -12px; width: 44%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(8px * var(--wn-round, 1)); box-shadow: 0 10px 22px rgba(0, 0, 0, .4); transition: transform .3s; }
.wn-hl-col__c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-col__c--1 { left: 4%; transform: rotate(-8deg); z-index: 1; }
.wn-hl-col__c--2 { left: 28%; bottom: -4px; z-index: 2; }
.wn-hl-col__c--3 { left: 52%; transform: rotate(8deg); z-index: 1; }
.wn-hl-col:hover .wn-hl-col__c--1 { transform: rotate(-12deg) translateX(-4px); }
.wn-hl-col:hover .wn-hl-col__c--3 { transform: rotate(12deg) translateX(4px); }

/* Editor's pick */
.wn-hl-pick { display: flex; gap: 28px; padding: 24px; background: linear-gradient(135deg, rgba(var(--wn-accent-rgb), .12), transparent 60%), var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(16px * var(--wn-round, 1)); }
.wn-hl-pick__cover { flex: none; width: 200px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(12px * var(--wn-round, 1)); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.wn-hl-pick__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-pick__body { min-width: 0; flex: 1; }
.wn-hl-pick__title { margin: 0 0 10px; font: 800 clamp(20px, 2vw, 28px)/1.2 var(--font-ui); }
.wn-hl-pick__title a { color: var(--text-primary); text-decoration: none; }
.wn-hl-pick__blurb { margin: 0 0 14px; color: var(--text-secondary); font: 400 14.5px/1.6 var(--font-ui); }
.wn-hl-pick .wn-hl-chs { max-width: 520px; margin: 0 0 16px; }

/* Advance chapters */
.wn-hl-advs { display: flex; flex-direction: column; }
.wn-hl-adv { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); text-decoration: none; }
.wn-hl-adv__cover { flex: none; width: 34px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: calc(4px * var(--wn-round, 1)); }
.wn-hl-adv__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-hl-adv__body { display: flex; flex-direction: column; min-width: 0; }
.wn-hl-adv__body strong { color: var(--text-primary); font: 700 14px/1.3 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-hl-adv__body small { color: var(--text-secondary); font: 500 12.5px var(--font-ui); }
.wn-hl-adv__when { margin-left: auto; flex: none; color: var(--wn-accent-text); font: 600 12px var(--font-ui); }

/* Community */
.wn-hl-ccs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.wn-hl-cc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: calc(14px * var(--wn-round, 1)); }
.wn-hl-cc strong { display: block; color: var(--text-primary); font: 700 15px var(--font-ui); }
.wn-hl-cc small { display: block; margin-top: 4px; color: var(--text-secondary); font: 400 13px/1.45 var(--font-ui); }
.wn-hl-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-radius: calc(12px * var(--wn-round, 1)); background: #5865f2; color: #fff; text-decoration: none; }
.wn-hl-banner strong { display: block; font: 800 13px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.wn-hl-banner small { display: block; font: 400 13px var(--font-ui); opacity: .85; }

/* Announcements */
.wn-hl-newslist, .wn-hero__side { display: flex; flex-direction: column; }
.wn-hl-news { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: calc(10px * var(--wn-round, 1)); background: var(--bg-surface); border: 1px solid var(--border-subtle); margin: 0 0 8px; text-decoration: none; }
.wn-hl-news__title { color: var(--text-primary); font: 600 14px/1.35 var(--font-ui); }
.wn-hl-news__time { flex: none; color: var(--text-muted, var(--text-secondary)); font: 500 12px var(--font-ui); }

/* Screens */
@media (max-width: 1100px) {
    .wn-hl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wn-hl-rail__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
    .wn-hl-updates--cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wn-hl-updates--covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wn-hl-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wn-hl-chcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wn-hero--with-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .wn-home__inner { padding-top: 16px; }
    .wn-hl { margin-bottom: 30px; }
    .wn-hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
    .wn-hl-updates--covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .wn-hl-updates--covers .wn-hl-new { display: none; }
    .wn-hl-rail__track { grid-auto-columns: 38%; gap: 10px; }
    .wn-hl-rail__btn { display: none; }
    .wn-hl-updates--cards4, .wn-hl-updates--cards2, .wn-hl-updates--compact, .wn-hl-chcards, .wn-hl-ranks, .wn-hl-minis { grid-template-columns: minmax(0, 1fr); }
    .wn-hl--discover { grid-template-columns: 1fr; gap: 12px; }
    .wn-hero__inner { gap: 16px; align-items: flex-start; }
    .wn-hero__cover, .wn-hero--art .wn-hero__cover, .wn-hero--card .wn-hero__cover, .wn-hero--thumbs .wn-hero__cover { width: 104px; }
    .wn-hero--banner .wn-hero__cover { width: 88px; }
    .wn-hero--art .wn-hero__slide, .wn-hero--art .wn-hero__inner { min-height: 0; }
    .wn-hero--art .wn-hero__inner { padding: 28px 16px 44px; }
    .wn-hero--banner .wn-hero__inner { padding: 20px 16px 30px; min-height: 0; }
    .wn-hero--blur .wn-hero__inner { padding: 20px 16px 34px; min-height: 0; }
    .wn-hero--card .wn-hero__main, .wn-hero--thumbs .wn-hero__main { padding: 16px; }
    .wn-hero__blurb { -webkit-line-clamp: 3; font-size: 13.5px; }
    .wn-hero__actions .wn-hl-btn { padding: 10px 14px; font-size: 13px; }
    .wn-hero__flow-item { width: 150px; }
    .wn-hl-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wn-hl-col { min-height: 210px; padding: 12px 12px 0; }
    .wn-hl-col__desc { display: none; }
    .wn-hl-pick { flex-direction: column; gap: 16px; padding: 16px; }
    .wn-hl-pick__cover { width: 140px; }
    .wn-hl-tabs__bar--pill { justify-content: flex-start; margin-top: 0; }
    .wn-hl-tile__rank { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .wn-hero__slide.is-on, .wn-hero__flow-track, .wn-hero__flow-item { animation: none; transition: none; }
}

/* Homepage sidebar widgets as a section (1.68.2) */
.wn-hl-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.wn-hl-widgets .wt-sidebar-widget { margin: 0; }

/* 1.74.2 — early access grouped by tier */
.wn-hl-advs--tiered { gap: 14px; }
.wn-hl-advgroup { display: flex; flex-direction: column; }
.wn-hl-advgroup__head { margin: 0 0 2px; }
.wn-hl-chs .wn-tier-chip { margin-left: 6px; font-size: 10.5px; padding: 1px 7px; }
