/* AniHoshi refinement layer — loaded last.
   Spacing, radii and type sizes follow the anikototv.to rhythm: 5px posters,
   20px grid gutters, 40px between sections, 13.5px base text. */

:root { --hs-wrap: 1800px; --hs-radius: 10px; }
body.hs { font-size: 13.5px; }
.hs-wrap { padding-left: 2.2rem; padding-right: 2.2rem; }
.hs-main { padding-top: 24px; }

/* sections */
.hs-sec { margin-top: 40px; }
.hs-sh { margin-bottom: 16px; }
.hs-sh h2, .hs-h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.005em; }
.hs-panel .hs-sh h2 { font-size: 1.45rem; }
.hs-two, .hs-duo { margin-top: 40px; gap: 20px; }

/* grids + cards */
.hs-grid { gap: 22px 20px; }
.hs-card .frame { border-radius: 5px; }
.hs-card .ttl { margin-top: 2px; font-size: 1.12rem; font-weight: 600; color: var(--hs-tx-2); line-height: 1.35; }
.hs-card:hover .ttl { color: var(--hs-ac); }
.hs-card .sub { margin-top: -4px; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; color: #6F87A3; }
.hs-card .sub .dt { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.hs-card .frame::after { background: linear-gradient(0deg, rgba(8, 15, 24, 0.85) 0%, rgba(8, 15, 24, 0) 38%), linear-gradient(180deg, rgba(8, 15, 24, 0.45) 0%, rgba(8, 15, 24, 0) 22%); }
.hs-card .bl, .hs-card .br, .hs-card .tl { display: none; }

/* card badges: top score/rating chip + bottom glass episode pill */
.hs-cb-top { position: absolute; z-index: 2; left: 7px; top: 7px; right: 7px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.hs-cb-top > span { height: 20px; padding: 0 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; background: rgba(8, 15, 24, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #E6ECF3; border: 1px solid rgba(255, 255, 255, 0.08); }
.hs-cb-top .sc { color: var(--hs-star); }
.hs-cb-top .rt { color: #CAD6E3; }
.hs-cb-top .new { background: var(--hs-hot); color: #2A0A06; border-color: transparent; }
.hs-cb-eps, .hs-pill-sm { display: inline-flex; align-items: center; height: 22px; border-radius: 5px; overflow: hidden; background: rgba(8, 15, 24, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; font-weight: 800; color: #E6ECF3; font-variant-numeric: tabular-nums; }
.hs-cb-eps { position: absolute; z-index: 2; left: 7px; bottom: 7px; }
.hs-cb-eps > span, .hs-pill-sm > span { height: 100%; padding: 0 6px; display: inline-flex; align-items: center; gap: 4px; }
.hs-cb-eps > span + span, .hs-pill-sm > span + span { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hs-cb-eps .s, .hs-pill-sm .s { color: #9FDBF5; }
.hs-cb-eps .s svg, .hs-pill-sm .s svg { color: var(--hs-ac); }
.hs-cb-eps .d, .hs-pill-sm .d { color: #F8D49C; }
.hs-cb-eps .d svg, .hs-pill-sm .d svg { color: var(--hs-dub); }
.hs-cb-eps .t, .hs-pill-sm .t { color: #B6C6D8; }
.hs-pill-sm { height: 20px; font-size: 10.5px; background: rgba(255, 255, 255, 0.06); backdrop-filter: none; }

/* trending: ranked cards with blurred artwork */
.hs-trend2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.hs-trend2.col { grid-template-columns: 1fr; gap: 10px; }
.hs-tr { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; height: 104px; padding: 10px 14px 10px 0; border-radius: 10px; overflow: hidden; background: #0E1A28; border: 1px solid var(--hs-line); isolation: isolate; transition: border-color 0.2s, transform 0.2s; }
.hs-tr .bg { position: absolute; inset: -10px; z-index: -2; background-size: cover; background-position: center 25%; filter: blur(10px) saturate(1.1); opacity: 0.32; transition: opacity 0.25s; }
.hs-tr::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 22, 34, 0.94) 0%, rgba(11, 22, 34, 0.7) 60%, rgba(11, 22, 34, 0.5) 100%); }
.hs-tr:hover { border-color: var(--hs-line-ac); transform: translateY(-2px); }
.hs-tr:hover .bg { opacity: 0.5; }
.hs-tr .rk { width: 54px; flex-shrink: 0; text-align: center; font-size: 46px; line-height: 1; font-style: italic; color: transparent; -webkit-text-stroke: 1.5px rgba(160, 177, 197, 0.75); transform: skewX(-6deg); }
.hs-tr:nth-child(-n+3) .rk { -webkit-text-stroke: 0; background: linear-gradient(180deg, #8FE0FF 0%, var(--hs-ac) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-tr .ps { width: 56px; height: 78px; flex-shrink: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.hs-tr .ps img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-tr .tx { min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.hs-tr:hover .tx > .t { color: var(--hs-ac); }
.hs-tr .m { display: flex; gap: 8px; font-size: 12px; font-weight: 700; color: var(--hs-tx-3); }
.hs-trend2.col .hs-tr { height: 92px; }
.hs-trend2.col .hs-tr .rk { width: 44px; font-size: 38px; }
.hs-trend2.col .hs-tr .ps { width: 50px; height: 70px; }

/* continue watching: one scrolling line */
.hs-cw-row { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; padding-bottom: 4px; }
.hs-cw-row .hs-cwc { flex: 0 0 320px; scroll-snap-align: start; }
.hs-cwc .fr { border-radius: 8px; }
#continue-watching .hs-sh .hs-gnav { margin-left: auto; }

/* header nav with icons */
.hs-nav { gap: 6px; }
.hs-nav > a, .hs-nav > .hs-dd > button { height: 40px; padding: 0 12px; border-radius: 8px; gap: 8px; font-size: 14px; }
.hs-nav > a .ni, .hs-nav > .hs-dd > button .ni { color: #6F87A3; transition: color 0.15s; }
.hs-nav > a:hover, .hs-nav > .hs-dd > button:hover, .hs-dd.open > button { background: var(--hs-raise); color: var(--hs-tx); }
.hs-nav > a:hover .ni, .hs-nav > .hs-dd > button:hover .ni { color: var(--hs-ac); }
.hs-nav > a.on { background: var(--hs-ac-soft); color: #fff; }
.hs-nav > a.on .ni { color: var(--hs-ac); }
.hs-nav > a.on::after { display: none; }
.hs-dd-menu { top: calc(100% + 8px); }
.hs-dd-menu a { border-radius: 6px; }
@media (max-width: 1500px) { .hs-nav > a > span, .hs-nav > .hs-dd > button > span { font-size: 13.5px; } .hs-nav > a, .hs-nav > .hs-dd > button { padding: 0 10px; } }
@media (max-width: 1320px) { .hs-nav > a:not(.on) > span:not(:only-child) { display: inline; } .hs-nav .ni { display: none; } }

/* drawer polish */
.hs-drawer a { border-radius: 6px; }

@media (max-width: 1150px) {
    .hs-trend2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hs-wrap { padding-left: 14px; padding-right: 14px; }
    #player-wrapper { margin: 0 -14px; }
    .hs-sh h2, .hs-h2 { font-size: 1.4rem; }
    .hs-grid { gap: 18px 12px; }
    .hs-card .ttl { font-size: 1.02rem; }
    .hs-trend2 { grid-template-columns: 1fr; }
    .hs-cw-row .hs-cwc { flex-basis: 78vw; }
    #continue-watching .hs-gnav { display: none; }
}

/* footer v2 */
.hs-footer { margin-top: 64px; border-top: 1px solid var(--hs-field); background: linear-gradient(180deg, #0A1420 0%, #08111B 100%); }
.hs-footer .hs-wrap.hs-foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 28px; }
.hs-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hs-foot-brand p { margin: 0; max-width: 340px; font-size: 13px; line-height: 1.6; color: var(--hs-tx-4); }
.hs-foot-brand .socials { display: flex; gap: 6px; }
.hs-soc { width: 34px; height: 34px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--hs-field); border: 1px solid var(--hs-line); color: var(--hs-tx-3) !important; }
.hs-soc:hover { border-color: var(--hs-ac); color: var(--hs-ac) !important; }
.hs-foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.hs-foot-col .hd { margin-bottom: 4px; font: 800 12px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-tx-2); }
.hs-foot-col a { color: #7D93AE !important; width: fit-content; }
.hs-foot-col a:hover { color: var(--hs-ac) !important; }
.hs-footer .hs-wrap.hs-foot-az { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid #142131; }
.hs-foot-lbl { flex-shrink: 0; font: 800 12px var(--hs-f-body); letter-spacing: 0.12em; color: var(--hs-tx-3); }
.hs-az-sm { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hs-az-sm a { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; background: transparent; border: 1px solid transparent; color: #7D93AE !important; }
.hs-az-sm a:hover { background: var(--hs-ac-fill); border-color: var(--hs-ac-fill); color: var(--hs-ink) !important; }
.hs-foot-bar { border-top: 1px solid #142131; }
.hs-foot-bar .hs-wrap { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 16px; font-size: 12px; color: #56708F; }
.hs-footer nav a { color: inherit; }
/* listing A–Z (top of /az-list) tighter too */
.hs-az-lg { gap: 4px; margin-bottom: 18px; }
.hs-az-lg a { min-width: 32px; height: 32px; border-radius: 5px; font-size: 12.5px; }
@media (max-width: 1150px) { .hs-footer .hs-wrap.hs-foot-top { grid-template-columns: 1fr 1fr 1fr; } .hs-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) {
    .hs-footer .hs-wrap.hs-foot-top { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 28px; }
    .hs-footer .hs-wrap.hs-foot-az { flex-direction: column; align-items: flex-start; }
    .hs-az-sm a { min-width: 30px; height: 30px; }
}
/* fixes: pill vs title class clash, footer gaps */
.hs-tr .tx > .t { font-size: 1.08rem; font-weight: 700; color: #fff; }
.hs-tr .hs-pill-sm { align-self: flex-start; }
.hs-tr .hs-pill-sm .t { font-size: 10.5px; font-weight: 800; color: #B6C6D8; }
.hs-footer nav.hs-foot-col { gap: 9px; }
.hs-footer nav.hs-az-sm { gap: 3px; }
.hs-footer .hs-foot-az { gap: 14px !important; padding-bottom: 14px !important; }

/* ===== episode badges: split strip (design B2) ===== */
.hs-cb-eps, .hs-pill-sm { display: flex; align-items: stretch; padding: 0; gap: 0; overflow: hidden; font: 800 11px/1 var(--hs-f-body); font-variant-numeric: tabular-nums; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.hs-cb-eps > span, .hs-pill-sm > span { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; height: auto; margin: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; border: 0 !important; white-space: nowrap; }
.hs-cb-eps > span + span, .hs-pill-sm > span + span { border-left: 1px solid rgba(255, 255, 255, 0.09) !important; }
.hs-cb-eps .s, .hs-pill-sm .s { color: #5CC8F0 !important; }
.hs-cb-eps .d, .hs-pill-sm .d { color: #FFC56B !important; }
.hs-cb-eps .s svg, .hs-cb-eps .d svg, .hs-pill-sm .s svg, .hs-pill-sm .d svg { color: currentColor !important; }
.hs-cb-eps .t, .hs-pill-sm .t { color: #C3D0DE !important; }
.hs-cb-eps .t em, .hs-pill-sm .t em { font-style: normal; font-size: 9.5px; letter-spacing: 0.05em; color: #8FA3BB; margin-left: 2px; }
.hs-cb-eps { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 26px; border-radius: 0; background: rgba(7, 13, 22, 0.9) !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.08) !important; }
.hs-pill-sm { display: inline-flex; align-self: flex-start; height: 21px; border-radius: 4px; font-size: 10.5px; background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; }
.hs-pill-sm > span { flex: 0 0 auto; padding: 0 7px; }
/* icons inside text badges / servers / episode list */
.hs-b .hs-li { margin-right: 1px; }
.hs-srv .type label { display: inline-flex; align-items: center; gap: 3px; }
.hs-srv .type label small { font-size: 10px; font-weight: 800; }
.hs-eps .episodes a .lg i { display: inline-flex; align-items: center; padding: 2px 5px; }

/* ===== servers: info panel + coloured language rows (design S2) ===== */
.hs-srv { grid-template-columns: 210px minmax(0, 1fr); }
.hs-srv-tip { padding: 16px; gap: 2px; }
.hs-srv-tip .a { font-size: 12px; font-weight: 700; }
.hs-srv-tip .b { font: 800 20px/1.2 var(--hs-f-head); margin-bottom: 4px; }
.hs-srv-tip .c { font-size: 12px; }
.hs-srv .servers { padding: 0; gap: 0; }
.hs-srv .type { gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hs-line); }
.hs-srv .type:last-child { border-bottom: 0; }
.hs-srv .type label { width: 76px; height: 28px; flex-shrink: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: 800 11.5px var(--hs-f-body); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(38, 163, 214, 0.16); color: #6BD3F7; }
.hs-srv .type[data-type="hsub"] label { background: rgba(156, 140, 245, 0.16); color: #BDB1FF; }
.hs-srv .type[data-type="dub"] label, .hs-srv .type[data-type="adub"] label { background: rgba(245, 180, 81, 0.16); color: #FFCB7A; }
.hs-srv .type[data-type="raw"] label { background: rgba(255, 255, 255, 0.07); color: var(--hs-tx-3); }
.hs-srv .type ul { gap: 6px; }
.hs-srv .type li { height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: #16263A; color: #C9D6E4; font: 800 12.5px var(--hs-f-body); transition: background 0.15s, color 0.15s; }
.hs-srv .type li:hover { background: #1D3149; color: #fff; }
.hs-srv .type li.active { background: var(--hs-ac-fill); color: #fff; }
.hs-srv .type[data-type="dub"] li.active, .hs-srv .type[data-type="adub"] li.active { background: #E0912A; color: #fff; }
.hs-srv .mapper-dl-row { padding: 10px 14px; gap: 6px 12px; }
.hs-srv .mapper-dl-row > label { width: 76px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: rgba(79, 214, 156, 0.14); color: #7BE6B7; font-size: 11.5px; }
@media (max-width: 760px) {
    .hs-srv { grid-template-columns: 1fr; }
    .hs-srv .type { padding: 9px 12px; gap: 10px; }
    .hs-srv .type label { width: auto; padding: 0 9px; }
}

/* ===== related: banner tiles (design R3) ===== */
#w-related .hs-sh { display: flex; align-items: center; justify-content: space-between; }
.hs-rel-n { font-size: 12px; font-weight: 700; color: var(--hs-tx-4); }
.hs-rel3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.hs-rel3 a { position: relative; height: 92px; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; padding: 10px 12px; isolation: isolate; border: 1px solid transparent; transition: border-color 0.15s; }
.hs-rel3 a.rel-collapse-hidden { display: none; }
.hs-rel3 a img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.3s ease; }
.hs-rel3 a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 22, 0.95) 0%, rgba(8, 14, 22, 0.6) 65%, rgba(8, 14, 22, 0.25) 100%); }
.hs-rel3 a:hover { border-color: rgba(38, 163, 214, 0.6); }
.hs-rel3 a:hover img { transform: scale(1.05); }
.hs-rel3 .tx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; max-width: 100%; }
.hs-rel3 .t { font: 800 14px/1.25 var(--hs-f-head); color: #fff; max-width: 100%; }
.hs-rel3 a:hover .t { color: var(--hs-ac-tx); }
.hs-rel3 .m { font-size: 11px; font-weight: 600; color: var(--hs-tx-2); }
.hs-rtag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font: 800 9.5px var(--hs-f-body); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 2px; }
.hs-rtag.pq { background: rgba(156, 140, 245, 0.22); color: #C8BEFF; }
.hs-rtag.sq { background: rgba(79, 214, 156, 0.2); color: #86EBC0; }
.hs-rtag.ss { background: rgba(245, 180, 81, 0.2); color: #FFCF85; }
.hs-rtag.ot { background: rgba(255, 255, 255, 0.12); color: #D5DEE8; }
@media (prefers-reduced-motion: reduce) { .hs-rel3 a img { transition: none; } }

/* ===== buttons: compact, consistent across the frontend ===== */
.hs-btn { height: 38px; padding: 0 14px; gap: 7px; border-radius: 6px; font: 700 13px/1 var(--hs-f-body); letter-spacing: 0.01em; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s; }
.hs-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.hs-btn:active { transform: translateY(1px); }
.hs-btn-p { background: linear-gradient(180deg, var(--hs-ac-fill) 0%, var(--hs-ac-fill-h) 100%); border-color: var(--hs-ac-fill-h); color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 14px rgba(38, 163, 214, 0.22); }
.hs-btn-p:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--hs-ac-fill) 92%, #fff) 0%, var(--hs-ac-fill) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(38, 163, 214, 0.32); }
.hs-btn-o { background: #142438; border-color: #26405E; color: #DCE5EF !important; font-weight: 700; }
.hs-btn-o:hover { background: #1A2D45; border-color: var(--hs-ac); color: #fff !important; }
.hs-btn-ghost { background: rgba(11, 22, 34, 0.45); border-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hs-btn-ghost:hover { background: rgba(11, 22, 34, 0.65); border-color: var(--hs-ac); }
.hs-btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.hs-btn-sm svg { width: 14px; height: 14px; }
.hs-sq { width: 38px; height: 38px; padding: 0; }
.hs-slide .b .hs-btn { height: 42px; padding: 0 18px; font-size: 13.5px; }
.hs-tipc .ac > .hs-btn { height: 36px; font-size: 13px; }
.hs-tipc .ac .hs-sq { width: 36px; height: 36px; }
.hs-social .hs-btn { height: 38px; font-size: 13px; }
.hs-f-go .hs-btn { height: 40px; }
.hs-chip { height: 34px; padding: 0 12px; gap: 6px; border-radius: 6px; font-size: 13px; }
.hs-chip.sm { height: 28px; padding: 0 10px; font-size: 12px; }
body.hs-legacy #body .btn-primary, .hs-comments .btn-primary, .hs-comments button[type=submit] { background: linear-gradient(180deg, var(--hs-ac-fill) 0%, var(--hs-ac-fill-h) 100%) !important; border-color: var(--hs-ac-fill-h) !important; color: #fff !important; border-radius: 6px !important; font-weight: 700 !important; padding: 0 14px !important; min-height: 34px; line-height: 1 !important; }
body.hs-legacy #body .btn-secondary, body.hs-legacy #body .btn-light { border-radius: 6px; padding: 0 14px; min-height: 34px; }
@media (max-width: 760px) { .hs-slide .b .hs-btn { height: 40px; } }

/* ===== filter page: flat compact grid (design F5) ===== */
.hs-bhead { align-items: center; margin: 4px 0 14px; }
.hs-btitle { font: 700 24px/1.2 var(--hs-f-head) !important; text-transform: none !important; letter-spacing: -0.01em !important; color: #fff; margin: 0; }
.hs-bhead .hs-tab { height: 30px; padding: 0 12px; font-size: 12.5px; }
.hs-filters { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 0 !important; margin-bottom: 0; background: none !important; border: 0 !important; box-shadow: none !important; }
.hs-filters .hs-f-grid { display: contents; }
.hs-f-kw { flex: none; min-width: 0; }
.hs-f-kw svg { left: 10px; width: 14px; height: 14px; }
.hs-f-kw input { height: 32px; border-radius: 4px; border: 0; background: #101C2A; box-shadow: inset 0 0 0 1px #22364E; padding: 0 10px 0 30px; font: 600 12.5px var(--hs-f-body); }
.hs-f-kw input:focus { box-shadow: inset 0 0 0 1px var(--hs-ac); }
.hs-fb { height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: #172638; color: #9FB1C6; font: 600 12.5px var(--hs-f-body); }
.hs-fb:hover { background: #1B2D43; color: #fff; }
.hs-fb::after { width: 6px; height: 6px; border-width: 0 1.6px 1.6px 0; opacity: 0.6; }
.hs-filters .dropdown.show .hs-fb { background: #1B3048; box-shadow: inset 0 0 0 1px #2B6E94; color: #fff; }
.hs-f-go { grid-column: span 2; display: flex; gap: 8px; }
.hs-f-go .hs-btn { height: 32px !important; padding: 0 14px; border-radius: 4px; font-size: 12.5px; }
.hs-f-go .hs-btn-o { background: transparent; border-color: #22364E; color: #9FB1C6 !important; }
.hs-filters .dropdown-menu li > input:checked + label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.hs-rbar { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; }
.hs-rbar .hs-bcount { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--hs-tx-4); }
.hs-vt { display: flex; gap: 4px; }
.hs-vt button { width: 30px; height: 28px; border: 0; border-radius: 4px; background: none; color: #6E85A1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hs-vt button:hover { color: #fff; }
.hs-vt button[aria-pressed="true"] { background: #172638; color: #fff; }
/* list view */
.hs-results.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px 16px !important; }
.hs-results.is-list .hs-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 8px; border-radius: 6px; background: #111E2E; }
.hs-results.is-list .hs-card:hover { background: #16263A; }
.hs-results.is-list .hs-card .frame { grid-row: 1 / span 2; width: 64px; border-radius: 4px; }
.hs-results.is-list .hs-card .hs-cb-eps, .hs-results.is-list .hs-card .hs-cb-top, .hs-results.is-list .hs-card .pl { display: none; }
.hs-results.is-list .hs-card .ttl { margin-top: 6px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-results.is-list .hs-card .sub { margin-top: 0; }
@media (max-width: 1100px) { .hs-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hs-f-go { grid-column: span 4; } }
@media (max-width: 760px) {
    .hs-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-f-kw, .hs-f-go { grid-column: 1 / -1; }
    .hs-f-go .hs-btn { flex: 1; }
    .hs-results.is-list { grid-template-columns: 1fr !important; }
}

/* ===== brand: Hoshi-chan mascot + wordmark ===== */
.hs-logo { gap: 6px; }
.hs-logo-mark { display: block; flex-shrink: 0; margin: -6px -2px -6px -6px; }
.hs-logo-text { display: inline-flex; align-items: center; font-family: "Fredoka", var(--hs-f-head) !important; font-weight: 700 !important; letter-spacing: -0.01em !important; color: #fff; white-space: nowrap; }
.hs-logo-text .hs-logo-tail { display: inline-flex; align-items: center; background: linear-gradient(90deg, #3FD3F2, #6E8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-logo-o { width: 0.6em; height: 0.6em; margin: 0 0.02em; transform: translateY(0.06em); }
@media (max-width: 380px) { .hs-header .hs-logo-mark { width: 34px; height: 34px; } }

/* ===== pagination: joined bar + page count (design P1) ===== */
.hs-pager2 { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.hs-pager2 .ct { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--hs-tx-4); }
.hs-pager2 .ct b { color: var(--hs-tx); font-weight: 700; }
.hs-pager2 .ct i { width: 3px; height: 3px; margin: 0 6px; border-radius: 50%; background: var(--hs-tx-4); }
.hs-pager2 .bar { display: inline-flex; border: 1px solid var(--hs-line-2); border-radius: 4px; overflow: hidden; background: var(--hs-bg-2); }
.hs-pager2 .bar > a, .hs-pager2 .bar > span { position: relative; min-width: 40px; height: 38px; padding: 0 12px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: var(--hs-tx-3); font: 700 13.5px var(--hs-f-body); opacity: 1; }
.hs-pager2 .bar > * + * { border-left: 1px solid var(--hs-line-2); }
.hs-pager2 .bar > a:hover { background: var(--hs-raise); color: var(--hs-tx); }
.hs-pager2 .bar > .on { background: var(--hs-ac-soft); color: var(--hs-tx); }
.hs-pager2 .bar > .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hs-ac); }
.hs-pager2 .bar > .off { color: var(--hs-tx-4); opacity: 0.45; }
.hs-pager2 .bar > .gap { color: var(--hs-tx-4); min-width: 34px; padding: 0 6px; }
@media (max-width: 560px) {
    .hs-pager2 { justify-content: center; }
    .hs-pager2 .ct { width: 100%; justify-content: center; }
    .hs-pager2 .bar > a, .hs-pager2 .bar > span { min-width: 34px; padding: 0 9px; }
}
.hs-pager2 > .ct, .hs-pager2 > .bar { min-width: 0; height: auto; padding: 0; }
.hs-pager2 > .ct { border: 0; background: none; }

/* ===== watch description: fade + "Read more" only when the text overflows ===== */
.hs-info .shorting { position: relative; }
.hs-info .shorting .content { position: relative; -webkit-line-clamp: 4 !important; }
.hs-info .shorting.is-long:not(.expand) .content { -webkit-mask: linear-gradient(180deg, #000 45%, transparent 100%); mask: linear-gradient(180deg, #000 45%, transparent 100%); }
.hs-info .shorting .toggle { display: none !important; }
.hs-info .shorting.is-long .toggle, .hs-info .shorting.expand .toggle { display: inline-flex !important; align-items: center; gap: 6px; height: 28px; margin-top: 6px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--hs-line-2); background: var(--hs-bg-2); font-size: 0 !important; color: var(--hs-ac); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.hs-info .shorting .toggle::before { content: "Read more"; font: 700 12.5px var(--hs-f-body); }
.hs-info .shorting .toggle::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
.hs-info .shorting.expand .toggle::before { content: "Show less"; }
.hs-info .shorting.expand .toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.hs-info .shorting .toggle:hover { border-color: var(--hs-ac); background: var(--hs-ac-soft); }

/* ===== footer A–Z: one row that fills the full width, wraps evenly on small screens ===== */
.hs-footer .hs-wrap.hs-foot-az { flex-wrap: nowrap !important; }
.hs-footer .hs-foot-az .hs-az-sm { flex: 1 1 auto; min-width: 0; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 4px !important; }
.hs-footer .hs-foot-az .hs-az-sm a { width: auto; min-width: 0; height: 30px; padding: 0; justify-content: center; }
.hs-footer .hs-foot-az .hs-az-sm a:nth-child(-n+3) { grid-column: span 1; }
@media (max-width: 760px) { .hs-footer .hs-wrap.hs-foot-az { flex-direction: column; align-items: stretch !important; } }

/* ===== comment reactions: one line (equal-width chips; scrolls sideways on phones) ===== */
#cm-reactions .cm-reactions-inner { display: flex !important; flex-wrap: nowrap !important; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
#cm-reactions .cm-reactions-inner::-webkit-scrollbar { display: none; }
#cm-reactions .cm-rx { flex: 1 1 0; min-width: 74px; height: 36px; margin: 0 !important; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px !important; border: 1px solid var(--hs-line-2); background: var(--hs-bg-2); color: var(--hs-tx-2); font: 600 12.5px var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
#cm-reactions .cm-rx:hover { border-color: var(--hs-ac); background: var(--hs-ac-soft); transform: translateY(-1px); }
#cm-reactions .cm-rx.active, #cm-reactions .cm-rx.is-active, #cm-reactions .cm-rx[aria-pressed="true"] { border-color: var(--hs-ac); background: var(--hs-ac-soft); color: var(--hs-tx); }
#cm-reactions .cm-rx-gif { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
#cm-reactions .cm-rx-emoji { font-size: 16px; line-height: 1; }
#cm-reactions .cm-rx-label { overflow: hidden; text-overflow: ellipsis; }
#cm-reactions .cm-rx-count { font-weight: 800; color: var(--hs-ac); }
#cm-reactions .cm-rx-count:empty { display: none; }
@media (max-width: 1280px) and (min-width: 761px) { #cm-reactions .cm-rx { min-width: 40px; } #cm-reactions .cm-rx-label { display: none; } }
@media (max-width: 760px) { #cm-reactions .cm-rx { flex: 0 0 auto; min-width: 0; } }
/* description toggle: a chevron pill sitting on a hairline, centred on the text column, no text.
   The chevron is an SVG mask (a rotated border square never looks centred). */
.hs-info .shorting.is-long .toggle, .hs-info .shorting.expand .toggle { display: block !important; position: relative; width: 100%; height: 24px; margin: 6px 0 0; padding: 0; border: 0 !important; border-radius: 0; background: linear-gradient(var(--hs-line-2), var(--hs-line-2)) center / 100% 1px no-repeat !important; }
.hs-info .shorting .toggle::before { content: "" !important; 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-2); transition: border-color 0.15s, background 0.15s; }
.hs-info .shorting .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 0; background: currentColor; transform: none; -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-info .shorting.expand .toggle::after { margin-top: -7px; transform: rotate(180deg); }
.hs-info .shorting .toggle:hover::before { border-color: var(--hs-ac); background: var(--hs-ac-soft); }
.hs-info .shorting.is-long:not(.expand) .toggle::after { animation: hsNudge 1.8s ease-in-out infinite; }
@keyframes hsNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .hs-info .shorting .toggle::after { animation: none !important; } }

/* ===== shared: 4px corners for menus, modals, toasts; Mana Shop avatar decorations everywhere ===== */
.hs .dropdown-menu, .hs .hs-dd-menu, .search-popup { border-radius: 4px !important; }
.modal-content { border-radius: 4px !important; }
#toast > *, #toast .toast, .hs-toast { border-radius: 4px !important; }
.has-cosmetics { position: relative; overflow: visible !important; }
.has-cosmetics .avatar-clip { position: absolute; inset: 0; display: block; border-radius: 50%; overflow: hidden; z-index: 1; }
.has-cosmetics .avatar-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; max-width: none; }
.has-cosmetics .avatar-decoration { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; max-width: none; z-index: 2; pointer-events: none; object-fit: contain; border-radius: 0; }
#toast .alert { border-radius: 4px !important; }

/* ===== logo: Hoshi-chan hops once on load and again on hover (L2) ===== */
.hs-logo-mark{transform-origin:50% 90%;animation:hsHop 1s cubic-bezier(.3,.7,.4,1) .25s 1 both}
.hs-logo:hover .hs-logo-mark,.brand:hover .hs-logo-mark{animation:hsHop2 1s cubic-bezier(.3,.7,.4,1) 1 both}
@keyframes hsHop{0%{transform:translateY(0) scale(1,1)}12%{transform:translateY(0) scale(1.12,.86)}35%{transform:translateY(-9px) scale(.94,1.08)}55%{transform:translateY(0) scale(1.1,.9)}70%{transform:translateY(-3px) scale(.98,1.03)}85%,100%{transform:translateY(0) scale(1,1)}}
@keyframes hsHop2{0%{transform:translateY(0) scale(1,1)}12%{transform:translateY(0) scale(1.12,.86)}35%{transform:translateY(-9px) scale(.94,1.08)}55%{transform:translateY(0) scale(1.1,.9)}70%{transform:translateY(-3px) scale(.98,1.03)}85%,100%{transform:translateY(0) scale(1,1)}}
@media (prefers-reduced-motion:reduce){.hs-logo-mark,.hs-logo:hover .hs-logo-mark,.brand:hover .hs-logo-mark{animation:none}}

/* ===== pagination: minimal underline (design P2) ===== */
.hs-pgu { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.hs-pgu > *, .hs-pgu .nums > * { min-width: 0; height: auto; padding: 0; border: 0 !important; background: none !important; border-radius: 0; opacity: 1; }
.hs-pgu .nv { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px var(--hs-f-body); color: var(--hs-tx-3); transition: color 0.15s; }
.hs-pgu a.nv:hover { color: var(--hs-ac); }
.hs-pgu a.nv:hover svg { transform: translateX(var(--hs-pgu-x, 0)); }
.hs-pgu a.nv[rel="prev"] { --hs-pgu-x: -3px; }
.hs-pgu a.nv[rel="next"] { --hs-pgu-x: 3px; }
.hs-pgu .nv svg { transition: transform 0.15s; }
.hs-pgu .nv.off { color: var(--hs-tx-4); opacity: 0.4; }
.hs-pgu .nums { display: flex; align-items: center; gap: 4px; }
.hs-pgu .nums > a, .hs-pgu .nums > .on { position: relative; width: 36px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--hs-f-body); color: var(--hs-tx-4); transition: color 0.15s; }
.hs-pgu .nums > a:hover { color: var(--hs-tx); }
.hs-pgu .nums > .on { color: var(--hs-tx); }
.hs-pgu .nums > .on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--hs-ac); }
.hs-pgu .nums > .gap { width: 22px; display: inline-flex; justify-content: center; color: var(--hs-tx-4); }
@media (max-width: 560px) { .hs-pgu { gap: 10px; } .hs-pgu .nv > span { display: none; } .hs-pgu .nums > a, .hs-pgu .nums > .on { width: 30px; } }
.hs-pgu .nv > span { min-width: 0; height: auto; padding: 0; border: 0 !important; background: none !important; border-radius: 0; color: inherit; font: inherit; opacity: 1; display: inline; }

/* ===== empty schedule day: "Next up" pointer ===== */
.hs-sch-next { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--hs-line-2); border-left: 3px solid var(--hs-ac); background: var(--hs-ac-soft); text-align: left; color: var(--hs-tx); width: 100%; max-width: 360px; }
.hs-sch-next:hover { border-color: var(--hs-ac); }
.hs-sch-next .k { font: 700 10.5px var(--hs-f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-ac-tx); }
.hs-sch-next b { font: 700 13.5px var(--hs-f-body); color: var(--hs-tx); }
.hs-sch-next .m { font-size: 12px; color: var(--hs-tx-3); }
.pg-sc-empty .hs-sch-next { margin: 14px auto 0; }

/* ===== toasts: icon · text · close with breathing room ===== */
#toast .alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 40px 12px 14px; position: relative; line-height: 1.45; }
#toast .alert > i { flex-shrink: 0; margin-top: 2px; font-size: 15px; }
#toast .alert > .mx-2 { margin: 0 !important; flex: 1; min-width: 0; overflow-wrap: anywhere; }
#toast .alert > .close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: 0.7; cursor: pointer; font-size: 18px; line-height: 1; }
#toast .alert > .close:hover { opacity: 1; background: rgba(127, 140, 160, 0.15); }

/* ===== watch info: "WI5" compact panel (frontend/partials/watch/info.blade.php) =====
   Identity row (poster, title, meta strip, 2-line synopsis, Add to list), the R3 rating as one strip,
   then a <details> fact sheet that starts closed. Mobile: the rating is centred. */
.hs-info.hs-i5 { display: block; margin-top: 18px; padding: 12px 14px; }
.hs-i5-top { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; grid-template-areas: "po hd ac" "po sy ac"; grid-template-rows: auto 1fr; gap: 0 16px; align-items: start; }
.hs-i5-po { grid-area: po; }
.hs-i5-po img { display: block; width: 100px; height: auto; aspect-ratio: 225 / 318; object-fit: cover; border-radius: 4px; background: var(--hs-field); }
.hs-i5-hd { grid-area: hd; min-width: 0; }
.hs-i5-syn { grid-area: sy; min-width: 0; max-width: 1040px; margin-top: 9px; }
.hs-i5-acts { grid-area: ac; }
.hs-i5-tl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hs-i5 .hs-i5-ti { margin: 0; font: 800 25px/1.12 var(--hs-f-head); letter-spacing: -0.02em; text-transform: none; color: var(--hs-tx); }
.hs-i5-names { font-size: 12.5px; font-weight: 500; color: var(--hs-tx-4); }
.hs-i5-ms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; font-size: 12.5px; font-weight: 500; color: var(--hs-tx-3); }
.hs-i5-bds { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-right: 10px; border-right: 1px solid var(--hs-line-2); }
.hs-i5-ms .hs-b { height: 19px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; }
.hs-i5-it { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hs-i5-it .hs-i5-ic { color: var(--hs-tx-4); flex: none; }
.hs-i5-it.hs-i5-st::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.hs-i5-st.is-releasing, .hs-i5-st.is-releasing a { color: var(--hs-ok) !important; }
.hs-i5-st.is-not_yet_aired, .hs-i5-st.is-not_yet_aired a { color: var(--hs-dub) !important; }

/* synopsis: 2 lines + a fade on the last line; the chevron-on-hairline toggle comes from the rules above */
.hs-info.hs-i5 .shorting .content { -webkit-line-clamp: 2 !important; font-size: 13.5px; line-height: 1.6; color: var(--hs-tx-3); }
.hs-info.hs-i5 .shorting.is-long:not(.expand) .content { -webkit-mask: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent); mask: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent); }

/* Add to list (main.js UserFavourite swaps the button's html for data-add / data-edit) */
.hs-i5-fav { position: relative; }
.hs-i5-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 4px; background: var(--hs-ac-2); color: #fff !important; font: 600 12.5px var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: filter 0.15s; }
.hs-i5-add:hover { filter: brightness(0.92); }
.hs-i5-add svg { flex: none; }
.hs-i5-fav .dropdown-menu { top: calc(100% + 6px); min-width: 180px; }

/* R3 rating as one horizontal strip */
.hs-info.hs-i5 .hs-rate { margin-top: 12px; max-width: none; grid-column: auto; }
.hs-i5 .hs-rate #w-rating.hs-r3 { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; padding: 8px 12px; }
.hs-i5 .hs-r3 .hs-r3-l { flex-direction: row; align-items: center; gap: 10px; padding: 0 14px 0 0; border-right: 1px solid var(--hs-line); }
.hs-i5 .hs-r3 .hs-r3-l .sc { font-size: 26px; }
.hs-i5 .hs-r3 .hs-r3-l .mini { margin: 0; }
.hs-i5 .hs-r3 .hs-r3-r { flex-direction: row; align-items: center; gap: 10px; padding: 0 14px; border-right: 1px solid var(--hs-line); }
.hs-i5 .hs-rate .hs-r3 .stars { --st: 20px; }
.hs-i5 .hs-r3 .hs-r3-r .lab { min-height: 0; flex-wrap: nowrap; white-space: nowrap; }
.hs-i5 .hs-r3 .hs-r3-f { display: contents; }
.hs-i5 .hs-r3 .hs-r3-f .ft { padding: 0 14px; font-size: 11.5px; line-height: 1.35; color: var(--hs-tx-4); }
.hs-i5 .hs-r3 .hs-r3-share { height: 26px; padding: 0 9px; font-size: 12px; font-weight: 600; }

/* details: closed by default, a one-line preview in the summary */
.hs-i5-det { margin-top: 8px; border: 1px solid var(--hs-line); border-radius: 4px; }
.hs-i5-det > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 12px; cursor: pointer; font-size: 12.5px; color: var(--hs-tx-3); user-select: none; border-radius: 4px; }
.hs-i5-det > summary::-webkit-details-marker { display: none; }
.hs-i5-det > summary:focus-visible { outline: 2px solid var(--hs-ac); outline-offset: -2px; }
.hs-i5-det .sk { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; color: var(--hs-tx); }
.hs-i5-det .sk svg { color: var(--hs-ac); }
.hs-i5-det .pv { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--hs-tx-4); }
.hs-i5-det .pv b { font-weight: 600; color: var(--hs-tx-3); }
.hs-i5-det .tg { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 600; color: var(--hs-tx-3); }
.hs-i5-det .tg svg { transition: transform 0.2s; }
.hs-i5-det .tg-c { display: none; }
.hs-i5-det > summary:hover .tg { color: var(--hs-ac); }
.hs-i5-det[open] > summary { border-bottom: 1px solid var(--hs-line); border-radius: 4px 4px 0 0; }
.hs-i5-det[open] .pv { visibility: hidden; }
.hs-i5-det[open] .tg-o { display: none; }
.hs-i5-det[open] .tg-c { display: inline; }
.hs-i5-det[open] .tg svg { transform: rotate(180deg); }
.hs-i5-dg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.hs-i5-dg > div { min-width: 0; padding: 8px 12px; border-right: 1px solid var(--hs-line); border-bottom: 1px solid var(--hs-line); }
.hs-i5-dg > div:not(.row):nth-child(4n) { border-right: 0; }
.hs-i5-dg > div:last-child { border-bottom: 0; }
.hs-i5-dg dt { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--hs-tx-4); }
.hs-i5-dg dt .hs-i5-ic { width: 12px; height: 12px; flex: none; }
.hs-i5-dg dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--hs-tx-2); overflow-wrap: anywhere; }
.hs-i5-dg dd a { color: inherit; }
.hs-i5-dg dd a:hover { color: var(--hs-ac); }
.hs-i5-dg .row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-right: 0; }
.hs-i5-dg .row dt { width: 92px; flex: none; }
.hs-i5-dg .row dd { margin: 0; min-width: 0; }
.hs-i5-dg .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.hs-i5-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; border: 1px solid var(--hs-line); background: var(--hs-bg-3); color: var(--hs-tx-2) !important; font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.hs-i5-chip:hover { color: var(--hs-ac) !important; border-color: color-mix(in srgb, var(--hs-ac) 45%, transparent); }

@media (max-width: 1150px) and (min-width: 761px) {
    .hs-i5 .hs-r3 .hs-r3-r .lab { display: none; }
}
@media (max-width: 760px) {
    .hs-info.hs-i5 { padding: 12px; }
    .hs-i5-top { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "po hd" "sy sy" "ac ac"; grid-template-rows: auto; gap: 0 12px; }
    .hs-i5-po img { width: 84px; }
    .hs-i5-tl { display: block; }
    .hs-i5-names { margin-top: 3px; }
    .hs-i5 .hs-i5-ti { font-size: 22px; }
    .hs-i5-ms { gap: 5px 8px; font-size: 12px; }
    .hs-i5-bds { padding-right: 0; border-right: 0; }
    .hs-i5-syn { margin-top: 10px; }
    .hs-info.hs-i5 .shorting .content { -webkit-line-clamp: 3 !important; }
    .hs-i5-acts { margin-top: 10px; }
    .hs-i5-acts .hs-i5-fav, .hs-i5-acts .hs-i5-add { width: 100%; }
    /* rating: two centred halves, then the count line and Share centred underneath */
    .hs-i5 .hs-rate #w-rating.hs-r3 { grid-template-columns: 1fr 1fr; align-items: start; padding: 12px 0 0; text-align: center; }
    .hs-i5 .hs-r3 .hs-r3-l { flex-direction: column; align-items: center; gap: 0; padding: 0 10px; }
    .hs-i5 .hs-r3 .hs-r3-l .sc { font-size: 30px; }
    .hs-i5 .hs-r3 .hs-r3-l .mini { margin: 7px 0 5px; }
    .hs-i5 .hs-r3 .hs-r3-r { flex-direction: column; align-items: center; gap: 6px; padding: 0 10px; border-right: 0; }
    .hs-i5 .hs-rate .hs-r3 .stars { --st: 22px; margin-left: 0; justify-content: center; }
    .hs-i5 .hs-r3 .hs-r3-r .lab { justify-content: center; flex-wrap: wrap; white-space: normal; }
    .hs-i5 .hs-r3 .hs-r3-f { display: flex; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 9px 12px 11px; border-top: 1px solid var(--hs-line); text-align: center; }
    .hs-i5 .hs-r3 .hs-r3-f .ft { padding: 0; }
    .hs-i5-dg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-i5-dg > div:not(.row) { border-right: 1px solid var(--hs-line); }
    .hs-i5-dg > div:not(.row):nth-child(2n) { border-right: 0; }
    .hs-i5-dg .row { display: block; }
    .hs-i5-dg .row dt { width: auto; margin-bottom: 4px; }
}

/* ==========================================================================
   SV4 server panel under the player (partials/watch/servers.blade.php + js/watch-servers.js)
   Language tabs (only languages that have servers) over one scrolling strip of server pills per
   language, with arrow buttons and edge fades. Each <li> holds only the server name; the measured
   ping ("84 ms", "· Fastest") is ::after content from data-hs-meta, its dot colour from data-hs-sig.
   ========================================================================== */
.hs-sv {
    --sv-sub-c: var(--hs-ac-tx); --sv-sub-f: var(--hs-ac-fill, #1A7A92); --sv-sub-s: rgba(46, 197, 232, 0.13);
    --sv-hsub-c: #BDB1FF; --sv-hsub-f: #7A62E8; --sv-hsub-s: rgba(156, 140, 245, 0.15);
    --sv-dub-c: var(--hs-dub-tx, #FFC56B); --sv-dub-f: #A85A06; --sv-dub-s: rgba(245, 180, 81, 0.14);
    --sv-raw-c: var(--hs-tx-3); --sv-raw-f: #5B6B80; --sv-raw-s: rgba(127, 140, 160, 0.14);
    --sv-ok: var(--hs-ok, #3EE08F); --sv-warn: #F5B451; --sv-bad: #E5484D;
    --lc: var(--sv-sub-c); --lf: var(--sv-sub-f); --ls: var(--sv-sub-s);
    transition: opacity 0.2s;
}
html[data-theme="light"] .hs-sv {
    --sv-sub-f: var(--hs-ac-fill, #097A9F); --sv-sub-s: rgba(14, 165, 211, 0.11);
    --sv-hsub-c: #6A4FE0; --sv-hsub-f: #6A4FE0; --sv-hsub-s: rgba(124, 92, 255, 0.11);
    --sv-dub-f: #A3670F; --sv-dub-s: rgba(224, 154, 43, 0.13);
    --sv-raw-f: #5B6B80; --sv-warn: #B87414;
}
.hs-sv [data-hs-tab="hsub"], .hs-sv .type[data-type="hsub"] { --lc: var(--sv-hsub-c); --lf: var(--sv-hsub-f); --ls: var(--sv-hsub-s); }
.hs-sv [data-hs-tab="dub"], .hs-sv .type[data-type="dub"],
.hs-sv [data-hs-tab="adub"], .hs-sv .type[data-type="adub"] { --lc: var(--sv-dub-c); --lf: var(--sv-dub-f); --ls: var(--sv-dub-s); }
.hs-sv [data-hs-tab="raw"], .hs-sv .type[data-type="raw"] { --lc: var(--sv-raw-c); --lf: var(--sv-raw-f); --ls: var(--sv-raw-s); }
#w-servers[data-hs-busy] .hs-sv { opacity: 0.22; pointer-events: none; }

/* head: tabs + hint */
.hs-sv-h { display: flex; align-items: stretch; gap: 0 10px; min-height: 36px; padding: 0 10px 0 4px; border-bottom: 1px solid var(--hs-line); }
.hs-sv-tabs { display: flex; align-items: stretch; min-width: 0; }
.hs-sv-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: auto; margin: 0; padding: 0 10px; border: 0; border-radius: 0; background: none; color: var(--hs-tx-3); font: 800 11.5px/1 var(--hs-f-body); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color 0.15s; }
.hs-sv-tab .hs-li { color: var(--lc); }
.hs-sv-tab em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0; padding: 0 5px; line-height: 15px; border-radius: 4px; background: var(--hs-bg-3); color: var(--hs-tx-4); }
.hs-sv-tab:hover { color: var(--hs-tx); }
.hs-sv-tab.is-on { color: var(--hs-tx); }
.hs-sv-tab.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--lc); }
.hs-sv-tab.is-on em { background: var(--ls); color: var(--lc); }
.hs-sv-tab.is-solo { cursor: default; }
.hs-sv-tab:focus-visible { outline: 2px solid var(--hs-ac); outline-offset: -2px; border-radius: 4px; }
.hs-sv-hint { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; min-width: 0; font-size: 11.5px; font-weight: 500; color: var(--hs-tx-4); white-space: nowrap; }
.hs-sv-hint svg { flex: none; }

/* panes: one scrolling pill strip each */
.hs-sv .servers { display: block; padding: 0; }
.hs-sv .type { display: block; padding: 8px; }
.hs-sv .type.is-off { display: none; }
.hs-sv-strip { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hs-sv .type ul {
    flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hs-sv .type ul::-webkit-scrollbar { display: none; }
.hs-sv-strip.can-r ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.hs-sv-strip.can-l ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.hs-sv-strip.can-l.can-r ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.hs-sv-arr { flex: none; display: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-bg-2); color: var(--hs-tx-2); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.hs-sv-arr:hover { border-color: var(--lc); color: var(--hs-tx); }
.hs-sv-arr:focus-visible { outline: 2px solid var(--lc); outline-offset: 1px; }
.hs-sv-strip.can-l .hs-sv-arr.is-l, .hs-sv-strip.can-r .hs-sv-arr.is-r { display: inline-flex; }
.hs-sv .type li {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; margin: 0; padding: 0 14px;
    border: 1px solid var(--hs-line-2); border-radius: 4px; background: var(--hs-raise); color: var(--hs-tx);
    font: 700 13.5px/1 var(--hs-f-body); white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hs-sv .type li:hover { border-color: color-mix(in srgb, var(--lc) 60%, transparent); background: var(--hs-hover); color: var(--hs-tx); }
.hs-sv .type li:focus-visible { outline: 2px solid var(--lc); outline-offset: -2px; }
.hs-sv .type li.active { background: var(--lf); border-color: var(--lf); color: #fff; }
/* measured ping inside the pill: coloured dot + "84 ms" (· Fastest) */
.hs-sv .type li[data-hs-meta]::after {
    content: attr(data-hs-meta); padding-left: 10px; font-size: 11px; font-weight: 600; color: var(--hs-tx-4);
    background: radial-gradient(circle, var(--dot, currentColor) 0 2.5px, transparent 3px) 0 50% / 6px 6px no-repeat;
}
.hs-sv .type li[data-hs-sig="3"] { --dot: var(--sv-ok); }
.hs-sv .type li[data-hs-sig="2"] { --dot: var(--sv-warn); }
.hs-sv .type li[data-hs-sig="1"] { --dot: var(--sv-bad); }
.hs-sv .type li.is-fast::after { color: var(--sv-ok); }
.hs-sv .type li[data-hs-wait]::after { content: ""; width: 6px; height: 6px; padding: 0; border-radius: 50%; background: var(--hs-tx-5); animation: hs-sv-wait 1s ease-in-out infinite alternate; }
@keyframes hs-sv-wait { to { opacity: 0.25; } }
.hs-sv .type li.active::after { color: rgba(255, 255, 255, 0.85); }
.hs-sv .type li.active[data-hs-meta]::after { --dot: #fff; }
.hs-sv .type li.active[data-hs-wait]::after { background: rgba(255, 255, 255, 0.7); }
/* L7 equalizer in the pill that is loading (same as the old panel) */
#watch-main:has(#player .loading) .hs-sv .type li.active::before {
    content: ""; flex: none; --hs-eqw: 0.136em; font-size: 11px; width: 1.045em; height: 1em; margin-right: -1px;
    background: var(--hs-eq-cur); background-repeat: no-repeat; background-size: var(--hs-eqw) 40%; animation: hs-eq 1s linear infinite;
}
.hs-sv .mapper-dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px; border-top: 1px solid var(--hs-line); }
.hs-sv .mapper-dl-row > label { height: 24px; padding: 0 8px; margin: 0; border-radius: 4px; display: inline-flex; align-items: center; background: rgba(79, 214, 156, 0.14); color: var(--sv-ok); font-size: 11px; font-weight: 800; }
.hs-sv .hs-srv-empty { padding: 12px 10px; font-size: 13px; color: var(--hs-tx-4); }
@media (prefers-reduced-motion: reduce) { .hs-sv .type ul { scroll-behavior: auto; } .hs-sv .type li[data-hs-wait]::after { animation: none; } }
@media (max-width: 640px) {
    .hs-sv-h { flex-wrap: wrap; padding: 0 2px; }
    .hs-sv-tabs { flex: 1 1 100%; }
    .hs-sv-tabs .hs-sv-tab { flex: 1 1 0; justify-content: center; padding: 0 6px; min-height: 36px; }
    .hs-sv-h > .hs-sv-tab.is-solo { min-height: 36px; }
    .hs-sv-hint { order: 3; flex: 1 1 100%; margin: 0; padding: 0 6px 8px; white-space: normal; }
    .hs-sv-h:has(.is-solo) .hs-sv-hint { flex: 1 1 0; order: 0; padding: 0 6px; justify-content: flex-end; text-align: right; }
    .hs-sv .type li { height: 34px; padding: 0 12px; font-size: 13px; }
    .hs-sv-arr { width: 34px; height: 34px; }
}

/* ============ rating row (partials/watch/rating, .hs-rate-s): the 5 stars show the score at rest
   with the number beside them; no separate score block. Anime page / any panel = stars column + Share
   on the right; WI5 watch info = one line on desktop, centred stack on phones. ============ */
.hs-rate.hs-rate-s #w-rating.hs-r3 { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; text-align: left; }
.hs-rate-s .hs-r3-r { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 11px 14px; border: 0; }
.hs-rs-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hs-rate.hs-rate-s .hs-r3 .stars { --st: 22px; margin-left: -2px; justify-content: flex-start; }
.hs-rate-s .hs-r3 .stars span.full i { width: var(--st) !important; }
.hs-rate-s .hs-r3 .stars span.half i { width: calc(var(--st) / 2) !important; }
.hs-rate-s .hs-r3 .stars span:not(.full):not(.half) i { width: 0 !important; }
.hs-rs-v { display: inline-flex; align-items: baseline; gap: 1px; white-space: nowrap; color: var(--hs-tx); }
.hs-rs-v b { font: 800 16px/1 var(--hs-f-body); }
.hs-rs-v small { font-size: 11.5px; font-weight: 600; color: var(--hs-tx-4); }
.hs-rs-v em { margin-left: 3px; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--hs-tx-4); }
.hs-rate-s .hs-r3.hs-hov .hs-rs-v, .hs-rate-s .hs-r3.hs-rated .hs-rs-v { opacity: 0.55; }
.hs-rate-s .hs-r3-r .lab { display: flex; justify-content: flex-start; min-height: 0; flex-wrap: wrap; white-space: normal; }
.hs-rate-s .hs-r3-f { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; margin: 0; padding: 0 14px; border-top: 0; border-left: 1px solid var(--hs-line); }
.hs-rate-s .hs-r3-share { height: 28px; padding: 0 10px; gap: 5px; font-size: 12px; font-weight: 600; }
/* WI5 watch info bar */
.hs-i5 .hs-rate.hs-rate-s #w-rating.hs-r3 { display: flex; padding: 0; align-items: stretch; }
.hs-i5 .hs-rate-s .hs-r3 .hs-r3-r { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px; border-right: 0; }
.hs-i5 .hs-rate-s .hs-r3 .hs-r3-r .lab { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.hs-i5 .hs-rate.hs-rate-s .hs-r3 .stars { --st: 20px; }
.hs-i5 .hs-rate-s .hs-r3 .hs-r3-f { display: flex; padding: 0 12px; }
@media (max-width: 760px) {
    .hs-i5 .hs-rate.hs-rate-s #w-rating.hs-r3 { flex-direction: column; align-items: stretch; padding: 0; text-align: center; }
    .hs-i5 .hs-rate-s .hs-r3 .hs-r3-r { flex-direction: column; align-items: center; gap: 6px; padding: 12px 12px 10px; }
    .hs-i5 .hs-rate.hs-rate-s .hs-r3 .stars { --st: 24px; margin-left: 0; justify-content: center; }
    .hs-i5 .hs-rate-s .hs-rs-row { justify-content: center; }
    .hs-i5 .hs-rate-s .hs-r3 .hs-r3-r .lab { display: flex; justify-content: center; flex-wrap: wrap; white-space: normal; }
    .hs-i5 .hs-rate-s .hs-r3 .hs-r3-f { flex-direction: row; justify-content: center; margin: 0; padding: 8px 12px 10px; border-left: 0; border-top: 1px solid var(--hs-line); }
}

/* engine (legacy) surfaces that hard-code the bright #26a3d6 under white text: use the accent fill */
.hs .block_area-comment .ci-buttons .btn-primary { background: var(--hs-ac-fill) !important; border-color: var(--hs-ac-fill) !important; color: #fff !important; }
.hs .block_area-comment .ci-buttons .btn-primary:hover { background: var(--hs-ac-fill-h) !important; filter: none; }
.hs .mapper-dl-chip:hover, .hs .hs-srv .mapper-dl-chip:hover { background: var(--hs-ac-fill) !important; border-color: var(--hs-ac-fill) !important; color: #fff !important; }
.hs .mapper-dl-grp.is-open .mapper-dl-grp-toggle { background: var(--hs-ac-fill); color: #fff; }
.hs .rq-guide .rq-steps > li::before { background: var(--hs-ac-fill); color: #fff; }
.hs .hs-srv .type[data-type="dub"] li.active, .hs .hs-srv .type[data-type="adub"] li.active { background: #A85A06; border-color: #A85A06; color: #fff; }
/* anime page side panel is narrow: smaller stars keep the score on the stars' line */
.hs-ap-rate .hs-rate.hs-rate-s .hs-r3 .stars { --st: 19px; }
.hs-ap-rate .hs-rate-s .hs-r3-r { padding: 11px 12px; }
.hs-ap-rate .hs-rate-s .hs-rs-row { flex-wrap: nowrap; gap: 7px; }
.hs-ap-rate .hs-rate-s .hs-r3-f { padding: 0 12px; }
