/* EH Comics Library — front-end styles */
:root{
    --ehc-bg:#0b0d10;
    --ehc-panel:#15191e;
    --ehc-panel-2:#1b2026;
    --ehc-border:#2a3038;
    --ehc-border-soft:rgba(255,255,255,.08);
    --ehc-text:#f3efe7;
    --ehc-muted:#aeb5bf;
    --ehc-muted-2:#7f8792;
    --ehc-accent:#d7a64a;
    --ehc-accent-hover:#e4b85f;
    --ehc-radius:18px;
    --ehc-shadow:0 18px 50px rgba(0,0,0,.28);
}

/* ---------- Single comic ---------- */
.ehc-single-main{
    width:min(1180px,calc(100% - 36px));
    font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    margin:0 auto;
    padding:34px 0 64px;
    color:var(--ehc-text);
}

.ehc-single{
    min-width:0;
}

.ehc-single__header{
    margin:0 0 24px;
}

.ehc-single__eyebrow{
    margin:0 0 8px;
    color:var(--ehc-accent);
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.ehc-single__title{
    margin:0;
    max-width:980px;
    color:var(--ehc-text);
    font-size:clamp(2rem,4.6vw,3.65rem);
    font-weight:800;
    line-height:1.05;
    letter-spacing:-.035em;
    text-wrap:balance;
}

.ehc-single__byline{
    margin-top:10px;
    color:var(--ehc-muted);
    font-size:1rem;
}

.ehc-single__byline a{
    color:var(--ehc-text);
    font-weight:700;
    text-decoration:none;
    border-bottom:1px solid rgba(215,166,74,.35);
}

.ehc-single__byline a:hover{
    color:var(--ehc-accent-hover);
    border-bottom-color:var(--ehc-accent-hover);
}

.ehc-overview{
    display:grid;
    grid-template-columns:minmax(220px,285px) minmax(0,1fr);
    gap:30px;
    align-items:start;
    margin:0 0 34px;
    padding:22px;
    border:1px solid var(--ehc-border);
    border-radius:var(--ehc-radius);
    background:linear-gradient(145deg,var(--ehc-panel),#111419 72%);
    box-shadow:var(--ehc-shadow);
}

.ehc-overview__cover{
    margin:0;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:#0f1216;
    box-shadow:0 12px 30px rgba(0,0,0,.24);
}

.ehc-overview__cover img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:2/3;
    object-fit:cover;
}

.ehc-overview__content{
    min-width:0;
    padding:4px 4px 4px 0;
}

.ehc-overview__excerpt{
    margin:0 0 20px;
    max-width:780px;
    color:#d7dbe0;
    font-size:1.04rem;
    line-height:1.68;
}

.ehc-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 12px;
    margin:0;
}

.ehc-fact{
    min-width:0;
    padding:11px 12px;
    border:1px solid var(--ehc-border-soft);
    border-radius:11px;
    background:var(--ehc-panel-2);
}

.ehc-fact dt{
    margin:0 0 4px;
    color:var(--ehc-muted-2);
    font-size:.69rem;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.ehc-fact dd{
    margin:0;
    color:var(--ehc-text);
    font-size:.94rem;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.ehc-fact a{
    color:inherit;
    font-weight:700;
    text-decoration:none;
}

.ehc-fact a:hover{
    color:var(--ehc-accent-hover);
}

.ehc-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:16px;
}

.ehc-tag{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 9px;
    border:1px solid #323943;
    border-radius:999px;
    background:#181d23;
    color:#bec5cd!important;
    font-size:.78rem;
    line-height:1.2;
    text-decoration:none!important;
    transition:border-color .15s ease,color .15s ease,background .15s ease;
}

.ehc-tag:hover{
    border-color:rgba(215,166,74,.55);
    background:#20242a;
    color:#f4d08a!important;
}

.ehc-overview__actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}

.ehc-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:10px 15px;
    border:1px solid #3a414b;
    border-radius:10px;
    background:#20252b;
    color:#f4f1ea!important;
    font:inherit;
    font-size:.9rem;
    font-weight:800;
    line-height:1.2;
    text-decoration:none!important;
    cursor:pointer;
    transition:transform .15s ease,border-color .15s ease,background .15s ease,color .15s ease;
}

.ehc-button:hover{
    transform:translateY(-1px);
    border-color:#515b67;
    background:#272d34;
}

.ehc-button--accent{
    border-color:var(--ehc-accent);
    background:var(--ehc-accent);
    color:#17130c!important;
}

.ehc-button--accent:hover{
    border-color:var(--ehc-accent-hover);
    background:var(--ehc-accent-hover);
    color:#17130c!important;
}

.ehc-button--secondary,
.ehc-button--ghost{
    border-color:#373e47;
    background:transparent;
    color:var(--ehc-text)!important;
}

.ehc-single__description{
    max-width:860px;
    margin:0 0 34px;
    color:#c9cfd6;
    font-size:1rem;
    line-height:1.72;
}

.ehc-single__description > :first-child{margin-top:0}
.ehc-single__description > :last-child{margin-bottom:0}
.ehc-single__description h1,
.ehc-single__description h2,
.ehc-single__description h3{
    color:var(--ehc-text);
}

.ehc-reader{
    display:grid;
    gap:12px;
    width:100%;
    max-width:1100px;
    margin:0 auto;
    scroll-margin-top:20px;
}

.ehc-reader img{
    display:block;
    width:100%;
    height:auto;
    margin:0 auto;
    border-radius:10px;
    background:#0f1114;
    box-shadow:0 8px 28px rgba(0,0,0,.18);
}

.ehc-single__empty{
    padding:32px;
    border:1px dashed #353c45;
    border-radius:14px;
    background:#12161a;
    text-align:center;
}

.ehc-single__empty p{
    margin-top:0;
    color:var(--ehc-muted);
}

/* Hide common theme-generated duplicate post titles on the dedicated comic template. */
.single-ehc_comic .entry-header > .entry-title,
.single-ehc_comic .entry-header > h1.entry-title,
.single-ehc_comic .wp-block-post-title{
    display:none!important;
}

/* ---------- Archive / catalog ---------- */
.ehc-archive-main{
    padding:32px 0 56px;
    font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ehc-text);
}

