/*
Theme Name: Hsnime Pop
Theme URI: https://hsnime.org/
Author: Hsnime
Description: A bright, colourful entertainment and culture magazine theme with manga-panel style highlights.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hsnime-pop
*/
:root{--paper:#FBFBFF;--ink:#1B1530;--muted:#5E5873;--line:#E4E0F2;--sakura:#FF4F8B;--violet:#6C3BFF;--sky:#19B6E8;--lemon:#FFD23F;--mint:#14C38E;--soft:#F3EFFF;--r:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.65 "Figtree",system-ui,sans-serif}
a{color:inherit;text-decoration:none}
a:hover{color:var(--violet)}
:focus-visible{outline:3px solid var(--violet);outline-offset:2px;border-radius:4px}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:"Bricolage Grotesque","Figtree",sans-serif;line-height:1.15;letter-spacing:-.01em;margin:0}
.hp-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.hp-skip:focus{position:fixed;top:8px;left:8px;z-index:99;background:#fff;padding:8px 12px;clip:auto;width:auto;height:auto}

/* header */
.hp-head{background:#fff;border-bottom:3px solid var(--ink);position:sticky;top:0;z-index:50}
.admin-bar .hp-head{top:32px}
@media(max-width:782px){.admin-bar .hp-head{top:0;position:relative}}
.hp-head .hp-wrap{display:flex;align-items:center;gap:24px;min-height:72px}
.hp-logo{display:flex;align-items:center;gap:10px;font:800 28px/1 "Bricolage Grotesque",sans-serif;letter-spacing:-.03em}
.hp-logo .mark{width:38px;height:38px;border:3px solid var(--ink);border-radius:10px;background:var(--sakura);box-shadow:4px 4px 0 var(--ink);display:grid;place-items:center;color:#fff;font-size:20px}
.hp-logo img{max-height:46px;width:auto}
.hp-nav{flex:1}
.hp-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.hp-nav a{display:block;padding:8px 12px;border-radius:999px;font-weight:600;font-size:15.5px}
.hp-nav a:hover,.hp-nav .current-menu-item>a{background:var(--soft);color:var(--violet)}
.hp-tools{display:flex;gap:8px}
.hp-btn{border:2px solid var(--ink);background:#fff;border-radius:999px;height:40px;min-width:40px;padding:0 12px;display:inline-grid;place-items:center;font:700 15px "Figtree",sans-serif;cursor:pointer;color:var(--ink)}
.hp-btn:hover{background:var(--lemon)}
.hp-menu-btn{display:none}
.hp-search{display:none;border-top:2px solid var(--line);background:#fff}
.hp-search.open{display:block}
.hp-search form{display:flex;gap:8px;padding:14px 0}
.hp-search input[type=search]{flex:1;border:2px solid var(--ink);border-radius:999px;padding:10px 18px;font:16px "Figtree",sans-serif}
.hp-search button{border:2px solid var(--ink);background:var(--violet);color:#fff;border-radius:999px;padding:0 20px;font-weight:700;cursor:pointer}
@media(max-width:900px){.hp-menu-btn{display:inline-grid}.hp-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:3px solid var(--ink);padding:10px 20px}.hp-nav.open{display:block}.hp-nav ul{flex-direction:column}.hp-head .hp-wrap{justify-content:space-between}}

/* trending strip */
.hp-trend{background:var(--ink);color:#fff;font-size:14.5px}
.hp-trend .hp-wrap{display:flex;gap:16px;align-items:center;overflow-x:auto;white-space:nowrap;padding-top:10px;padding-bottom:10px;scrollbar-width:none}
.hp-trend b{color:var(--lemon);font-weight:700}
.hp-trend a{opacity:.92}
.hp-trend a:hover{color:var(--lemon);opacity:1}
.hp-trend a+a:before{content:"";display:inline-block;width:6px;height:6px;border-radius:2px;background:var(--sakura);margin-right:16px;vertical-align:middle;transform:rotate(45deg)}

/* pills + meta */
.hp-pill{display:inline-block;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--c,var(--violet));color:#fff;line-height:1.5}
.hp-meta{font-size:14px;color:var(--muted)}
.hp-meta span+span:before{content:"/";margin:0 8px;opacity:.5}

/* image */
.hp-ph{display:block;position:relative;overflow:hidden;background:var(--c,var(--violet))}
.hp-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hp-ph .ph-fallback{position:absolute;inset:0;display:grid;place-items:center;font:800 64px/1 "Bricolage Grotesque",sans-serif;color:rgba(255,255,255,.9);background:linear-gradient(135deg,var(--c,var(--violet)),var(--sakura))}
.r169{aspect-ratio:16/9}.r43{aspect-ratio:4/3}.r11{aspect-ratio:1/1}.r32{aspect-ratio:3/2}

/* hero panels: the signature element */
.hp-hero{padding:34px 0 10px}
.hp-panels{display:grid;grid-template-columns:1.35fr 1fr 1fr;grid-template-rows:auto auto;gap:18px}
.hp-panel{position:relative;border:3px solid var(--ink);border-radius:var(--r);overflow:hidden;background:#fff;box-shadow:7px 7px 0 var(--c,var(--violet));display:flex;flex-direction:column}
.hp-panel .hp-ph{flex:1;min-height:170px}
.hp-panel .body{padding:14px 16px 16px;border-top:3px solid var(--ink);background:#fff}
.hp-panel h2,.hp-panel h3{font-size:19px;margin-top:8px}
.hp-panel.big{grid-row:1/3}
.hp-panel.big .hp-ph{min-height:340px}
.hp-panel.big h2{font-size:clamp(26px,3vw,36px)}
.hp-panel.big p{margin:8px 0 0;color:var(--muted);font-size:16px}
.hp-panel.wide{grid-column:2/4}
.hp-panel.wide{flex-direction:row}
.hp-panel.wide .hp-ph{flex:0 0 46%;min-height:200px}
.hp-panel.wide .body{border-top:0;border-left:3px solid var(--ink);display:flex;flex-direction:column;justify-content:center}
.hp-panel:hover{transform:translate(-2px,-2px);box-shadow:9px 9px 0 var(--c,var(--violet))}
@media (prefers-reduced-motion:no-preference){.hp-panel{transition:transform .15s,box-shadow .15s}}
@media(max-width:900px){.hp-panels{grid-template-columns:1fr 1fr}.hp-panel.big{grid-column:1/3;grid-row:auto}.hp-panel.wide{grid-column:1/3}}
@media(max-width:600px){.hp-panels{grid-template-columns:1fr}.hp-panel.big,.hp-panel.wide{grid-column:auto}.hp-panel.wide{flex-direction:column}.hp-panel.wide .body{border-left:0;border-top:3px solid var(--ink)}.hp-panel.big .hp-ph{min-height:220px}}

/* sections */
.hp-sec{margin-top:56px}
.hp-sec-h{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.hp-sec-h h2{font-size:28px}
.hp-sec-h .sq{width:16px;height:16px;border-radius:4px;background:var(--c,var(--violet));transform:rotate(45deg)}
.hp-sec-h .more{margin-left:auto;font-weight:700;font-size:15px;color:var(--c,var(--violet));border:2px solid currentColor;border-radius:999px;padding:5px 14px}
.hp-sec-h .more:hover{background:var(--c,var(--violet));color:#fff}

.hp-split{display:grid;grid-template-columns:1.25fr 1fr;gap:28px}
.hp-feature h3{font-size:26px;margin:12px 0 8px}
.hp-feature p{color:var(--muted);margin:0}
.hp-feature .hp-ph{border-radius:var(--r)}
.hp-rows{display:flex;flex-direction:column;gap:18px}
.hp-row{display:grid;grid-template-columns:132px 1fr;gap:16px;align-items:start}
.hp-row .hp-ph{border-radius:10px}
.hp-row h3{font-size:17.5px;margin:6px 0 4px}
@media(max-width:800px){.hp-split{grid-template-columns:1fr}}

.hp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.hp-card .hp-ph{border-radius:12px}
.hp-card h3{font-size:18px;margin:10px 0 6px}
.hp-card .hp-pill{margin-top:12px}
@media(max-width:1000px){.hp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hp-grid{grid-template-columns:1fr}.hp-row{grid-template-columns:110px 1fr}}

/* latest + sidebar */
.hp-main-side{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;margin-top:56px}
.hp-list article{display:grid;grid-template-columns:220px 1fr;gap:20px;padding:20px 0;border-bottom:2px solid var(--line)}
.hp-list article:first-child{padding-top:0}
.hp-list .hp-ph{border-radius:12px}
.hp-list h3{font-size:21px;margin:8px 0 6px}
.hp-list p{margin:0 0 6px;color:var(--muted);font-size:16px}
@media(max-width:1000px){.hp-main-side{grid-template-columns:1fr}}
@media(max-width:600px){.hp-list article{grid-template-columns:1fr}}
.hp-main-side>aside{align-self:start;position:sticky;top:96px}
@media(max-width:1000px){.hp-main-side>aside{position:static}}
.hp-box{border:3px solid var(--ink);border-radius:var(--r);padding:20px;background:#fff;margin-bottom:24px}
.hp-box h2{font-size:21px;margin-bottom:12px}
.hp-rank{list-style:none;margin:0;padding:0;counter-reset:r}
.hp-rank li{counter-increment:r;display:grid;grid-template-columns:34px 1fr;gap:10px;padding:10px 0;border-bottom:2px dashed var(--line);font-weight:700;line-height:1.35}
.hp-rank li:last-child{border:0}
.hp-rank li:before{content:counter(r);font:800 24px/1 "Bricolage Grotesque",sans-serif;color:var(--sakura)}
.hp-chips{display:flex;flex-wrap:wrap;gap:8px}
.hp-chips a{border:2px solid var(--c,var(--violet));color:var(--ink);border-radius:999px;padding:4px 12px;font-weight:600;font-size:14.5px}
.hp-chips a:hover{background:var(--c,var(--violet));color:#fff}
.hp-chips small{opacity:.6;margin-left:4px}

/* single */
.hp-single{max-width:780px;margin:0 auto;padding:34px 0 10px}
.hp-crumbs{font-size:14px;color:var(--muted);margin-bottom:14px}
.hp-crumbs a{color:var(--violet)}
.hp-single h1{font-size:clamp(30px,4.4vw,48px);margin:14px 0 14px}
.hp-single .lede{font-size:19px;color:var(--muted);margin:0 0 16px}
.hp-hero-img{border:3px solid var(--ink);border-radius:var(--r);overflow:hidden;box-shadow:8px 8px 0 var(--c,var(--violet));margin:22px 0 30px}
.hp-hero-img img{width:100%;max-height:540px;object-fit:cover}
.entry{font-size:18px;line-height:1.75}
.entry>*{max-width:72ch}
.entry h2{font-size:30px;margin:44px 0 14px}
.entry h3{font-size:23px;margin:30px 0 10px}
.entry p{margin:0 0 20px}
.entry a{color:var(--violet);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.entry ul,.entry ol{padding-left:24px;margin:0 0 22px}
.entry li{margin-bottom:8px}
.entry li::marker{color:var(--sakura);font-weight:700}
.entry figure{margin:30px 0;max-width:100%}
.entry figure img{border-radius:12px}
.entry figcaption{font-size:14px;color:var(--muted);margin-top:8px;text-align:center}
.entry blockquote{margin:28px 0;padding:16px 22px;border-left:6px solid var(--sakura);background:var(--soft);border-radius:0 12px 12px 0;font-size:19px}
.entry table{width:100%;border-collapse:collapse;margin:0 0 24px;font-size:16px;display:block;overflow-x:auto}
.entry th,.entry td{border:2px solid var(--line);padding:10px 12px;text-align:left}
.entry th{background:var(--soft)}
.entry code{background:var(--soft);padding:2px 6px;border-radius:6px;font-size:.9em}
.hp-share{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:34px 0;padding:18px 0;border-top:2px solid var(--line);border-bottom:2px solid var(--line);font-weight:700}
.hp-share a{border:2px solid var(--ink);border-radius:999px;padding:6px 14px;font-size:14.5px}
.hp-share a:hover{background:var(--lemon);color:var(--ink)}
.hp-author{display:flex;gap:16px;align-items:center;background:var(--soft);border-radius:var(--r);padding:20px}
.hp-author img{border-radius:50%;width:64px;height:64px}
.hp-author p{margin:4px 0 0;font-size:15.5px;color:var(--muted)}
.hp-progress{position:fixed;top:0;left:0;height:4px;background:linear-gradient(90deg,var(--sakura),var(--violet),var(--sky));width:0;z-index:100}

/* archive */
.hp-arch-h{padding:40px 0 10px}
.hp-arch-h h1{font-size:clamp(32px,4vw,46px)}
.hp-arch-h p{color:var(--muted);max-width:60ch}
.hp-pag{margin:40px 0;display:flex;gap:8px;flex-wrap:wrap}
.hp-pag .page-numbers{border:2px solid var(--ink);border-radius:10px;padding:6px 14px;font-weight:700}
.hp-pag .current{background:var(--ink);color:#fff}

/* page / comments */
.hp-page{max-width:780px;margin:0 auto;padding:40px 0}
.hp-page h1{font-size:clamp(32px,4vw,46px);margin-bottom:20px}
.comments-area{margin-top:40px}
.comment-list{list-style:none;padding:0}
.comment-respond input,.comment-respond textarea{width:100%;border:2px solid var(--line);border-radius:10px;padding:10px;font:inherit}
.comment-respond .submit{width:auto;background:var(--violet);color:#fff;border:0;padding:10px 20px;border-radius:999px;font-weight:700;cursor:pointer}

/* footer */
.hp-foot{margin-top:70px;background:var(--soft);border-top:3px solid var(--ink);padding:44px 0 26px}
.hp-foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px}
.hp-foot h2{font-size:18px;margin-bottom:12px}
.hp-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.hp-foot p{color:var(--muted);margin:12px 0 0;max-width:42ch}
.hp-foot .copy{margin-top:30px;padding-top:18px;border-top:2px solid var(--line);font-size:14px;color:var(--muted)}
@media(max-width:800px){.hp-foot-grid{grid-template-columns:1fr}}
.hp-404{text-align:center;padding:80px 0}
.hp-404 h1{font-size:72px}
