/* arabic - Khat-e-Manzoor (ManzoorNaskh) */
@font-face {
    font-family: "ManzoorNaskh";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./font/ManzoorNaskh-alislam-X2gsKj5G.ttf") format("truetype");
    font-feature-settings: "ccmp";
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #121212;
    color: #f2f2f2;
}

body.theme-dark {
    background: #121212;
    color: #f2f2f2;
}

.app {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 14px 48px;
}

.topbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.topbar h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
}

.topbar p {
    margin: 6px 0 0;
    color: #b9b9b9;
    font-size: 1.02rem;
    text-align: center;
}

.sticky-controls {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding-top: 10px;
    padding-bottom: 8px;
}

.controls {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

/* Kolom tombol ikon (cari di atas, pengaturan di bawah); tingginya mengikuti kolom Surah/Ayat. */
.control-settings {
    position: relative;
    flex: 0 0 40px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-settings-wrap {
    position: relative;
}

.audio-settings-toggle {
    border: 1px solid #424242;
    border-radius: 8px;
    background: #242424;
    color: #ececec;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
}

.audio-settings-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d2d2d2;
}

.audio-settings-gear {
    font-size: 1.2rem;
    line-height: 1;
    font-variation-settings: "FILL" 0;
}

.audio-settings-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(250px, 82vw);
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    background: #171717;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    padding: 10px;
}

.audio-settings-title {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #aebad1;
}

.theme-mode-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.audio-switch-group {
    display: grid;
    gap: 8px;
}

.audio-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.audio-switch-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e7e7e7;
}

.audio-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-flex;
    margin-left: 0;
}

.audio-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.audio-switch-track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #3a3a3a;
    border: 1px solid #4c4c4c;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.audio-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f2f2f2;
    transition: transform 0.2s ease;
}

.audio-switch input:checked + .audio-switch-track {
    background: #3f73bb;
    border-color: #3f73bb;
}

.audio-switch input:checked + .audio-switch-track::after {
    transform: translateX(20px);
}

.theme-mode-btn {
    border: 1px solid #424242;
    border-radius: 8px;
    background: #242424;
    color: #ececec;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
}

.theme-mode-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-mode-btn-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.settings-title-spaced {
    margin-top: 12px;
}

.theme-mode-btn.is-active {
    background: #2d5ea8;
    border-color: #2d5ea8;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.control-field {
    flex: 1;
    border: 1px solid #444;
    border-radius: 8px;
    background: #232323;
    padding: 8px 10px 6px;
}

.control-verse {
    max-width: 150px;
}

.control-field label {
    display: block;
    color: #c6c6c6;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.controls select {
    width: 100%;
    border: 0;
    border-bottom: 3px solid #59a6ff;
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 6px 4px 8px;
    font-size: 1.05rem;
    appearance: auto;
}

.controls select:disabled {
    color: #949494;
    border-bottom-color: #3e4c5f;
}

.controls select:focus {
    outline: none;
    border-bottom-color: #84c1ff;
}

.controls select option,
.controls select optgroup {
    background-color: #1f1f1f;
    color: #f2f2f2;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: auto;
    border: 0;
    border-bottom: 3px solid #59a6ff;
    border-radius: 0;
    background: transparent;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    padding: 6px 28px 8px 4px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 2px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #dcdcdc transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-bottom-color: #84c1ff;
}

.select2-dropdown {
    background: #1f1f1f;
    border: 1px solid #3a3a3a;
}

.select2-container--default .select2-results__option {
    color: #f2f2f2;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #2d5ea8;
    color: #fff;
}

.select2-search--dropdown {
    background: #1f1f1f;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #111;
    color: #f2f2f2;
    border: 1px solid #3a3a3a;
}

.pagination {
    margin-top: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #2f2f2f;
    border-radius: 9px;
    background: #1b1b1b;
    color: #fff;
    padding: 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: #242424;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pagination-btn.is-active {
    background: #4a4a4a;
    border-color: #666;
}

.pagination-nav {
    font-size: 1.35rem;
    line-height: 1;
}

.pagination-ellipsis {
    color: #c6c6c6;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.pagination[hidden] {
    display: none !important;
}

.controls input,
.controls button {
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    background: #1b1b1b;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.98rem;
}

.controls button {
    cursor: pointer;
}

.controls button:hover {
    background: #242424;
}

.controls .control-icon-btn {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #1b1b1b;
    color: #d2d2d2;
}

.controls .control-icon-btn .material-symbols-rounded {
    font-size: 1.3rem;
    line-height: 1;
    font-variation-settings: "FILL" 0;
}

.controls .control-icon-btn:hover {
    background: #242424;
    color: #fff;
}

