/* Anikage v1.5 — desktop poster sizing and Romaji language controls. */
@media (min-width: 1024px) {
  body.an9-body { font-size:14.5px; }
  .an9-card-title { font-size:12.8px; line-height:1.48; min-height:46px; }
  .an9-rank-title { font-size:12.8px; }
  .an9-rank-meta { font-size:10.6px; }
  .an9-rank-row { height:72px; }
  .an9-rank-image { width:43px; flex-basis:43px; height:57px; }
  .an9-rank-info { gap:3px; }
  .an9-footer-nav a { font-size:11.6px; }
  .an9-footer-bottom { font-size:11.6px; }
  .an9-watch-title-text h1 { font-size:15px; }
  .an9-watch-title-text p { font-size:11.7px; }
  .an9-watch-mini-poster { width:45px; height:45px; flex-basis:45px; }
  .an9-watch-episode-copy strong, .an9-watch-aside-cards strong { font-size:12px; }
  .an9-watch-aside-cards small { font-size:10.7px; }
  .an9-watch-episode-row { min-height:80px; }
  .an9-watch-episode-thumb { flex-basis:110px; height:69px; }
  .an9-watch-side-cover { width:52px; flex-basis:52px; height:64px; }
  .an9-watch-description-card { font-size:13.2px; }
  .an9-detail-related-title { font-size:13px; }
  .an9-detail-panel { font-size:14px; }
}
@media (min-width:1024px) and (max-width:1279px) {
  .an9-horizontal-track>.an9-card { flex-basis:calc((100% - 5.6 * 14px) / 6.6); }
}
@media (min-width:1280px) and (max-width:1599px) {
  .an9-horizontal-track>.an9-card { flex-basis:calc((100% - 7.5 * 13px) / 8.5); }
}
@media (min-width:1441px) and (max-width:1599px) {
  .an9-discover-section .an9-card-grid {grid-template-columns:repeat(7,minmax(0,1fr));}
}
@media (min-width:1600px) {
  .an9-horizontal-track>.an9-card { flex-basis:calc((100% - 9.4 * 15px) / 10.4); }
  .an9-discover-section .an9-card-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
}
.an9-watch-open-provider { font-size:11px; padding:3px 8px; border-radius:8px; color:var(--an9-text)!important; background:var(--an9-elevated); border:1px solid var(--an9-border2); white-space:nowrap; }
.an9-watch-open-provider:hover { border-color:var(--an9-muted); }
.an9-watch-visits { color:var(--an9-muted); }
@media(max-width:650px) { .an9-watch-open-provider{font-size:10px;padding:2px 5px;} .an9-watch-visits{display:block;margin-top:2px;} }

/* v1.5: slightly roomier desktop posters. Mobile remains at three across. */
@media (min-width:1024px) and (max-width:1279px) {
  .an9-horizontal-track>.an9-card {flex-basis:calc((100% - 5.2 * 14px) / 6.2);}
}
@media (min-width:1280px) and (max-width:1599px) {
  .an9-horizontal-track>.an9-card {flex-basis:calc((100% - 6.9 * 13px) / 7.9);}
}
@media (min-width:1441px) and (max-width:1599px) {
  .an9-discover-section .an9-card-grid {grid-template-columns:repeat(7,minmax(0,1fr));}
}
@media (min-width:1600px) {
  .an9-horizontal-track>.an9-card {flex-basis:calc((100% - 8.7 * 15px) / 9.7);}
  .an9-discover-section .an9-card-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
}
/* Visible on desktop header and mobile menu, synchronized with footer and settings. */
.an9-header-lang { background:rgba(14,14,14,.88);border-color:rgba(255,255,255,.15);height:34px;padding:2px 3px;flex:0 0 auto; }
.an9-header-lang button {font-size:10px;padding:5px 7px;min-width:27px;}
.an9-header-lang button.is-active {background:#303035; color:#fff;}
.an9-mobile-title-lang {width:max-content;margin:8px 12px 11px;padding:4px;}
.an9-mobile-title-lang button {font-size:12px;padding:7px 10px;}
@media(max-width:1100px){.an9-header-lang{display:none;}}
@media(min-width:651px){.an9-mobile-title-lang{display:none;}}
