/* Home v4: rhythm, hierarchy and the quick-link row. Hero markup and data are untouched (protected); only spacing around it changes. */
.home-quick{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;margin:0 0 6px}
.home-quick-link{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font-family:inherit;font-weight:600;font-size:14px;text-decoration:none;cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .2s ease}
.home-quick-link .leyvu-icon{width:17px;height:17px;color:var(--accent)}
.home-quick-link:hover{border-color:var(--accent);background:#ff725b14;transform:translateY(-1px)}
.home-quick-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* One poster size on every home row (the left shelves next to the schedule and the full-width rows): fixed card width, the row scrolls. */
html body{--poster-w:clamp(148px,14.6vw,212px);--poster-gap:16px}
html body .home-discovery .spotlight-poster-strip,html body .poster-strip{grid-auto-columns:var(--poster-w);gap:var(--poster-gap)}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .anime-card{display:block;grid-template-columns:none;grid-template-rows:none;padding:0;border:0;border-radius:0;background:transparent;min-height:0}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .card-cover{width:100%;height:auto;aspect-ratio:2/3;border-radius:16px}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .card-title-row{margin-top:10px;gap:4px;align-items:start}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .card-title{font-size:15px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .card-meta{display:none}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .rating-slot{position:absolute;left:8px;top:8px;grid-column:auto;grid-row:auto}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .source-rating{font-size:12px;padding:6px 8px;gap:5px}
html body .home-discovery :is(#spotlightShelf,#spotlightFresh) .rating-votes{display:inline}
html body .home-discovery .home-discovery-main{gap:36px}
html body .home-discovery .spotlight-shelf{padding-bottom:0}
/* one rhythm for every home section */
.home-cinematic .portal-section,.home-cinematic .home-discovery{margin-top:56px}
.home-cinematic .portal-heading{margin-bottom:22px}
.home-cinematic .portal-heading p{margin-top:6px;font-size:14px;color:var(--muted)}
html body .home-discovery .spotlight-shelf-heading h2{font-weight:800}
html body .home-discovery .spotlight-shelf-heading{margin-bottom:22px}
@media(max-width:700px){
 html body{--poster-w:132px;--poster-gap:12px}
 html body .home-discovery .spotlight-shelf-heading h2{font-size:22px}
 html body .home-discovery .spotlight-shelf-heading .row-actions a{display:none}
 .home-quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-2px;padding:2px}
 .home-quick::-webkit-scrollbar{display:none}
 .home-quick-link{flex:0 0 auto;min-height:40px;padding:0 14px;font-size:13px}
 .home-cinematic .portal-section,.home-cinematic .home-discovery{margin-top:40px}
}
@media(prefers-reduced-motion:reduce){.home-quick-link{transition:none}.home-quick-link:hover{transform:none}}