.controls .control-icon-btn:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 2px;
}

body.theme-light .controls .control-icon-btn {
    border-color: #c8d4e8;
    background: #ffffff;
    color: #3f4f67;
}

body.theme-light .controls .control-icon-btn:hover {
    background: #f1f5fb;
    color: #1d2a3d;
}

/* ---------------------------------------------------------------------
   Pop-up pencarian terjemahan/tafsir
   --------------------------------------------------------------------- */
.search-modal .app-modal-dialog {
    max-width: 720px;
    height: min(80vh, 760px);
}

.search-modal .app-modal-foot {
    display: none;
}

.search-modal .app-modal-body {
    flex: 1 1 auto;
    padding: 0;
}

.search-form {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 16px 0;
    background: #1a1a1a;
    border-bottom: 1px solid #2b2b2b;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #232323;
    padding: 0 10px;
}

.search-input-wrap:focus-within {
    border-color: #59a6ff;
}

.search-input-wrap .material-symbols-rounded {
    color: #9a9a9a;
    font-size: 1.3rem;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    padding: 11px 0;
}

.search-input:focus {
    outline: none;
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9a9a9a;
    cursor: pointer;
}

.search-clear:hover {
    color: #fff;
    background: #2f2f2f;
}

.search-clear[hidden] {
    display: none;
}

.search-tabs {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #a9a9a9;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 10px 9px;
    cursor: pointer;
}

.search-tab:hover {
    color: #e6e6e6;
}

.search-tab[aria-selected="true"] {
    color: #fff;
    border-bottom-color: #59a6ff;
}

.search-tab:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: -2px;
}

.search-tab-count {
    min-width: 22px;
    border-radius: 999px;
    background: #2c2c2c;
    color: #cfcfcf;
    font-size: 0.78rem;
    padding: 1px 7px;
    text-align: center;
}

.search-tab-count:empty {
    display: none;
}

.search-tab[aria-selected="true"] .search-tab-count {
    background: #24456f;
    color: #e3f0ff;
}

.search-summary {
    margin: 0;
    padding: 12px 18px 4px;
    color: #9a9a9a;
    font-size: 0.85rem;
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0 8px 8px;
}

.search-result {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 12px 10px;
    cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
    background: #232323;
}

.search-result:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: -2px;
}

.search-results li + li {
    border-top: 1px solid #262626;
}

.search-result-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.search-result-head .verse-marker {
    display: inline-block;
}

.search-result-surah {
    color: #b9b9b9;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.search-result-tag {
    border: 1px solid #3d5a80;
    border-radius: 999px;
    color: #9cc6ff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1px 8px;
}

.search-result-snippet {
    display: block;
    margin: 0;
    color: #dcdcdc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.search-result-snippet mark {
    background: rgba(89, 166, 255, 0.28);
    color: #fff;
    border-radius: 3px;
    padding: 0 1px;
}

.search-more-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 16px;
}

.search-modal .app-modal-status {
    text-align: center;
}

body.theme-light .search-form {
    background: #ffffff;
    border-color: #d4dbe5;
}

body.theme-light .search-input-wrap {
    background: #f7f9fc;
    border-color: #c8d4e8;
}

body.theme-light .search-input-wrap:focus-within {
    border-color: #3f73bb;
}

body.theme-light .search-input {
    color: #172233;
}

body.theme-light .search-input-wrap .material-symbols-rounded,
body.theme-light .search-clear {
    color: #5b6e89;
}

body.theme-light .search-clear:hover {
    background: #e6edf7;
    color: #1d2a3d;
}

body.theme-light .search-tab {
    color: #5b6e89;
}

body.theme-light .search-tab:hover,
body.theme-light .search-tab[aria-selected="true"] {
    color: #172233;
}

body.theme-light .search-tab[aria-selected="true"] {
    border-bottom-color: #3f73bb;
}

body.theme-light .search-tab-count {
    background: #e6edf7;
    color: #3f4f67;
}

body.theme-light .search-tab[aria-selected="true"] .search-tab-count {
    background: #3f73bb;
    color: #fff;
}

body.theme-light .search-summary,
body.theme-light .search-result-surah {
    color: #5b6e89;
}

body.theme-light .search-result:hover,
body.theme-light .search-result:focus-visible {
    background: #f1f5fb;
}

body.theme-light .search-results li + li {
    border-color: #e3e9f2;
}

body.theme-light .search-result-tag {
    border-color: #b9cbe6;
    color: #2f5d9a;
}

body.theme-light .search-result-snippet {
    color: #26354a;
}

body.theme-light .search-result-snippet mark {
    background: #fff0a8;
    color: #172233;
}

