#txsnow-homepage .gallery-main{background:#f6f8f3;min-height:65vh;padding:60px 0 80px}
#txsnow-homepage .gallery-heading{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;padding-bottom:36px;border-bottom:1px solid var(--line)}
#txsnow-homepage .gallery-heading h1{font-size:clamp(36px,5vw,64px);letter-spacing:-.04em;line-height:1.2;margin:14px 0}
#txsnow-homepage .gallery-heading p{max-width:680px;color:var(--muted);font-size:16px;line-height:1.8}
#txsnow-homepage .gallery-season{font-size:20px;font-weight:700;color:#5e755d;white-space:nowrap}
#txsnow-homepage .poster-languages{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0 22px}
#txsnow-homepage .poster-languages button{border:1px solid #c7d5c2;background:white;color:var(--ink);border-radius:5px;padding:14px 22px;font-size:15px;font-weight:700;min-height:48px}
#txsnow-homepage .poster-languages button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}
#txsnow-homepage .poster-languages small{font-weight:400;margin-left:12px;opacity:.75}
#txsnow-homepage .gallery-controls{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:25px}
#txsnow-homepage .gallery-controls input{width:320px;max-width:100%;padding:13px 16px;background:white;border:1px solid #c7d5c2;border-radius:4px;font:inherit}
#txsnow-homepage .gallery-count{font-size:13px;color:var(--muted)}
#txsnow-homepage .poster-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}
#txsnow-homepage .poster-card{background:white;border:1px solid #dbe4d6;border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
#txsnow-homepage .poster-image{display:flex;align-items:center;justify-content:center;width:100%;padding:12px;background:#eaf0e4;aspect-ratio:3/4;cursor:zoom-in}
#txsnow-homepage .poster-image img{height:100%;width:100%;object-fit:contain}
#txsnow-homepage .poster-details{padding:18px;display:flex;flex-direction:column;flex:1}
#txsnow-homepage .poster-details h2{font-size:17px;line-height:1.5;margin:8px 0 15px;letter-spacing:0}
#txsnow-homepage .poster-category{font-size:11px;letter-spacing:.04em;color:#6b8263}
#txsnow-homepage .poster-card-actions{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:13px;border-top:1px solid #edf1e9;font-size:12px;font-weight:700}
#txsnow-homepage .poster-card-actions a{text-decoration:underline;text-underline-offset:4px}
#txsnow-homepage .poster-view{background:none;padding:6px 0;color:var(--ink)}
#txsnow-homepage .poster-dialog{width:min(1100px,calc(100% - 28px));max-height:94dvh;padding:14px;border:0;border-radius:8px;background:#f7f9f6;color:var(--ink)}
#txsnow-homepage .poster-dialog::backdrop{background:#051b22df}
#txsnow-homepage .poster-dialog header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 8px 15px}
#txsnow-homepage .poster-dialog h2{font-size:16px;line-height:1.5}
#txsnow-homepage .poster-dialog .poster-close{min-width:44px;min-height:44px;font-size:26px;background:#e6ecdf;border-radius:50%}
#txsnow-homepage .poster-dialog img{width:100%;height:calc(87dvh - 110px);object-fit:contain;display:block}
#txsnow-homepage .poster-dialog footer{padding:14px 8px 4px;text-align:right;font-size:14px}
#txsnow-homepage .poster-dialog footer a{text-decoration:underline;text-underline-offset:4px}
#txsnow-homepage .gallery-empty{padding:50px 0;color:var(--muted)}
@media(max-width:1100px){#txsnow-homepage .poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:740px){#txsnow-homepage .gallery-main{padding:35px 0 55px}#txsnow-homepage .gallery-heading{display:block}#txsnow-homepage .gallery-season{display:none}#txsnow-homepage .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}#txsnow-homepage .poster-details{padding:13px}#txsnow-homepage .poster-details h2{font-size:14px}#txsnow-homepage .gallery-controls{flex-wrap:wrap}#txsnow-homepage .gallery-controls input{width:100%}#txsnow-homepage .poster-languages button{padding:12px 14px}#txsnow-homepage .poster-card-actions{font-size:11px;gap:9px}}
@media(max-width:370px){#txsnow-homepage .poster-grid{grid-template-columns:1fr}}

/* Browse topics first; posters only appear inside the selected collection. */
#txsnow-homepage .gallery-main{padding-top:42px}
#txsnow-homepage .gallery-heading{padding-bottom:26px}
#txsnow-homepage .gallery-heading h1,html[lang^=zh] #txsnow-homepage .gallery-heading h1{font-size:clamp(34px,4vw,52px);line-height:1.2}
#txsnow-homepage .gallery-browser{scroll-margin-top:170px}
#txsnow-homepage .gallery-toolbar{display:flex;align-items:center;gap:22px;min-height:40px;margin:26px 0 22px;flex-wrap:wrap}
#txsnow-homepage .gallery-back{padding:11px 17px;border:1px solid #becdc5;background:white;color:var(--ink);border-radius:6px;font-size:13px;font-weight:700}
#txsnow-homepage .gallery-back[hidden],#txsnow-homepage .gallery-categories[hidden],#txsnow-homepage .gallery-leaf[hidden]{display:none}
#txsnow-homepage .gallery-breadcrumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
#txsnow-homepage .gallery-breadcrumb a{text-decoration:underline;text-underline-offset:4px;color:var(--ink)}
#txsnow-homepage .crumb-divider{opacity:.5}
#txsnow-homepage .gallery-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:25px}
#txsnow-homepage .gallery-section-head h2{font-size:26px;line-height:1.35;letter-spacing:0;outline:none}
#txsnow-homepage .gallery-hint{color:var(--muted);font-size:14px;line-height:1.7}
#txsnow-homepage .gallery-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
#txsnow-homepage .gallery-category{display:flex;flex-direction:column;min-height:210px;border-radius:12px;border:1px solid #c8d7d0;padding:25px;color:var(--ink);text-decoration:none;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;background:#eef4e7}
#txsnow-homepage .gallery-category:hover{transform:translateY(-3px);border-color:#54806b;box-shadow:0 8px 18px #14363c0a}
#txsnow-homepage .gallery-category:focus-visible{outline:3px solid #83a51a;outline-offset:4px}
#txsnow-homepage .category-top{display:flex;justify-content:space-between;gap:20px;font-size:13px;opacity:.7;margin-bottom:28px}
#txsnow-homepage .category-arrow{font-size:22px;line-height:1}
#txsnow-homepage .category-name{font-size:22px;line-height:1.35;letter-spacing:-.02em;margin-top:auto}
#txsnow-homepage .category-description{font-size:13px;line-height:1.6;opacity:.75;margin-top:12px}
#txsnow-homepage .tone-forest{background:#14363c;color:#fff;border-color:#14363c}
#txsnow-homepage .tone-forest .category-name{color:var(--lime)}
#txsnow-homepage .tone-sky,#txsnow-homepage .tone-level-1{background:#e9f2f6;border-color:#cbdde7}
#txsnow-homepage .tone-sage,#txsnow-homepage .tone-level-2{background:#edf4e4;border-color:#d3dec6}
#txsnow-homepage .tone-lavender{background:#f0ebf5;border-color:#ddd4e6}
#txsnow-homepage .tone-sand,#txsnow-homepage .tone-level-3{background:#faf0da;border-color:#e8dab8}
#txsnow-homepage .tone-rose{background:#f9eeec;border-color:#e7d6d2}
#txsnow-homepage .tone-level-4{background:#1d2425;color:#e8d49c;border-color:#b7a66f}
#txsnow-homepage .gallery-count{margin:0 0 18px;font-size:14px}
#txsnow-homepage .poster-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:24px}
#txsnow-homepage .poster-details h3{font-size:18px;line-height:1.5;margin:0 0 16px}
#txsnow-homepage .poster-image{background:#e9eee5}
#txsnow-homepage .gallery-empty{grid-column:1/-1;display:flex;align-items:center;gap:22px;padding:45px 32px;background:white;border:1px dashed #bbcbbb;border-radius:10px;font-size:16px}
#txsnow-homepage .empty-mark{font-size:32px;color:#7a9274}
@media(max-width:1100px){#txsnow-homepage .gallery-categories{grid-template-columns:repeat(3,minmax(0,1fr))}#txsnow-homepage .gallery-category{padding:23px;min-height:200px}}
@media(max-width:740px){#txsnow-homepage .gallery-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}#txsnow-homepage .gallery-category{padding:18px;min-height:190px}#txsnow-homepage .category-name{font-size:19px}#txsnow-homepage .category-description{font-size:12px}#txsnow-homepage .category-top{margin-bottom:21px}#txsnow-homepage .gallery-section-head{display:block}#txsnow-homepage .gallery-section-head h2{font-size:24px;margin-bottom:10px}#txsnow-homepage .gallery-hint{font-size:13px}#txsnow-homepage .gallery-toolbar{gap:15px;margin-top:20px}#txsnow-homepage .gallery-breadcrumb{font-size:12px;gap:8px}#txsnow-homepage .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#txsnow-homepage .poster-details h3{font-size:15px}#txsnow-homepage .poster-card-actions{flex-wrap:wrap}#txsnow-homepage .gallery-empty{padding:30px 20px}#txsnow-homepage .gallery-browser{scroll-margin-top:130px}}
@media(max-width:380px){#txsnow-homepage .gallery-categories,#txsnow-homepage .poster-grid{grid-template-columns:1fr}#txsnow-homepage .gallery-category{min-height:160px}}
@media(prefers-reduced-motion:reduce){#txsnow-homepage .gallery-category{transition:none}}

/* A restrained library surface; lime is reserved for actionable highlights. */
#txsnow-homepage .gallery-main{background:#fff}
#txsnow-homepage .gallery-heading h1,html[lang^=zh] #txsnow-homepage .gallery-heading h1{font-weight:600;color:#202526;letter-spacing:-.025em}
html[lang^=en] #txsnow-homepage .gallery-heading h1{text-transform:uppercase}
#txsnow-homepage .gallery-heading{border-color:#e5e7e5}
#txsnow-homepage .gallery-category{background:#fff;border:1px solid #d9ddda;border-radius:2px;box-shadow:none;padding:26px;min-height:172px;color:#252b2a;transition:border-color .15s,background .15s}
#txsnow-homepage .gallery-category:hover{transform:none;box-shadow:none;border-color:#303a37;background:#f7f8f6}
#txsnow-homepage .category-top{opacity:1;color:#838986;margin-bottom:25px;font-size:11px}
#txsnow-homepage .category-arrow{font-size:19px;color:#535d59}
#txsnow-homepage .category-name{font-size:20px;line-height:1.4;letter-spacing:0;font-weight:500}
#txsnow-homepage .category-description{font-size:12px;color:#707974;opacity:1;margin-top:10px}
#txsnow-homepage .tone-forest{background:#14363c;border-color:#14363c;color:white}
#txsnow-homepage .tone-forest .category-name{color:white}
#txsnow-homepage .tone-forest .category-description,#txsnow-homepage .tone-forest .category-top,#txsnow-homepage .tone-forest .category-arrow{color:#d3dfdc}
#txsnow-homepage .tone-forest:hover{background:#21484d;color:white;border-color:#21484d}
#txsnow-homepage .gallery-section-head h2{font-size:24px;font-weight:500;color:#252c29}
#txsnow-homepage .gallery-back{border-color:#d8ddda;border-radius:2px;font-weight:500}
#txsnow-homepage .poster-card{border:1px solid #e2e6e2;border-radius:2px;background:white}
#txsnow-homepage .poster-image{background:#f4f5f3;padding:16px}
#txsnow-homepage .poster-details{padding:24px}
#txsnow-homepage .poster-details h3{font-weight:500;font-size:17px;letter-spacing:0;color:#26312d}
#txsnow-homepage .poster-card-actions{border-color:#e9ece8;font-weight:400;padding-top:18px}
#txsnow-homepage .poster-audience{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 24px;border-radius:2px;font-size:18px;font-weight:600;line-height:1.4;background:var(--lime);color:#182c29;transition:background .15s}
#txsnow-homepage .poster-audience:hover{background:#bafa2c}
#txsnow-homepage .poster-series{font-size:13px;line-height:1.6;color:#68716c;margin:-4px 0 20px}
@media(max-width:740px){
 #txsnow-homepage .gallery-category{min-height:174px;padding:18px}
 #txsnow-homepage .category-name{font-size:17px}
 #txsnow-homepage .category-description{font-size:11px}
 #txsnow-homepage .poster-details{padding:16px}
 #txsnow-homepage .poster-audience{padding:10px 16px;font-size:16px}
 #txsnow-homepage .poster-details h3{font-size:15px}
 #txsnow-homepage .poster-series{font-size:12px}
}

@media(max-width:600px){#txsnow-homepage .poster-grid{grid-template-columns:1fr}#txsnow-homepage .poster-details{padding:22px}#txsnow-homepage .poster-audience{font-size:18px}}

/* Partner cards retain their original landscape or square proportions. */
#txsnow-homepage .poster-image--original{aspect-ratio:auto}
#txsnow-homepage .poster-image--original img{height:auto;display:block}
