/* Kiss Classic — watch page (loaded after AniHoshi watch.css). */

.ks-watch .ks-pbox > .ks-bb { padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.ks-pbox .ks-bh h2 .d-title { color: var(--ks-strip-on); }
.ks-epn { color: #fff; }
.ks-watch #player-wrapper { border-radius: 3px; border: 1px solid #000; }
.ks-watch #player::before { background: rgba(0, 0, 0, 0.6); }
.ks-watch #player .play span { width: 74px; height: 74px; border-radius: 4px; background: linear-gradient(180deg, var(--ks-grad, #74B126), var(--hs-ac-fill)); box-shadow: 0 0 0 8px rgba(140, 198, 63, 0.18); }

/* control bar ("Turn off light / Auto next / Report") */
.ks-watch #controls.hs-ctrls { padding: 3px 6px; border-radius: 3px; border: 0; background: var(--hs-raise); }
.ks-watch .hs-ctrls .ctrl { height: 30px; padding: 0 8px; border-radius: 3px; color: var(--hs-tx-2); font-weight: 600; font-size: 12.5px; }
.ks-watch .hs-ctrls .ctrl:hover { background: var(--hs-bg-2); color: var(--ks-link); }
.ks-watch .hs-ctrls .ctrl svg { color: var(--hs-ac); }
.ks-watch .hs-ctrls .ctrl.report, .ks-watch .hs-ctrls .ctrl.report svg { color: var(--hs-star); }
.ks-watch .hs-ctrls .sw { border-radius: 3px; }
.ks-watch .hs-ctrls .left::after { background: var(--hs-line-2); }

/* servers */
.ks-watch #w-servers.ks-servers { padding: 8px 10px; border-radius: 3px; background: var(--hs-bg-3); border: 1px solid var(--hs-line); }
.ks-watch .hs-sv-tab { border-radius: 3px; }
.ks-watch .hs-sv-tab.is-on { background: var(--hs-ac-fill); color: #fff; border-color: var(--hs-ac-fill); }
.ks-watch #w-servers .servers li { border-radius: 3px; }
.ks-watch #w-servers .servers li.active { background: linear-gradient(180deg, var(--ks-grad, #74B126), var(--hs-ac-fill)); border-color: var(--hs-ac-fill); color: #fff; }
.ks-watch .hs-sv-hint { color: var(--hs-tx-4); }
.ks-watch .ks-next { border-radius: 3px; }

/* ---------- episode table ---------- */
.ks-watch .ks-epbox { overflow: visible; }
.ks-watch #w-episodes.hs-eps.ks-eps { max-height: 620px; margin: 10px 0 0; border: 0; border-radius: 0 0 4px 4px; background: transparent; }
.ks-watch #w-episodes .hs-ep1-h { padding: 6px 10px 8px; border-bottom: 0; }
.ks-watch #w-episodes .hs-ep1-ib, .ks-watch #w-episodes .hs-ep1-rsel { border-radius: 3px; }
.ks-watch #w-episodes .hs-ep1-seg { border-radius: 4px; }
.ks-watch #w-episodes .hs-ep1-seg button { border-radius: 3px; }
.ks-watch #w-episodes .hs-ep1-seg button.on { background: var(--hs-ac-fill); color: #fff; }
.ks-watch #w-episodes > .body { border-radius: 0 0 4px 4px; }
.ks-watch #w-episodes .hs-ep1-pl { margin: 0 10px; padding: 4px 4px 6px; border-bottom: 1px solid var(--hs-tx-4); color: var(--hs-tx); font-weight: 700; font-size: 13.5px; }
.ks-watch #w-episodes .hs-ep1-pl [data-hs-cnt] { color: var(--hs-tx-3); font-weight: 600; font-size: 12.5px; }
.ks-watch #w-episodes .episodes { padding-bottom: 8px; }

/* Default view (btn) is the classic table: "Episode 001 · title ............ SUB DUB" */
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range { display: block; margin: 0 10px; padding: 0; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; height: 30px; padding: 0 6px; border: 0; border-radius: 0; background: transparent; color: var(--ks-link); font: 500 13px var(--hs-f-body); justify-content: stretch; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range li:nth-child(even) a { background: var(--ks-row); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .th,
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .pl { display: none; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .z { display: inline; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .n { color: var(--ks-link); font-weight: 600; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .n::before { content: "Episode "; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .tx { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .t { flex: 1; min-width: 0; color: var(--hs-tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .lg { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--hs-tx-4); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .lg i { font-style: normal; display: inline-flex; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .lg .s { color: var(--hs-ac); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .lg .d { color: var(--hs-dub); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .lg .f { padding: 0 4px; border-radius: 3px; background: var(--hs-dub); color: var(--hs-dub-ink); font-size: 10px; font-weight: 700; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a:hover { background: var(--hs-hover); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a:hover .n { color: var(--ks-link-h); text-decoration: underline; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a.active { background: var(--hs-ac-soft); box-shadow: inset 3px 0 0 var(--hs-ac); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a.active :is(.n, .t) { color: var(--hs-tx); font-weight: 700; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a.active .n::after { content: "▶"; margin-left: 6px; font-size: 9px; color: var(--hs-ac); vertical-align: 1px; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a.hs-nx { box-shadow: inset 3px 0 0 var(--hs-line-2); }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a.filler::after { display: none; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a[enabled="0"] { opacity: 0.45; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .hs-ep1-leg { display: none; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes a.highlight { outline: 1px solid var(--hs-ac); outline-offset: -1px; }

/* "list" view becomes the compact number grid */
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin: 6px 10px 0; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range li:nth-child(even) a { background: var(--hs-bg-3); }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a { position: relative; display: flex; align-items: center; justify-content: center; height: 30px; padding: 0; border: 1px solid var(--hs-line-2); border-radius: 3px; background: var(--hs-bg-3); color: var(--ks-link); font: 600 12.5px var(--hs-f-body); box-shadow: none; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a :is(.th, .tx, .z, .pl) { display: none; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a .n { color: inherit; font-size: 12.5px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a:hover { border-color: var(--hs-ac); }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a.active { background: linear-gradient(180deg, var(--ks-grad, #74B126), var(--hs-ac-fill)); border-color: var(--hs-ac-fill); color: #fff; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a.active .n { color: #fff; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .episodes .ep-range a.filler::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--hs-dub); }
body.ks #w-episodes.hs-eps.ks-eps[data-view="list"] .hs-ep1-leg { display: flex; }

/* the view button shows what each view is in this theme */
body.ks #w-episodes.ks-eps [data-hs-ep="view"] svg { display: none !important; }
body.ks #w-episodes.ks-eps:is([data-view="btn"], :not([data-view])) [data-hs-ep="view"] .i-list,
body.ks #w-episodes.ks-eps[data-view="list"] [data-hs-ep="view"] .i-btn,
body.ks #w-episodes.ks-eps[data-view="thumb"] [data-hs-ep="view"] .i-thumb { display: block !important; }

/* thumbnail view: theme colours */
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range { margin: 0 6px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .t { color: var(--ks-link); }

/* ---------- info box ---------- */

/* ---------- sidebar: cover + rating ---------- */
.ks-side #watch-order .hs-panel { margin-bottom: 16px; }

/* comments + recommended */
.ks-second #comments { margin-top: 0; margin-bottom: 16px; }
.ks-second #w-recommended .hs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }

/* expanded player: one column, sidebar below */
.ks-watch.expand .ks-wcols { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 980px) {
}
@media (max-width: 760px) {
    .ks-watch .ks-pbox > .ks-bb { padding: 12px 6px 8px; }
    .ks-pbox .ks-bh h2 { white-space: normal; font-size: 13px; }
    .ks-watch #controls.hs-ctrls { flex-wrap: wrap; }
    .ks-watch #w-episodes.hs-eps.ks-eps { max-height: 480px; }
    body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range { margin: 0 6px; }
    body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a { grid-template-columns: 96px minmax(0, 1fr); gap: 6px; }
    .ks-second #w-recommended .hs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the panel sits in a normal box here (AniHoshi stretches it beside the player) */
.ks-watch #w-episodes.hs-eps.ks-eps { max-height: none; }
.ks-watch #w-episodes.hs-eps.ks-eps > .body { flex: none; }
.ks-watch #w-episodes.hs-eps.ks-eps .episodes { flex: none; max-height: 560px; }
@media (max-width: 760px) { .ks-watch #w-episodes.hs-eps.ks-eps .episodes { max-height: 430px; } }

/* comments box */
.ks-watch #comments.hs-pad { padding: 20px 12px 12px !important; }
.ks-watch #comments.hs-pad > .hs-sh:first-child { margin: -20px -12px 14px !important; }
.ks-watch .cm-rx { border-radius: 4px; }

/* trending list in the sidebar: classic numbered rows */
.ks .hs-trend2.col { gap: 0; }
.ks .hs-trend2.col .hs-tr { height: auto; padding: 7px 4px; gap: 9px; border: 0; border-bottom: 1px dashed var(--hs-line); border-radius: 0; background: none; transform: none; }
.ks .hs-trend2.col .hs-tr:last-child { border-bottom: 0; }
.ks .hs-tr::after, .ks .hs-tr .bg { display: none; }
.ks .hs-trend2.col .hs-tr .rk { width: 18px; font: 800 12px var(--hs-f-body); color: var(--hs-tx-4); -webkit-text-stroke: 0; transform: none; background: none; }
.ks .hs-trend2.col .hs-tr:nth-child(-n+3) .rk { color: var(--hs-dub); -webkit-text-fill-color: currentColor; }
.ks .hs-trend2.col .hs-tr .ps { width: 38px; height: 52px; border-radius: 3px; box-shadow: none; }
.ks .hs-tr .tx { gap: 2px; }
.ks .hs-tr .tx > .t { font-size: 13px; font-weight: 600; color: var(--ks-link); }
.ks .hs-tr:hover .tx > .t { color: var(--ks-link-h); }
.ks .hs-tr .m { font-size: 11.5px; font-weight: 600; color: var(--hs-tx-4); }
.ks .hs-tr .hs-pill-sm { transform: scale(0.92); transform-origin: left center; }
.ks-side #w-popular.hs-pad, .ks-side #w-related.hs-pad { padding: 20px 10px 8px; }
.ks-side #w-popular.hs-pad > .hs-sh:first-child, .ks-side #w-related.hs-pad > .hs-sh:first-child { margin: -20px -10px 10px; }
.ks-side .hs-rel3 { grid-template-columns: 1fr !important; }
/* AniHoshi pins the panel to the player row height (height:0 + min-height:100%); not here */
.ks-watch.layout-page-watchtv #w-episodes.hs-eps.ks-eps { height: auto; min-height: 0; }
body.ks #w-episodes.hs-eps.ks-eps:is([data-view="btn"], :not([data-view])) .episodes .ep-range a .t.ks-gt { visibility: hidden; }
.ks .hs-comments .btn-primary, .ks .hs-comments button[type=submit] { background: linear-gradient(180deg, var(--ks-grad, #74B126), var(--hs-ac-fill)) !important; border-color: var(--hs-ac-fill) !important; border-radius: 4px !important; }

/* =====================================================================
   Info box v2: poster left, compact fact grid right, clamped summary
   ===================================================================== */
.ks-info .ks-bh-r { position: relative; }
.ks-bm { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 3px; background: rgba(0, 0, 0, 0.18); color: #fff; font: 700 11.5px var(--hs-f-body); cursor: pointer; }
.ks-bm:hover { background: rgba(0, 0, 0, 0.35); border-color: #fff; }
.ks-fav .dropdown-menu { min-width: 170px; }
.ks-info-in { display: grid; grid-template-columns: 160px minmax(0, 1fr); grid-template-areas: "po hd" "po dl" "po syn"; grid-template-rows: auto auto 1fr; gap: 8px 18px; padding: 16px 12px 12px; }
.ks-info-po { grid-area: po; }
.ks-info-po img { display: block; width: 160px; height: auto; aspect-ratio: 225 / 318; object-fit: cover; border: 1px solid var(--hs-line-2); border-radius: 3px; background: var(--hs-field); }
.ks-info-hd { grid-area: hd; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ks-info-t { margin: 0; font: 600 23px/1.15 var(--hs-f-body); color: var(--ks-link); letter-spacing: -0.01em; }
.ks-info-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ks-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border: 1px solid var(--hs-line-2); border-radius: 3px; background: var(--hs-bg-3); color: var(--hs-tx-2) !important; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
a.ks-chip:hover { border-color: var(--hs-ac); }
.ks-chip.ks-st.is-releasing { color: var(--hs-ac) !important; border-color: var(--hs-line-ac); }
.ks-info-dl { grid-area: dl; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; font-size: 13px; }
.ks-info-dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--hs-line); min-width: 0; }
.ks-info-dl > div.w { grid-column: 1 / -1; }
.ks-info-dl dt { color: var(--hs-tx-4); font-weight: 500; }
.ks-info-dl dd { margin: 0; min-width: 0; color: var(--hs-tx-2); font-weight: 500; }
.ks-info-dl dd a { color: var(--ks-link); font-weight: 600; }
.ks-info-dl dd a:hover { color: var(--ks-link-h); }
.ks-info-dl dd .hs-pill-sm { vertical-align: middle; }
.ks-st.is-releasing { color: var(--hs-ac) !important; }
.ks-info-syn { grid-area: syn; min-width: 0; font-size: 13px; }
.ks-info-syn .shorting .content { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--hs-tx-2); line-height: 1.6; white-space: pre-line; }
.ks-info-syn .shorting.expand .content { display: block; -webkit-line-clamp: unset; }
.ks-info-syn .shorting .toggle { display: none; margin-top: 3px; color: var(--ks-link); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.ks-info-syn .shorting.is-long .toggle, .ks-info-syn .shorting.expand .toggle { display: inline-block; }
.ks-ratebox #w-rating { margin: 0; border-radius: 3px; }
@media (max-width: 760px) {
    .ks-info-in { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "po hd" "dl dl" "syn syn"; grid-template-rows: auto; gap: 10px 12px; padding: 14px 10px 10px; }
    .ks-info-po img { width: 96px; }
    .ks-info-t { font-size: 19px; }
    .ks-info-dl { grid-template-columns: minmax(0, 1fr); }
    .ks-info-dl > div { grid-template-columns: 78px minmax(0, 1fr); }
}

/* =====================================================================
   Episode box v2: smaller toolbar, compact rows, slim Now playing strip
   ===================================================================== */
.ks-watch #w-episodes .hs-ep1-h { padding: 4px 10px 6px; }
.ks-watch #w-episodes .hs-ep1-bar { min-height: 26px; gap: 5px; }
.ks-watch #w-episodes .hs-ep1-ib { width: 26px; height: 26px; }
.ks-watch #w-episodes .hs-ep1-ib svg { width: 13px; height: 13px; }
.ks-watch #w-episodes .hs-ep1-seg { height: 26px; }
.ks-watch #w-episodes .hs-ep1-seg button { padding: 0 9px; font-size: 12px; }
.ks-watch #w-episodes .hs-ep1-rsel { height: 26px; font-size: 12px; }
.ks-watch #w-episodes .hs-ep1-q input { height: 26px; font-size: 12.5px; }
.ks-watch #w-episodes .hs-ep1-pl { padding: 2px 4px 5px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.ks-watch #w-episodes.hs-eps.ks-eps .episodes { max-height: 460px; }
/* sub / dub markers: one small split pill, like the poster badges */
body.ks #w-episodes .episodes .ep-range a .lg { gap: 0 !important; }
body.ks #w-episodes .episodes .ep-range a .lg :is(i.s, i.d) { height: 18px; padding: 0 5px !important; border: 1px solid var(--hs-line-2) !important; background: var(--hs-bg-3) !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.s { border-radius: 3px 0 0 3px !important; color: var(--hs-ac) !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.d { border-radius: 0 3px 3px 0 !important; color: var(--hs-dub) !important; margin-left: -1px; }
body.ks #w-episodes .episodes .ep-range a .lg i.s:last-child { border-radius: 3px !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.d:first-child { border-radius: 3px !important; margin-left: 0; }
body.ks #w-episodes .episodes .ep-range a .lg svg { width: 12px; height: 11px; }
/* thumbnail view: 46px rows, 72px 16:9 thumbs */
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range { gap: 0; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range li:nth-child(even) a { background: var(--ks-row); }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a { grid-template-columns: 72px 30px minmax(0, 1fr); gap: 10px; min-height: 46px; padding: 3px 6px; border-radius: 0; font-size: 13px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .th { width: 72px; height: 40px; border-radius: 3px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .pl { left: 6px; top: 3px; width: 72px; height: 40px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .n { min-width: 0; margin: 0; color: var(--hs-tx-4); font-size: 12px; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .t { color: var(--ks-link); font-weight: 600; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a .t.ks-gt { visibility: visible; color: var(--hs-tx-3); font-weight: 500; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a:hover { background: var(--hs-hover); }
/* Now playing / Up next: two slim rows instead of the big cards */
body.ks #w-episodes .hs-ep1-ctx { display: flex; flex-direction: column; gap: 0; margin: 0 0 6px; padding: 0; border-bottom: 1px solid var(--hs-tx-4); }
body.ks #w-episodes .hs-ep1-ctx[hidden] { display: none; }
body.ks #w-episodes .hs-ep1-ctx > div { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
body.ks #w-episodes .hs-ep1-ctx .hs-ep1-pl { display: none; }
body.ks #w-episodes .hs-ep1-hero, body.ks #w-episodes .hs-ep1-next { position: relative; display: grid !important; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 0; min-height: 46px; height: auto !important; aspect-ratio: auto !important; margin: 0; padding: 3px 6px; border: 0 !important; border-radius: 0; background: none; box-shadow: none; overflow: visible; cursor: default; }
body.ks #w-episodes .hs-ep1-hero { background: var(--hs-ac-soft) !important; box-shadow: inset 3px 0 0 var(--hs-ac) !important; }
body.ks #w-episodes .hs-ep1-next { cursor: pointer; }
body.ks #w-episodes .hs-ep1-next:hover { background: var(--hs-hover); }
body.ks #w-episodes .hs-ep1-ctx .th { position: relative !important; inset: auto !important; grid-column: 1; grid-row: 1 / span 2; width: 72px !important; height: 40px !important; border-radius: 3px; overflow: hidden; }
body.ks #w-episodes .hs-ep1-ctx .th img { width: 100%; height: 100%; object-fit: cover; }
body.ks #w-episodes .hs-ep1-ctx .th::after, body.ks #w-episodes .hs-ep1-hero::after, body.ks #w-episodes .hs-ep1-hero::before { display: none !important; }
body.ks #w-episodes .hs-ep1-hero .in, body.ks #w-episodes .hs-ep1-next .bd { display: contents; }
body.ks #w-episodes .hs-ep1-hero .k, body.ks #w-episodes .hs-ep1-next .n { position: static !important; grid-column: 2; grid-row: 1; align-self: end; display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--hs-tx); font: 700 12.5px var(--hs-f-body); text-transform: none; letter-spacing: 0; text-shadow: none; }
body.ks #w-episodes .hs-ep1-ctx .tt { position: static !important; grid-column: 2; grid-row: 2; align-self: start; min-width: 0; color: var(--ks-link); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
body.ks #w-episodes .hs-ep1-hero .k .hs-eq { display: none; }
body.ks #w-episodes .hs-ep1-hero .k::before { content: "\25B6"; font-size: 9px; color: var(--hs-ac); }
body.ks #w-episodes .hs-ep1-hero .k .so { color: var(--hs-tx-4); font-weight: 500; font-size: 12px; }
body.ks #w-episodes .hs-ep1-hero .k::after { content: "Now playing"; margin-left: 6px; padding: 0 5px; height: 16px; display: inline-flex; align-items: center; border-radius: 3px; background: var(--hs-ac-fill); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
body.ks #w-episodes .hs-ep1-next .n::before { content: "Up next \00B7"; color: var(--hs-tx-4); font-weight: 600; }
body.ks #w-episodes .hs-ep1-hero > .lg { position: static !important; grid-column: 3; grid-row: 1 / span 2; display: inline-flex; gap: 0; padding: 0; background: none !important; }
body.ks #w-episodes .hs-ep1-next .act { position: static !important; grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 6px; margin: 0; }
body.ks #w-episodes .hs-ep1-play { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; gap: 5px; border: 0; border-radius: 3px; background: linear-gradient(180deg, var(--ks-grad, #74B126), var(--hs-ac-fill)); color: #fff; font: 700 11.5px var(--hs-f-body); cursor: pointer; }
body.ks #w-episodes .hs-ep1-play svg { width: 11px; height: 11px; }
body.ks #w-episodes .hs-ep1-ctx :is(.lg i.s, .lg i.d) { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border: 1px solid var(--hs-line-2); background: var(--hs-bg-3); font-style: normal; }
body.ks #w-episodes .hs-ep1-ctx .lg i.s { color: var(--hs-ac); border-radius: 3px 0 0 3px; }
body.ks #w-episodes .hs-ep1-ctx .lg i.d { color: var(--hs-dub); border-radius: 0 3px 3px 0; margin-left: -1px; }
body.ks #w-episodes .hs-ep1-ctx .lg i:only-child { border-radius: 3px; margin-left: 0; }
body.ks #w-episodes .hs-ep1-ctx .lg svg { width: 12px; height: 11px; }
body.ks #w-episodes .hs-ep1-caught { padding: 6px 8px; color: var(--hs-tx-4); font-size: 12px; text-align: left; background: none; border: 0; min-height: 0; }
@media (max-width: 760px) {
    body.ks #w-episodes .hs-ep1-hero .k::after { display: none; }
    body.ks #w-episodes .hs-ep1-play { padding: 0 7px; }
}

/* v2 fixes: full-width strip rows, no "Episode N" repeats */
body.ks #w-episodes .hs-ep1-ctx > div { width: 100%; max-width: none; flex: none; grid-column: auto; }
body.ks #w-episodes .hs-ep1-hero, body.ks #w-episodes .hs-ep1-next { width: 100%; }
body.ks #w-episodes .hs-ep1-ctx .tt.ks-gt { display: none; }
body.ks #w-episodes .hs-ep1-hero:has(.tt.ks-gt) .k, body.ks #w-episodes .hs-ep1-next:has(.tt.ks-gt) .n { grid-row: 1 / span 2; align-self: center; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a:has(.t.ks-gt) .n { visibility: hidden; }
body.ks #w-episodes.hs-eps.ks-eps[data-view="thumb"] .episodes .ep-range a:has(.t.ks-gt) { grid-template-columns: 72px 0 minmax(0, 1fr); }
@media (max-width: 760px) { .ks-info-dl > div.dup { display: none; } }

/* rating widget under the poster (stacked, 160px) */
.ks-info-po { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ks-info-rt .hs-rate { margin: 0; }
.ks-info-rt .hs-rate #w-rating.hs-r3 { grid-template-columns: minmax(0, 1fr); border-radius: 3px; border-color: var(--hs-line-2); background: var(--hs-bg-3); }
.ks-info-rt .hs-r3-l { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 7px 9px 6px; border-right: 0; border-bottom: 1px solid var(--hs-line); }
.ks-info-rt .hs-r3-l .sc { font: 800 21px/1 var(--hs-f-body); }
.ks-info-rt .hs-r3-l .sc small { font-size: 11px; }
.ks-info-rt .hs-r3-l .mini { width: 55px; height: 11px; margin: 0; -webkit-mask-size: 11px 11px; mask-size: 11px 11px; }
.ks-info-rt .hs-r3-l .src { flex-basis: 100%; font-size: 10.5px; white-space: normal; }
.ks-info-rt .hs-r3-r { padding: 7px 9px; gap: 4px; }
.ks-info-rt .hs-r3-r .kick { font-size: 9.5px; letter-spacing: 0.08em; }
.ks-info-rt .hs-rate .hs-r3 .stars { --st: 20px; }
.ks-info-rt .hs-r3-r .lab, .ks-info-rt .hs-rate .hs-r3 .message { font-size: 11px; }
.ks-info-rt .hs-r3-f { flex-wrap: wrap; gap: 6px; padding: 6px 9px; font-size: 10.5px; }
.ks-info-rt .hs-r3-share { height: 22px; padding: 0 8px; gap: 5px; border-radius: 3px; font-size: 11px; }
@media (max-width: 760px) {
    .ks-info-in { grid-template-areas: "po hd" "rt rt" "dl dl" "syn syn"; }
    .ks-info-po { display: contents; }
    .ks-info-po > img { grid-area: po; }
    .ks-info-rt { grid-area: rt; min-width: 0; }
    .ks-info-rt .hs-rate #w-rating.hs-r3 { grid-template-columns: auto minmax(0, 1fr); }
    .ks-info-rt .hs-r3-l { flex-direction: column; align-items: flex-start; border-bottom: 0; border-right: 1px solid var(--hs-line); }
    .ks-info-rt .hs-r3-l .src { flex-basis: auto; }
}

/* badges v2: white icons on filled sub/dub pills in the episode list */
body.ks #w-episodes .episodes .ep-range a .lg :is(i.s, i.d), body.ks #w-episodes .hs-ep1-ctx :is(.lg i.s, .lg i.d) { border: 0 !important; color: #fff !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.s, body.ks #w-episodes .hs-ep1-ctx .lg i.s { background: var(--ks-b-sub) !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.d, body.ks #w-episodes .hs-ep1-ctx .lg i.d { background: var(--ks-b-dub) !important; margin-left: 1px !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.d:first-child, body.ks #w-episodes .hs-ep1-ctx .lg i.d:only-child { margin-left: 0 !important; }
body.ks #w-episodes .episodes .ep-range a .lg i.f { background: var(--ks-b-dub); color: #fff; }

/* ===== rating v3: one star row showing the score at rest ===== */
.ks-info-rt .ks-rate #w-rating.hs-r3 { grid-template-columns: minmax(0, 1fr) !important; }
.ks-info-rt .ks-rate .hs-r3-r { padding: 7px 9px 5px; gap: 3px; }
.ks-rate-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ks-info-rt .ks-rate .hs-r3 .stars { --st: 18px; margin-left: -2px; }
.ks-rate .hs-r3 .stars span.full i { width: var(--st) !important; }
.ks-rate .hs-r3 .stars span.half i { width: calc(var(--st) / 2) !important; }
.ks-rate .hs-r3 .stars span:not(.full):not(.half) i { width: 0 !important; }
.ks-rate-v { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.ks-rate-v b { font: 800 14px/1 var(--hs-f-body); color: var(--hs-tx); }
.ks-rate-v small { font-size: 10.5px; color: var(--hs-tx-4); font-weight: 600; }
.ks-rate .hs-r3.hs-hov .ks-rate-v, .ks-rate .hs-r3.hs-rated .ks-rate-v { opacity: 0.55; }
.ks-info-rt .ks-rate .hs-r3-f { justify-content: flex-end; padding: 4px 7px 5px; border-top: 1px solid var(--hs-line); }
.ks-info-rt .ks-rate .hs-r3-share { height: 20px; padding: 0 7px; gap: 4px; font-size: 10.5px; border-radius: 3px; }
@media (max-width: 760px) {
    .ks-info-rt .ks-rate #w-rating.hs-r3 { grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; }
    .ks-info-rt .ks-rate .hs-r3-f { grid-column: auto; border-top: 0; border-left: 1px solid var(--hs-line); align-self: stretch; align-items: center; padding: 0 8px; }
    .ks-info-rt .ks-rate .hs-r3 .stars { --st: 20px; }
}
/* the info title links to the anime page (/anime/...) */
.ks-info-t a { color: inherit; }
.ks-info-t a:hover { color: var(--ks-link-h); text-decoration: underline; }

/* ---------- Player controls: icon-first (owner, 2026-10-17) ----------
   Active toggles show in the accent colour instead of relying on the "(ON)" text: main.js swaps each toggle's
   innerHTML from data-on / data-off, and the "on" markup carries .ks-on on its icon. Bookmark is active when the
   title is in a folder (main.js swaps in the solid bookmark). Light / Expand / Report are icon-only everywhere;
   under 760px every control is icon-only, one row. */
.ks-watch .hs-ctrls .ctrl.check:has(.ks-on), .ks-watch .hs-ctrls .ctrl.check:has(.ks-on) .ks-fa,
.ks-watch .hs-ctrls .ctrl.expand:has(.ks-on) .ks-fa,
.ks-watch .hs-ctrls .ctrl.favourite:has(.fa-solid.fa-bookmark) .ks-fa { color: var(--hs-ac); }
.ks-watch .hs-ctrls .ctrl.check:has(.ks-on) .ks-oo { color: var(--hs-ac); }
.ks-watch .hs-ctrls .ctrl.light .lb, .ks-watch .hs-ctrls .ctrl.expand .lb, .ks-watch .hs-ctrls .ctrl.report .lbk { display: none; }
.ks-watch .hs-ctrls .ctrl.light, .ks-watch .hs-ctrls .ctrl.expand, .ks-watch .hs-ctrls .ctrl.report { min-width: 30px; justify-content: center; padding: 0 7px; }
@media (max-width: 760px) {
    .ks-watch #controls.hs-ctrls { flex-wrap: nowrap; justify-content: space-between; gap: 2px; padding: 3px; }
    .ks-watch #controls.hs-ctrls .left, .ks-watch #controls.hs-ctrls .right { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; min-width: 0; }
    .ks-watch #controls.hs-ctrls .left::after { display: none; }
    .ks-watch .hs-ctrls .ctrl .lb, .ks-watch .hs-ctrls .ctrl .lbk, .ks-watch .hs-ctrls .ctrl .ks-oo { display: none; }
    .ks-watch .hs-ctrls .ctrl { width: 34px; min-width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; }
    .ks-watch .hs-ctrls .ctrl .ks-fa { width: auto; font-size: 15px; }
    .ks-watch .hs-ctrls .ctrl.favourite > [data-toggle] { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
}