.status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #1d2430;
    color: #cde3ff;
    display: none;
}

.status.error {
    background: #342024;
    color: #ffd8dc;
}

.content {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.verse-card {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 1.2s ease, box-shadow 1.2s ease;
}

.verse-top {
    display: flex;
    align-items: center;
    padding: 12px 12px 0;
}

.verse-top-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.verse-card.is-selected-verse {
    border-color: #4672b8;
    box-shadow: 0 0 0 1px rgba(70, 114, 184, 0.3) inset;
}

.verse-card.is-playing-verse {
    border-color: #3f73bb;
    box-shadow: 0 0 0 1px rgba(63, 115, 187, 0.28) inset;
}

.verse-marker {
    border: 1px solid #4a4a4a;
    border-radius: 999px;
    background: #1f1f1f;
    color: #f4f7ff;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 6px 12px 7px;
}

.verse-play-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.verse-card.is-playing-verse .verse-play-btn {
    background: transparent;
    border-color: transparent;
    color: #59a6ff;
}

.verse-card.is-paused-verse .verse-play-btn {
    color: #59a6ff;
}

.arabic {
    direction: rtl;
    text-align: right;
    font-family: "ManzoorNaskh", "Noto Naskh Arabic", serif;
    font-size: 2.3rem;
    line-height: 1.85;
    padding: 14px 14px 12px;
    letter-spacing: 0.01em;
}

.translation {
    padding: 0 14px 14px;
    line-height: 1.75;
    color: #f2f2f2;
}

.translation sup {
    color: #8fbeff;
    cursor: pointer;
    font-size: 0.78em;
    padding: 0 1px;
}

.note-panel {
    margin: 0 14px 10px;
    background: #202020;
    border: 1px solid #323232;
    border-radius: 8px;
    overflow: hidden;
}

.note-nav {
    padding: 7px 8px;
    display: flex;
    align-items: center;
    min-height: 38px;
    flex-wrap: wrap;
    gap: 2px;
}

.note-link {
    border: 0;
    background: transparent;
    color: #a6a6a6;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.note-link.active {
    color: #e2f0ff;
}

.note-link-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.note-link-indicator svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.note-link .note-icon-down {
    display: none;
}

.note-link[data-open="true"] .note-icon-right {
    display: none;
}

.note-link[data-open="true"] .note-icon-down {
    display: block;
}

.note-separator {
    display: inline-flex;
    align-items: center;
    color: #6b6b6b;
    font-weight: 700;
    font-size: 0.86rem;
    margin-right: 0;
    line-height: 1;
}

.note-block {
    border-top: 1px solid #313131;
    margin: 0;
    padding: 10px 10px 10px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.24s ease, padding 0.24s ease, border-top-width 0.24s ease;
    max-height: 100000px;
    opacity: 1;
}

.note-block.is-hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-top-width: 0;
    pointer-events: none;
}

.notes {
    margin: 0;
    display: block;
}

.note-item {
    display: none;
}

.note-item.is-visible {
    display: block;
    opacity: 1;
    animation: noteItemFadeIn 0.2s ease;
}

.note-item.is-visible + .note-item.is-visible {
    margin-top: 12px;
}

.note-item-title {
    margin: 0 0 8px;
    color: #e6e6e6;
    font-weight: 700;
    font-size: 1.05rem;
}

