/* =========================================
   📱 MOBILE OPTIMIZATION (MAX 768PX)
========================================= */
@media (max-width: 768px) {
    /* 1. Reset Layout Menjadi Satu Kolom */
    .book-layout {
        display: flex;
        flex-direction: column;
        padding: 10px 15px;
    }
    .left-col, .right-col {
        width: 100%;
        padding: 0;
    }

    /* 2. Judul & Info Penulis (Dibuat Center) */
    .d-mobile-only {
        text-align: center;
        margin-bottom: 20px;
    }
    .book-title {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .book-subtitle {
        font-size: 16px !important;
        margin-bottom: 8px;
    }
    .author-info {
        font-size: 15px;
        margin-top: 5px;
    }

    /* 3. Cover Buku Presisi */
    .book-cover {
        display: block;
        max-width: 180px; /* Ukuran pas untuk mobile */
        margin: 0 auto 20px auto;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    /* 4. Rating & Live Reading (Tengah & Rapi) */
    .ad-mobile .gr-rating-block {
        justify-content: center;
        gap: 6px;
        margin-bottom: 20px;
    }
    .gr-rating-block > div:last-child {
        border-left: none !important; /* Hilangkan garis batas di mobile */
        padding-left: 0 !important;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    /* 5. Tombol Action (Full Width & Mudah Diklik) */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }
    .btn-read-group {
        display: flex;
        width: 100%;
    }
    .btn-read-group .btn-primary {
        flex-grow: 1;
        text-align: center;
        padding: 14px;
        font-size: 16px;
        border-radius: 4px 0 0 4px; /* Sudut membulat hanya di kiri */
    }
    .btn-read-group .btn-dropdown {
        padding: 0 15px;
        border-radius: 0 4px 4px 0; /* Sudut membulat hanya di kanan */
    }
    .btn-dark, .btn-audio {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 14px;
        font-size: 16px;
        border-radius: 4px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 6. Deskripsi & Genre */
    .description {
        font-size: 14.5px !important;
        text-align: left;
    }
    .tag-list .tag {
        font-size: 13px !important;
        margin-bottom: 10px;
    }

    /* 7. Navbar Mobile */
    .navbar {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    .nav-links {
        display: none; /* Sembunyikan link agar tidak menumpuk di header */
    }
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    .search-bar input {
        width: 100%;
        padding: 10px 10px 10px 35px;
        font-size: 14px;
    }

    /* 8. Review Section */
    .review-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    .review-stars {
        margin-left: 0 !important;
    }
    .my-review-box {
        padding: 12px;
    }
}