/* Hikaya 1.1.4: configured server navigation above the existing player. */
html .jc-watch-page .jc-watch { width:100%; max-width:none; }
.hikaya-server-bar { display:flex; align-items:stretch; gap:4px; min-width:0; padding:4px; margin:0; border:1px solid #25232b; border-bottom:0; border-radius:8px 8px 0 0; background:#08090c; color:#fff; }
.hikaya-server-scroll { display:flex; flex:1 1 auto; gap:4px; min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#7d638f #14121b; }
.hikaya-server-tab { display:flex; flex:1 0 120px; flex-direction:column; align-items:center; justify-content:center; gap:1px; min-width:100px; min-height:42px; max-width:100%; padding:8px 16px; border:1px solid transparent; border-radius:5px; background:#5b2b83; color:#fff!important; text-align:center; text-decoration:none!important; font-family:inherit; font-weight:700; font-size:13px; line-height:1.45; overflow-wrap:anywhere; transition:background-color .15s ease; }
.hikaya-server-tab:hover { background:#713799; }
.hikaya-server-tab[aria-current="page"] { background:#b5122f; border-color:#e04157; }
.hikaya-server-tab[aria-current="page"]:hover { background:#c31938; }
.hikaya-server-tab[aria-disabled="true"] { background:#292831; color:#c5c4cc!important; cursor:default; }
.hikaya-server-unavailable { font-size:10px; font-weight:400; line-height:1.4; }
.hikaya-player-refresh { flex:0 0 42px; display:grid; place-items:center; align-self:stretch; min-width:42px; padding:6px; border:1px solid #333742; border-radius:5px; background:#19212e; color:#fff; cursor:pointer; }
.hikaya-player-refresh[hidden] { display:none; }
.hikaya-player-refresh:hover { background:#263548; }
.hikaya-player-refresh svg { width:20px; height:20px; }
.hikaya-server-tab:focus-visible,.hikaya-player-refresh:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
.hikaya-server-bar + .jc-player { border-radius:0 0 8px 8px; }
html .jc-watch-page #hikaya-active-episodes h2 { display:flex; align-items:center; gap:8px; }
@media(max-width:600px) {
 .hikaya-server-tab { flex-basis:112px; min-width:100px; min-height:42px; padding:6px 12px; font-size:12px; }
 .hikaya-player-refresh { flex-basis:38px; min-width:38px; }
}
@media(prefers-reduced-motion:reduce) { .hikaya-server-tab { transition:none; } }

/* The watch page gives the player the full available width, including on desktop. */
html body.jc-watch-page .wrapped {box-sizing:border-box;width:100%;max-width:none;margin-inline:0;padding-inline:clamp(12px,1.7vw,32px)}
html body.jc-watch-page .wrapped>main {display:block;width:100%;min-width:0}
html body.jc-watch-page .wrapped>main>.content {display:block;float:none;width:100%;max-width:none;min-width:0;margin:0;padding:0}
html body.jc-watch-page .jc-page-watch,html body.jc-watch-page .jc-page-watch .jc-wrap {width:100%;max-width:none;min-width:0;margin:0;padding:0}