.note-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.note-close {
    border: 1px solid #3f3f3f;
    border-radius: 999px;
    background: transparent;
    color: #bcbcbc;
    font-size: 0.78rem;
    line-height: 1;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.note-close:hover {
    color: #fff;
    border-color: #666;
}

.note-content {
    line-height: 1.75;
    color: #d8d8d8;
}

.note-empty {
    margin: 0 14px 12px;
    color: #9d9d9d;
}

.theme-menu {
    margin-top: 16px;
    padding: 12px 10px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn {
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: #1c1c1c;
    color: #e6e6e6;
    padding: 6px 14px;
    font-size: 0.86rem;
    cursor: pointer;
}

.theme-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-btn-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.theme-btn.is-active {
    background: #3f73bb;
    border-color: #3f73bb;
    color: #fff;
}

body.theme-light {
    background: #f2f4f7;
    color: #172233;
}

body.theme-light .sticky-controls {
    background: rgba(242, 244, 247, 0.94);
}

body.theme-light .topbar p {
    color: #46566c;
}

body.theme-light .control-field {
    background: #ffffff;
    border-color: #d4dbe5;
}

body.theme-light .control-settings {
    background: transparent;
    border-color: transparent;
}

body.theme-light .audio-settings-menu {
    background: #fff;
    border-color: #d4dbe5;
    box-shadow: 0 10px 28px rgba(31, 58, 95, 0.14);
}

body.theme-light .audio-settings-title {
    color: #5b6e89;
}

body.theme-light .audio-settings-toggle,
body.theme-light .theme-mode-btn {
    background: #f7f9fc;
    border-color: #c8d4e8;
    color: #27405f;
}

body.theme-light .audio-settings-toggle {
    border: 1px solid #c8d4e8;
    background: transparent;
    color: #3f4f67;
}

body.theme-light .theme-mode-btn.is-active {
    background: #3f73bb;
    border-color: #3f73bb;
    color: #fff;
}

body.theme-light .audio-switch-label {
    color: #2b3f5e;
}

body.theme-light .audio-switch-track {
    background: #d7e1ef;
    border-color: #c2d0e2;
}

body.theme-light .audio-switch-track::after {
    background: #ffffff;
}

body.theme-light .control-field label {
    color: #5b6e89;
}

body.theme-light .controls select {
    color: #1d2a3d;
    border-bottom-color: #3f73bb;
}

body.theme-light .controls select option,
body.theme-light .controls select optgroup {
    background-color: #ffffff;
    color: #1d2a3d;
}

body.theme-light .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1d2a3d;
}

body.theme-light .select2-dropdown,
body.theme-light .select2-search--dropdown {
    background: #ffffff;
    border-color: #d4dbe5;
}

body.theme-light .select2-container--default .select2-results__option {
    color: #1d2a3d;
}

body.theme-light .select2-container--default .select2-search--dropdown .select2-search__field {
    background: #f7f9fc;
    color: #1d2a3d;
    border-color: #d4dbe5;
}

body.theme-light .status {
    background: #e8f0fc;
    color: #1d2a3d;
}

body.theme-light .status.error {
    background: #fdecee;
    color: #9a2230;
}

body.theme-light .pagination-btn {
    background: #ffffff;
    color: #1d2a3d;
    border-color: #d4dbe5;
}

body.theme-light .pagination-btn.is-active {
    background: #dfe8f7;
    border-color: #b8c8e5;
}

body.theme-light .pagination-ellipsis {
    color: #5b6e89;
}

body.theme-light .verse-card {
    background: #ffffff;
    border-color: #d4dbe5;
}

body.theme-light .verse-card.is-selected-verse {
    border-color: #3f73bb;
    box-shadow: 0 0 0 1px rgba(63, 115, 187, 0.22) inset;
}

body.theme-light .verse-card.is-playing-verse {
    border-color: #3f73bb;
    box-shadow: 0 0 0 1px rgba(63, 115, 187, 0.22) inset;
}

body.theme-light .verse-marker {
    background: #f8fbff;
    border-color: #c6d5eb;
    color: #25324a;
}

body.theme-light .verse-play-btn {
    background: transparent;
    border-color: transparent;
    color: #6c7a90;
}

body.theme-light .verse-card.is-playing-verse .verse-play-btn {
    background: transparent;
    border-color: transparent;
    color: #2f61a8;
}

body.theme-light .verse-card.is-paused-verse .verse-play-btn {
    color: #2f61a8;
}

body.theme-light .translation {
    color: #1d2a3d;
}

body.theme-light .translation sup {
    color: #2f61a8;
}

body.theme-light .note-nav {
    background: #f8fbff;
}

body.theme-light .note-panel {
    background: #f8fbff;
    border-color: #d8e2f3;
}

body.theme-light .note-link {
    color: #3f5473;
}

body.theme-light .note-link.active {
    color: #1d2a3d;
}

body.theme-light .note-separator {
    color: #6d7f98;
}

body.theme-light .note-block {
    border-top-color: #d4dbe5;
}

body.theme-light .note-item-title {
    color: #1d2a3d;
}

body.theme-light .note-content {
    color: #2c3a50;
}

body.theme-light .note-close {
    border-color: #c8d4e8;
    color: #4d607c;
}

body.theme-light .note-close:hover {
    color: #1d2a3d;
    border-color: #8ca4ca;
}

/* Rujukan ayat (surah:ayat) yang bisa diklik */
.verse-ref-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: none;
    font: inherit;
    color: #8fbeff;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.verse-ref-link:hover {
    color: #b7d5ff;
    text-decoration-style: solid;
}

.verse-ref-link:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 2px;
}

body.theme-light .verse-ref-link {
    color: #2f61a8;
}

body.theme-light .verse-ref-link:hover {
    color: #1f4c8c;
}

/* Pop-up generik (rujukan ayat, catatan, info pengembangan) */
body.modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-modal[hidden] {
    display: none;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.app-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: min(80vh, 760px);
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    color: #f2f2f2;
    animation: verseRefModalIn 0.18s ease-out;
}

