/* AniHoshi anime page (no episodes yet): "AP5 Pocket Hub" from theme/hoshi/anime-page-options-v1.html.
   Markup: resources/themes/hoshi/views/frontend/anime-page.blade.php. Tokens only (dark + light),
   4px corners, compact controls, white text on the accent. */
.hs-ap { --ap-btn: var(--hs-ac-2); --ap-btn-h: color-mix(in srgb, var(--hs-ac-2) 86%, #000); padding-bottom: 36px; }
.hs-ap a { color: inherit; }

/* banner band */
.hs-ap-band { position: relative; height: 210px; overflow: hidden; background: var(--hs-bg-3); }
.hs-ap-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.hs-ap-band.no-img img { filter: blur(26px) saturate(1.3); transform: scale(1.2); opacity: 0.7; }
.hs-ap-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--hs-bg) 2%, color-mix(in srgb, var(--hs-bg) 30%, transparent) 70%, color-mix(in srgb, var(--hs-bg) 10%, transparent)); }

/* head: poster + titles + score tiles */
.hs-ap-top { position: relative; z-index: 2; }
.hs-ap-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-top: -104px; }
.hs-ap-po { aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; border: 3px solid var(--hs-bg-2); background: var(--hs-bg-3); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.hs-ap-po img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-ap-tt { min-width: 0; padding-bottom: 2px; }
.hs-ap-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--hs-tx-4); margin-bottom: 6px; }
.hs-ap-crumbs a:hover { color: var(--hs-ac); }
.hs-ap-crumbs span[aria-current] { color: var(--hs-tx-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.hs-ap-h1 { margin: 0; font: 800 32px/1.1 var(--hs-f-head); letter-spacing: -0.02em; color: var(--hs-tx); text-wrap: balance; }
.hs-ap-jp { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--hs-ac-tx); }
.hs-ap-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.hs-ap-b { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-2); font: 700 11.5px var(--hs-f-body); white-space: nowrap; }
a.hs-ap-b:hover { color: var(--hs-ac); }
.hs-ap-b.ln { background: transparent; box-shadow: inset 0 0 0 1px var(--hs-line-2); }
.hs-ap-b.is-not_yet_aired { background: color-mix(in srgb, var(--hs-dub) 16%, transparent); color: var(--hs-dub-tx); }
.hs-ap-b.is-releasing { background: color-mix(in srgb, var(--hs-ok) 14%, transparent); color: var(--hs-ok); }
.hs-ap-b.is-completed { background: var(--hs-ac-soft); color: var(--hs-ac-tx); }
.hs-ap-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.hs-ap-b.is-not_yet_aired .hs-ap-dot, .hs-ap-st.is-not_yet_aired .hs-ap-dot { animation: hsApPulse 2s ease-in-out infinite; }
@keyframes hsApPulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 6%, transparent); } }
.hs-ap-b:not(.is-not_yet_aired):not(.is-releasing):not(.is-completed) .hs-ap-dot { display: none; }
.hs-ap-scb { display: flex; gap: 8px; padding-bottom: 4px; }
.hs-ap-scb div { min-width: 86px; padding: 8px 10px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-2); text-align: center; }
.hs-ap-scb b { display: block; font: 800 20px/1.1 var(--hs-f-head); color: var(--hs-tx); }
.hs-ap-scb small { font: 600 10.5px var(--hs-f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hs-tx-4); }

