/* The home owns its layout; the existing site navigation keeps its shared style. */
.home-main{max-width:none;height:100svh;margin:0;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.home-header{width:100%;max-width:1192px;margin:0 auto;padding:28px 36px 0;border:0;justify-content:flex-end}
.home-header .site-nav{width:auto}
.home-hero{min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:30px;padding:20px 24px 36px}
.home-brand{display:flex;align-items:center;justify-content:center;gap:24px;margin:0;font-size:clamp(56px,7vw,92px);font-weight:700;line-height:1;letter-spacing:-3px}
.home-brand img{width:clamp(110px,11vw,160px);height:auto;flex-shrink:0}
.home-brand-name{color:var(--text)}
.home-brand-name>span{color:var(--accent)}
.home-search-area{width:min(100%,720px);display:flex;flex-direction:column;align-items:center;gap:12px;--search-size:60px}
.home-description{width:100%;margin:0;text-align:center;color:var(--muted);font-size:15px;line-height:1.5}
.home-search{width:100%;display:flex;align-items:center;gap:12px}
.home-search-field{flex:1;min-width:0;position:relative}
.home-search input{height:var(--search-size);border:1px solid var(--line-strong);border-radius:12px;padding:0 18px;font-size:18px;background:var(--surface)}
.home-search input:focus{border-color:var(--accent)}
.home-search>button{flex:none;display:grid;place-items:center;width:var(--search-size);height:var(--search-size);padding:0;border:1px solid var(--accent);border-radius:50%;background:var(--accent);color:var(--accent-ink);cursor:pointer}
.home-search>button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;pointer-events:none}
.home-search>button:hover{background:var(--accent-hover)}
.home-search>button[hidden]{display:none}
.home-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:5;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 14px 40px #0008;overflow:hidden}
.home-results ul{list-style:none;padding:0;margin:0;max-height:240px;overflow:auto}
.home-results li>a,.home-all-results{display:block;padding:10px 18px;color:var(--text);text-decoration:none;line-height:1.4}
.home-results li>a:hover,.home-results li>a:focus-visible{background:var(--surface-active);color:var(--accent)}
.home-results .home-no-results{padding:12px 18px;color:var(--muted)}
.home-all-results{border-top:1px solid var(--line);color:var(--accent);font-size:14px}
.home-shortcuts{min-width:0;padding:0 0 20px;--poster-height:clamp(150px,28svh,280px);--poster-gap:clamp(18px,3vw,40px)}
.home-carousel{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom}
.home-carousel::-webkit-scrollbar{display:none}
.home-carousel.is-dragging{cursor:grabbing;user-select:none}
.home-poster-track{display:flex;width:max-content;padding:8px 0}
.home-poster-group{display:flex;gap:var(--poster-gap);padding-right:var(--poster-gap)}
.home-poster{display:block;flex:none;width:calc(var(--poster-height)*2/3);color:var(--text);text-decoration:none;-webkit-user-drag:none}
.home-poster .anime-poster{width:100%;height:var(--poster-height);border-radius:7px;border-color:var(--line-strong)}
.home-poster .anime-thumb-fallback{font-size:44px}
.home-poster img{pointer-events:none;-webkit-user-drag:none}
.home-poster:hover .anime-poster,.home-poster:focus-visible .anime-poster{border-color:var(--accent)}
.home-poster-title{display:block;margin-top:9px;font-size:13px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
@media(min-width:761px) and (max-height:650px){
 .home-header{padding-top:16px}
 .home-hero{gap:clamp(10px,3svh,18px);padding-top:12px;padding-bottom:18px}
 .home-brand{font-size:clamp(36px,10svh,62px);gap:16px}
 .home-brand img{width:clamp(58px,14svh,90px)}
 .home-search-area{--search-size:clamp(44px,9svh,52px)}
 .home-search input{font-size:16px}
 .home-description{font-size:13px;line-height:1.4}
 .home-shortcuts{--poster-height:clamp(80px,25svh,150px)}
}
@media(max-width:760px){
 .home-main{height:auto;min-height:100svh;grid-template-rows:auto minmax(350px,1fr) auto}
 .home-header{padding:16px 18px 0}
 .home-hero{gap:26px;padding:28px 22px 38px}
 .home-brand{flex-direction:column;gap:14px;font-size:clamp(40px,10vw,64px);letter-spacing:-1.5px}
 .home-brand img{width:clamp(100px,16svh,145px)}
 .home-search-area{--search-size:44px}
 .home-search{gap:8px}
 .home-description{font-size:14px}
 .home-search input{font-size:16px;padding:0 14px}
 .home-shortcuts{--poster-height:clamp(170px,26svh,230px);--poster-gap:22px;padding-bottom:18px}
}
@media(max-width:760px) and (max-height:700px){
 .home-main{grid-template-rows:auto minmax(300px,1fr) auto}
 .home-hero{gap:12px;padding-top:12px;padding-bottom:16px}
 .home-brand{gap:10px}
 .home-brand img{width:100px}
}
