.html,
.body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.archive-header {
    margin-top: 50px;
    position: relative;
    padding-top: 60px; /* Padding atas setengah tinggi background */
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    text-align: center;
}

.author-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Tinggi background */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    z-index: 1;
}

.author-avatar-container {
    position: relative;
    z-index: 3;
    height: 75px; /* Setengah tinggi foto untuk posisi yang tepat */
    margin-bottom: 10px;
}

.author-archive-icon,
.author-archive-fallback {
    position: absolute;
    width: 150px;
    height: 150px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 3rem;
    color: #764ba2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
    /* Posisi: setengah di dalam background (60px dari atas) */
    top: -75px; /* Foto naik setengah tinggi (150px/2 = 75px) */
}

.author-archive-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.page-title {
    font-size: 2.5rem;
    margin: 5px 0 10px 0; /* Margin atas = tinggi setengah foto */
    position: relative;
    z-index: 2;
}

.taxonomy-description-with-icon {
    overflow: hidden;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.taxonomy-description {
    line-height: 1.5;
    font-size: 1rem;
    color: #444;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: justify;
}

/* Container untuk tab dan filter dalam satu baris */
.tab-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

/* Styling untuk tab */
.kn-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kn-tab {
    padding: 8px 16px;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
}

.kn-tab.active {
    background: #333;
    color: #fff;
}

.kn-tab-content {
    display: none;
}

.kn-tab-content.active {
    display: block;
}

/* Styling untuk filter penulis */
.penulis-filter-container {
    flex: 0 0 300px;
}

.penulis-filter-form {
    width: 100%;
}

.penulis-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.penulis-filter-select:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* =========================================================
   ARSIP CERPEN — ELEGANT LITERARY STYLE
========================================================= */

.ss-archive-item {
    position: relative;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* Hover halus */
.ss-archive-item:hover {
    transform: translateY(-1px);
}

/* =========================================================
   HIGHLIGHT — PILIHAN EDITOR
========================================================= */

.ss-archive-item.editor-choice {
    background:
        linear-gradient(
            to right,
            rgba(212,175,55,0.08),
            rgba(212,175,55,0.02)
        );

    border-left: 4px solid #d4af37;

    padding-left: 16px;
    border-radius: 10px;
}

.ss-editor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #9c6b00;

    background: rgba(212,175,55,0.12);

    border: 1px solid rgba(212,175,55,0.25);

    padding: 4px 10px;
    border-radius: 999px;

    margin-bottom: 10px;
}

/* =========================================================
   LAYOUT
========================================================= */

.ss-archive-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* =========================================================
   AUTHOR
========================================================= */

.ss-author-wrapper {
    width: 74px;
    text-align: center;
    flex-shrink: 0;
}

.ss-author-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #2b2b2b,
            #1a1a1a
        );

    color: #fff;

    font-size: 1.35em;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 7px;

    overflow: hidden;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.12);

    transition: transform 0.25s ease;
}

.ss-archive-item:hover .ss-author-icon {
    transform: scale(1.04);
}

.ss-author-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-author-name a {
    font-size: 0.78em;
    opacity: 0.82;
    text-decoration: none;
    line-height: 1.35;
}

/* =========================================================
   INFO
========================================================= */

.ss-info {
    flex: 1;
    min-width: 0;
}

.ss-title {
    margin: 0 0 6px;
    line-height: 1.35;
}

.ss-title a {
    font-size: 1.08em;
    font-weight: 650;
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.ss-title a:hover {
    opacity: 0.8;
}

/* =========================================================
   TAX / GENRE
========================================================= */

.ss-tax {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    font-size: 0.8em;
    opacity: 0.72;

    margin-bottom: 10px;
}

.ss-tax span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ss-tax img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
}

/* =========================================================
   EXCERPT
========================================================= */

.ss-excerpt {
    font-size: 1.1em;
    line-height: 1.25;

    opacity: 0.84;

    color: rgba(0,0,0,0.78);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;

    margin-bottom: 10px;
}

/* =========================================================
   META
========================================================= */

.ss-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    font-size: 0.76em;
    opacity: 0.7;
}

.ss-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =========================================================
   CTA
========================================================= */

.ss-cta {
    flex-shrink: 0;
    align-self: center;
}