.ehc-catalog-wrap{
    width:min(1240px,calc(100% - 32px));
    margin:0 auto;
}

.ehc-catalog-header{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:24px;
    margin:0 0 22px;
}

.ehc-catalog-title{
    margin:0;
    color:var(--ehc-text);
    font-size:clamp(2rem,5vw,3.2rem);
    line-height:1.05;
    letter-spacing:-.025em;
}

.ehc-catalog-subtitle{
    margin:8px 0 0;
    color:var(--ehc-muted);
}

.ehc-filters{
    display:grid;
    grid-template-columns:minmax(220px,2fr) repeat(5,minmax(125px,1fr));
    gap:12px;
    align-items:end;
    margin:0 0 26px;
    padding:16px;
    border:1px solid var(--ehc-border);
    border-radius:16px;
    background:#12161a;
}

.ehc-filter-field{
    display:grid;
    gap:6px;
    min-width:0;
}

.ehc-filter-field>span{
    color:var(--ehc-muted);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.02em;
}

.ehc-filter-field input,
.ehc-filter-field select{
    width:100%;
    min-height:42px;
    margin:0;
    padding:8px 10px;
    border:1px solid #343b44;
    border-radius:9px;
    background:#1a1f25;
    color:var(--ehc-text);
}

.ehc-filter-field input::placeholder{color:#7f8792}

.ehc-filter-actions{
    display:flex;
    gap:8px;
    grid-column:1/-1;
    justify-content:flex-end;
    padding-top:2px;
}

.ehc-grid{
    display:grid;
    grid-template-columns:repeat(var(--ehc-cols,4),minmax(0,1fr));
    gap:20px;
}

.ehc-card{
    display:grid;
    grid-template-columns:minmax(160px,260px) 1fr;
    gap:24px;
    margin:0 0 24px;
    padding:20px;
    overflow:hidden;
    border:1px solid var(--ehc-border);
    border-radius:15px;
    background:var(--ehc-panel);
    color:var(--ehc-text);
}

.ehc-card__cover{
    display:block;
    overflow:hidden;
    border-radius:11px;
    background:#101318;
}

.ehc-card__cover img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:2/3;
    object-fit:cover;
    transition:transform .2s ease;
}

.ehc-card__cover:hover img{transform:scale(1.025)}

.ehc-card__body{min-width:0}

.ehc-card__title{
    margin:0 0 12px;
    color:var(--ehc-text);
    font-size:clamp(1.35rem,2vw,2rem);
    line-height:1.18;
}

.ehc-card__title a{
    color:inherit;
    text-decoration:none;
}

.ehc-card__title a:hover{color:var(--ehc-accent-hover)}

.ehc-card__meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    color:#c2c8cf;
    font-size:.9em;
}

.ehc-card__meta span{
    display:inline-block;
    padding:5px 8px;
    border:1px solid rgba(255,255,255,.05);
    border-radius:7px;
    background:#1e242a;
    line-height:1.35;
}

.ehc-card__meta a{
    color:inherit;
    text-decoration:none;
}

.ehc-card__meta a:hover{color:var(--ehc-accent-hover)}

.ehc-grid .ehc-card{
    display:flex;
    flex-direction:column;
    gap:0;
    min-width:0;
    margin:0;
    padding:0;
    border-radius:15px;
}

.ehc-grid .ehc-card__cover{border-radius:0}
.ehc-grid .ehc-card__cover img{aspect-ratio:2/3}

.ehc-grid .ehc-card__body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:13px;
}

.ehc-grid .ehc-card__title{
    display:-webkit-box;
    overflow:hidden;
    margin:0 0 10px;
    font-size:1rem;
    line-height:1.28;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

.ehc-grid .ehc-card__meta{
    display:flex;
    gap:5px;
    margin-bottom:12px;
    font-size:.78rem;
}

.ehc-grid .ehc-card__meta span{padding:4px 6px}

.ehc-grid .ehc-button{
    align-self:flex-start;
    min-height:36px;
    margin-top:auto;
    padding:7px 11px;
    font-size:.85rem;
}

.ehc-pagination{margin-top:30px}

.ehc-pagination .page-numbers{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    justify-content:center;
    margin:0;
    padding:0;
    list-style:none;
}

.ehc-pagination a,
.ehc-pagination span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    min-height:40px;
    padding:6px 10px;
    border:1px solid #333a43;
    border-radius:8px;
    background:#151a20;
    color:var(--ehc-text);
    text-decoration:none;
}

.ehc-pagination .current{
    border-color:rgba(215,166,74,.55);
    background:#252015;
    color:#f1c978;
    font-weight:800;
}

.ehc-empty{
    padding:54px 20px;
    border:1px dashed #353c45;
    border-radius:16px;
    background:#12161a;
    text-align:center;
}

.ehc-empty h2{margin-top:0;color:var(--ehc-text)}
.ehc-empty p{color:var(--ehc-muted)}
.ehc-empty .ehc-button{margin-top:8px}

@media(max-width:1100px){
    .ehc-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
    .ehc-filter-search{grid-column:span 2}
    .ehc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:820px){
    .ehc-single-main{width:min(100% - 24px,1180px);padding-top:24px}
    .ehc-overview{grid-template-columns:180px minmax(0,1fr);gap:20px;padding:16px}
    .ehc-facts{grid-template-columns:1fr}
}

@media(max-width:760px){
    .ehc-catalog-wrap{width:min(100% - 22px,1240px)}
    .ehc-archive-main{padding-top:20px}
    .ehc-filters{grid-template-columns:1fr 1fr;padding:12px}
    .ehc-filter-search{grid-column:1/-1}
    .ehc-filter-actions{justify-content:stretch}
    .ehc-filter-actions .ehc-button{flex:1}
    .ehc-card:not(.ehc-card--compact){grid-template-columns:110px 1fr;gap:14px;padding:12px}
    .ehc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .ehc-grid .ehc-card__body{padding:10px}
    .ehc-grid .ehc-card__meta span{display:none}
    .ehc-grid .ehc-card__meta span:first-child,
    .ehc-grid .ehc-card__meta span:nth-child(4){display:inline-block}
}