.app-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 18px;
    border-bottom: 1px solid #2b2b2b;
}

.app-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.app-modal-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: transparent;
    color: #cfcfcf;
    cursor: pointer;
}

.app-modal-close .material-symbols-rounded {
    font-size: 20px;
}

.app-modal-close:hover {
    color: #fff;
    border-color: #666;
}

.app-modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 6px;
}

.verse-ref-item + .verse-ref-item {
    border-top: 1px solid #2b2b2b;
}

.verse-ref-item-head {
    padding: 14px 14px 0;
}

.verse-ref-item-head .verse-marker {
    display: inline-block;
}

.app-modal-body .arabic {
    font-size: 1.9rem;
}

.app-modal-status {
    margin: 0;
    padding: 22px 18px;
    color: #b9b9b9;
}

.app-modal-status.is-error {
    color: #ffb4bc;
}

.app-modal-foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #2b2b2b;
}

.app-modal-primary {
    border: 1px solid #3f73bb;
    border-radius: 999px;
    background: #3f73bb;
    color: #fff;
    padding: 8px 18px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.app-modal-primary:hover {
    background: #4b82cf;
    border-color: #4b82cf;
}

.app-modal-close:focus-visible,
.app-modal-primary:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 2px;
}

body.theme-light .app-modal-backdrop {
    background: rgba(23, 34, 51, 0.45);
}

body.theme-light .app-modal-dialog {
    background: #ffffff;
    border-color: #d4dbe5;
    color: #172233;
    box-shadow: 0 20px 48px rgba(23, 34, 51, 0.22);
}

body.theme-light .app-modal-head,
body.theme-light .app-modal-foot,
body.theme-light .verse-ref-item + .verse-ref-item {
    border-color: #d4dbe5;
}

body.theme-light .app-modal-close {
    border-color: #c8d4e8;
    color: #4d607c;
}

body.theme-light .app-modal-close:hover {
    color: #1d2a3d;
    border-color: #8ca4ca;
}

body.theme-light .app-modal-status {
    color: #4d607c;
}

body.theme-light .app-modal-status.is-error {
    color: #9a2230;
}

/* Titik catatan di pojok kanan atas kartu ayat */
.verse-note-dot {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.verse-note-dot-mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1.5px solid #6f6f6f;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.verse-note-dot:hover .verse-note-dot-mark {
    border-color: #a8a8a8;
    transform: scale(1.15);
}

.verse-note-dot.has-notes .verse-note-dot-mark {
    background: #59a6ff;
    border-color: #59a6ff;
}

.verse-note-dot:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 0;
}

body.theme-light .verse-note-dot-mark {
    border-color: #9aa8bb;
}

body.theme-light .verse-note-dot:hover .verse-note-dot-mark {
    border-color: #5d6f88;
}

body.theme-light .verse-note-dot.has-notes .verse-note-dot-mark {
    background: #3f73bb;
    border-color: #3f73bb;
}

/* Pop-up catatan: form + riwayat */
.note-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 16px;
    border-bottom: 1px solid #2b2b2b;
}

.note-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cfcfcf;
}

.note-form-label + .note-form-input {
    margin-bottom: 6px;
}

.note-form-optional {
    font-weight: 400;
    color: #9d9d9d;
}

.note-form-input {
    width: 100%;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #121212;
    color: #f2f2f2;
    padding: 9px 11px;
    font: inherit;
    font-size: 0.95rem;
}

.note-form-textarea,
textarea.note-form-input {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

.note-form-input:focus {
    outline: none;
    border-color: #59a6ff;
    box-shadow: 0 0 0 2px rgba(89, 166, 255, 0.25);
}

.note-form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: #d8d8d8;
    cursor: pointer;
}

.note-form-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #59a6ff;
}

.note-history-tag {
    display: inline-block;
    margin-bottom: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #3d3220;
    color: #ffe2a8;
    font-size: 0.75rem;
    font-weight: 600;
}

body.theme-light .note-form-check {
    color: #172233;
}

body.theme-light .note-form-check input {
    accent-color: #3f73bb;
}

body.theme-light .note-history-tag {
    background: #fff1d6;
    color: #7a4b00;
}

.note-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.note-form-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: #9d9d9d;
}

.note-form-counter {
    flex: 0 0 auto;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.note-form-error {
    margin: 4px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #342024;
    color: #ffd8dc;
    font-size: 0.88rem;
}

.note-form-error[hidden] {
    display: none;
}

.note-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.app-modal-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.note-history {
    padding: 14px 14px 6px;
}

.note-history-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #cfcfcf;
}

