/* ki-hero.css — komponen sorotan komik (center-focused + panel detail).
   Aksen memakai biru identitas situs: rgb(0,122,255). */

.kf-hero {
    --kf-accent: rgb(0, 122, 255);
    --kf-panel: rgba(255, 255, 255, .045);
    --kf-line: rgba(255, 255, 255, .08);
    margin: 0 0 28px;
    padding: 28px 0 24px;
    background:
        radial-gradient(1100px 320px at 50% -40px, rgba(0, 122, 255, .10), transparent 70%),
        #121212;
    border-bottom: 1px solid var(--kf-line);
}

.kf-hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 56px;
    box-sizing: border-box;
}

/* ---- jalur slide ---------------------------------------------------- */
.kf-hero-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 370px;
}

.kf-hero-item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    width: 172px;
    opacity: .4;
    transform: scale(.88);
    transition: opacity .35s ease, transform .35s ease, width .35s ease;
    cursor: pointer;
}

.kf-hero-item.is-active {
    width: 668px;
    opacity: 1;
    transform: scale(1);
    cursor: default;
    z-index: 2;
}

/* ---- cover ---------------------------------------------------------- */
.kf-hero-cover {
    position: relative;
    flex: 0 0 172px;
    width: 172px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #1b1b1b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

.kf-hero-item.is-active .kf-hero-cover {
    flex-basis: 238px;
    width: 238px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}

.kf-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* keterangan menumpuk di dasar cover */
.kf-hero-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent);
    text-align: center;
    pointer-events: none;
}

.kf-hero-cap strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kf-hero-cap em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 11.5px;
    color: #bdbdbd;
}

/* ---- panel detail --------------------------------------------------- */
.kf-hero-panel {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: -18px;
    padding: 22px 24px 18px 40px;
    background: var(--kf-panel);
    border: 1px solid var(--kf-line);
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(2px);
}

.kf-hero-item.is-active .kf-hero-panel { display: block; }

.kf-hero-title {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--kf-line);
    font-size: 20px;
    line-height: 1.2;
}

.kf-hero-title a { color: #fff; }
.kf-hero-title a:hover { color: var(--kf-accent); }

.kf-hero-sin {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #c4c4c4;
}

/* meta dua kolom: label kecil abu, nilai terang */
.kf-hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 0 0 16px;
}

.kf-hero-meta > div { min-width: 0; }

.kf-hero-meta dt {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: .04em;
    color: #8d8d8d;
}

.kf-hero-meta dd {
    margin: 0;
    font-size: 13px;
    color: #e6e6e6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- kaki panel ----------------------------------------------------- */
.kf-hero-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--kf-line);
}

.kf-hero-chip {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    font-size: 12.5px;
    color: #e8e8e8;
    white-space: nowrap;
}

.kf-hero-chip.alt { background: rgba(0, 122, 255, .16); color: #9ccaff; }

.kf-hero-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--kf-accent);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 122, 255, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}

.kf-hero-play:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 22px rgba(0, 122, 255, .6);
    color: #fff;
}

.kf-hero-play i { margin-left: 2px; }   /* segitiga play terlihat center */

/* ---- tombol panah --------------------------------------------------- */
.kf-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--kf-line);
    border-radius: 8px;
    background: rgba(18, 18, 18, .82);
    color: #d8d8d8;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.kf-hero-nav:hover {
    background: var(--kf-accent);
    border-color: var(--kf-accent);
    color: #fff;
}

.kf-hero-prev { left: 8px; }
.kf-hero-next { right: 8px; }

/* ---- titik indikator ------------------------------------------------ */
.kf-hero-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
}

.kf-hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: background .2s, width .2s;
}

.kf-hero-dot.is-active { width: 22px; border-radius: 4px; background: var(--kf-accent); }

/* ---- layar sempit --------------------------------------------------- */
@media (max-width: 1100px) {
    .kf-hero-item.is-active { width: 560px; }
    .kf-hero-meta { grid-template-columns: 1fr; gap: 8px; }
    .kf-hero-sin { -webkit-line-clamp: 3; }
}

@media (max-width: 860px) {
    .kf-hero { padding: 20px 0 18px; }
    .kf-hero-inner { padding: 0 16px; }
    .kf-hero-track { gap: 0; min-height: 0; }
    .kf-hero-item { display: none; width: 100%; }
    .kf-hero-item.is-active {
        display: flex;
        flex-direction: column;
        width: 100%;
        transform: none;
    }
    .kf-hero-cover,
    .kf-hero-item.is-active .kf-hero-cover {
        flex: 0 0 auto;
        width: 100%;
        max-width: 230px;
        margin: 0 auto;
    }
    .kf-hero-panel {
        margin: -10px 0 0;
        padding: 22px 16px 16px;
        border-radius: 10px;
    }
    .kf-hero-nav { display: none; }
    .kf-hero-title { font-size: 17px; }
}

/* ---- nomor peringkat di sidebar ------------------------------------ */
#sidebar .serieslist.pop .ctr {
    position: absolute;
    top: -6px;
    left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3a3a3a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

#sidebar .serieslist.pop .ctr.first  { background: #f5c518; color: #1a1a1a; }
#sidebar .serieslist.pop .ctr.second { background: #c9ccd1; color: #1a1a1a; }
#sidebar .serieslist.pop .ctr.third  { background: #cd7f32; color: #fff; }

#sidebar .serieslist.pop .leftseries { position: relative; }

/* rating kosong (kolom DB memang kosong) jangan tampil sebagai ikon telanjang */
#sidebar .serieslist.pop .loveviews:empty,
#sidebar .serieslist.pop .author:empty { display: none; }