@media(max-width:600px){
    .ehc-single__title{font-size:clamp(2rem,10vw,2.8rem)}
    .ehc-overview{grid-template-columns:1fr;padding:14px}
    .ehc-overview__cover{width:min(72vw,300px);margin:0 auto}
    .ehc-overview__content{padding:2px}
    .ehc-overview__excerpt{font-size:.98rem}
    .ehc-overview__actions{display:grid;grid-template-columns:1fr}
    .ehc-overview__actions .ehc-button{width:100%}
    .ehc-reader{gap:8px}
    .ehc-reader img{border-radius:7px}
}

@media(max-width:480px){
    .ehc-filters{grid-template-columns:1fr}
    .ehc-filter-search{grid-column:auto}
    .ehc-filter-actions{grid-column:auto;flex-direction:column}
    .ehc-card:not(.ehc-card--compact){grid-template-columns:1fr}
    .ehc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .ehc-grid .ehc-card__title{font-size:.92rem}
    .ehc-grid .ehc-button{width:100%}
}

/* ---------- v0.3.3 typography + catalog polish ---------- */
.ehc-catalog-header{
    margin-bottom:24px;
}

.ehc-catalog-title{
    font-size:clamp(2.25rem,4.2vw,3.5rem);
}

.ehc-catalog-intro{
    max-width:820px;
    margin:12px 0 0;
    color:#c5cbd2;
    font-size:1.03rem;
    line-height:1.62;
}

.ehc-catalog-subtitle{
    margin-top:10px;
    font-size:1rem;
    color:#9fa7b1;
}

.ehc-filters{
    padding:18px;
    gap:14px;
}

.ehc-filter-field>span{
    font-size:.86rem;
    line-height:1.25;
}

.ehc-filter-field input,
.ehc-filter-field select{
    min-height:46px;
    padding:9px 12px;
    font-size:1rem;
    line-height:1.25;
}

.ehc-filter-actions{
    gap:10px;
    padding-top:4px;
}

.ehc-filters .ehc-button--apply{
    appearance:none!important;
    min-height:42px!important;
    min-width:146px;
    padding:9px 16px!important;
    border:1px solid rgba(215,166,74,.82)!important;
    border-radius:10px!important;
    background:#1c2025!important;
    box-shadow:none!important;
    color:#f0c979!important;
    font-family:inherit!important;
    font-size:.94rem!important;
    font-weight:800!important;
    letter-spacing:0!important;
    line-height:1.2!important;
    text-shadow:none!important;
}

.ehc-filters .ehc-button--apply:hover,
.ehc-filters .ehc-button--apply:focus{
    border-color:var(--ehc-accent-hover)!important;
    background:var(--ehc-accent)!important;
    color:#17130c!important;
    transform:translateY(-1px);
}

.ehc-filters .ehc-button--ghost{
    min-height:42px;
    padding:9px 14px;
    background:transparent!important;
    border-color:#39414b!important;
    color:#c8ced5!important;
    box-shadow:none!important;
    font-size:.92rem;
}

.ehc-filters .ehc-button--ghost:hover{
    border-color:#59636f!important;
    background:#1a1f24!important;
    color:#fff!important;
}

.ehc-grid{
    gap:22px;
}

.ehc-grid .ehc-card__body{
    padding:16px;
}

.ehc-grid .ehc-card__title{
    margin-bottom:12px;
    font-size:1.18rem;
    line-height:1.34;
}

.ehc-grid .ehc-card__meta{
    gap:7px;
    margin-bottom:15px;
    font-size:.88rem;
    line-height:1.35;
}

.ehc-grid .ehc-card__meta span{
    padding:5px 8px;
    border-radius:8px;
}

.ehc-grid .ehc-button{
    min-height:40px;
    padding:8px 13px;
    border-color:rgba(215,166,74,.45);
    color:#f3d38d!important;
    font-size:.92rem;
}

.ehc-grid .ehc-button:hover{
    border-color:var(--ehc-accent);
    background:#242116;
    color:#f4d38d!important;
}

.ehc-overview__excerpt{
    font-size:1.1rem;
}

.ehc-fact dt{
    font-size:.78rem;
}

.ehc-fact dd{
    font-size:1.04rem;
}

.ehc-tag{
    min-height:32px;
    padding:6px 10px;
    font-size:.83rem;
}

.ehc-button{
    font-size:.94rem;
}

@media(max-width:760px){
    .ehc-catalog-intro{font-size:.98rem}
    .ehc-grid .ehc-card__title{font-size:1.03rem}
    .ehc-grid .ehc-card__meta{font-size:.8rem}
}


/* ---------- v0.3.4 desktop readability ----------
   Use px-based values so themes with a reduced root rem size cannot shrink EHC UI. */
.ehc-single-main,
.ehc-archive-main{
    font-size:16px;
}

.ehc-single__eyebrow{
    font-size:12px;
}

.ehc-single__title{
    font-size:clamp(38px,4.2vw,58px);
    line-height:1.08;
}

.ehc-single__byline{
    margin-top:12px;
    font-size:16px;
    line-height:1.5;
}

.ehc-overview__excerpt{
    font-size:17px;
    line-height:1.7;
}

.ehc-fact{
    padding:14px 15px;
}

.ehc-fact dt{
    margin-bottom:6px;
    font-size:12px;
    line-height:1.3;
}

.ehc-fact dd{
    font-size:16px;
    line-height:1.45;
}

.ehc-tags{
    gap:9px;
    margin-top:20px;
}

.ehc-tag{
    min-height:36px;
    padding:7px 12px;
    font-size:14px;
    line-height:1.25;
}

.ehc-button,
.ehc-grid .ehc-button,
.ehc-filters .ehc-button--apply,
.ehc-filters .ehc-button--ghost{
    min-height:46px!important;
    padding:11px 16px!important;
    font-size:15px!important;
    line-height:1.2!important;
}

.ehc-single__description{
    font-size:17px;
    line-height:1.75;
}

.ehc-catalog-title{
    font-size:clamp(38px,4vw,54px);
    line-height:1.08;
}

.ehc-catalog-intro{
    max-width:900px;
    font-size:17px;
    line-height:1.65;
}

.ehc-catalog-subtitle{
    font-size:15px;
    line-height:1.5;
}

.ehc-filters{
    padding:20px;
    gap:16px;
}

.ehc-filter-field{
    gap:8px;
}

.ehc-filter-field>span{
    font-size:13px;
    line-height:1.3;
}