.note-history .app-modal-status {
    padding: 8px 0 14px;
}

.note-history-item {
    padding: 10px 0;
}

.note-history-item + .note-history-item {
    border-top: 1px solid #2b2b2b;
}

.note-history-item.is-new {
    animation: noteItemFadeIn 0.3s ease-out;
}

.note-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 4px;
}

.note-history-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.note-history-time {
    font-size: 0.78rem;
    color: #9d9d9d;
}

.note-history-content {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: #d8d8d8;
}

body.theme-light .note-form,
body.theme-light .note-history-item + .note-history-item {
    border-color: #d4dbe5;
}

body.theme-light .note-form-label,
body.theme-light .note-history-title {
    color: #3f5473;
}

body.theme-light .note-form-optional,
body.theme-light .note-form-meta,
body.theme-light .note-history-time {
    color: #6d7f98;
}

body.theme-light .note-form-input {
    background: #f8fbff;
    border-color: #c8d4e8;
    color: #172233;
}

body.theme-light .note-form-input:focus {
    border-color: #3f73bb;
    box-shadow: 0 0 0 2px rgba(63, 115, 187, 0.2);
}

body.theme-light .note-form-error {
    background: #fdecee;
    color: #9a2230;
}

body.theme-light .note-history-content {
    color: #2c3a50;
}

/* Info aplikasi dalam pengembangan */
.dev-notice {
    padding: 6px 18px 10px;
    line-height: 1.65;
}

.dev-notice p {
    margin: 10px 0;
}

.dev-notice-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1.5px solid #6f6f6f;
    vertical-align: middle;
}

.dev-notice-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 8px;
    padding: 8px 14px;
    border: 1px solid #2f7d4f;
    border-radius: 999px;
    color: #7fe0a6;
    font-weight: 600;
    text-decoration: none;
}

.dev-notice-wa:hover {
    background: rgba(47, 125, 79, 0.18);
}

.dev-notice-wa .material-symbols-rounded {
    font-size: 20px;
}

body.theme-light .dev-notice-dot {
    border-color: #9aa8bb;
}

body.theme-light .dev-notice-wa {
    border-color: #2f8a55;
    color: #1d6b3f;
}

body.theme-light .dev-notice-wa:hover {
    background: rgba(47, 138, 85, 0.1);
}

/* Halaman /logs */
.logs-page .topbar {
    margin-bottom: 18px;
}

.logs-message {
    display: block;
}

.logs-login {
    max-width: 360px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    background: #1a1a1a;
}

.logs-login .app-modal-primary {
    margin-top: 6px;
}

.logs-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.logs-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 260px;
    max-width: 420px;
}

.logs-logout-btn {
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: transparent;
    color: #cfcfcf;
    padding: 8px 16px;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.logs-logout-btn:hover {
    color: #fff;
    border-color: #666;
}

.logs-summary {
    margin: 16px 0 10px;
    color: #b9b9b9;
}

.logs-table-wrap {
    overflow-x: auto;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    background: #1a1a1a;
}

.logs-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.logs-table th,
.logs-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #2b2b2b;
}

.logs-table tbody tr:last-child td {
    border-bottom: 0;
}

.logs-table th {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b9b9b9;
    background: #202020;
}

.logs-time {
    white-space: nowrap;
    color: #b9b9b9;
}

.logs-ref a {
    color: #8fbeff;
    font-weight: 600;
}

.logs-chapter {
    display: block;
    font-size: 0.78rem;
    color: #9d9d9d;
}

.logs-anon {
    color: #9d9d9d;
    font-style: italic;
}

