/* =========================================================
   ENTITY SAYFALARI — KİTAP VE YAZAR
   ---------------------------------------------------------
   Bu dosya book.php ve author.php içindeki iki ayrı gömülü <style>
   bloğunun yerine geçer. O bloklar gövdenin İÇİNDE basılıyordu:
   sayfa çizilmeye başladıktan sonra geldikleri için her açılışta bir
   yeniden stil hesabına sebep oluyorlardı. Artık <head>'ten geliyor.

   İki sayfa da aynı kabuğu kullanır:

     .page-hero  (öndeki kart)  → layout.php'deki tasarım dili
     .page-tabs  (arkadaki kart, yapışkan)
     .entity-feed
     .entity-related (akışın ALTINDA — aşağıdaki nota bak)

   ÖNEMLİ İKİ YAPISAL DEĞİŞİKLİK

   1) Eski sayfada üstte ayrı bir yapışkan başlık şeridi vardı
      (geri oku + kitap adı, position:sticky top:0). Kabukta sekme
      barı da tepeye yapışıyor; iki yapışkan katman üst üste binince
      kart hiyerarşisi bozuluyordu. Geri oku hero'nun başlık satırına
      alındı, ikinci katman kaldırıldı. Profil sayfasında da böyle.

   2) "Diğer kitaplar" / "İlgili yazarlar" blokları hero ile sekme
      barının ARASINDA duruyordu; hero'nun sekme barına binme efekti
      bu yüzden hiç oluşmuyordu. İkisi de akışın altına alındı.
      Bilgi mimarisi açısından da doğrusu bu: önce o sayfanın kendi
      içeriği, sonra keşif.
   ========================================================= */

/* ---------- ORTA YÜZEY ----------
   Değerler degerlendirme.php ve profile.php ile birebir aynı. */
.entity-center-surface {
    box-sizing: border-box;
    min-height: 100vh;
    background: #f6f7f9;
    border-left: 1px solid #e2e5ea;
    border-right: 1px solid #e2e5ea;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .04);
}

html.dark .entity-center-surface {
    background: transparent;
    border-left-color: rgba(255, 255, 255, .10);
    border-right-color: rgba(255, 255, 255, .10);
    box-shadow: none;
}


/* ---------- HERO BAŞLIK SATIRI ----------
   Solda geri oku + varlık adı, sağda varlık türü etiketi. */
