/* AniHoshi — listing / filter / A–Z */

.hs-bhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 6px 0 18px; }
.hs-btitle { font-size: 46px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.hs-bcount { display: block; margin-top: 6px; font-size: 14px; color: #8097B2; }
.hs-bcount strong { color: var(--hs-tx-2); }
.hs-bhead .hs-seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.hs-bhead .hs-tab { height: 34px; padding: 0 15px; font-size: 13px; }

.hs-az-lg { margin-bottom: 16px; }
.hs-az-lg a { min-width: 36px; height: 36px; font-size: 13px; }

/* filter form */
.hs-filters { padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.hs-f-kw { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.hs-f-kw svg { position: absolute; left: 14px; color: var(--hs-tx-4); pointer-events: none; }
.hs-f-kw input { width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--hs-line); background: var(--hs-field); color: var(--hs-tx); padding: 0 14px 0 40px; font: 600 13.5px var(--hs-f-body); outline: none; }
.hs-f-kw input:focus { border-color: var(--hs-ac); }
.hs-f-grid { flex: 999 1 640px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.hs-f-go { display: flex; gap: 8px; }
.hs-f-go .hs-btn { height: 44px; }
.hs-filters .filter { min-width: 0; }
.hs-filters .dropdown { position: relative; }
.hs-fb { width: 100%; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--hs-line); background: var(--hs-field); color: var(--hs-tx-2); font: 700 13.5px var(--hs-f-body); display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.hs-fb:hover { border-color: var(--hs-line-2); color: var(--hs-tx); }
.hs-fb .value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-fb::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.hs-filters .dropdown.show .hs-fb { border-color: var(--hs-ac); color: var(--hs-tx); }

.hs-filters .dropdown-menu { min-width: 220px; padding: 10px; list-style: none; margin: 0; }
.hs-filters .dropdown-menu ul { list-style: none; margin: 0; padding: 0; }
.hs-filters .dropdown-menu.c2 { column-count: 2; column-gap: 4px; }
.hs-filters .dropdown-menu.c3 { column-count: 3; column-gap: 4px; }
.hs-filters .dropdown-menu li { break-inside: avoid; }
.hs-filters .dropdown-menu.c4 > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.hs-filters .dropdown-menu.lg { width: 640px; }
.hs-filters .dropdown-menu.md { width: 320px; }
.hs-filters .dropdown-menu li { position: relative; }
.hs-filters .dropdown-menu li > input[type=checkbox], .hs-filters .dropdown-menu li > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.hs-filters .dropdown-menu li > label { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 10px; border-radius: 6px; color: var(--hs-tx-3); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-filters .dropdown-menu li > label::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #4A6282; box-sizing: border-box; }
.hs-filters .dropdown-menu li > input[type=radio] + label::before { border-radius: 50%; }
.hs-filters .dropdown-menu li > label:hover { background: var(--hs-raise); color: var(--hs-tx); }
.hs-filters .dropdown-menu li > input:checked + label { color: var(--hs-tx); background: rgba(38, 163, 214, 0.1); }
.hs-filters .dropdown-menu li > input:checked + label::before { background: var(--hs-ac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306121C' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--hs-ac); }
.hs-filters .dropdown-menu li > input.exclude:checked + label { color: var(--hs-danger); background: rgba(255, 122, 107, 0.1); text-decoration: line-through; }
.hs-filters .dropdown-menu li > input.exclude:checked + label::before { background: var(--hs-hot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A0A06' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--hs-hot); }
.hs-filters .filter-ep-range-fields { display: flex; flex-direction: column; gap: 10px; padding: 4px; min-width: 220px; }
.hs-f-note { display: none; padding: 10px; font-size: 12.5px; color: var(--hs-tx-4); white-space: normal; }
.hs-filters li[style*="none"] + .hs-f-note { display: block; }

.hs-results { margin-top: 4px; }

@media (max-width: 760px) {
    .hs-btitle { font-size: 34px; }
    .hs-f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-f-go { width: 100%; }
    .hs-f-go .hs-btn { flex: 1; }
    .hs-filters .dropdown-menu.lg, .hs-filters .dropdown-menu.md { width: min(92vw, 420px); }
    .hs-filters .dropdown-menu.c4 > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-filters .filter:nth-child(even) .dropdown-menu { left: auto; right: 0; }
}