.logs-content {
    min-width: 260px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.logs-pagination a.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logs-pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.logs-page-info {
    font-size: 0.88rem;
    color: #b9b9b9;
}

body.theme-light .logs-login,
body.theme-light .logs-table-wrap {
    background: #ffffff;
    border-color: #d4dbe5;
}

body.theme-light .logs-table th {
    background: #f8fbff;
    color: #3f5473;
}

body.theme-light .logs-table th,
body.theme-light .logs-table td {
    border-color: #d4dbe5;
}

body.theme-light .logs-summary,
body.theme-light .logs-time,
body.theme-light .logs-page-info {
    color: #3f5473;
}

body.theme-light .logs-ref a {
    color: #2f61a8;
}

body.theme-light .logs-chapter,
body.theme-light .logs-anon {
    color: #6d7f98;
}

body.theme-light .logs-logout-btn {
    border-color: #c8d4e8;
    color: #4d607c;
}

@keyframes verseRefModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes verseRefSheetIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

@keyframes noteItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .note-block,
    .note-item {
        transition: none;
    }
    .note-item.is-visible {
        animation: none;
    }
    .app-modal-dialog {
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .topbar h1 {
        font-size: 1.65rem;
    }

    .topbar p {
        font-size: 0.95rem;
    }

    .arabic {
        font-size: 1.95rem;
        line-height: 1.8;
    }

    .control-verse {
        max-width: 120px;
    }

    .control-settings {
        flex-basis: 36px;
        gap: 6px;
    }

    .search-form {
        padding: 12px 12px 0;
    }

    .search-modal .app-modal-dialog {
        height: 88vh;
        max-height: 88vh;
    }

    .audio-settings-toggle {
        width: 30px;
        height: 30px;
    }

    .pagination {
        justify-content: space-between;
        gap: 6px;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .pagination-nav {
        font-size: 1.2rem;
    }

    /* Pop-up tampil sebagai bottom-sheet di mobile */
    .app-modal {
        align-items: flex-end;
        padding: 0;
    }

    .app-modal-dialog {
        max-width: none;
        max-height: 85vh;
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
        animation-name: verseRefSheetIn;
        animation-duration: 0.22s;
    }

    .app-modal-body .arabic {
        font-size: 1.7rem;
    }
}

.dev-notice p a {
    overflow-wrap: anywhere;
}

.dev-notice-wa .dev-notice-wa-icon {
    flex: none;
    width: 20px;
    height: 20px;
}

.dev-notice p a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

.dev-notice p a:hover {
    text-decoration-color: currentColor;
}

body.theme-light .dev-notice p a {
    text-decoration-color: rgba(0, 0, 0, 0.35);
}

/* /logs: aksi edit & hapus */
.logs-actions {
    white-space: nowrap;
}

.logs-inline-form {
    display: inline;
    margin: 0;
}

.logs-action-btn {
    display: inline-block;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: transparent;
    color: #cfcfcf;
    padding: 4px 12px;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.logs-action-btn:hover {
    color: #fff;
    border-color: #666;
}

.logs-action-btn.is-danger {
    color: #ff9b9b;
    border-color: #6b3434;
}

.logs-action-btn.is-danger:hover {
    color: #fff;
    background: rgba(200, 60, 60, 0.28);
    border-color: #a04444;
}

.logs-flash {
    margin-bottom: 12px;
}

.logs-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
    margin-top: 16px;
}

.logs-edit textarea {
    resize: vertical;
}

.logs-edit-title {
    margin: 0;
    font-size: 1.1rem;
}

.logs-edit-meta {
    margin: 0 0 6px;
    color: #9d9d9d;
    font-size: 0.86rem;
}

.logs-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

body.theme-light .logs-action-btn {
    border-color: #c8d4e8;
    color: #4d607c;
}

body.theme-light .logs-action-btn:hover {
    color: #1f3556;
    border-color: #8fa5c7;
}

body.theme-light .logs-action-btn.is-danger {
    color: #b3261e;
    border-color: #e3b4b0;
}

body.theme-light .logs-action-btn.is-danger:hover {
    color: #8c1d18;
    background: rgba(179, 38, 30, 0.08);
}

body.theme-light .logs-edit-meta {
    color: #6d7f98;
}

/* Tombol bookmark di sebelah kiri titik catatan */
.verse-bookmark-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f6f6f;
    cursor: pointer;
}

.verse-bookmark-btn + .verse-note-dot {
    margin-left: 0;
}

.verse-bookmark-btn .material-symbols-rounded {
    font-size: 1.25rem;
    line-height: 1;
    font-variation-settings: "FILL" 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.verse-bookmark-btn:hover {
    color: #a8a8a8;
}

.verse-bookmark-btn.is-bookmarked {
    color: #59a6ff;
}

.verse-bookmark-btn.is-bookmarked .material-symbols-rounded {
    font-variation-settings: "FILL" 1;
}

.verse-bookmark-btn:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 0;
}

body.theme-light .verse-bookmark-btn {
    color: #9aa8bb;
}

body.theme-light .verse-bookmark-btn:hover {
    color: #5d6f88;
}

body.theme-light .verse-bookmark-btn.is-bookmarked {
    color: #3f73bb;
}

/* Tautan ke halaman bookmark di menu pengaturan */
.audio-settings-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #d2d2d2;
    font-size: 0.9rem;
    text-decoration: none;
}

.audio-settings-link:hover {
    background: #222;
    color: #fff;
}

.audio-settings-link .material-symbols-rounded {
    font-size: 1.15rem;
    line-height: 1;
}

body.theme-light .audio-settings-link {
    background: #f7f9fc;
    border-color: #c8d4e8;
    color: #27405f;
}

body.theme-light .audio-settings-link:hover {
    background: #eaf1fb;
    color: #1f3556;
}