.entity-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.entity-back {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: -6px;
    border-radius: 9999px;
    color: #6b7280;
    transition: background .15s ease, color .15s ease;
}
.entity-back:hover { background: #f1f3f5; color: #111827; }
html.dark .entity-back { color: #9ca3af; }
html.dark .entity-back:hover { background: rgba(255, 255, 255, .08); color: #f3f4f6; }

.entity-back svg { width: 19px; height: 19px; }

/* Başlık .page-hero-title'dan gelir; burada yalnızca taşma kuralı var. */
.entity-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sağdaki tür etiketi: "Kitap" / "Yazar". Sessiz, küçük, büyük harf. */
.entity-kind {
    flex: 0 0 auto;
    color: #656d7a;   /* #9aa2ad / 11.5px idi, beyazda 2.6:1 — OKUNURLUK_20261026 */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
html.dark .entity-kind { color: #8b98a5; }   /* #6b7280 koyuda 4.0:1 idi */


/* ---------- HERO GÖVDESİ ---------- */
.entity-hero-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.entity-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}

/* Kitap kapağı. Gölge eskiden 0 12px 32px rgba(0,0,0,.25) idi —
   beyaz kartın üstünde çamur gibi duruyordu, yumuşatıldı. */
.entity-cover {
    flex: 0 0 auto;
    width: 108px;
    height: 162px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .35);
    background: #e9ebef;
}
html.dark .entity-cover {
    /* Kapak yoksa görünen zemin. Bu satır olmadan koyu temada
       kartın ortasında bembeyaz bir dikdörtgen kalıyordu. */
    background: #232833;
    box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .7);
}

.entity-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Yazar portresi ve kapak yelpazesi */
.entity-avatar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 9999px;
    background: #0f1419;
    color: #fff;
    font-size: 33px;
    font-weight: 800;
    object-fit: cover;
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .5);
}
html.dark .entity-avatar { background: #e7e9ea; color: #0f1419; }

.entity-cover-fan { display: flex; flex: 0 0 auto; }
.entity-cover-fan img {
    width: 68px;
    height: 102px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .45);
}
html.dark .entity-cover-fan img { border-color: #191d24; }
.entity-cover-fan img:not(:first-child) { margin-left: -28px; }

/* Alt başlık: kitapta yazar adı, yazarda "Yazar". */
.entity-subtitle {
    display: inline-block;
    color: #6b7280;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
}
a.entity-subtitle:hover { color: #111827; text-decoration: underline; }
html.dark .entity-subtitle { color: #9ca3af; }
html.dark a.entity-subtitle:hover { color: #f3f4f6; }

.entity-bio {
    margin-top: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
html.dark .entity-bio { color: #9ca3af; }


/* ---------- TÜR ETİKETİ ----------
   Eskiden mor bir kapsüldü (rgba(139,92,246,.12) + #7c3aed). Sayfada
   başka hiçbir yerde mor yok; tek başına duruyordu. Sitenin nötr
   diline çekildi, vurgu yalnızca kenar çizgisiyle veriliyor. */
.entity-genre-wrap { margin-top: 10px; }

.entity-genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid #e3e6ea;
    border-radius: 99px;
    background: #fff;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.entity-genre-tag:hover { border-color: #c9ced6; color: #111827; }
html.dark .entity-genre-tag {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #9ca3af;
}
html.dark .entity-genre-tag:hover { border-color: rgba(255, 255, 255, .22); color: #f3f4f6; }

/* BOOK_LITERARY_THEMES_CSS_20261012
   Bir kitap birden fazla tema taşıyabilir.
   Görsel dil mevcut entity genre kapsülünü kullanır;
   bu blok yalnız çoklu kapsüllerin yerleşimini düzenler. */
.book-theme-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.book-theme-tag {
    margin: 0;
}



/* ---------- İSTATİSTİK KAPSÜLLERİ ----------
   Eskiden 13px/700 dolu gri haplardı; üç tanesi yan yana gelince
   başlıktan daha ağır duruyorlardı. Sayı kalın, etiket normal:
   göz önce sayıyı okur, hiyerarşi düzelir. */
.entity-stat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.entity-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 99px;
    background: #f2f4f7;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.entity-stat svg { flex: 0 0 auto; opacity: .65; }
.entity-stat b { font-weight: 700; color: #111827; }
html.dark .entity-stat { background: rgba(255, 255, 255, .06); color: #9ca3af; }
html.dark .entity-stat b { color: #f3f4f6; }

.entity-stat.is-rating { background: rgba(251, 191, 36, .14); color: #92400e; }
.entity-stat.is-rating b { color: #92400e; }
.entity-stat.is-rating svg { opacity: 1; color: #f59e0b; }
html.dark .entity-stat.is-rating,
html.dark .entity-stat.is-rating b { color: #fbbf24; }


/* ---------- OKUYANLAR ŞERİDİ ----------
   DÜZELTME: burada önce .reader-row / .reader-chip kuralları vardı.
   O sınıfları hiçbir PHP basmıyor — book.php'nin eski gömülü CSS'inde
   duruyorlardı ama ölü koddu. Gerçekte basılan işaretleme
   reader_modal.php:19-32'deki .reader-stack düğmesi ve temel stili
   assets/css/reader_modal.css içinde. Burada yalnızca kabuk içindeki
   yerleşimi ayarlıyoruz. */
.entity-reader-stack { margin-top: 14px; }



/* BOOK_COMMUNITY_PREMIUM_UI_20261012
   =========================================================
   Tek premium yüzey.
   Kart-içinde-kart / muhasebe paneli görünümü yok.
   ========================================================= */

.book-community {
    box-sizing: border-box;

    width: 100%;
    margin: 12px 0 0;

    overflow: hidden;

    border-radius: 0;

    background: transparent;

    box-shadow: none;
}

.book-community-section {
    box-sizing: border-box;
    padding: 16px 18px;
}

.book-community-section + .book-community-section {
    border-top: 1px solid #eef0f3;
}


/* ---------- Başlık dili ---------- */

.book-community-eyebrow {
    display: block;

    color: #0f1419;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.book-community-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 11px;
}

.book-community-caption {
    color: #656d7a;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}


/* ---------- Okurlar ---------- */

/* BOOK_LIBRARY_READERS_TRIGGER_UI_20261012 */

.book-community-readers {
    padding: 0;
}

.book-community-reader-open {
    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;
    min-height: 54px;

    padding: 12px 16px;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: inherit;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition: background .14s ease;
}

.book-community-reader-open:hover {
    background: rgba(15, 23, 42, .025);
}

.book-community-eyebrow-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 1px;
}

.book-community-source {
    color: #656d7a;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.book-community-reader-arrow {
    display: block;

    flex: 0 0 15px;

    width: 15px;
    height: 15px;

    margin-left: 2px;

    color: #aeb6c0;
}

.book-community-reader-copy {
    flex: 1 1 auto;

    min-width: 0;
}

.book-community-reader-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 2px;

    margin-top: 6px;

    color: #656d7a;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.book-community-reader-state strong {
    color: #0f1419;

    font-size: inherit;
    font-weight: 600;
}

/* Sayılar alt alta; aradaki nokta artık gereksiz */
.book-community-reader-state .book-community-dot {
    display: none;
}

.book-community-dot {
    color: #c2c8d0;
}

.book-community-avatars {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    margin-left: auto;
    padding-left: 12px;
}

.book-community-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    margin-left: -8px;

    overflow: hidden;

    border: 2px solid #fff;
    border-radius: 50%;

    background: #edf0f3;
    color: #56606d;

    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);

    font-size: 11px;
    font-weight: 750;

    transition:
        transform .14s ease,
        box-shadow .14s ease;
}

.book-community-avatar:first-child {
    margin-left: 0;
}

.book-community-avatar:hover {
    position: relative;
    z-index: 2;

    transform: translateY(-2px);

    box-shadow: 0 5px 13px rgba(15, 23, 42, .13);
}

.book-community-avatar img {
    display: block;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    object-fit: cover;
}


/* ---------- Öne çıkan alıntılar ---------- */

.book-community-quotes {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.book-community-quote {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding: 10px 0;

    color: inherit;

    text-decoration: none;
}

.book-community-quote:first-child {
    padding-top: 2px;
}

.book-community-quote:last-child {
    padding-bottom: 1px;
}

.book-community-quote + .book-community-quote {
    border-top: 1px solid #f0f2f4;
}

.book-community-quote-text {
    position: relative;

    display: -webkit-box;

    min-width: 0;

    padding-left: 12px;

    overflow: hidden;

    color: #0f1419;

    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.book-community-quote-text::before {
    content: "";

    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;

    width: 2px;

    border-radius: 99px;

    background: linear-gradient(
        180deg,
        #f5c75f,
        #d8a22f
    );
}

.book-community-quote-meta {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    flex: 0 0 auto;

    margin-top: 1px;

    color: #656d7a;

    font-size: 13px;
    font-weight: 500;
}

.book-community-quote-meta svg {
    display: block;

    width: 13px;
    height: 13px;
}


/* ---------- Kulüpler ---------- */

.book-community-clubs {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.book-community-club {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 7px 0;

    color: inherit;

    text-decoration: none;
}

.book-community-club > img,
.book-community-club-placeholder {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 11px;
}

.book-community-club > img {
    display: block;

    object-fit: cover;
}

.book-community-club-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef1f4;
    color: #66707c;

    font-size: 12px;
    font-weight: 750;
}

.book-community-club-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-width: 0;
}

.book-community-club-copy strong {
    overflow: hidden;

    color: #202630;

    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-community-club-copy > span {
    margin-top: 3px;

    overflow: hidden;

    color: #656d7a;

    font-size: 13px;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-community-arrow {
    display: block;

    flex: 0 0 15px;

    width: 15px;
    height: 15px;

    color: #bbc1c9;
}


/* ---------- Tartışmalar ---------- */

.book-community-discussions {
    display: flex;
    flex-direction: column;
}

.book-community-discussion {
    display: block;

    min-width: 0;

    padding: 9px 0;

    color: inherit;

    text-decoration: none;
}

.book-community-discussion:first-child {
    padding-top: 1px;
}

.book-community-discussion + .book-community-discussion {
    border-top: 1px solid #f0f2f4;
}

.book-community-discussion-top {
    display: flex;
    align-items: baseline;

    gap: 6px;

    min-width: 0;

    color: #656d7a;

    font-size: 13px;
    line-height: 1.3;
}

.book-community-discussion-top strong {
    overflow: hidden;

    color: #505967;

    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-community-discussion-text {
    display: -webkit-box;

    margin-top: 4px;

    overflow: hidden;

    color: #0f1419;

    font-size: 14.5px;
    line-height: 1.45;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ---------- Dark ---------- */

html.dark .book-community {
    background: rgba(255,255,255,.035);

    box-shadow: none;
}

html.dark
.book-community-section + .book-community-section {
    border-top-color: rgba(255,255,255,.07);
}

html.dark .book-community-eyebrow {
    color: #e7e9ea;
}

html.dark .book-community-caption {
    color: #8b98a5;
}

html.dark .book-community-reader-state {
    color: #8b98a5;
}

html.dark .book-community-reader-state strong {
    color: #eef0f2;
}

html.dark .book-community-reader-open:hover {
    background: rgba(255,255,255,.025);
}

html.dark .book-community-source {
    color: #8b98a5;
}

html.dark .book-community-reader-arrow {
    color: #59636e;
}

html.dark .book-community-dot {
    color: #59636f;
}

html.dark .book-community-avatar {
    border-color: #1c2026;

    background: #292e36;
    color: #c5cad0;

    box-shadow: none;
}

html.dark .book-community-quote + .book-community-quote,
html.dark .book-community-discussion + .book-community-discussion {
    border-top-color: rgba(255,255,255,.06);
}

html.dark .book-community-quote-text,
html.dark .book-community-discussion-text {
    color: #e7e9ea;
}

html.dark .book-community-quote-meta,
html.dark .book-community-club-copy > span,
html.dark .book-community-discussion-top {
    color: #8b98a5;
}

html.dark .book-community-club-copy strong,
html.dark .book-community-discussion-top strong {
    color: #d9dde1;
}

html.dark .book-community-club-placeholder {
    background: rgba(255,255,255,.07);
    color: #bdc4cb;
}

html.dark .book-community-arrow {
    color: #59636e;
}


/* ---------- Mobil ---------- */

@media (max-width: 640px) {
    .book-community {
        width: 100%;
        margin: 10px 0 0;

        border-radius: 0;
    }

    .book-community-section {
        padding: 14px;
    }

    .book-community-readers {
        padding: 0;
    }

    .book-community-reader-open {
        gap: 10px;

        min-height: 52px;

        padding: 11px 14px;
    }

    /* Mobil okunurluk: metin 15px, ikincil bilgi 13.5px */
    .book-community-reader-state,
    .book-community-quote-text,
    .book-community-discussion-text,
    .book-community-club-copy strong {
        font-size: 15px;
    }

    .book-community-source,
    .book-community-caption,
    .book-community-quote-meta,
    .book-community-club-copy > span,
    .book-community-discussion-top {
        font-size: 13.5px;
    }

    .book-community-avatar {
        flex-basis: 32px;

        width: 32px;
        height: 32px;

        margin-left: -8px;
    }

    .book-community-avatar img {
        width: 28px;
        height: 28px;
    }
}




/* AUTHOR_FOLLOW_UI_20261012
   =========================================================
   Sabit geometri:
   takip durumu değişirken hero yüksekliği/genişliği değişmez.
   ========================================================= */

.entity-follow-row {
    display: flex;
    align-items: center;

    min-height: 34px;

    margin-top: 14px;
}

.entity-follow-button {
    box-sizing: border-box;

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

    gap: 6px;

    width: 112px;
    min-width: 112px;
    max-width: 112px;

    height: 34px;
    min-height: 34px;

    padding: 0 10px;

    border: 1px solid #d9dde3;
    border-radius: 9999px;

    background: #0f1419;
    color: #fff;

    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        opacity .15s ease;
}

.entity-follow-button:hover {
    background: #262c33;
}

.entity-follow-button.is-following {
    border-color: #d9dde3;

    background: transparent;
    color: #252a31;
}

.entity-follow-button.is-following:hover {
    border-color: #c8cdd4;

    background: #f1f3f5;
}

.entity-follow-button:disabled {
    cursor: default;
}

.entity-follow-button.is-loading {
    opacity: .62;
}

.entity-follow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 15px;

    width: 15px;
    height: 15px;
}

.entity-follow-icon svg {
    display: block;

    width: 15px;
    height: 15px;
}

html.dark .entity-follow-button {
    border-color: rgba(255,255,255,.16);

    background: #f3f4f6;
    color: #111827;
}

html.dark .entity-follow-button:hover {
    background: #dfe3e8;
}

html.dark .entity-follow-button.is-following {
    border-color: rgba(255,255,255,.16);

    background: transparent;
    color: #e5e7eb;
}

html.dark .entity-follow-button.is-following:hover {
    border-color: rgba(255,255,255,.24);

    background: rgba(255,255,255,.06);
}


/* ---------- SEKMELER ----------
   Ölçü ve zemin .page-tabs / .page-tab'dan gelir. Burada yalnızca
   kitapta 2, yazarda 3 sekme olduğu için eşit paylaşım kuralı var. */
.entity-tabs .page-tab { flex: 1 1 0; min-width: 0; }


/* ---------- AKIŞ ----------
   Sekme barından sonraki ilk boşluk .page-tabs + * kuralından
   (24px) gelir; burada tekrar padding vermiyoruz. */
.entity-feed { padding-bottom: 8px; }

.entity-empty {
    padding: 64px 24px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
html.dark .entity-empty { color: #6b7280; }


/* ---------- KİTAP IZGARASI (yazar sayfası "Kitaplar" sekmesi) ---------- */
.entity-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 22px 16px;
    padding: 4px 20px 8px;
}

.entity-book-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.entity-book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: #e9ebef;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .35);
    transition: transform .16s ease, box-shadow .16s ease;
}
.entity-book-card:hover .entity-book-cover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -10px rgba(15, 23, 42, .45);
}
html.dark .entity-book-cover { background: #232833; }

.entity-book-title {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
html.dark .entity-book-title { color: #f3f4f6; }

.entity-book-meta {
    margin-top: 2px;
    color: #9ca3af;
    font-size: 11.5px;
    line-height: 1.4;
}


/* ---------- İLGİLİ İÇERİK BÖLÜMÜ (akışın altında) ----------
   Kendi kartında duruyor; akıştaki gönderi kartlarıyla aynı
   yuvarlaklık ve gölge, böylece sayfanın dibi boşlukta kalmıyor. */
.entity-related {
    margin: 28px 20px 8px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06),
                0 1px 2px rgba(15, 23, 42, .04);
}
html.dark .entity-related {
    background: rgba(255, 255, 255, .045);   /* #161a22 yanlış siyahtı — sözleşme kart rengi (SIYAH_20261026) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35),
                inset 0 1px 0 rgba(255, 255, 255, .04);
}

.entity-related-title {
    margin: 0;
    padding: 18px 20px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.2px;
}
html.dark .entity-related-title { color: #f3f4f6; }

/* Yatay kaydırılan şerit: 10 kapak alt alta ızgaraya yayılınca
   sayfanın dibi gereksiz uzuyordu. */
.entity-related-rail {
    display: flex;
    gap: 14px;
    padding: 14px 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.entity-related-rail::-webkit-scrollbar { display: none; }

.entity-related-book {
    flex: 0 0 84px;
    width: 84px;
    color: inherit;
    text-decoration: none;
}
.entity-related-book .cv {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #e9ebef;
    color: #9ca3af;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35);
    transition: transform .16s ease;
}
html.dark .entity-related-book .cv { background: #232833; }
.entity-related-book:hover .cv { transform: translateY(-3px); }
.entity-related-book p {
    margin-top: 7px;
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark .entity-related-book p { color: #9ca3af; }

.entity-related-author {
    display: flex;
    flex: 0 0 76px;
    width: 76px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.entity-related-author .av {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: #0f1419;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .45);
    transition: transform .16s ease;
}
html.dark .entity-related-author .av { background: #e7e9ea; color: #0f1419; }
.entity-related-author:hover .av { transform: translateY(-3px); }
.entity-related-author p {
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark .entity-related-author p { color: #9ca3af; }


@media (max-width: 640px) {
    .entity-hero-body { gap: 14px; }
    .entity-cover { width: 84px; height: 126px; }
    .entity-avatar { width: 68px; height: 68px; font-size: 26px; }
    .entity-cover-fan img { width: 56px; height: 84px; }
    .entity-cover-fan img:not(:first-child) { margin-left: -24px; }
    .entity-book-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); padding: 4px 12px 8px; }
    .entity-related { margin-left: 12px; margin-right: 12px; }
    .entity-kind { display: none; }
}

/* ENTITY_QUOTE_NOTE_GAP_FINAL_20261014
   Kitap / Yazar / Tür: düşünce metnini ana akış hizasına yaklaştır. */
@media (min-width: 641px) {
    .entity-center-surface
    .post-card.is-quote
    .quote-optional-text {
        margin-top: 8px !important;
    }
}


/* ENTITY_QUOTE_NOTE_DESKTOP_FINAL_20261014
   Yalnız Kitap / Yazar / Tür masaüstü alıntılarında.
   Okur düzeyi ile düşünce metni arasını ana akış kadar sıkılaştırır. */
@media (min-width: 641px) {
    .entity-center-surface
    .entity-feed
    .post-card.is-quote
    .quote-optional-text {
        margin-top: 4px !important;
    }
}

/* BOOK_HERO_SADE_20261026 — kitap sayfasının başlık kartı: kapsüller yerine düz metin.
   Tür ve temalar "·" ile ayrılmış bağlantılar; sayılar tek satır
   ("★ 4.0 · 9 alıntı · 5 değerlendirme"); okurlar satırı çerçevesiz.
   Yalnız .book-hero-card içinde geçerli: tür sayfası ve öbür sayfalardaki
   .entity-genre-tag / .entity-stat kapsülleri değişmedi.
   Admin kısayolu ("Tema ata / Düzenle") mavi metin. */
.book-hero-card .entity-genre-wrap {
    margin-top: 8px;
}
.book-hero-card .book-theme-wrap {
    gap: 0;
    margin-top: 4px;
}
.book-hero-card .entity-genre-tag {
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #656d7a;
    font-size: 14px;
    font-weight: 500;
}
.book-hero-card .entity-genre-tag:hover {
    color: #0f1419;
    text-decoration: underline;
}
.book-hero-card .book-theme-tag + .book-theme-tag::before,
.book-hero-card .entity-stat:not(.is-rating)::before {
    content: "·";
    display: inline-block;
    margin: 0 7px;
    color: #a3abb6;
}
.book-hero-card .book-theme-manage {
    color: #1d9bf0;
}
.book-hero-card .entity-stat-row {
    align-items: center;
    gap: 0;
    margin-top: 10px;
}
.book-hero-card .entity-stat {
    gap: 4px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #656d7a;
    font-size: 14px;
    font-weight: 400;
}
.book-hero-card .entity-stat b {
    color: #0f1419;
    font-weight: 600;
}
.book-hero-card .entity-stat svg {
    display: none;
}
.book-hero-card .entity-stat.is-rating {
    order: -1;
    background: none;
    color: #0f1419;
}
.book-hero-card .entity-stat.is-rating svg {
    display: inline-block;
    color: #f59e0b;
}
.book-hero-card .entity-stat.is-rating b {
    color: #0f1419;
}
.book-hero-card .entity-stat-row:not(:has(.is-rating)) .entity-stat:first-child::before {
    content: none;
}
.book-hero-card .entity-reader-stack {
    margin-top: 12px;
}
.book-hero-card .reader-stack {
    padding: 0;
    border: 0;
    border-radius: 0;
    text-align: left;
}
.book-hero-card .reader-stack-avatars {
    flex: 0 0 auto;   /* daralınca son avatar yazının altına giriyordu */
}
.book-hero-card .reader-stack-text {
    color: #656d7a;
    font-size: 14px;
    font-weight: 500;
}
@media (max-width: 767px) {
    .book-hero-card .entity-genre-tag,
    .book-hero-card .entity-stat,
    .book-hero-card .reader-stack-text {
        font-size: 15px;
    }
}
html.dark .book-hero-card .entity-genre-tag,
html.dark .book-hero-card .entity-stat,
html.dark .book-hero-card .reader-stack-text {
    background: none;   /* koyu temadaki kapsül zeminini (.04/.06) kaldırır */
    color: #8b98a5;
}
html.dark .book-hero-card .entity-genre-tag:hover,
html.dark .book-hero-card .entity-stat b,
html.dark .book-hero-card .entity-stat.is-rating,
html.dark .book-hero-card .entity-stat.is-rating b {
    color: #e7e9ea;
}