.ehc-filter-field input,
.ehc-filter-field select{
    min-height:50px;
    padding:11px 13px;
    font-size:16px;
    line-height:1.25;
}

.ehc-filters .ehc-button--apply{
    min-width:154px;
    border-radius:11px!important;
}

.ehc-grid .ehc-card__body{
    padding:17px;
}

.ehc-grid .ehc-card__title{
    margin-bottom:13px;
    font-size:18px;
    line-height:1.35;
}

.ehc-grid .ehc-card__meta{
    gap:8px;
    margin-bottom:16px;
    font-size:14px;
    line-height:1.45;
}

.ehc-grid .ehc-card__meta span{
    padding:6px 9px;
}

.ehc-pagination a,
.ehc-pagination span{
    min-width:44px;
    min-height:44px;
    font-size:15px;
}

@media (min-width:1200px){
    .ehc-single-main{width:min(1240px,calc(100% - 48px))}
    .ehc-overview{grid-template-columns:minmax(245px,300px) minmax(0,1fr);gap:34px;padding:24px}
    .ehc-catalog-wrap{width:min(1280px,calc(100% - 48px))}
}

@media(max-width:760px){
    .ehc-single__title{font-size:clamp(32px,8vw,44px)}
    .ehc-single__byline{font-size:15px}
    .ehc-overview__excerpt{font-size:16px}
    .ehc-fact dd{font-size:15px}
    .ehc-tag{font-size:13px}
    .ehc-catalog-title{font-size:clamp(32px,8vw,44px)}
    .ehc-catalog-intro{font-size:16px}
    .ehc-filter-field input,
    .ehc-filter-field select{font-size:16px}
    .ehc-grid .ehc-card__title{font-size:16px}
    .ehc-grid .ehc-card__meta{font-size:13px}
}

/* ---------- v0.3.6 heading scale + comic lightbox ---------- */
/* Keep display headings present, but prevent them from overwhelming desktop layouts. */
.ehc-single__title{
    max-width:1040px;
    font-size:clamp(34px,3vw,44px);
    line-height:1.08;
    letter-spacing:-.025em;
}

.ehc-catalog-title{
    font-size:clamp(34px,2.8vw,42px);
    line-height:1.1;
}

.ehc-single__header{margin-bottom:20px}
.ehc-catalog-header{margin-bottom:20px}

/* The source category was removed from the selective importer in v0.3.5.
   This defensive rule also hides stale legacy markup if a page cache still serves it. */
.ehc-fact[data-ehc-field="category"],
.ehc-filter-field[data-ehc-field="category"]{display:none!important}

/* Reader pages remain normal links (and open raw images in a new tab without JS),
   while JavaScript upgrades an ordinary click to the lightbox viewer. */
.ehc-reader__page{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    color:inherit;
    text-decoration:none!important;
    cursor:zoom-in;
    outline:none;
}

.ehc-reader__page:focus-visible{
    border-radius:12px;
    box-shadow:0 0 0 3px rgba(215,166,74,.8);
}

.ehc-reader__page img{
    transition:filter .16s ease,transform .16s ease;
}

.ehc-reader__page:hover img{
    filter:brightness(1.035);
}

html.ehc-lightbox-open,
body.ehc-lightbox-open{
    overflow:hidden!important;
}

.ehc-lightbox[hidden]{display:none!important}