/* status rail */
.hs-ap-rail { margin-top: 16px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 7px 7px 7px 14px; border: 1px solid color-mix(in srgb, var(--hs-dub) 32%, var(--hs-line)); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--hs-dub) 11%, transparent), transparent 55%), var(--hs-bg-2); }
.hs-ap-st { display: inline-flex; align-items: center; gap: 7px; font: 700 13px var(--hs-f-body); color: var(--hs-dub-tx); white-space: nowrap; }
.hs-ap-msg { min-width: 0; flex: 1 1 260px; font-size: 13px; font-weight: 600; color: var(--hs-tx-2); }
.hs-ap-msg b { font-weight: 800; color: var(--hs-tx); font-variant-numeric: tabular-nums; }
.hs-ap-msg .sub { font-weight: 500; color: var(--hs-tx-4); }
.hs-ap-msg .sub b { font-weight: 700; color: var(--hs-tx-3); }
.hs-ap-ra { display: flex; gap: 6px; margin-left: auto; }
.hs-ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 4px; border: 0; background: var(--ap-btn); color: #fff; font: 600 12.5px var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, color 0.15s; }
.hs-ap-btn:hover { background: var(--ap-btn-h); }
.hs-ap-btn svg { flex: none; }
.hs-ap-btn.o { background: transparent; color: var(--hs-tx-2); box-shadow: inset 0 0 0 1px var(--hs-line-2); }
.hs-ap-btn.o:hover { color: var(--hs-tx); box-shadow: inset 0 0 0 1px var(--hs-ac); }
.hs-ap-btn.ic { width: 30px; padding: 0; }
.hs-ap-fav { position: relative; }
.hs-ap-fav .dropdown-menu { top: calc(100% + 6px); border-radius: 4px; min-width: 170px; padding: 5px; }
.hs-ap-fav .dropdown-menu .dropdown-item { border-radius: 3px; padding: 7px 10px; font-size: 13px; }
.hs-ap-fav .dropdown-menu.show { display: block; }

/* tabs */
.hs-ap-tabs { position: sticky; top: 56px; z-index: 20; margin-top: 14px; background: color-mix(in srgb, var(--hs-bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--hs-line); }
.hs-ap-tabs .hs-wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hs-ap-tabs .hs-wrap::-webkit-scrollbar { display: none; }
.hs-ap-tabs button { position: relative; flex: none; height: 42px; padding: 0 13px; border: 0; background: none; font: 600 13.5px var(--hs-f-body); color: var(--hs-tx-3); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.hs-ap-tabs button:hover { color: var(--hs-tx); }
.hs-ap-tabs button.on { color: var(--hs-tx); }
.hs-ap-tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--hs-ac); }
.hs-ap-tabs button em { font: 700 10.5px var(--hs-f-body); font-style: normal; padding: 1px 5px; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-3); }
.hs-ap-tabs button.on em { background: var(--ap-btn); color: #fff; }
.hs-ap-tabs button:focus-visible { outline: 2px solid var(--hs-ac); outline-offset: -2px; border-radius: 4px; }

/* layout */
.hs-ap-lay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 18px; }
.hs-ap-lay.no-tabs { padding-top: 22px; }
.hs-ap-main { min-width: 0; }
.hs-ap-main [hidden] { display: none !important; }
.hs-ap-sh { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; }
.hs-ap-sh h2 { margin: 0; display: flex; align-items: center; gap: 9px; font: 700 17px/1.2 var(--hs-f-head); letter-spacing: -0.01em; color: var(--hs-tx); }
.hs-ap-sh .hi { width: 24px; height: 24px; border-radius: 4px; display: inline-grid; place-items: center; background: var(--hs-ac-soft); color: var(--hs-ac); flex: none; }