/* Halaman /bookmark */
.bookmark-page .topbar {
    margin-bottom: 14px;
}

.bookmark-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bookmark-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8fb6ff;
    text-decoration: none;
    font-size: 0.92rem;
}

.bookmark-back:hover {
    text-decoration: underline;
}

.bookmark-summary {
    margin: 0;
    color: #b9b9b9;
    font-size: 0.9rem;
}

.bookmark-list {
    display: grid;
    gap: 12px;
}

.bookmark-card .verse-top {
    gap: 8px;
}

.bookmark-ref {
    text-decoration: none;
    display: inline-block;
}

.bookmark-ref:hover {
    border-color: #6f8fc4;
}

.bookmark-chapter {
    color: #b9b9b9;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.bookmark-remove {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #59a6ff;
    cursor: pointer;
}

.bookmark-remove .material-symbols-rounded {
    font-size: 1.25rem;
    line-height: 1;
    font-variation-settings: "FILL" 1;
}

.bookmark-remove:hover {
    color: #ff9b9b;
}

.bookmark-preview {
    margin: 0;
    padding: 0 14px 14px;
    color: #cfcfcf;
    line-height: 1.6;
}

.bookmark-card .arabic {
    padding-bottom: 8px;
}

body.theme-light .bookmark-back {
    color: #2f61a8;
}

body.theme-light .bookmark-summary,
body.theme-light .bookmark-chapter {
    color: #3f5473;
}

body.theme-light .bookmark-remove {
    color: #3f73bb;
}

body.theme-light .bookmark-remove:hover {
    color: #b3261e;
}

body.theme-light .bookmark-preview {
    color: #1d2a3d;
}

/* Tombol panah diagonal: halaman Tafsir Singkat (scan) */
.verse-commentary-btn + .verse-note-dot {
    margin-left: 0;
}

.verse-commentary-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f6f6f;
    cursor: pointer;
}

.verse-commentary-btn .material-symbols-rounded {
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.verse-commentary-btn:hover {
    color: #a8a8a8;
}

.verse-commentary-btn:hover .material-symbols-rounded {
    transform: translate(1px, -1px);
}

.verse-commentary-btn:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 0;
}

body.theme-light .verse-commentary-btn {
    color: #9aa8bb;
}

body.theme-light .verse-commentary-btn:hover {
    color: #5d6f88;
}

.commentary-modal .app-modal-dialog {
    max-width: 860px;
    max-height: 92vh;
}

.commentary-modal .app-modal-body {
    padding: 0 12px 12px;
}

.commentary-page-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
}

/* Tombol prev/next diposisikan terhadap .app-modal-dialog (relative),
   jadi tetap di tengah dialog walau gambar di-scroll. */
.commentary-stage {
    touch-action: pan-y pinch-zoom;
}

.commentary-stage.is-loading .commentary-page-img {
    opacity: 0.55;
}

.commentary-page-img {
    transition: opacity 0.15s ease;
}

.commentary-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #f2f2f2;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.commentary-prev {
    left: 20px;
}

.commentary-next {
    right: 20px;
}

.commentary-nav .material-symbols-rounded {
    font-size: 1.75rem;
    line-height: 1;
}

.commentary-nav:hover:not(:disabled) {
    background: rgba(20, 20, 20, 0.9);
}

.commentary-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.commentary-nav:focus-visible {
    outline: 2px solid #59a6ff;
    outline-offset: 2px;
}

.commentary-modal .app-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.commentary-modal .app-modal-foot:empty {
    display: none;
}

.commentary-page-meta {
    color: #9a9a9a;
    font-size: 0.9rem;
}

.commentary-page-link {
    color: #59a6ff;
}

body.theme-light .commentary-page-meta {
    color: #4d607c;
}

body.theme-light .commentary-page-link {
    color: #2f61a8;
}

/* Mobile: tombol prev/next pipih menempel di tepi dialog agar tidak menutupi gambar */
@media (max-width: 640px) {
    .commentary-nav {
        width: 18px;
        height: 64px;
        border-radius: 0 8px 8px 0;
        border-left: 0;
    }

    .commentary-prev {
        left: 0;
    }

    .commentary-next {
        right: 0;
        border-radius: 8px 0 0 8px;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        border-right: 0;
    }

    .commentary-nav .material-symbols-rounded {
        font-size: 1.25rem;
    }
}

/* Kaligrafi di pop up "Aplikasi dalam Tahap Pengembangan" (PNG hitam transparan) */
.dev-notice-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 4px auto 14px;
    filter: invert(1) brightness(0.92);
}

body.theme-light .dev-notice-logo {
    filter: none;
}
