

.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.cr-kartu { background: var(--card-bg); border-radius: 18px; overflow: hidden;
    box-shadow: 0 6px 22px var(--shadow); border: 1px solid var(--accent-soft-border);
    display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.cr-kartu:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--shadow); }
.cr-sampul { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--accent-soft); }
.cr-sampul-none { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.cr-sampul-none .material-symbols-outlined { font-size: 54px; opacity: .5; }
.cr-isi { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cr-judul { font-size: 1.12rem; color: var(--title-color); line-height: 1.35; margin: 0; }
.cr-ringkas { font-size: .9rem; line-height: 1.65; opacity: .88; margin: 0; }
.cr-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; opacity: .72; margin-top: 2px; }
.cr-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cr-meta .material-symbols-outlined { font-size: 15px; }
.cr-aksi { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.cr-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 22px;
    border: none; background-image: var(--grad-btn); color: #fff; font-family: inherit;
    font-size: .85rem; font-weight: 700; cursor: pointer; transition: transform .15s ease; }
.cr-btn .material-symbols-outlined { font-size: 18px; }
.cr-btn:active { transform: scale(.95); }
.cr-btn[disabled] { opacity: .5; cursor: not-allowed; background-image: none; background: var(--accent-soft); color: var(--text-main); }
.cr-btn.ghost { background-image: none; background: var(--accent-soft); color: var(--accent);
    border: 1px solid var(--accent-soft-border); }
.cr-kosong { grid-column: 1 / -1; text-align: center; padding: 60px 20px; opacity: .7; line-height: 1.8; }

body.mode-baca { overflow: hidden; }

#cr-pembaca { position: fixed; inset: 0; z-index: 1200; background: #000; color: #fff;
    display: flex; flex-direction: column;

    height: 100dvh; }
#cr-pembaca[hidden] { display: none; }

.cr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-top)); background: #0b0b0b;
    border-bottom: 1px solid #222; }
.cr-bar-judul { font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-bar-kanan { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cr-nomor { font-size: .8rem; opacity: .6; font-variant-numeric: tabular-nums; }
.cr-kendali { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px;
    background: #222; color: #fff; border: 1px solid #3a3a3a; font-family: inherit;
    font-size: .82rem; font-weight: 600; cursor: pointer; }
.cr-kendali .material-symbols-outlined { font-size: 18px; }
.cr-kendali:hover { background: #333; }
.cr-kendali.nyala { background: #0b74c2; border-color: #0b74c2; }
.cr-kendali.keluar { background: #7f1d1d; border-color: #b91c1c; }

.cr-panggung { flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; min-height: 0; cursor: grab;

    user-select: none; -webkit-user-select: none; }
.cr-panggung:active { cursor: grabbing; }

.cr-panel { position: absolute; width: 66%; aspect-ratio: 16 / 9; max-height: 96%; margin: 0; border-radius: 12px;
    overflow: hidden; background: #141414; opacity: 0;
    transition: transform .65s cubic-bezier(.25,1,.5,1), filter .65s ease, opacity .65s ease;
    box-shadow: 0 14px 40px rgba(0,0,0,.85); }

.cr-panel img { width: 100%; height: 100%; object-fit: contain; display: block;

    -webkit-touch-callout: none; pointer-events: none; }
.cr-panel.aktif { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); z-index: 3;
    outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
.cr-panel.sebelum { opacity: .38; transform: translateX(-74%) scale(.84); filter: blur(7px); z-index: 2; }
.cr-panel.sesudah { opacity: .38; transform: translateX(74%) scale(.84); filter: blur(7px); z-index: 2; }

.cr-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid #3a3a3a;
    background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex;
    align-items: center; justify-content: center; }
.cr-nav:hover { background: rgba(0,0,0,.85); }
.cr-nav.kiri { left: 12px; }
.cr-nav.kanan { right: 12px; }

.cr-subtitle { background: rgba(0,0,0,.9); border-top: 1px solid #222;
    padding: 14px 30px calc(14px + env(safe-area-inset-bottom));
    max-height: 34dvh; overflow-y: auto; text-align: center; font-size: .98rem; line-height: 1.6; }
.cr-subtitle::-webkit-scrollbar { width: 6px; }
.cr-subtitle::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
#cr-subtitle-isi { transition: opacity .3s ease; opacity: 1; max-width: 780px; margin: 0 auto; }
#cr-subtitle-isi p { margin: 0 0 8px; }
#cr-subtitle-isi p:last-child { margin-bottom: 0; }

@media (orientation: portrait) {
    .cr-panel { width: 90%; }
    .cr-panel.sebelum, .cr-panel.sesudah { opacity: 0; }
    .cr-subtitle { padding-left: 18px; padding-right: 18px; font-size: .92rem; max-height: 38dvh; }
    .cr-saran-putar { display: block; }
}
.cr-saran-putar { display: none; font-size: .74rem; opacity: .5; margin-top: 8px; }

@media (orientation: landscape) and (max-height: 560px) {
    .cr-panel { width: auto; height: 96%; max-width: 72%; }

    .cr-subtitle { max-height: 26dvh; padding-top: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)); font-size: .9rem; }
    .cr-bar { padding-top: 6px; padding-bottom: 6px; }
}

@media (max-width: 600px) {
    .cr-bar { padding: 8px 12px calc(8px + env(safe-area-inset-top)); }
    .cr-bar-judul { font-size: .9rem; }
    .cr-kendali { padding: 7px 11px; font-size: .76rem; }
    .cr-nav { width: 38px; height: 38px; }

    .cr-kendali .cr-auto-teks, .cr-kendali .cr-penuh-teks { display: none; }
    .cr-kendali { padding: 7px 9px; }
}

#cr-pembaca:fullscreen { width: 100vw; height: 100vh; background: #000; }
#cr-pembaca:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; }