/* fact tiles */
.hs-ap-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-bottom: 18px; }
.hs-ap-facts > * { display: block; min-width: 0; padding: 8px 10px; border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); }
.hs-ap-facts small { display: block; font: 600 10.5px var(--hs-f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hs-tx-4); }
.hs-ap-facts b { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--hs-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.hs-ap-facts, .hs-ap-facts > a { transition: border-color 0.15s; }
.hs-ap-facts > a:hover { border-color: var(--hs-ac); }
.hs-ap-facts > a:hover b { color: var(--hs-ac); }

/* overview: synopsis + facts | rating */
.hs-ap-ov { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.hs-ap-about { min-width: 0; }
/* read more: 4-line fade + centred chevron divider (same as refine.css on the watch page) */
.hs-ap-syn .shorting { position: relative; }
.hs-ap-syn .shorting .content { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--hs-tx-3); font-size: 14px; line-height: 1.65; }
.hs-ap-syn .shorting.is-long:not(.expand) .content { -webkit-mask: linear-gradient(180deg, #000 45%, transparent 100%); mask: linear-gradient(180deg, #000 45%, transparent 100%); }
.hs-ap-syn .shorting.expand .content { display: block; }
.hs-ap-syn .shorting .toggle { display: none; }
.hs-ap-syn .shorting.is-long .toggle, .hs-ap-syn .shorting.expand .toggle { display: block; position: relative; width: 100%; height: 24px; margin: 6px 0 0; font-size: 0; color: var(--hs-ac); cursor: pointer; background: linear-gradient(var(--hs-line-2), var(--hs-line-2)) center / 100% 1px no-repeat; }
.hs-ap-syn .shorting .toggle::before { content: ""; position: absolute; left: 50%; top: 0; width: 40px; height: 24px; margin-left: -20px; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg); transition: border-color 0.15s, background 0.15s; }
.hs-ap-syn .shorting .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.2s; }
.hs-ap-syn .shorting.is-long:not(.expand) .toggle::after { animation: hsApNudge 1.8s ease-in-out infinite; }
.hs-ap-syn .shorting.expand .toggle::after { transform: rotate(180deg); }
.hs-ap-syn .shorting .toggle:hover::before { border-color: var(--hs-ac); background: color-mix(in srgb, var(--hs-ac) 14%, var(--hs-bg)); }
.hs-ap-syn .shorting .toggle:focus-visible { outline: none; }
.hs-ap-syn .shorting .toggle:focus-visible::before { border-color: var(--hs-ac); box-shadow: 0 0 0 2px var(--hs-ac-soft); }
@keyframes hsApNudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 2px; } }
.hs-ap-gen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hs-ap-gen a { height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 4px; border: 1px solid var(--hs-line-2); font: 600 12px var(--hs-f-body); color: var(--hs-tx-3); transition: color 0.15s, border-color 0.15s; }
.hs-ap-gen a:hover { color: var(--hs-ac); border-color: var(--hs-ac); }
.hs-ap-kv { margin: 14px 0 0; display: grid; gap: 7px; font-size: 13px; }
.hs-ap-kv div { display: flex; gap: 10px; min-width: 0; }
.hs-ap-kv dt { width: 84px; flex: none; color: var(--hs-tx-4); }
.hs-ap-kv dd { margin: 0; min-width: 0; color: var(--hs-tx-2); }
.hs-ap-kv dd a:hover { color: var(--hs-ac); }
.hs-ap-rate { min-width: 0; }
.hs-ap .hs-rate .hs-rate #w-rating.hs-r3, .hs-ap-rate .hs-rate { margin: 0; }
.hs-ap-rate .hs-rate .hs-r3 .stars { --st: 22px; }

/* reactions + note */
.hs-ap-rx { margin-top: 24px; }
.hs-ap-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--hs-tx-4); }
.hs-ap-note svg { color: var(--hs-ac); flex: none; }

/* recommendations */
.hs-ap-recs { margin-top: 26px; }
.hs-ap-grid { gap: 18px 14px; }

/* related banner tiles */
.hs-ap-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hs-ap-rl { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: 86px; padding: 10px 12px; border-radius: 4px; overflow: hidden; border: 1px solid var(--hs-line); background: var(--hs-bg-3); }
.hs-ap-rl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.3s; }
.hs-ap-rl:hover img { transform: scale(1.04); }
.hs-ap-rl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 10, 16, 0.92), rgba(6, 10, 16, 0.45)); }
.hs-ap-rl > span { min-width: 0; }
.hs-ap-rl .k { display: block; font: 700 10.5px var(--hs-f-body); letter-spacing: 0.1em; text-transform: uppercase; color: #8EE6FA; }
.hs-ap-rl b { display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ap-rl small { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); }
.hs-ap-rl.cur { border-color: var(--hs-ac); box-shadow: inset 0 0 0 1px var(--hs-ac); }
.hs-ap-rl.cur .k { color: #FFC56B; }
.hs-ap-rl:hover { border-color: var(--hs-line-2); }

/* trailer */
.hs-ap-tr { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #05080c; }
.hs-ap-tr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hs-ap-trp { position: absolute; inset: 0; display: block; isolation: isolate; color: #fff; }
.hs-ap-trp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.85; }
.hs-ap-trp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 12, 0.8), rgba(5, 8, 12, 0.1) 55%); }
.hs-ap-trp .pl { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 4px; background: var(--ap-btn); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.hs-ap-trp .pl svg { margin-left: 3px; }
.hs-ap-trp:hover .pl { transform: scale(1.06); }
.hs-ap-trp .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; }
.hs-ap-trp .cap b { display: block; font-size: 15px; }
.hs-ap-trp .cap small { font-size: 12px; color: rgba(255, 255, 255, 0.72); }