.ehc-lightbox{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:grid;
    grid-template-columns:72px minmax(0,1fr) 72px;
    grid-template-rows:auto minmax(0,1fr) auto;
    background:rgba(4,6,8,.97);
    color:#f4f1e9;
    opacity:0;
    transition:opacity .14s ease;
    font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.ehc-lightbox.is-open{opacity:1}

.ehc-lightbox__topbar{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:64px;
    padding:10px 18px;
    border-bottom:1px solid rgba(255,255,255,.09);
    background:rgba(12,15,19,.92);
    backdrop-filter:blur(10px);
}

.ehc-lightbox__counter{
    min-width:86px;
    color:#e8e2d8;
    font-size:15px;
    font-weight:750;
    letter-spacing:.03em;
}

.ehc-lightbox__tools{
    display:flex;
    align-items:center;
    gap:10px;
}

.ehc-lightbox__open,
.ehc-lightbox__close,
.ehc-lightbox__nav{
    border:1px solid rgba(255,255,255,.16);
    background:#171b20;
    color:#f4f1e9!important;
    text-decoration:none!important;
    cursor:pointer;
}

.ehc-lightbox__open{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 13px;
    border-radius:9px;
    font-size:14px;
    font-weight:700;
}

.ehc-lightbox__open:hover{
    border-color:rgba(215,166,74,.7);
    color:#f2c76f!important;
}

.ehc-lightbox__close{
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    padding:0;
    border-radius:50%;
    font-size:28px;
    line-height:1;
}

.ehc-lightbox__stage{
    grid-column:2;
    grid-row:2;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:0;
    padding:14px 8px;
    overflow:auto;
}

.ehc-lightbox__image{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    max-height:calc(100vh - 126px);
    margin:auto;
    object-fit:contain;
    border-radius:6px;
    box-shadow:0 18px 60px rgba(0,0,0,.5);
    user-select:none;
    -webkit-user-drag:none;
}

.ehc-lightbox__nav{
    align-self:center;
    display:grid;
    place-items:center;
    width:48px;
    height:64px;
    padding:0;
    border-radius:12px;
    font-size:42px;
    line-height:1;
    opacity:.82;
}

.ehc-lightbox__nav:hover{
    opacity:1;
    border-color:rgba(215,166,74,.75);
    background:#211d15;
    color:#f2c76f!important;
}

.ehc-lightbox__nav:disabled{opacity:.25;cursor:default}
.ehc-lightbox__prev{grid-column:1;grid-row:2;justify-self:center}
.ehc-lightbox__next{grid-column:3;grid-row:2;justify-self:center}

.ehc-lightbox__hint{
    grid-column:1/-1;
    grid-row:3;
    padding:8px 16px 11px;
    color:#858d97;
    font-size:12px;
    text-align:center;
    letter-spacing:.02em;
}

@media(max-width:760px){
    .ehc-single__title{font-size:clamp(28px,7vw,36px)}
    .ehc-catalog-title{font-size:clamp(30px,7vw,36px)}
    .ehc-lightbox{grid-template-columns:48px minmax(0,1fr) 48px}
    .ehc-lightbox__topbar{min-height:56px;padding:8px 10px}
    .ehc-lightbox__open{display:none}
    .ehc-lightbox__close{width:38px;height:38px;font-size:25px}
    .ehc-lightbox__nav{width:38px;height:52px;border-radius:9px;font-size:34px}
    .ehc-lightbox__stage{padding:8px 2px}
    .ehc-lightbox__image{max-height:calc(100vh - 108px)}
    .ehc-lightbox__hint{padding-bottom:max(8px,env(safe-area-inset-bottom));font-size:11px}
}


/* ---------- v0.3.7 compact catalog actions ---------- */
/* Keep the readable typography, but make repeated catalog actions less dominant. */
.ehc-grid .ehc-button{
    min-height:36px!important;
    padding:7px 11px!important;
    font-size:13px!important;
    line-height:1.15!important;
    border-radius:9px;
}

.ehc-filters .ehc-button--apply,
.ehc-filters .ehc-button--ghost{
    min-height:38px!important;
    padding:7px 13px!important;
    font-size:13px!important;
    line-height:1.15!important;
    border-radius:9px!important;
}

.ehc-filters .ehc-button--apply{
    min-width:132px;
}

@media(max-width:760px){
    .ehc-grid .ehc-button{
        min-height:38px!important;
        font-size:13px!important;
    }
    .ehc-filters .ehc-button--apply,
    .ehc-filters .ehc-button--ghost{
        min-height:40px!important;
        font-size:13px!important;
    }
}

/* ---------- v0.3.9 catalog micro-polish ---------- */
/* Give native dropdown rows a little breathing room where the browser allows option styling. */
.ehc-filter-field select{
    padding-left:15px;
    padding-right:34px;
}
.ehc-filter-field select option{
    padding:7px 12px;
}

/* Slightly quieter metadata pills in catalog cards. */
.ehc-grid .ehc-card__meta{
    gap:7px;
    font-size:13px;
    line-height:1.4;
}
.ehc-grid .ehc-card__meta span{
    padding:5px 8px;
    border-radius:8px;
}

/* Bring the primary card action back up one small step in size. */
.ehc-grid .ehc-button{
    min-height:39px!important;
    padding:8px 13px!important;
    font-size:14px!important;
    line-height:1.15!important;
}

@media(max-width:760px){
    .ehc-grid .ehc-card__meta{font-size:13px}
    .ehc-grid .ehc-button{
        min-height:40px!important;
        font-size:14px!important;
    }
}


/* ---------- v0.3.11 native dropdown spacing fix ---------- */
/* Chromium/Windows ignores padding on native <option> rows. The option labels
   now include non-breaking leading spacing; keep the closed control balanced. */
.ehc-filter-field select{
    padding-left:12px!important;
}
.ehc-filter-field select option{
    padding-left:0!important;
}

/* ---------- v0.3.12 automatic series / chapter navigation ---------- */
.ehc-series-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    width:100%;
    max-width:1100px;
    margin:0 auto 18px;
    padding:14px 15px;
    border:1px solid var(--ehc-border);
    border-radius:13px;
    background:linear-gradient(145deg,#151a20,#11151a);
    color:var(--ehc-text);
}

.ehc-series-nav--bottom{
    margin-top:22px;
    margin-bottom:0;
}

.ehc-series-nav__summary{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:7px 9px;
    min-width:0;
}

.ehc-series-nav__label{
    color:var(--ehc-muted-2);
    font-size:11px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.ehc-series-nav__name{
    max-width:320px;
    overflow:hidden;
    color:var(--ehc-text)!important;
    font-size:15px;
    font-weight:800;
    line-height:1.25;
    text-decoration:none!important;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ehc-series-nav__name:hover{color:var(--ehc-accent-hover)!important}

.ehc-series-nav__position{
    color:var(--ehc-muted);
    font-size:13px;
    white-space:nowrap;
}

.ehc-series-nav__controls{
    display:grid;
    grid-template-columns:auto minmax(190px,300px) auto;
    align-items:center;
    gap:8px;
    flex:0 1 620px;
}

.ehc-series-nav__chooser{min-width:0;margin:0}

.ehc-series-nav__select{
    width:100%;
    height:40px;
    margin:0;
    padding:7px 34px 7px 12px;
    border:1px solid #39414b;
    border-radius:9px;
    background:#1a1f25;
    color:var(--ehc-text);
    font-family:inherit;
    font-size:14px;
    line-height:1.2;
    cursor:pointer;
}

.ehc-series-nav__select:focus{
    outline:2px solid rgba(215,166,74,.4);
    outline-offset:1px;
    border-color:rgba(215,166,74,.72);
}

.ehc-series-nav__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:40px;
    padding:8px 12px;
    border:1px solid rgba(215,166,74,.42);
    border-radius:9px;
    background:#191d22;
    color:#f2d38d!important;
    font-size:13px;
    font-weight:800;
    line-height:1.1;
    text-decoration:none!important;
    white-space:nowrap;
    transition:border-color .15s ease,background .15s ease,transform .15s ease;
}

.ehc-series-nav__button:not(.is-disabled):hover{
    transform:translateY(-1px);
    border-color:var(--ehc-accent);
    background:#242116;
}

.ehc-series-nav__button.is-disabled{
    opacity:.32;
    border-color:#343b43;
    color:var(--ehc-muted)!important;
    cursor:default;
}

@media(max-width:820px){
    .ehc-series-nav{
        align-items:stretch;
        flex-direction:column;
        gap:10px;
    }
    .ehc-series-nav__controls{
        grid-template-columns:auto minmax(0,1fr) auto;
        flex:none;
    }
}

@media(max-width:560px){
    .ehc-series-nav{padding:12px}
    .ehc-series-nav__controls{
        grid-template-columns:1fr 1fr;
    }
    .ehc-series-nav__chooser{
        grid-column:1/-1;
        grid-row:1;
    }
    .ehc-series-nav__button{width:100%}
    .ehc-series-nav__name{max-width:220px}
}
\n\n/* ---------- v0.3.13 catalog heading + balanced native select labels ---------- */\n/* Native option rows have limited styling on Chromium/Windows. Labels now carry\n   one non-breaking space on both sides instead of the previous heavy left indent. */\n.ehc-filter-field select{\n    padding-left:12px!important;\n    padding-right:34px!important;\n}\n.ehc-filter-field select option{\n    padding-left:0!important;\n    padding-right:0!important;\n}\n
/* ---------- v0.3.14 local heart ratings ---------- */
.ehc-rating{
    margin-top:28px;
    padding:14px 16px;
    border:1px solid var(--ehc-border-soft);
    border-radius:12px;
    background:#171c22;
}

.ehc-rating__heading{
    margin-bottom:8px;
    color:#cbd1d8;
    font-size:13px;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
}

.ehc-rating__row{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.ehc-rating__hearts{
    display:flex;
    align-items:center;
    gap:4px;
}

.ehc-rating__heart{
    appearance:none;
    width:34px;
    height:34px;
    margin:0;
    padding:0;
    border:0;
    background:transparent!important;
    box-shadow:none!important;
    color:#56606b;
    font:inherit;
    font-size:27px;
    line-height:1;
    cursor:pointer;
    transform:none;
    transition:color .12s ease,transform .12s ease,opacity .12s ease;
}

.ehc-rating__heart:hover,
.ehc-rating__heart:focus-visible,
.ehc-rating__heart.is-preview,
.ehc-rating__heart.is-selected{
    color:var(--ehc-accent);
}

.ehc-rating__heart:hover,
.ehc-rating__heart:focus-visible{
    transform:scale(1.12);
    outline:none;
}

.ehc-rating__heart:disabled{cursor:wait;opacity:.65}

.ehc-rating__summary{
    display:flex;
    align-items:baseline;
    gap:8px;
    min-width:0;
}

.ehc-rating__average{
    color:var(--ehc-text);
    font-size:18px;
    line-height:1;
}

.ehc-rating__count{
    color:var(--ehc-muted);
    font-size:14px;
}

.ehc-rating__status{
    min-height:18px;
    margin-top:6px;
    color:#9da6b0;
    font-size:12px;
}

.ehc-rating-inline{
    color:#f2ca7a;
}

.ehc-rating-inline small{
    color:#aeb5bf;
    font-weight:500;
}

.ehc-card__rating b{
    color:var(--ehc-accent);
}

.ehc-card__rating small{
    color:#aeb5bf;
    font-size:.92em;
}

@media(max-width:760px){
    .ehc-grid .ehc-card__meta span{display:none}
    .ehc-grid .ehc-card__meta span:first-child,
    .ehc-grid .ehc-card__meta .ehc-card__rating,
    .ehc-grid .ehc-card__meta span:last-child{display:inline-block}
}

@media(max-width:600px){
    .ehc-rating{padding:12px 13px}
    .ehc-rating__heart{width:32px;height:32px;font-size:25px}
    .ehc-rating__row{gap:12px}
}

/* ---------- v0.4.0 unified catalog: All Comics / Scyxar Studios ---------- */
.ehc-scope-tabs{
    display:inline-flex;
    gap:5px;
    margin:0 0 16px;
    padding:4px;
    border:1px solid var(--ehc-border);
    border-radius:12px;
    background:#11151a;
}
.ehc-scope-tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:38px;
    padding:8px 14px;
    border-radius:9px;
    color:#aeb6c0!important;
    font-size:14px;
    font-weight:800;
    line-height:1;
    text-decoration:none!important;
    transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.ehc-scope-tab:hover{
    color:#f1d18d!important;
    background:#1a1f25;
}
.ehc-scope-tab.is-active{
    background:#232019;
    box-shadow:inset 0 0 0 1px rgba(215,166,74,.45);
    color:#f2c96f!important;
}

.ehc-card__cover{
    position:relative;
}
.ehc-card__studio-badge{
    position:absolute;
    top:10px;
    left:10px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:5px 8px;
    border:1px solid rgba(255,223,145,.42);
    border-radius:999px;
    background:rgba(15,13,9,.86);
    box-shadow:0 4px 16px rgba(0,0,0,.28);
    color:#f0c66c;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    line-height:1;
    text-transform:uppercase;
    backdrop-filter:blur(5px);
}
.ehc-card__studio-only{
    position:relative;
    min-height:36px;
    padding:10px 12px 0;
}
.ehc-card__studio-only .ehc-card__studio-badge{
    position:static;
}

@media(max-width:600px){
    .ehc-scope-tabs{display:flex;width:100%}
    .ehc-scope-tab{flex:1;padding-left:9px;padding-right:9px;font-size:13px}
    .ehc-card__studio-badge{top:7px;left:7px;font-size:9px;padding:4px 7px}
}

/* ---------- v0.4.1 Studio archive downloads ---------- */
.ehc-button--download{
    background:#20242b;
    border-color:#c99a3c;
    color:#f5d58d;
}
.ehc-button--download:hover,
.ehc-button--download:focus-visible{
    background:#2a2f38;
    border-color:#e2b456;
    color:#ffe7ad;
}

/* ---------- v0.4.2 series-first catalog ---------- */
.ehc-catalog-switches{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin:0 0 16px;
}
.ehc-catalog-switches .ehc-scope-tabs{
    margin:0;
}
.ehc-view-tabs{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid var(--ehc-border);
    border-radius:12px;
    background:#11151a;
}
.ehc-view-tabs__label{
    padding:0 8px;
    color:#7f8994;
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.ehc-view-tab{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:8px 13px;
    border-radius:9px;
    color:#aeb6c0!important;
    font-size:14px;
    font-weight:800;
    line-height:1;
    text-decoration:none!important;
    transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.ehc-view-tab:hover{
    color:#f1d18d!important;
    background:#1a1f25;
}
.ehc-view-tab.is-active{
    background:#232019;
    box-shadow:inset 0 0 0 1px rgba(215,166,74,.45);
    color:#f2c96f!important;
}
.ehc-card__type-badge{
    position:absolute;
    top:10px;
    right:10px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:5px 8px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(12,15,18,.84);
    box-shadow:0 4px 16px rgba(0,0,0,.24);
    color:#d6dbe1;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    line-height:1;
    text-transform:uppercase;
    backdrop-filter:blur(5px);
}
.ehc-series-card__latest{
    margin:0 0 14px;
    color:#c4cad1;
    font-size:13px;
    line-height:1.4;
}
.ehc-series-card__latest span{
    color:#858f9a;
    font-weight:800;
}
.ehc-series-card .ehc-card__title{
    -webkit-line-clamp:2;
}

@media(max-width:760px){
    .ehc-catalog-switches{
        align-items:stretch;
    }
    .ehc-catalog-switches .ehc-scope-tabs,
    .ehc-view-tabs{
        width:100%;
    }
    .ehc-view-tab{
        flex:1;
    }
    .ehc-view-tabs__label{
        display:none;
    }
}

@media(max-width:600px){
    .ehc-card__type-badge{top:7px;right:7px;font-size:9px;padding:4px 7px}
    .ehc-series-card__latest{font-size:12px}
}

/* v0.4.3 — Paid Memberships Pro gate */
.ehc-membership-gate {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 26px 0 34px;
    padding: 22px 24px;
    border: 1px solid rgba(216, 166, 62, .34);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(216,166,62,.08), rgba(255,255,255,.025));
}
.ehc-membership-gate__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(216,166,62,.13);
    font-size: 21px;
}
.ehc-membership-gate__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}
.ehc-membership-gate__body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    opacity: .86;
}
.ehc-membership-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.ehc-overview--locked { margin-bottom: 0; }
@media (max-width: 640px) {
    .ehc-membership-gate { padding: 18px; gap: 12px; }
    .ehc-membership-gate__icon { width: 40px; height: 40px; }
}

/* ---------- v0.4.4 blurred membership cards ---------- */
.ehc-card--locked{
    position:relative;
    isolation:isolate;
}
.ehc-card--locked > .ehc-card__cover,
.ehc-card--locked > .ehc-card__studio-only,
.ehc-card--locked > .ehc-card__body{
    pointer-events:none;
    user-select:none;
    filter:blur(5px) brightness(.58) saturate(.72);
    transform:translateZ(0);
}
.ehc-card--locked > .ehc-card__cover img{
    transform:scale(1.035);
}
.ehc-card--locked::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:6;
    background:linear-gradient(180deg,rgba(7,9,12,.22),rgba(7,9,12,.72));
    pointer-events:none;
}
.ehc-card-lock{
    position:absolute;
    inset:0;
    z-index:8;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:20px;
    text-align:center;
    color:#f4f0e8;
}
.ehc-card-lock__icon{
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    margin-bottom:2px;
    border:1px solid rgba(238,196,104,.42);
    border-radius:50%;
    background:rgba(17,14,9,.78);
    box-shadow:0 8px 26px rgba(0,0,0,.34);
    font-size:19px;
}
.ehc-card-lock__title{
    font-size:17px;
    font-weight:900;
    line-height:1.2;
    letter-spacing:.01em;
}
.ehc-card-lock__hint{
    color:#c8c0b2;
    font-size:12px;
    font-weight:700;
}
.ehc-access-levels{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:7px;
    margin-top:4px;
}
.ehc-access-level{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:31px;
    padding:6px 10px;
    border:1px solid rgba(225,180,82,.48);
    border-radius:999px;
    background:rgba(37,29,14,.9);
    color:#f2cb75!important;
    font-size:12px;
    font-weight:850;
    line-height:1.1;
    text-decoration:none!important;
    box-shadow:0 5px 16px rgba(0,0,0,.2);
    transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.ehc-access-level:hover,
.ehc-access-level:focus-visible{
    background:#d8a63e;
    border-color:#e1b552;
    color:#13100a!important;
    transform:translateY(-1px);
}
.ehc-series-card__members-note{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    gap:5px;
    margin:0 0 12px;
    padding:5px 8px;
    border:1px solid rgba(218,171,71,.28);
    border-radius:999px;
    background:rgba(218,171,71,.07);
    color:#d9bb78;
    font-size:12px;
    font-weight:800;
    line-height:1.2;
}
.ehc-membership-gate .ehc-access-levels{
    justify-content:flex-start;
    margin-top:13px;
}
.ehc-membership-gate .ehc-access-level{
    min-height:34px;
    padding:7px 12px;
    font-size:13px;
}
@media(max-width:600px){
    .ehc-card-lock{padding:14px;gap:5px}
    .ehc-card-lock__icon{width:36px;height:36px;font-size:16px}
    .ehc-card-lock__title{font-size:15px}
    .ehc-card-lock__hint{font-size:11px}
    .ehc-access-level{min-height:29px;padding:5px 8px;font-size:11px}
}
.ehc-series-card__member-access{
    margin:0 0 12px;
}
.ehc-series-card__member-access .ehc-series-card__members-note{
    margin-bottom:7px;
}
.ehc-series-card__member-access .ehc-access-levels{
    justify-content:flex-start;
    margin-top:0;
}
.ehc-series-card__member-access .ehc-access-level{
    min-height:28px;
    padding:5px 8px;
    font-size:11px;
}

/* ---------- v0.4.9 branching story choices ---------- */
.ehc-branch-choice{
    width:100%;
    max-width:1100px;
    margin:-2px auto 14px;
    padding:20px 18px 22px;
    border:1px solid #292f36;
    border-top:0;
    border-radius:0 0 12px 12px;
    background:#080a0c;
}
.ehc-branch-choice__buttons{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:12px;
}
.ehc-branch-choice__button{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:9px 28px;
    border:1px solid #9d772f!important;
    border-radius:999px;
    background:#0e1013;
    color:#f0c368!important;
    font-size:14px;
    font-weight:800;
    line-height:1.2;
    text-align:center;
    text-decoration:none!important;
    letter-spacing:.02em;
    transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}
.ehc-branch-choice__button:hover,
.ehc-branch-choice__button:focus-visible{
    border-color:#e0ad46!important;
    background:#1b1710;
    color:#ffd77f!important;
    transform:translateY(-1px);
}
.ehc-lightbox__stage{flex-direction:column;gap:12px}
.ehc-lightbox__choices{
    width:min(900px,100%);
    padding:12px 12px 4px;
    text-align:center;
}
.ehc-lightbox__choices[hidden]{display:none!important}
.ehc-lightbox__choices-label{
    margin-bottom:9px;
    color:#9ca5af;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.ehc-lightbox__choices-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.ehc-lightbox__choice{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 20px;
    border:1px solid rgba(215,166,74,.72);
    border-radius:999px;
    background:#17130c;
    color:#f2c76f!important;
    font-size:14px;
    font-weight:800;
    text-decoration:none!important;
}
.ehc-lightbox__choice:hover{background:#211a0d;border-color:#e4b453;color:#ffe09b!important}
@media(max-width:760px){
    .ehc-branch-choice{padding:14px 10px 16px;margin-bottom:10px}
    .ehc-branch-choice__buttons{gap:8px}
    .ehc-branch-choice__button{width:100%;min-height:42px;padding:8px 14px;font-size:13px}
    .ehc-lightbox__choices{padding:8px 4px 2px}
    .ehc-lightbox__choice{width:100%;font-size:13px}
}


/* ---------- v0.5.0 compact series freshness + local branch routes ---------- */
.ehc-series-card__latest{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    column-gap:5px;
    row-gap:2px;
}
.ehc-series-card__updated-inline{
    color:#89939f;
    font-size:11px;
    white-space:normal;
}
.ehc-series-card__updated-inline > span{
    font-weight:800;
    color:#89939f;
}
.ehc-series-card__updated-inline time{color:#aab3bd}
.ehc-branch-choice__button.is-active,
.ehc-lightbox__choice.is-active{
    border-color:#efba4f!important;
    background:#241c0e!important;
    color:#ffe09b!important;
}
.ehc-reader__page[hidden],
.ehc-branch-choice[hidden]{display:none!important}

@media(max-width:760px){
    .ehc-series-card__updated-inline{font-size:10px}
}


/* ---------- v0.5.4 membership prices ---------- */
.ehc-access-level{
    gap:6px;
}
.ehc-access-level__name{
    min-width:0;
}
.ehc-access-level__price{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    padding-left:6px;
    border-left:1px solid rgba(242,203,117,.30);
    color:#fff0bf;
    font-size:.92em;
    font-weight:800;
    opacity:.92;
}
.ehc-access-level:hover .ehc-access-level__price,
.ehc-access-level:focus-visible .ehc-access-level__price{
    border-left-color:rgba(19,16,10,.28);
    color:#13100a;
    opacity:.9;
}
@media(max-width:600px){
    .ehc-access-level{gap:5px}
    .ehc-access-level__price{padding-left:5px;font-size:.9em}
}


/* ---------- Inline reader video ads ---------- */
.ehc-reader-ad{
    position:relative;
    z-index:0;
    isolation:isolate;
    width:100%;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:18px 0 22px;
    padding:18px 12px;
    border-top:1px solid rgba(255,255,255,.06);
    border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(255,255,255,.015);
    text-align:center;
    overflow:hidden;
}
.ehc-reader-ad[hidden]{display:none!important}
.ehc-reader-ad__label{
    color:var(--ehc-muted-2);
    font-size:11px;
    font-weight:700;
    letter-spacing:.12em;
    line-height:1;
    text-transform:uppercase;
}

.ehc-reader-ad__mount{
    display:flex;
    width:100%;
    max-width:100%;
    min-height:0;
    align-items:center;
    justify-content:center;
}
.ehc-reader-ad[data-ehc-ad-state="waiting"],
.ehc-reader-ad[data-ehc-ad-state="failed"]{
    display:none!important;
}
.ehc-reader-ad ins{
    display:block;
    max-width:100%;
    margin:0 auto;
}
@media (max-width:768px){
    .ehc-reader-ad{
        margin:12px 0 16px;
        padding:14px 6px;
    }
}


/* ---------- v0.6.8 catalog pagination redesign ---------- */
.ehc-pagination{
    display:flex;
    justify-content:center;
    margin:34px 0 4px;
    padding:0;
}

.ehc-pagination > .page-numbers{
    display:inline-flex;
    width:auto;
    max-width:100%;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:4px;
    margin:0!important;
    padding:5px!important;
    border:1px solid rgba(255,255,255,.09);
    border-radius:14px;
    background:linear-gradient(180deg,#171b20 0%,#12161a 100%);
    box-shadow:0 10px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025);
    list-style:none!important;
}

.ehc-pagination > .page-numbers > li{
    display:block;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:none!important;
    list-style:none!important;
}

.ehc-pagination > .page-numbers > li::before,
.ehc-pagination > .page-numbers > li::after{
    display:none!important;
    content:none!important;
}

.ehc-pagination a.page-numbers,
.ehc-pagination span.page-numbers{
    box-sizing:border-box;
    display:inline-flex;
    min-width:40px;
    min-height:40px;
    align-items:center;
    justify-content:center;
    margin:0!important;
    padding:8px 12px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    box-shadow:none;
    color:#b9c0c9;
    font-size:14px;
    font-weight:700;
    line-height:1;
    text-decoration:none!important;
    transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}

.ehc-pagination a.page-numbers:hover{
    border-color:rgba(215,166,74,.26);
    background:#20252b;
    color:#f3efe7;
    transform:translateY(-1px);
}

.ehc-pagination a.page-numbers:focus-visible{
    outline:2px solid rgba(215,166,74,.72);
    outline-offset:2px;
}

.ehc-pagination span.page-numbers.current{
    border-color:#d7a64a;
    background:linear-gradient(180deg,#e0b35a 0%,#c99536 100%);
    box-shadow:0 5px 14px rgba(215,166,74,.18),inset 0 1px 0 rgba(255,255,255,.24);
    color:#111419;
    font-weight:900;
}

.ehc-pagination a.page-numbers.prev,
.ehc-pagination a.page-numbers.next{
    min-width:auto;
    padding-inline:14px;
    color:#d8dde3;
}

.ehc-pagination span.page-numbers.dots{
    min-width:26px;
    padding-inline:5px;
    color:#747d88;
}

@media(max-width:520px){
    .ehc-pagination{margin-top:26px}
    .ehc-pagination > .page-numbers{gap:2px;padding:4px!important;border-radius:12px}
    .ehc-pagination a.page-numbers,
    .ehc-pagination span.page-numbers{
        min-width:36px;
        min-height:36px;
        padding:7px 9px;
        border-radius:8px;
        font-size:13px;
    }
    .ehc-pagination a.page-numbers.prev,
    .ehc-pagination a.page-numbers.next{padding-inline:10px}
}
