/* Responsive browsing density: readable controls, compact hero, bounded cards. */
html{scroll-padding-top:18px;scrollbar-gutter:stable}
.searchbox:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #81dce41a}
.catalog{display:block;padding-top:22px}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:28px;min-width:0;margin-bottom:16px;scroll-margin-top:16px}
.catalog-heading{margin:0;min-height:0;flex:0 0 auto}.catalog-heading h2{font-size:29px;line-height:1.35}.catalog-heading h2:after{margin-top:8px;height:2px}
.search-row{margin:0;width:auto;flex:1;max-width:70%;min-width:0;gap:10px}.searchbox{height:44px;min-height:44px}.picker-trigger{min-height:44px}
.filter-panel{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:18px;row-gap:10px;align-items:center;min-width:0}
.filter-row{margin:0;grid-column:1;gap:8px}.tabs{gap:8px;flex-wrap:nowrap}.tabs button{padding:7px 14px;min-height:38px;font-size:14px}.tabs button span{font-size:12px;opacity:1}
.genre-row{grid-column:2;border-left:1px solid #53646a;padding:0 0 0 18px;align-self:center}.genre-row>div{gap:7px;flex-wrap:wrap;overflow:visible;padding:0}.genre{padding:5px 13px;min-height:36px;font-size:14px}.genre[data-genre=""]{display:block}
.active-filters{margin-top:10px}.result-line{margin:9px 0 11px;font-size:13px;min-height:24px}#refine-button{font-size:13px;min-height:30px;color:#b5c9cf}.result-line b{color:#d0e6ea}
.anime-grid{gap:23px 18px;align-items:start}.anime-card{animation:none}.poster{aspect-ratio:4/4.6}
.card-title{font-family:var(--serif);font-size:18px;line-height:1.45;height:52px;min-height:52px;margin:9px 0 3px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-wrap:pretty}
.card-tags{font-size:13px;line-height:1.65;gap:6px;min-height:22px;flex-wrap:nowrap}.card-tags span+span{overflow:hidden;text-overflow:ellipsis}.card-tags span+span:before{margin-right:6px}
.card-footer{display:flex;border:0;margin:6px 0 0;padding:0;min-height:30px}.portal-link{font-size:13px;min-height:30px;color:#a5d4dc;padding:3px 0;display:inline-flex;align-items:center;gap:10px;background:none;border:0}.portal-link:hover{color:#d3f5f8}.portal-link.netflix{color:#c6b6ef}.portal-link.disabled{color:#92a5ad}.card-index{display:none}
.save-button{width:40px;height:40px;min-height:40px}.save-button.saved{background:#15363de8;border-color:var(--accent)}
.rating-badge{font-size:11px}.hero-poster:focus-visible{outline-offset:-4px}.poster-open:focus-visible{outline-offset:-3px}.detail-copy h2{overflow-wrap:anywhere}
@media(min-width:1101px){
 :root{--max:1680px}.header{height:62px;padding-left:32px;padding-right:32px}.header .brand{padding-left:18px}.brand-text{font-size:25px}.header nav{gap:34px}.nav-link{font-size:16px}.brand>small{font-size:11px}
 main{padding-left:32px;padding-right:32px}.hero{height:310px;min-height:310px;grid-template-columns:1fr 1fr;padding:15px 0;gap:25px}.hero-copy{padding-bottom:0}.hero h1{font-size:46px;line-height:1.25}.hero-intro{font-size:16px;margin:12px 0 17px;line-height:1.6}.hero-actions{gap:13px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:14px;min-height:44px;padding:10px 22px}.hero-stats{margin-top:18px;gap:24px}.hero-stats>div{padding-right:24px;gap:7px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:12px}
 .hero-art{height:280px;max-width:580px;justify-self:center}.poster-stack{height:100%}.poster-center{width:34%;height:270px;left:33%;top:0}.poster-left,.poster-right{width:30%;height:230px;top:33px}.poster-left{left:8%}.poster-right{right:5%}.hero-poster>span{font-size:18px;padding:45px 8px 15px}.hero-poster>span:after{margin-top:8px}.hero-backdrop{inset:0 -32px}
 .year-strip{min-height:50px;padding:4px 32px;margin:0 -32px;gap:24px}.year-strip h2{font-size:18px;padding-left:14px}.year-strip button{min-height:36px;font-size:14px;padding:6px 14px}.year-shortcuts{gap:18px}
 .anime-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.poster{max-height:280px}footer{padding-left:32px;padding-right:32px}
}
@media(min-width:1101px) and (max-width:1399px){.hero{height:280px;min-height:280px}.hero h1{font-size:40px}.hero-art{height:250px;max-width:500px}.poster-center{height:242px}.poster-left,.poster-right{height:207px;top:28px}.hero-stats{margin-top:14px}.hero-intro{margin:10px 0 14px}.catalog-heading h2{font-size:26px}.genre{padding:5px 10px;font-size:13px}.genre-row>div{gap:5px}.tabs button{padding:6px 11px}.anime-grid{gap:22px 15px}.card-title{font-size:17px;height:49px;min-height:49px}.card-tags,.portal-link{font-size:12px}.rating-badge{font-size:10px;padding:5px 6px}.save-button{width:36px;height:38px;min-height:38px}}
@media(min-width:2000px){:root{--max:2048px}.header,main,footer{padding-left:40px;padding-right:40px}.hero{height:325px;min-height:325px}.hero h1{font-size:48px}.hero-art{max-width:620px;height:295px}.poster-center{height:285px}.poster-left,.poster-right{height:245px}.year-strip{margin-left:-40px;margin-right:-40px;padding-left:40px;padding-right:40px}.hero-backdrop{inset:0 -40px}.anime-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:26px 20px}.card-title{font-size:19px;height:55px;min-height:55px}.card-tags,.portal-link{font-size:14px}.poster{max-height:290px}.catalog-heading h2{font-size:31px}}
@media(min-width:3000px){:root{--max:2800px}.header{height:72px}.brand-text{font-size:29px}.nav-link{font-size:18px}.hero{height:350px;min-height:350px}.hero h1{font-size:52px}.hero-intro{font-size:18px}.hero-art{max-width:680px;height:320px}.poster-center{height:310px}.poster-left,.poster-right{height:268px;top:36px}.hero-stats strong{font-size:30px}.hero-stats small{font-size:14px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:16px}.year-strip h2{font-size:20px}.year-strip button,.tabs button,.genre{font-size:16px}.searchbox input,.picker-trigger{font-size:17px}.anime-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:28px 22px}.card-title{font-size:21px;height:61px;min-height:61px}.card-tags,.portal-link{font-size:15px}.rating-badge{font-size:12px}.poster{max-height:300px}}
/* Short laptop viewports retain a complete first row instead of a tall hero. */
@media(min-width:1101px) and (max-height:800px){.header{height:54px}.hero{height:210px;min-height:210px;padding:10px 0}.hero-copy{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:20px;row-gap:10px}.hero h1{font-size:34px;grid-column:1/-1}.hero-intro{display:none}.hero-actions{grid-column:1;gap:9px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:13px;min-height:40px;padding:8px 15px}.hero-stats{grid-column:2;margin:0;gap:12px}.hero-stats>div{padding-right:12px;display:block}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px;display:block;margin-top:4px}.hero-art{height:188px;max-width:405px}.poster-center{height:180px;width:32%;left:34%}.poster-left,.poster-right{height:154px;top:22px}.hero-poster>span{font-size:13px;padding:32px 6px 10px}.hero-poster>span:after{margin-top:5px}.year-strip{min-height:44px;padding-top:2px;padding-bottom:2px}.catalog{padding-top:16px}.catalog-toolbar{margin-bottom:11px}.catalog-heading h2{font-size:25px}.result-line{margin:6px 0 8px}.poster{height:clamp(145px,24vh,185px);aspect-ratio:auto}.card-title{font-size:17px;height:49px;min-height:49px;margin-top:7px}.card-tags{font-size:12px}.card-footer{margin-top:3px}.portal-link{min-height:27px}}
@media(min-width:1101px) and (max-height:700px){.hero{height:175px;min-height:175px}.hero-art{height:155px;max-width:350px}.poster-center{height:150px}.poster-left,.poster-right{height:128px;top:18px}.hero h1{font-size:30px}.hero-copy{row-gap:8px}.hero-stats{gap:10px}.hero-stats>div{padding-right:10px}.hero-actions .primary-button,.hero-actions .ghost-button{padding:8px 11px}.hero-poster>span{font-size:12px}.poster{height:150px}}
@media(min-width:701px) and (max-width:1100px){
 .header{height:64px}.hero{height:280px;min-height:280px;padding:15px 0;grid-template-columns:1fr 1fr}.hero-copy{padding:0}.hero h1{font-size:36px;line-height:1.25}.hero-intro{font-size:14px;margin:10px 0 16px}.hero-actions .primary-button,.ghost-button{font-size:13px;padding:10px 15px;min-height:44px}.hero-stats{margin-top:16px;gap:15px}.hero-stats>div{padding-right:15px}.hero-stats strong{font-size:25px}.hero-stats small{font-size:11px}.hero-art{height:250px;max-width:410px;justify-self:center}.poster-center{height:237px;width:38%;left:31%}.poster-left,.poster-right{height:202px;top:27px;width:32%}.poster-left{left:5%}.poster-right{right:3%}.hero-poster>span{font-size:16px;padding-bottom:12px}.hero-poster>span:after{margin-top:7px}
 .year-strip{min-height:48px;padding-top:4px;padding-bottom:4px}.year-strip h2{font-size:17px}.year-strip button{min-height:36px;font-size:13px}.catalog-toolbar{gap:16px}.catalog-heading h2{font-size:25px}.search-row{max-width:65%;gap:7px}.searchbox input{font-size:15px}.picker-trigger{font-size:13px;padding:0 10px}.filter-panel{grid-template-columns:1fr;row-gap:10px}.genre-row{grid-column:1;border:0;padding:0}.genre-row>div{gap:7px}.genre{font-size:13px;padding:5px 12px}.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.card-title{font-size:17px;height:49px;min-height:49px}.card-tags,.portal-link{font-size:12px}.poster{aspect-ratio:4/4.6;max-height:245px}
}
@media(min-width:701px) and (max-width:850px){.hero{height:265px;min-height:265px;gap:12px}.hero h1{font-size:31px}.hero-art{height:225px}.poster-center{height:216px}.poster-left,.poster-right{height:183px}.hero-stats{gap:12px}.hero-stats>div{padding-right:12px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px}.hero-actions .primary-button,.ghost-button{padding:9px 12px}.catalog-toolbar{flex-wrap:wrap;gap:13px}.search-row{max-width:none;flex-basis:100%}.catalog-heading h2{font-size:26px}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .header{height:74px}.hero{padding-top:18px;padding-bottom:8px}.hero h1{font-size:clamp(28px,7.8vw,38px);line-height:1.3}.hero-intro{margin:9px 0 14px;font-size:14px}.hero-actions{gap:12px}.hero-stats{margin-top:15px}.hero-stats strong{font-size:25px}.hero-art{height:170px;max-width:330px;margin-top:16px}.poster-center{height:162px;width:34%;left:33%}.poster-left,.poster-right{height:140px;width:30%;top:18px}.poster-left{left:7%}.poster-right{right:5%}.hero-poster>span{font-size:12px;padding:30px 6px 10px}.hero-poster>span:after{margin-top:6px}.year-strip{min-height:50px;padding-top:5px;padding-bottom:5px}.year-strip h2{font-size:14px}.year-strip button{min-height:40px}.more-years{min-width:40px;width:40px}
 .catalog{padding-top:18px}.catalog-toolbar{display:flex;flex-direction:column;align-items:stretch;margin-bottom:10px;gap:13px;scroll-margin-top:12px}.catalog-heading{margin:0;order:0}.catalog-heading h2{font-size:24px}.catalog-heading h2:after{margin-top:7px}.search-row{max-width:none;width:100%;gap:6px}.searchbox{height:46px;min-height:46px}.searchbox input{font-size:16px}.picker-trigger{min-height:46px;font-size:13px;padding:0 8px;max-width:92px;overflow:hidden;gap:3px}.picker-trigger .control-label{display:none}#year-value,#sort-value{display:inline;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-trigger svg{flex-shrink:0}
 .filter-panel{display:flex;flex-direction:column;align-items:stretch;gap:10px}.filter-row{display:flex;flex-direction:column;align-items:stretch;gap:4px}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible;width:100%}.tabs button{font-size:13px;min-height:42px;padding:7px 4px;display:flex;justify-content:center;align-items:center;gap:4px;order:0!important}.tabs button[data-mode=caution]{padding-left:4px;padding-right:4px}.tabs button span{font-size:11px;margin:0}.reset-button{margin:0;min-height:34px;font-size:13px;padding:0;text-align:right}
 .genre-row{padding:0;border:0;display:block}.genre-row>div{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3f6973 transparent;padding-bottom:5px;gap:7px}.genre{font-size:13px;min-height:40px;padding:6px 14px}.genre[data-genre=""]{display:block}.result-line{margin:9px 0 12px;font-size:12px;min-height:24px}#refine-button{font-size:12px;min-height:30px}.active-filters{margin-top:10px}.active-filters button{font-size:12px;min-height:36px}.anime-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.card-title{font-size:16px;height:47px;min-height:47px;line-height:1.45;margin:8px 8px 3px;width:calc(100% - 16px)}.card-tags{font-size:12px;margin:0 8px;min-height:21px;gap:5px;overflow:hidden}.card-tags span+span{flex:1}.card-footer{margin:5px 8px 0;min-height:36px}.portal-link{font-size:12px;min-height:36px;flex:1;justify-content:space-between}.poster{aspect-ratio:4/4.6}.rating-badge{font-size:10px;left:6px;padding:5px 6px}.save-button{width:40px;height:42px;min-height:42px;right:5px;top:5px}.save-button svg{width:18px;height:20px}.anime-card{padding-bottom:7px}.mobile-dock{padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.mobile-dock button{min-height:50px}.detail-copy h2{font-size:24px}.detail-meta div{gap:12px}.detail-actions{flex-wrap:wrap}.detail-actions .primary-button,.detail-save{flex:1 1 120px}.detail-meta b{overflow-wrap:anywhere}
}
@media(max-width:360px){main{padding-left:14px;padding-right:14px}.hero h1{font-size:28px}.hero-stats strong{font-size:23px}.hero-stats small{font-size:10px}.hero-art{height:158px}.poster-center{height:151px}.poster-left,.poster-right{height:131px}.hero-intro{font-size:13px}.catalog-heading h2{font-size:22px}.searchbox{padding:0 8px;gap:5px}.searchbox input{font-size:16px}.picker-trigger{padding:0 6px;max-width:74px}#year-value,#sort-value{font-size:11px}.tabs{gap:4px}.tabs button{font-size:12px;gap:3px}.tabs button span{font-size:10px}.genre{font-size:12px}.card-title{font-size:15px;height:44px;min-height:44px}.card-tags,.portal-link{font-size:11px}.rating-badge{font-size:9px;letter-spacing:0;padding:5px}.save-button{width:38px}.anime-grid{gap:18px 10px}}
@media(prefers-reduced-motion:reduce){.anime-card{animation:none}.hero-poster:hover,.anime-card:hover{transform:none}}
@media(min-width:1101px) and (max-width:1999px) and (min-height:801px){.hero{height:280px;min-height:280px}.hero h1{font-size:44px}.hero-art{height:250px}.poster-center{height:242px}.poster-left,.poster-right{height:207px;top:28px}.hero-intro{margin:10px 0 14px}.hero-stats{margin-top:15px}.catalog{padding-top:16px}.catalog-toolbar{margin-bottom:12px}.result-line{margin:6px 0 8px;min-height:24px}#refine-button{min-height:24px}.poster{max-height:270px}}
@media(min-width:1101px) and (max-height:800px){.hero{height:190px;min-height:190px}.hero-art{height:172px}.poster-center{height:165px}.poster-left,.poster-right{height:140px;top:20px}.catalog{padding-top:14px}.catalog-toolbar{margin-bottom:8px}.result-line{margin:4px 0 8px;min-height:24px}#refine-button{min-height:24px}}
@media(min-width:1101px) and (max-height:700px){.hero{height:150px;min-height:150px}.hero-art{height:133px}.poster-center{height:126px}.poster-left,.poster-right{height:108px;top:16px}.hero h1{font-size:27px}.hero-copy{row-gap:5px}.hero-poster>span{font-size:11px;padding-bottom:7px}}
@media(min-width:1101px) and (max-height:700px){.poster{height:144px}}
@media(min-width:701px) and (max-width:1100px) and (max-height:800px){.header{height:60px}.hero{height:160px;min-height:160px;padding:8px 0}.hero h1{font-size:28px;line-height:1.2}.hero-intro{display:none}.hero-actions{margin-top:8px;gap:9px}.hero-actions .primary-button,.ghost-button{font-size:12px;padding:8px 13px;min-height:40px}.hero-stats{margin-top:9px;gap:16px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px}.hero-art{height:142px;max-width:290px}.poster-center{height:134px;width:33%;left:34%}.poster-left,.poster-right{height:114px;width:29%;top:18px}.hero-poster>span{font-size:12px;padding-bottom:8px}.year-strip{min-height:44px;padding-top:2px;padding-bottom:2px}.catalog{padding-top:16px}.poster{height:170px;aspect-ratio:auto}.result-line{margin-top:6px;margin-bottom:8px}}
@media(max-width:700px){.catalog-heading{display:none}.catalog-toolbar{gap:0;margin-bottom:10px}.hero-art{height:132px;max-width:270px;margin-top:12px}.poster-center{height:125px}.poster-left,.poster-right{height:107px;top:15px}.hero-poster>span{font-size:11px;padding-bottom:8px}.hero-stats{margin-top:12px}.hero-poster>span:after{margin-top:4px}.year-strip{min-height:46px}.result-line{min-height:24px}#refine-button{min-height:24px}.genre-row>div{padding-bottom:3px}}
@media(max-width:360px){.year-strip{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.hero-art{height:124px;max-width:250px}.poster-center{height:117px}.poster-left,.poster-right{height:100px}.hero-poster>span{font-size:10px}}

/* Keep a useful first screen even on short phones. */
@media(max-width:700px){.header{height:68px}.hero{padding-top:14px;padding-bottom:6px}.hero-intro{display:none}.hero-actions{margin-top:14px}.hero-art{height:108px;max-width:240px;margin-top:9px}.poster-center{height:103px}.poster-left,.poster-right{height:88px;top:12px}.hero-poster>span{font-size:10px;padding-bottom:6px}.hero-stats{margin-top:10px}}
@media(max-width:700px) and (max-height:700px){.hero-art{display:none}.hero{padding-bottom:17px}.hero h1{font-size:28px}.hero-actions{margin-top:12px}.hero-stats{margin-top:12px}}