/* sidebar widgets */
.hs-ap-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hs-ap-w { border: 1px solid var(--hs-line); border-radius: 4px; background: var(--hs-bg-2); overflow: hidden; }
.hs-ap-wh { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--hs-line); font: 700 11.5px var(--hs-f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hs-tx-3); }
.hs-ap-wh svg { color: var(--hs-ac); }
.hs-ap-wh span { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--hs-tx-4); }
.hs-ap-plan { list-style: none; margin: 0; padding: 4px 14px 8px; }
.hs-ap-plan li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--hs-line); font-size: 13px; }
.hs-ap-plan li:last-child { border-bottom: 0; }
.hs-ap-plan .e { min-width: 42px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-2); font: 700 11px var(--hs-f-body); }
.hs-ap-plan li.nx .e { background: var(--ap-btn); color: #fff; }
.hs-ap-plan .d { font-weight: 600; color: var(--hs-tx-2); }
.hs-ap-plan .d small { display: block; font-size: 11.5px; font-weight: 500; color: var(--hs-tx-4); }
.hs-ap-plan .tm { font-size: 12px; color: var(--hs-tx-4); }
.hs-ap-trend { padding: 10px; }

/* ---- series hub (/anime/{slug}: the anime has episodes) ---- */
.hs-ap-crumbs span[aria-hidden] { color: var(--hs-line-2); }
.hs-ap-rail.is-live { border-color: color-mix(in srgb, var(--hs-ac) 30%, var(--hs-line)); background: linear-gradient(90deg, color-mix(in srgb, var(--hs-ac) 10%, transparent), transparent 55%), var(--hs-bg-2); }
.hs-ap-rail.is-live .hs-ap-st { color: var(--hs-ac-tx); }
.hs-ap-rail.is-live .hs-ap-st .hs-ap-dot { animation: none; }
.hs-ap-rail.is-live .hs-ap-st.is-releasing { color: var(--hs-ok); }
.hs-ap-play { padding: 0 14px; font-weight: 700; }
.hs-ap-play.is-continue { background: var(--hs-ok-fill, var(--hs-ok)); }
.hs-ap-play.is-continue:hover { background: color-mix(in srgb, var(--hs-ok-fill, var(--hs-ok)) 85%, #000); }
.hs-ap-note a { color: var(--hs-ac); font-weight: 600; }
.hs-ap-note a:hover { text-decoration: underline; }

.hs-ap-eps { margin-top: 26px; scroll-margin-top: 110px; }
.hs-ap-eph { flex-wrap: wrap; justify-content: space-between; }
.hs-ap-eph h2 em { font: 700 11px var(--hs-f-body); font-style: normal; padding: 2px 6px; border-radius: 3px; background: var(--hs-raise); color: var(--hs-tx-3); }
.hs-ap-etools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hs-ap-seg { display: inline-flex; padding: 2px; border-radius: 4px; background: var(--hs-bg-2); box-shadow: inset 0 0 0 1px var(--hs-line); }
.hs-ap-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 3px; background: none; color: var(--hs-tx-3); font: 600 12px var(--hs-f-body); cursor: pointer; }
.hs-ap-seg button:hover { color: var(--hs-tx); }
.hs-ap-seg button.on { background: var(--ap-btn); color: #fff; }
.hs-ap-jump { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 4px; background: var(--hs-field, var(--hs-bg-2)); box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-tx-4); margin: 0; }
.hs-ap-jump:focus-within { box-shadow: inset 0 0 0 1px var(--hs-ac); }
.hs-ap-jump input { width: 84px; border: 0; outline: 0; background: none; color: var(--hs-tx); font: 600 12.5px var(--hs-f-body); padding: 0; }
.hs-ap-jump input::placeholder { color: var(--hs-tx-4); }
.hs-ap-ranges { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.hs-ap-ranges::-webkit-scrollbar { display: none; }
.hs-ap-ranges button { flex: none; height: 28px; padding: 0 11px; border: 0; border-radius: 4px; background: var(--hs-bg-2); box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-tx-3); font: 700 12px var(--hs-f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.hs-ap-ranges button:hover { color: var(--hs-tx); box-shadow: inset 0 0 0 1px var(--hs-line-2); }
.hs-ap-ranges button.on { background: var(--ap-btn); box-shadow: none; color: #fff; }
.hs-ap-elist { list-style: none; margin: 0; padding: 0; display: grid; }
.hs-ap-elist .ah-off { display: none; }
.hs-ap-elist a { position: relative; display: block; min-width: 0; }
/* cards (titled / stills) */
.hs-ap-elist.is-cards { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px 12px; }
.hs-ap-elist.is-cards .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--hs-bg-3); border: 1px solid var(--hs-line); }
.hs-ap-elist.is-cards .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.hs-ap-elist.is-cards .th img.fb { filter: saturate(0.7) brightness(0.62); }
.hs-ap-elist.is-cards .th .n { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 3px; background: rgba(6, 10, 16, 0.82); color: #fff; font: 800 11px var(--hs-f-body); letter-spacing: 0.02em; }
.hs-ap-elist.is-cards .th .pl { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 4px; background: var(--ap-btn); color: #fff; opacity: 0; transform: scale(0.85); transition: opacity 0.15s, transform 0.15s; }
.hs-ap-elist.is-cards .th .pl svg { margin-left: 2px; }
.hs-ap-elist.is-cards a:hover .th img { transform: scale(1.05); }
.hs-ap-elist.is-cards a:hover .th .pl, .hs-ap-elist.is-cards a:focus-visible .th .pl { opacity: 1; transform: none; }
.hs-ap-elist.is-cards a:hover .th { border-color: var(--hs-ac); }
.hs-ap-elist.is-cards .tx { display: block; padding: 7px 1px 0; }
.hs-ap-elist.is-cards .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--hs-tx); }
.hs-ap-elist.is-cards a:hover .t { color: var(--hs-ac); }
.hs-ap-elist .lg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.hs-ap-elist .lg i { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 5px; border-radius: 3px; font: 700 10.5px var(--hs-f-body); font-style: normal; background: var(--hs-raise); color: var(--hs-tx-3); }
.hs-ap-elist .lg i.s { background: var(--hs-ac-soft); color: var(--hs-ac-tx); }
.hs-ap-elist .lg i.d { background: color-mix(in srgb, var(--hs-dub) 16%, transparent); color: var(--hs-dub-tx); }
.hs-ap-elist .lg i.f { background: color-mix(in srgb, var(--hs-star) 16%, transparent); color: var(--hs-star); }
.hs-ap-elist.is-cards .ah-hit .th { border-color: var(--hs-ac); box-shadow: 0 0 0 2px var(--hs-ac); }
/* compact number grid (long or untitled runs) */
.hs-ap-elist.is-compact { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.hs-ap-elist.is-compact a { height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--hs-bg-2); box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-tx-2); transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.hs-ap-elist.is-compact .n { font: 700 13px var(--hs-f-body); font-variant-numeric: tabular-nums; }
.hs-ap-elist.is-compact .mk { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.hs-ap-elist .mk i, .hs-ap-eleg i { width: 5px; height: 5px; border-radius: 50%; display: block; background: var(--hs-ac); }
.hs-ap-elist .mk i.d, .hs-ap-eleg i.d { background: var(--hs-dub); }
.hs-ap-elist.is-compact a:hover { background: var(--ap-btn); color: #fff; box-shadow: none; }
.hs-ap-elist.is-compact a:hover .mk i { background: #fff; }
.hs-ap-elist.is-compact .filler a { box-shadow: inset 0 -2px 0 var(--hs-star), inset 0 0 0 1px var(--hs-line); }
.hs-ap-elist.is-compact .ah-hit a { box-shadow: inset 0 0 0 2px var(--hs-ac); color: var(--hs-ac); }
.hs-ap-eleg { display: flex; gap: 14px; margin: 10px 0 0; font-size: 11.5px; color: var(--hs-tx-4); }
.hs-ap-eleg span { display: inline-flex; align-items: center; gap: 6px; }

/* responsive */
@media (max-width: 1200px) {
    .hs-ap-lay { grid-template-columns: minmax(0, 1fr) 290px; }
    .hs-ap-ov { grid-template-columns: minmax(0, 1fr); }
    .hs-ap-rate { max-width: 420px; }

}
@media (max-width: 980px) {
    .hs-ap-lay { grid-template-columns: minmax(0, 1fr); }
    .hs-ap-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .hs-ap-head { grid-template-columns: 130px minmax(0, 1fr); }
    .hs-ap-scb { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .hs-ap-band { height: 150px; }
    .hs-ap-head { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; margin-top: -70px; }
    .hs-ap-crumbs { display: none; }
    .hs-ap-h1 { font-size: 21px; }
    .hs-ap-jp { font-size: 12.5px; }
    .hs-ap-pills { margin-top: 8px; }
    .hs-ap-scb div { flex: 1; min-width: 0; }
    .hs-ap-rail { padding: 10px; }
    .hs-ap-msg { flex-basis: 100%; }
    .hs-ap-ra { margin-left: 0; width: 100%; }
    .hs-ap-ra .hs-ap-fav { flex: 1; }
    .hs-ap-ra .hs-ap-fav > .hs-ap-btn { width: 100%; }
    .hs-ap-tabs button { padding: 0 11px; font-size: 13px; }
    .hs-ap-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-ap-facts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .hs-ap-rate { max-width: none; }
    .hs-ap-rel { grid-template-columns: minmax(0, 1fr); }
    .hs-ap-side { grid-template-columns: minmax(0, 1fr); }
    .hs-ap-rail.is-live .hs-ap-ra { flex-wrap: wrap; }
    .hs-ap-rail.is-live .hs-ap-play { flex: 1 1 auto; }
    .hs-ap-rail.is-live .hs-ap-ra .hs-ap-fav { flex: 0 1 auto; }
    .hs-ap-rail.is-live .hs-ap-ra .hs-ap-fav > .hs-ap-btn { width: auto; }
    .hs-ap-etools { width: 100%; margin-left: 0; }
    .hs-ap-jump { flex: 1; }
    .hs-ap-jump input { width: 100%; }
    .hs-ap-elist.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .hs-ap-elist.is-cards .t { font-size: 12.5px; }
    .hs-ap-elist.is-compact { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .hs-ap-dot, .hs-ap-syn .shorting .toggle::after { animation: none !important; }
}
.hs-ap-elist .na a { opacity: 0.55; }
.hs-ap-elist .na a:hover { opacity: 1; }
@media (max-width: 760px) {
    .hs-ap-rail.is-live .hs-ap-ra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
    .hs-ap-rail.is-live .hs-ap-play { grid-column: 1 / -1; }
    .hs-ap-rail.is-live .hs-ap-ra .hs-ap-fav > .hs-ap-btn { width: 100%; }
    .hs-ap-rail.is-live .hs-ap-ra > .hs-ap-btn.ic[data-hs-go] { display: none; }
}

/* anime-level comment thread (#comments.hs-comments on the anime page) */
.hs-ap-cmh { justify-content: space-between; flex-wrap: wrap; }
.hs-ap-cmh .hs-ap-epl { font-size: 12.5px; font-weight: 600; color: var(--hs-ac); white-space: nowrap; }
.hs-ap-cmh .hs-ap-epl:hover { color: var(--hs-ac); text-decoration: underline; }
