/* =========================================================
   GLOBAL LIVE SIDEBAR TABLES
   Şu an inBook'ta + Yükselen Kitaplar

   BU DOSYA SAYFAYA ÖZEL CSS'LERDEN SONRA YÜKLENİR.
   Bu nedenle tüm sayfalarda aynı ölçüleri zorlar.
   ========================================================= */


/* =========================================================
   ORTAK KUTU
   ========================================================= */

body aside .sidebar-box.rising-books-box {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
}


/* Başlık */
body aside .rising-books-box > .sidebar-compact-title {
    margin: 0 0 7px !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}


/* =========================================================
   ŞU AN INBOOK'TA
   ========================================================= */

























/* =========================================================
   YÜKSELEN KİTAPLAR
   27.10.2026: "Şu an inBook'ta" kutusunun ölçeğine çekildi (now_inbook.css):
   aynı 44px görsel sütunu + 10px boşluk, böylece iki kutunun metinleri aynı
   hizadan başlıyor. Kapak 28×38 → 44×66 (2:3), başlık 12.5 → 14px,
   yazar / sayaç 10–10.5px → 12.5 / 12px ve #656d7a.
   Sıra numarası ayrı sütun değil, kapağın sol üst köşesinde sayı rozeti —
   ayrı sütun metne 26px daha az yer bırakıyor, sayaç satırı kesiliyordu.
   Renkler burada: explore.css'teki #9aa3af / #8b95a2 / #747f8d
   beyazda 4.5:1'i geçmiyordu.
   ========================================================= */

body aside .rising-books-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Satır: sıra · kapak · metin */
body aside .rising-book-row {
    display: grid !important;
    grid-template-columns: 12px 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 4px 2px !important;
    margin: 0 -2px !important;
    border-radius: 9px !important;
}

/* Kapak: Şu an inBook'ta'daki kitap kapağıyla aynı genişlik, 2:3 */
body aside .rising-book-cover {
    grid-area: 1 / 2;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 66px !important;
    min-width: 44px !important;
    min-height: 66px !important;
    overflow: hidden;
    border-radius: 3px !important;
    background: #eef1f5;
    color: #8a94a1;
}

body aside .rising-book-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body aside .rising-book-cover svg {
    width: 20px !important;
    height: 20px !important;
}

/* Sıra: kapağın solunda, kapağa 6px (sütun boşluğu 10px, -4px ile yaklaşıyor) */
body aside .rising-book-rank {
    grid-area: 1 / 1;
    justify-self: stretch;
    margin-right: -4px;
    color: #656d7a;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Metin: başlık / yazar / sayaç
   Sıra sütunu metne 22px daha az yer bırakıyor (210 → 188px). Sayaç 12px'te
   "3 değerlendirme · 7 alıntı · Son 30 gün" 200px tutuyor ve hangi kırma
   kuralı seçilirse seçilsin "Son 30 gün"ü bölüyordu; 11px'te tek satıra
   sığıyor. Yine de sığmazsa kesilmesin, alt satıra insin. */
body aside .rising-book-copy {
    grid-area: 1 / 3;
    min-width: 0 !important;
}

body aside .rising-book-title {
    margin: 0 !important;
    color: #111827;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body aside .rising-book-author {
    margin: 2px 0 0 !important;
    color: #656d7a;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

body aside .rising-book-meta {
    margin: 2px 0 0 !important;
    color: #656d7a;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    white-space: normal;
    text-wrap: pretty;
}

/* Koyu tema */
html.dark body aside .rising-book-cover {
    background: rgba(255, 255, 255, .07);
    color: #8e98a5;
}
html.dark body aside .rising-book-title {
    color: #f1f3f5;
}
html.dark body aside .rising-book-author,
html.dark body aside .rising-book-meta {
    color: #8b98a5;
}