.ss-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.78em;
    font-weight: 500;

    padding: 8px 16px;

    border-radius: 999px;

    text-decoration: none;

    border: 1px solid rgba(0,0,0,0.18);

    background: rgba(255,255,255,0.7);

    backdrop-filter: blur(4px);

    transition: all 0.2s ease;
}

.ss-read:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================================
   FILTER
========================================= */

.ss-filter-box {
    margin-bottom: 28px;
    padding: 18px 20px;

    border-radius: 14px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.9),
            rgba(250,250,250,0.95)
        );

    border: 1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 4px 18px rgba(0,0,0,0.04);
}

.ss-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ss-filter-form select {
    min-width: 180px;

    padding: 10px 14px;

    border-radius: 10px;

    border: 1px solid rgba(0,0,0,0.12);

    background: #fff;

    font-size: 0.92em;
}

.ss-editor-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.9em;

    opacity: 0.8;
}

.ss-filter-submit {
    padding: 10px 18px;

    border: none;

    border-radius: 999px;

    background: #111;

    color: #fff;

    font-size: 0.9em;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.ss-filter-submit:hover {
    opacity: 0.88;
}

/* =========================================================
   CONTENT AREA
========================================================= */

.content-area {
    max-width: 980px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 20px;

    float: none !important;

    width: 100% !important;

    display: block;
}

/* ========== GRID NOVEL TERBARU ========== */
.novel-terbaru-container {
    position: relative;
    margin-bottom: 40px;
    border: #007bff 3px solid;
    border-radius: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.terbaru-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffcc00;
    color: black;
    padding: 8px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

/* Style khusus untuk novel item terbaru - menggunakan class dari template part */
.novel-item-terbaru {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.novel-item-terbaru .novel-cover {
    flex: 0 0 200px;
    width: 100px;
}

.novel-item-terbaru .novel-cover img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 100%;
    height: auto;
}

.novel-item-terbaru .novel-info {
    flex: 1;
}

.novel-item-terbaru .novel-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.novel-item-terbaru .novel-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.novel-item-terbaru .novel-penulis {
    font-weight: bold;
}

.novel-item-terbaru .novel-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.novel-item-terbaru .read-button {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.novel-item-terbaru .read-button:hover {
    background: #fff;
    color: #007bff;
    border: #007bff 0.1px solid;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.novel-item-terbaru .novel-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.novel-item-terbaru .genre-tag {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
}

/* ========== GRID NOVEL UTAMA ========== */

.kliknovel-archive-item {
    position: relative;
    display: flex;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 5px;
    transition: box-shadow 0.2s ease;
    border: #007bff 0.1px solid;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kliknovel-cover-wrapper {
    flex-shrink: 0;
    width: 120px; /* Ukuran tetap */
    height: 180px;
    overflow: hidden;
}

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

.kliknovel-archive-inner {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.kliknovel-cover {
  flex: 0 0 160px;
  height: 100%;
  display: flex;
}

.kliknovel-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.kliknovel-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  margin: 0;
  border: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.kliknovel-info {
    flex: 1;
    padding: 0 15px;
}

.kliknovel-title {
  font-size: 1.2rem;
  margin: 15px 0 5px 0;
}

.kliknovel-title a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

.kliknovel-author,
.kliknovel-genre {
  font-size: 0.95rem;
  margin-bottom: 6px;
  margin-right: 6px;
  color: #444;
}

.kliknovel-excerpt {
  font-size: 0.95rem;
  margin-bottom: 6px;
  margin-right: 6px;
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kliknovel-genre a {
  text-decoration: none;
  color: #007bff;
}

.kliknovel-cta {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top:50px;
}

.kliknovel-meta span {
    margin-right: 10px;
    font-size: 0.8em;
    opacity: 0.75;
}

.kliknovel-read-button {
  display: block;
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-right:40px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  width: 100%;
}

.kliknovel-read-button:hover {
  background: #fff;
  border: #007bff 0.1px solid;
  color: #007bff;
}

/* ========== BADGE & BORDER ========== */

.kliknovel-badges {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.kliknovel-badge {
    padding: 4px 8px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    background-color: #555; /* bisa ditimpa oleh class lain seperti badge-populer, badge-premium, dll */
}

.kliknovel-badge:first-child {
    border-bottom-left-radius: 8px;
}

.kliknovel-badge.last-badge {
    border-top-right-radius: 8px;
    border-bottom-lef-radius: 8px;
}

.kliknovel-badge a {
    color: #fff; /* Menjaga teks tautan tetap putih */
    text-decoration: none; /* Menghapus garis bawah dari tautan */
}

.kliknovel-badge a:hover {
  opacity: 0.8; /* Efek transparansi saat hover */
}

/* Posisi atas kanan */
.kliknovel-badge-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

/* Warna latar badge */
.badge-merah {
  background-color: #dc143c;
}
.badge-emas {
  background-color: #ff7f00;
}
.badge-kuning {
  background-color: #dc143c;
  color: #000;
}
.badge-oranye {
  background-color: #ff6600;
}

/* Warna latar khusus berdasarkan jenis */
.bg-merah {
    background-color: #ffe5e5;
}
.bg-emas {
    background-color: #fff8dc;
}
.bg-kuning {
    background-color: #fffacd;
}
.bg-oranye {
    background-color: #ffe6cc;
}

/* Pagination */
.kliknovel-pagination {
  text-align: center;
  margin-top: 25px;
}
.kliknovel-pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #007bff;
  text-decoration: none;
}
.kliknovel-pagination a.active {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}

/* =========================================================
   RESPONSIVE - HALAMAN ARSIP (COVER SEDANG, TEKS WRAP)
   ========================================================= */

@media (max-width: 768px) {

    /* ===== ARCHIVE HEADER ===== */
    .archive-header {
        padding: 40px 16px 20px;
        margin-top: 20px;
        text-align: center;
    }

    .author-header-background {
        height: 90px;
    }

    .author-archive-icon,
    .author-archive-fallback {
        width: 80px;
        height: 80px;
        top: -40px;
        margin-bottom: -40px;
        font-size: 1.6rem;
    }

    .page-title {
        font-size: 1.3rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .taxonomy-description {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
        word-break: break-word;
    }

    /* ===== TAB & FILTER ===== */
    .tab-filter-container {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }

    .kn-tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .kn-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .penulis-filter-container {
        width: 100%;
    }

    .penulis-filter-select {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }

    /* ===== NOVEL TERBARU ===== */
    .novel-terbaru-container {
        padding: 15px;
        margin-bottom: 20px;
    }

    .terbaru-label {
        position: relative;
        display: inline-block;
        top: 0;
        right: 0;
        margin-bottom: 10px;
        padding: 4px 14px;
        font-size: 10px;
    }

    .novel-item-terbaru {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .novel-item-terbaru .novel-cover {
        width: 130px;
    }

    .novel-item-terbaru .novel-title {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .novel-item-terbaru .novel-excerpt {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .novel-item-terbaru .read-button {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    /* ===== GRID NOVEL - 2 KOLOM ===== */
    .novel-grid,
    .archive-grid,
    .kliknovel-archive-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .kliknovel-archive-item {
        display: block;
        margin: 0;
        border-radius: 8px;
        overflow: hidden;
    }

    /* COVER SEDANG - TIDAK TERLALU BESAR */
    .kliknovel-cover-wrapper {
        width: 100%;
    }

    .kliknovel-cover-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }

    .kliknovel-info {
        padding: 8px 6px;
        text-align: center;
    }

    .kliknovel-title {
        font-size: 0.8rem;
        margin: 4px 0;
        line-height: 1.35;
        word-break: break-word;
    }

    .kliknovel-title a {
        font-size: 0.8rem;
    }

    .kliknovel-author,
    .kliknovel-genre {
        font-size: 0.65rem;
        display: inline-block;
        word-break: break-word;
    }

    .kliknovel-excerpt {
        display: none;
    }

    .kliknovel-cta {
        width: 100%;
        padding: 0 6px 8px;
    }

    .kliknovel-read-button {
        width: 100%;
        padding: 6px 4px;
        font-size: 0.7rem;
        text-align: center;
        margin: 0;
    }

    /* BADGE */
    .kliknovel-badges {
        position: absolute;
        top: 5px;
        left: 5px;
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    .kliknovel-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        white-space: nowrap;
    }

    /* ===== CERPEN ===== */
    .ss-archive-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .ss-archive-item {
        padding: 10px;
        border-radius: 8px;
    }

    .ss-archive-inner {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }

    .ss-author-icon {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .ss-author-name a {
        font-size: 0.65rem;
    }

    .ss-title a {
        font-size: 0.8rem;
        word-break: break-word;
        display: block;
    }

    .ss-excerpt {
        display: none;
    }

    .ss-tax {
        justify-content: center;
        font-size: 0.6rem;
        flex-wrap: wrap;
    }

    .ss-meta {
        justify-content: center;
        font-size: 0.55rem;
        flex-wrap: wrap;
    }

    .ss-read {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    /* FILTER CERPEN */
    .ss-filter-box {
        margin-bottom: 12px;
    }

    .ss-filter-form {
        flex-direction: column;
        gap: 8px;
    }

    .ss-filter-form select,
    .ss-filter-submit {
        width: 100%;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    /* PAGINATION */
    .kliknovel-pagination {
        margin-top: 25px;
        text-align: center;
    }

    .kliknovel-pagination a {
        padding: 5px 10px;
        font-size: 0.75rem;
        margin: 0 2px;
        display: inline-block;
    }
}

/* =========================================================
   LAYAR SANGAT KECIL (480px)
   ========================================================= */
@media (max-width: 480px) {

    .page-title {
        font-size: 1.1rem;
    }

    .taxonomy-description {
        font-size: 0.75rem;
    }

    .kn-tab {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .novel-grid,
    .archive-grid,
    .kliknovel-archive-container {
        gap: 8px !important;
    }

    .kliknovel-title {
        font-size: 0.7rem;
    }

    .kliknovel-title a {
        font-size: 0.7rem;
    }

    .kliknovel-author,
    .kliknovel-genre {
        font-size: 0.55rem;
    }

    .kliknovel-read-button {
        font-size: 0.6rem;
        padding: 5px 3px;
    }

    .kliknovel-badge {
        font-size: 0.45rem;
        padding: 1px 4px;
    }

    .ss-archive-list {
        gap: 8px !important;
    }

    .ss-author-icon {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .ss-title a {
        font-size: 0.7rem;
    }

    .ss-read {
        font-size: 0.55rem;
        padding: 4px 8px;
    }
}

/* =========================================================================
   KLIKNOVEL — ARSIP PENULIS: CLASSIC LITERARY REDESIGN
   Tempel BLOK INI di paling bawah file CSS yang sudah ada (setelah semua
   rule & media query lama), supaya cascade otomatis memenangkan gaya baru
   tanpa perlu menimpa rule lama satu per satu.

   Tidak ada perubahan HTML — semua class yang dipakai di bawah ini sudah
   ada di content-grid.php, content-grid-terbaru.php, dan archive-author.php.

   Opsional tapi disarankan: enqueue Google Fonts 'Playfair Display' dan
   'Lora' lewat wp_enqueue_style di functions.php untuk hasil terbaik.
   Kalau tidak sempat, font fallback (Georgia/serif) di bawah ini sudah
   cukup terasa klasik.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --lit-bg:        #faf6ef;
    --lit-surface:   #ffffff;
    --lit-ink:       #2b2118;
    --lit-ink-soft:  #6b5d4f;
    --lit-accent:    #7a2e2e;   /* merah bata tua, aksen utama */
    --lit-accent-2:  #b08d57;   /* emas antik, aksen sekunder */
    --lit-line:      #e4dccd;   /* garis tipis / border halus */
    --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:     'Lora', Georgia, 'Times New Roman', serif;
}

body {
    background: var(--lit-bg);
}

/* ── HEADER PENULIS ───────────────────────────────────────────────────── */

.archive-header {
    padding-top: 70px;
    padding-bottom: 40px;
}

.author-header-background {
    background: linear-gradient(135deg, #2b2118 0%, #4a2e2e 100%);
    border-radius: 6px;
}

.author-archive-icon,
.author-archive-fallback {
    border: 5px solid var(--lit-accent-2);
    color: var(--lit-accent);
    box-shadow: 0 6px 18px rgba(43, 33, 24, 0.25);
}

.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--lit-ink);
    letter-spacing: 0.02em;
}

/* Tanggal lahir/wafat — elemen ini pakai inline style di HTML,
   jadi color & font-size butuh !important untuk menimpanya. */
.archive-header .page-title + div {
    color: var(--lit-ink-soft) !important;
    font-size: 0.95rem !important;
    font-style: italic;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.taxonomy-description {
    font-family: var(--font-body);
    color: var(--lit-ink-soft);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    padding-top: 18px;
}

.taxonomy-description::before {
    content: '\2766'; /* ornamen kecil */
    display: block;
    text-align: center;
    color: var(--lit-accent-2);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ── TAB NOVEL / CERPEN / ANTOLOGI ────────────────────────────────────── */

.kn-tabs {
    justify-content: center;
    gap: 36px;
    border-bottom: 1px solid var(--lit-line);
    margin: 40px 0 30px;
    padding-bottom: 0;
}

.kn-tab {
    background: none;
    border: none;
    border-radius: 0;
    padding: 10px 2px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lit-ink-soft);
    position: relative;
    cursor: pointer;
}

.kn-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--lit-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.kn-tab:hover {
    color: var(--lit-ink);
}

.kn-tab.active {
    background: none;
    color: var(--lit-ink);
}

.kn-tab.active::after {
    transform: scaleX(1);
}

/* ── KARTU NOVEL (content-grid.php) ───────────────────────────────────── */

.kliknovel-archive-item {
    border: 1px solid var(--lit-line);
    box-shadow: 0 3px 14px rgba(43, 33, 24, 0.06);
    background-color: var(--lit-surface);
}

.kliknovel-archive-item:hover {
    box-shadow: 0 10px 26px rgba(43, 33, 24, 0.12);
}

.kliknovel-title a {
    font-family: var(--font-display);
    color: var(--lit-ink);
}

.kliknovel-author,
.kliknovel-genre,
.kliknovel-excerpt {
    font-family: var(--font-body);
    color: var(--lit-ink-soft);
}

.kliknovel-genre a {
    color: var(--lit-accent);
}

.kliknovel-meta span {
    font-family: var(--font-body);
    color: var(--lit-ink-soft);
}

.kliknovel-read-button {
    background: transparent;
    border: 1.5px solid var(--lit-accent);
    color: var(--lit-accent);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.kliknovel-read-button:hover {
    background: var(--lit-accent);
    color: #fff;
    border-color: var(--lit-accent);
}

/* Warna tint latar kartu berdasarkan badge pertama — dilunakkan */
.bg-merah  { background-color: #faf1ef; }
.bg-emas   { background-color: #fbf6ea; }
.bg-kuning { background-color: #fbf6ea; }
.bg-oranye { background-color: #fbf3e8; }

/* Badge — label letterspaced kecil, bukan chip warna-warni ramai */
.kliknovel-badge {
    background-color: var(--lit-ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.badge-merah {
    background-color: var(--lit-accent);
}

.badge-kuning {
    background-color: var(--lit-ink);
    color: #fff;
}

.badge-emas,
.badge-oranye {
    background-color: var(--lit-accent-2);
}

.badge-emas a,
.badge-oranye a {
    color: var(--lit-ink);
}

/* ── SOROTAN NOVEL TERBARU (content-grid-terbaru.php) ─────────────────── */

.novel-terbaru-container {
    border: none;
    border-top: 3px double var(--lit-accent-2);
    border-bottom: 3px double var(--lit-accent-2);
    border-radius: 4px;
    background: linear-gradient(180deg, #fffaf0, #fff);
    box-shadow: none;
    padding: 36px 28px 28px;
}

.terbaru-label {
    background: var(--lit-ink);
    color: #f6ead1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(43, 33, 24, 0.15);
}

.novel-item-terbaru .novel-cover img {
    box-shadow: 0 12px 26px rgba(43, 33, 24, 0.2);
    border-radius: 4px;
}

.novel-item-terbaru .novel-title,
.novel-item-terbaru .novel-title a {
    font-family: var(--font-display);
    color: var(--lit-ink);
}

.novel-item-terbaru .novel-penulis {
    font-family: var(--font-body);
    color: var(--lit-ink-soft);
}

.novel-item-terbaru .novel-excerpt {
    font-family: var(--font-body);
    color: var(--lit-ink-soft);
}

.novel-item-terbaru .genre-tag {
    background: transparent;
    border: 1px solid var(--lit-line);
    color: var(--lit-ink-soft);
    font-family: var(--font-body);
}

.novel-item-terbaru .read-button {
    background: transparent;
    border: 1.5px solid var(--lit-accent);
    color: var(--lit-accent);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: none;
}

.novel-item-terbaru .read-button:hover {
    background: var(--lit-accent);
    color: #fff;
    border: 1.5px solid var(--lit-accent);
    box-shadow: none;
}

/* ── PAGINATION ────────────────────────────────────────────────────────── */

.kliknovel-pagination a {
    font-family: var(--font-body);
    color: var(--lit-accent);
    border-color: var(--lit-line);
}

.kliknovel-pagination a.active {
    background: var(--lit-accent);
    border-color: var(--lit-accent);
    color: #fff;
}

/* ── FILTER PENULIS (dropdown) ────────────────────────────────────────── */

.penulis-filter-select {
    border-color: var(--lit-line);
    font-family: var(--font-body);
    color: var(--lit-ink);
}

.penulis-filter-select:focus {
    border-color: var(--lit-accent);
    box-shadow: 0 0 0 3px rgba(122, 46, 46, 0.1);
}

/* =========================================================================
    CERPEN GAYA BARU
    ======================================================================== */
/* ── DAFTAR CERPEN — satu sistem yang sama dengan novel ────────────────── */
 
.ss-archive-item {
    position: relative;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    transition: none;
}
 
.ss-archive-item:hover { transform: none; }
 
.ss-archive-item.editor-choice {
    background: none;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    border-radius: 0;
}
 
.ss-editor-badge {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0;
    border-radius: 0;
}
 
.ss-archive-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
 
.ss-author-wrapper {
    width: 66px;
    text-align: center;
    flex-shrink: 0;
}
 
.ss-author-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.15em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 7px;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}
 
.ss-archive-item:hover .ss-author-icon { transform: none; }
 
.ss-author-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.ss-author-name a {
    font-family: var(--font-body);
    color: var(--ink-soft);
    font-size: 0.78em;
    opacity: 1;
    text-decoration: none;
}
 
.ss-info { flex: 1; min-width: 0; }
 
.ss-title a {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
}
 
.ss-title a:hover { opacity: 0.75; }
 
.ss-tax, .ss-meta {
    font-family: var(--font-body);
    color: var(--ink-soft);
    opacity: 1;
}
 
.ss-tax img { border-radius: 50%; }
 
.ss-excerpt {
    font-family: var(--font-body);
    color: var(--ink-soft);
    opacity: 1;
}
 
.ss-cta { flex-shrink: 0; align-self: center; }
 
.ss-read {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8em;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}
 
.ss-read::after { content: ' \2192'; }
 
.ss-read:hover {
    background: transparent;
    color: var(--accent);
    border: none;
    text-decoration: underline;
}
 
.ss-filter-box {
    background: none;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
    margin-bottom: 24px;
    border-radius: 0;
}
 
.ss-filter-form select {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-body);
    color: var(--ink);
}
 
.ss-editor-filter {
    font-family: var(--font-body);
    color: var(--ink-soft);
    opacity: 1;
}
 
.ss-filter-submit {
    background: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 20px;
}
 
.ss-filter-submit:hover { opacity: 0.85; }


/* =========================================================================
   MOBILE — hanya menimpa warna & tipografi, ukuran/spacing lama tetap
   ========================================================================= */

@media (max-width: 768px) {

    .page-title {
        font-family: var(--font-display);
        color: var(--lit-ink);
    }

    .kn-tabs {
        gap: 22px;
    }

    .kn-tab {
        font-family: var(--font-display);
        letter-spacing: 0.05em;
    }

    .kliknovel-title a {
        font-family: var(--font-display);
        color: var(--lit-ink);
    }

    .kliknovel-author,
    .kliknovel-genre {
        font-family: var(--font-body);
        color: var(--lit-ink-soft);
    }

    .kliknovel-read-button {
        background: transparent;
        border: 1.2px solid var(--lit-accent);
        color: var(--lit-accent);
        font-family: var(--font-display);
        letter-spacing: 0.05em;
    }

    .kliknovel-badge {
        font-family: var(--font-body);
        letter-spacing: 0.03em;
    }

    .terbaru-label {
        font-family: var(--font-display);
    }

    .novel-item-terbaru .novel-title {
        font-family: var(--font-display);
        color: var(--lit-ink);
    }
}