/* Reference composition: width controls layout; images keep their proportions. */
:root{--max:1680px;--gutter:38px;--hero-h:418px}
body{background:radial-gradient(ellipse at 70% 0,#1d303840,transparent 52%),#091116}
.header,main,footer{width:calc(100% - 64px);max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter)}
.header{height:68px;border-bottom:1px solid #81969c36;background:#0a1217}
.header .brand{padding-left:20px}.brand-text{font-size:27px}.brand>small{font-size:11px;letter-spacing:2px}.header nav{gap:36px}.nav-link{font-size:16px}
.hero{position:relative;isolation:isolate;display:grid;grid-template-columns:39% 61%;gap:0;align-items:center;height:var(--hero-h);min-height:0;padding:24px 0 30px;overflow:visible}
.hero-backdrop{inset:0 calc(-1 * var(--gutter));z-index:-1;background:linear-gradient(90deg,#091116 0%,#091116f5 22%,#0911169c 43%,#09111612 74%),linear-gradient(0deg,#09111630,transparent 35%),url('assets/hero-garden.webp') right center/cover no-repeat;opacity:1;filter:none;mask-image:none}
.hero-copy{display:block;align-self:center;z-index:4;padding:0;min-width:0}
.hero h1{font-size:54px;font-weight:700;line-height:1.32;letter-spacing:.2px;white-space:normal;margin:0}
.hero-intro{display:block;color:#c4d0d3;font-size:17px;line-height:1.7;margin:16px 0 22px}
.hero-actions{display:flex;gap:16px;margin:0}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:46px;padding:11px 26px;font-size:15px;border-radius:6px}
.hero-stats{display:flex;justify-content:flex-start;width:auto;margin:30px 0 0;gap:25px}.hero-stats>div{display:flex;gap:7px;align-items:baseline;padding-right:25px}.hero-stats strong{font-size:30px;line-height:1}.hero-stats small{display:inline;font-size:12px;margin:0}
.hero-art{display:block;position:relative;justify-self:center;width:100%;max-width:750px;height:100%;margin:0;overflow:visible}
.poster-stack{position:relative;width:100%;height:100%;max-width:none;isolation:isolate}
.hero-poster{position:absolute;inset:auto;display:block;padding:0;min-height:0;border:1px solid #afc6ce88;border-radius:3px;overflow:hidden;transform-origin:50% 90%;box-shadow:0 14px 28px #0008;aspect-ratio:2/3;height:auto}
.hero-poster img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:none;transform:none}
.poster-center{width:36%;left:32%;top:0;z-index:3;transform:rotate(-3deg);height:auto}
.poster-left{width:30%;left:5%;top:12%;z-index:1;transform:rotate(6deg);height:auto}
.poster-right{width:30%;right:4%;top:12%;z-index:2;transform:rotate(7deg);height:auto}
.hero-poster>span{position:absolute;bottom:0;left:0;width:100%;font-family:var(--serif);font-size:26px;line-height:1.45;padding:56px 8px 20px;text-align:center;background:linear-gradient(transparent,#08131be8);text-shadow:0 2px 4px #000}
.hero-poster>span:after{display:none}.poster-center>span{font-size:27px}
.year-strip{margin:0 calc(-1 * var(--gutter));padding:6px var(--gutter);gap:28px;min-height:54px;background:#0c151be8;border-block:1px solid #a4c1c02b}
.year-strip h2{font-size:20px;padding-left:17px;white-space:nowrap}.year-shortcuts{gap:17px}.year-strip button{font-size:14px;min-height:38px;padding:6px 16px}
.catalog{display:block;padding-top:24px}.catalog-toolbar{display:flex;align-items:center;gap:30px;margin-bottom:16px}.catalog-heading{display:block;flex:0 0 auto}.catalog-heading h2{font-size:31px;line-height:1.4}.catalog-heading h2:after{margin-top:9px;width:52px}
.search-row{width:auto;max-width:66%;flex:1;gap:12px;margin:0}.searchbox,.picker-trigger{height:44px;min-height:44px;border-radius:6px}.searchbox input{font-size:16px}.picker-trigger{font-size:14px;max-width:none}
.filter-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 22px;align-items:center}.filter-row{grid-column:1;margin:0}.tabs{gap:9px;flex-wrap:nowrap}.tabs button{min-height:36px;font-size:14px;padding:6px 15px}.tabs button span{font-size:12px}
.genre-row{grid-column:2;padding-left:22px;border-left:1px solid #a3b8be40}.genre-row>div{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:0}.genre{min-height:34px;font-size:13px;padding:5px 14px}
.result-line{margin:8px 0 12px;min-height:22px;font-size:12px;color:#91a6af}#refine-button{font-size:12px;min-height:24px}
.anime-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 22px;align-items:start}.anime-card{background:transparent;border:0;box-shadow:none;animation:none;min-width:0}
.poster{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1;border-radius:7px;overflow:hidden;border:1px solid #a9c4ce35}
.poster-open,.poster-open img{display:block;width:100%;height:100%}.poster-open img{object-fit:cover;object-position:center 30%}
.card-title{font-size:21px;line-height:1.4;height:59px;min-height:59px;margin:10px 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.card-tags{font-size:13px;min-height:22px;line-height:1.6;margin:0}.card-footer{margin:3px 0 0;padding:0;min-height:27px}.portal-link{min-height:27px;font-size:12px}.save-button{width:36px;height:38px;min-height:38px;top:9px;right:9px}.rating-badge{font-size:11px;padding:6px 8px;top:9px;left:9px}.card-index{display:none}
.cinema-mode .hero-backdrop{opacity:.72}
@media(min-width:2200px){:root{--max:2160px;--gutter:46px;--hero-h:485px}.header{height:80px}.hero h1{font-size:64px}.hero-intro{font-size:21px}.hero-art{max-width:870px}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:54px;font-size:18px}.hero-stats strong{font-size:36px}.hero-stats small{font-size:15px}.hero-poster>span,.poster-center>span{font-size:31px}.anime-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:34px 25px}.card-title{font-size:23px;height:65px;min-height:65px}.card-tags,.portal-link{font-size:15px}.catalog-heading h2{font-size:36px}.searchbox,.picker-trigger{height:50px;min-height:50px}.tabs button,.genre{font-size:16px;min-height:40px}.year-strip{min-height:62px}.year-strip h2{font-size:24px}.year-strip button{font-size:17px}.nav-link{font-size:19px}}
@media(min-width:3000px){:root{--max:3000px;--gutter:60px;--hero-h:620px}.header{height:94px}.brand-text{font-size:36px}.brand>small{font-size:15px}.nav-link{font-size:24px}.hero h1{font-size:86px}.hero-intro{font-size:27px;margin:24px 0 30px}.hero-art{max-width:1110px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:22px;min-height:62px;padding:14px 36px}.hero-stats{margin-top:42px;gap:40px}.hero-stats>div{padding-right:40px;gap:12px}.hero-stats strong{font-size:46px}.hero-stats small{font-size:19px}.hero-poster>span,.poster-center>span{font-size:42px;padding-bottom:30px}.year-strip{min-height:76px}.year-strip h2{font-size:29px}.year-strip button{font-size:22px}.catalog{padding-top:32px}.catalog-toolbar{margin-bottom:24px}.catalog-heading h2{font-size:46px}.searchbox,.picker-trigger{height:62px;min-height:62px}.searchbox input,.picker-trigger{font-size:23px}.tabs button,.genre{font-size:21px;min-height:48px;padding:8px 24px}.tabs button span{font-size:18px}.result-line,#refine-button{font-size:17px}.result-line{margin:12px 0 18px}.anime-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:42px 30px}.card-title{font-size:29px;height:82px;min-height:82px}.card-tags,.portal-link{font-size:18px}.save-button{width:46px;height:48px}.rating-badge{font-size:14px;padding:8px 12px}}
@media(min-width:1101px) and (max-width:1499px){:root{--gutter:28px;--hero-h:340px}.header,main,footer{width:calc(100% - 40px)}.header{height:60px}.brand-text{font-size:24px}.brand>small{font-size:10px;letter-spacing:1px}.hero{grid-template-columns:40% 60%;padding:22px 0 24px}.hero h1{font-size:42px}.hero-intro{font-size:15px;margin:12px 0 18px}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:42px;padding:10px 20px;font-size:13px}.hero-stats{margin-top:23px;gap:18px}.hero-stats>div{padding-right:18px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:11px}.hero-art{max-width:600px}.hero-poster>span,.poster-center>span{font-size:22px;padding-bottom:16px}.year-strip{gap:20px;min-height:50px}.year-strip h2{font-size:18px}.year-strip button{font-size:13px;padding-inline:12px}.year-shortcuts{gap:12px}.catalog{padding-top:20px}.catalog-heading h2{font-size:27px}.catalog-toolbar{gap:20px;margin-bottom:13px}.tabs button{font-size:13px;padding:6px 12px}.genre{font-size:12px;padding:5px 10px}.genre-row{padding-left:16px}.filter-panel{gap:12px 16px}.anime-grid{gap:26px 18px}.card-title{font-size:18px;height:51px;min-height:51px}.card-tags{font-size:12px}}
@media(min-width:701px) and (max-width:1100px){:root{--gutter:24px;--hero-h:292px}.header,main,footer{width:100%}.header{height:64px}.brand-text{font-size:23px}.brand>small{display:none}.header nav{gap:22px}.hero{grid-template-columns:43% 57%;padding:20px 0 24px}.hero h1{font-size:35px}.hero-intro{font-size:13px;margin:10px 0 16px}.hero-actions{gap:10px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:12px;min-height:40px;padding:9px 14px}.hero-stats{margin-top:20px;gap:13px}.hero-stats>div{padding-right:13px;gap:5px}.hero-stats strong{font-size:24px}.hero-stats small{font-size:10px}.hero-art{max-width:480px}.hero-poster>span,.poster-center>span{font-size:17px;padding:35px 5px 14px}.year-strip{min-height:48px;gap:16px}.year-strip h2{font-size:17px}.year-shortcuts{gap:4px}.year-strip button{font-size:13px;padding:6px 10px}.catalog-toolbar{gap:18px}.catalog-heading h2{font-size:26px}.search-row{max-width:65%}.filter-panel{grid-template-columns:1fr;row-gap:10px}.genre-row{grid-column:1;padding:0;border:0}.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.card-title{font-size:18px;height:51px;min-height:51px}.card-tags{font-size:12px}}
@media(min-width:701px) and (max-width:850px){:root{--hero-h:250px;--gutter:22px}.hero h1{font-size:29px}.hero-intro{font-size:12px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:11px;padding:9px 11px}.hero-stats{gap:9px;margin-top:17px}.hero-stats>div{padding-right:9px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:9px}.hero-art{max-width:400px}.hero-poster>span,.poster-center>span{font-size:14px}.catalog-toolbar{flex-wrap:wrap;gap:12px}.search-row{max-width:none;flex-basis:100%}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){:root{--gutter:18px}.header,main,footer{width:100%;padding-inline:var(--gutter)}.header{height:66px}.header .brand{padding-left:13px}.brand-text{font-size:21px}.brand>small{display:block;font-size:8px;letter-spacing:1.3px}.header nav{display:none}.cinema-toggle{margin-left:auto}.hero{display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;min-height:0;padding:20px 0 17px}.hero-copy{display:block;align-self:stretch;padding:0}.hero h1{font-size:31px;line-height:1.35;letter-spacing:0}.hero-intro{display:block;font-size:13px;line-height:1.5;margin:8px 0 16px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:13px;min-height:42px;padding:9px 12px}.hero-stats{display:flex;justify-content:space-between;width:100%;gap:0;margin:22px 0 0}.hero-stats>div{display:flex;align-items:baseline;gap:5px;padding-right:14px}.hero-stats strong{font-size:25px}.hero-stats small{display:inline;font-size:10px;margin:0}.hero-art{display:block;align-self:center;width:100%;max-width:370px;height:auto;aspect-ratio:1.78;margin:20px auto 0}.poster-stack{position:absolute;inset:0;width:100%;height:100%}.hero-poster{height:auto;min-height:0;aspect-ratio:2/3}.poster-center{width:35%;left:32%;top:0}.poster-left{width:29%;left:5%;top:12%}.poster-right{width:29%;right:4%;top:12%}.hero-poster>span,.poster-center>span{font-size:14px;line-height:1.35;padding:28px 3px 11px}.hero-backdrop{background:linear-gradient(0deg,#09111655,transparent 36%,#091116 68%),linear-gradient(90deg,#09111690,#09111610),url('assets/hero-garden.webp') right bottom/auto 65% no-repeat}.year-strip{min-height:48px;padding:4px var(--gutter);gap:10px}.year-strip h2{font-size:14px;padding-left:10px}.year-strip button{font-size:12px;min-height:38px;padding:5px 8px}.year-shortcuts{gap:1px}.more-years{font-size:0!important;padding-inline:5px!important}.more-years span{font-size:16px}.catalog{padding-top:17px;display:flex;flex-direction:column}.catalog-toolbar{display:contents}.catalog-heading{display:block;order:3;margin:20px 0 12px}.catalog-heading h2{font-size:23px;line-height:1.35}.catalog-heading h2:after{margin-top:7px;width:40px}.search-row{display:flex;order:0;max-width:none;width:100%;flex:none;gap:7px;margin:0 0 15px}.searchbox,.picker-trigger{min-height:42px;height:42px}.searchbox input{font-size:16px}.picker-trigger{font-size:11px;width:67px;max-width:67px;padding:7px}.picker-trigger svg{width:12px}.filter-panel{order:1;display:grid;grid-template-columns:1fr;gap:10px}.filter-row{grid-column:1}.tabs{width:100%;gap:7px}.tabs button{flex:1;min-height:36px;font-size:12px;padding:6px 5px;white-space:nowrap}.tabs button span{font-size:11px}.genre-row{grid-column:1;border:0;padding:0;min-width:0}.genre-row>div{flex-wrap:nowrap;overflow:auto;gap:7px;scrollbar-width:none;padding:0}.genre-row>div::-webkit-scrollbar{display:none}.genre{font-size:12px;min-height:34px;padding:5px 13px;flex-shrink:0}.active-filters{order:2}.result-line{order:4;font-size:11px;min-height:20px;margin:0 0 9px}#refine-button{font-size:11px;min-height:20px}.anime-grid{order:5;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.empty-state{order:6}.load-row{order:7}.anime-card{border:1px solid #9cb9c629;border-radius:7px;overflow:hidden;background:#0c161c}.poster{height:auto;max-height:none;aspect-ratio:1;width:100%;border:0;border-radius:0}.card-title{font-size:16px;height:45px;min-height:45px;margin:8px 8px 2px}.card-tags{font-size:10px;min-height:19px;margin:0 8px;gap:4px}.card-footer{margin:2px 8px 5px;min-height:26px}.portal-link{font-size:11px;min-height:26px}.save-button{width:34px;height:36px;min-height:36px;top:7px;right:7px}.rating-badge{font-size:9px;padding:5px 6px;top:7px;left:7px}}
@media(max-width:360px){:root{--gutter:14px}.hero h1{font-size:28px}.hero-intro{font-size:12px}.hero-stats{margin-top:18px}.hero-stats strong{font-size:23px}.hero-stats>div{padding-right:10px}.hero-stats small{font-size:9px}.hero-art{margin-top:18px}.hero-poster>span,.poster-center>span{font-size:12px}.year-strip{gap:6px}.year-strip h2{font-size:12px}.year-strip button{font-size:11px;padding-inline:6px}.card-title{font-size:15px}.picker-trigger{width:57px;max-width:57px;font-size:10px}.search-row{gap:5px}}
@media(prefers-reduced-motion:reduce){.hero-poster,.poster-open img{transition:none;animation:none}}


.feature-art{display:block;width:100%;height:100%;background-image:url(assets/feature-grid.webp);background-size:200% 200%;background-repeat:no-repeat}.art-209{background-position:0 0}.art-205{background-position:100% 0}.art-206{background-position:0 100%}.art-218{background-position:100% 100%}
@media(max-width:700px){.header{height:60px}.hero{padding:14px 0 12px}.hero h1{font-size:28px;line-height:1.25}.hero-intro{font-size:12px;margin:6px 0 11px}.hero-stats{margin-top:14px}.hero-stats strong{font-size:23px}.hero-art{width:min(100%,290px);height:156px;aspect-ratio:auto;margin-top:12px}.poster-center{width:33%;left:33%}.poster-left,.poster-right{width:28%;top:12%}.hero-poster>span,.poster-center>span{font-size:12px}.year-strip{min-height:44px}.year-shortcuts [data-year="2023"]{display:none}.catalog{padding-top:14px}.search-row{margin-bottom:10px}.catalog-heading{margin:12px 0 7px}.catalog-heading h2{font-size:21px}.result-line{margin:0 0 7px;min-height:17px}.picker-trigger .control-label{display:inline;font-size:12px}.picker-trigger #year-value,.picker-trigger #sort-value{display:none}.picker-trigger{width:63px;max-width:63px}.hero-stats>div{flex:1;justify-content:center;padding-right:0}.hero-stats>div:first-child{justify-content:flex-start}.hero-stats>div:last-child{justify-content:flex-end}}
@media(max-width:360px){.hero-intro{display:none}.hero-actions{margin-top:12px}.hero-art{height:134px;width:250px;margin-top:10px}.hero h1{font-size:26px}.hero-stats{margin-top:12px}.hero-poster>span,.poster-center>span{font-size:11px}.year-shortcuts [data-year="2024"]{display:none}.catalog-heading{display:none}.result-line{display:none}.filter-panel{margin-bottom:12px}.picker-trigger{width:56px;max-width:56px}}
/* Desktop proportions measured against the reference, independent of viewport height. */
@media(min-width:1101px){
  .header,main{container-type:inline-size}
  .hero{grid-template-columns:35% 65%;height:auto;aspect-ratio:2.73;min-height:0;padding:10px 0 0;align-items:stretch}
  .hero-copy{align-self:start;padding-top:4.2cqw}
  .hero h1{font-size:clamp(42px,4.4cqw,92px);line-height:1.22}
  .hero-intro{font-size:clamp(15px,1.65cqw,30px);margin:1.2cqw 0 1.8cqw}
  .hero-actions{gap:1.2cqw}
  .hero-actions .primary-button,.hero-actions .ghost-button{font-size:clamp(13px,1.35cqw,25px);min-height:0;padding:.85cqw 2.1cqw}
  .hero-stats{margin-top:2.8cqw;gap:1.9cqw}
  .hero-stats>div{gap:.5cqw;padding-right:1.9cqw}
  .hero-stats strong{font-size:clamp(27px,2.3cqw,44px)}
  .hero-stats small{font-size:clamp(11px,1cqw,19px)}
  .hero-art{justify-self:stretch;width:100%;max-width:none;height:100%;margin:0}
  .poster-center{width:36%;left:31.5%;top:0;transform:rotate(-3deg)}
  .poster-left{width:31%;left:0;top:12%;transform:rotate(5deg)}
  .poster-right{width:31%;right:2%;top:12%;transform:rotate(6deg)}
  .hero-poster>span,.poster-center>span{font-size:clamp(22px,2.15cqw,42px);padding:4cqw .6cqw 1.7cqw}
  .hero-backdrop{background-position:right bottom;background-size:cover}
  .anime-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 1.7cqw}
  .card-title{font-size:clamp(18px,1.65cqw,32px);height:auto;min-height:30px}
  .card-tags{font-size:clamp(12px,1.05cqw,20px)}
  .portal-link{font-size:clamp(12px,.9cqw,17px)}
}
@media(min-width:2200px){:root{--max:1920px;--gutter:64px}.hero-stats>div{padding-right:1.6cqw}.header{height:80px}.brand-text{font-size:31px}.year-strip{min-height:66px}}
@media(min-width:3000px){:root{--max:2160px;--gutter:76px}.header{height:94px}.brand-text{font-size:36px}.catalog{padding-top:28px}.catalog-toolbar{margin-bottom:20px}.catalog-heading h2{font-size:38px}.searchbox,.picker-trigger{height:54px;min-height:54px}.searchbox input,.picker-trigger{font-size:18px}.tabs button,.genre{font-size:17px;min-height:40px;padding:7px 16px}.tabs button span{font-size:14px}.result-line,#refine-button{font-size:14px}.result-line{margin:10px 0 15px}.year-strip{min-height:72px}.year-strip h2{font-size:26px}.year-strip button{font-size:19px}.save-button{width:40px;height:42px}.rating-badge{font-size:12px;padding:7px 9px}}
