/* Tajweed Al Quran • Android-parity reader, recitations, Qaida and Adhkar */
.tr-screen{display:grid;gap:16px;max-width:1500px;margin:0 auto;padding-bottom:40px}
.tr-top{background:linear-gradient(125deg,#083f32,#08664c);padding:22px 25px;border-radius:20px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;box-shadow:0 15px 35px #134c3720}
.tr-top h2{font:700 clamp(21px,2.5vw,31px) Georgia,serif;margin:4px 0;color:#fff}.tr-top p{margin:3px 0;color:#cfebdc;font-size:12px}
.tr-panel{background:#fff;border:1px solid #e4eae3;border-radius:17px;padding:15px;box-shadow:0 8px 28px #133d2810}
.tr-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:11px}.tr-group{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.tr-tab,.tr-btn{border:1px solid #ccdfd0;color:#245e46;background:#f7fcf8;padding:9px 12px;border-radius:11px;cursor:pointer;font-size:12px;font-weight:700;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.tr-tab:hover,.tr-btn:hover{background:#e7f7eb;transform:translateY(-1px);box-shadow:0 5px 16px #17573b12}
.tr-tab.active,.tr-btn.primary{background:#086c4e;border-color:#086c4e;color:#fff}
.tr-btn.gold{background:#d7ac58;border-color:#d7ac58;color:#163f2d}
.tr-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.tr-label{font-size:11px;color:#4e7562;font-weight:750;display:grid;gap:5px}
.tr-label select,.tr-label input{min-height:39px;border:1px solid #cce1d3;border-radius:10px;padding:8px 10px;background:#fff;color:#153e32;font-size:13px;max-width:100%}
.tr-reader-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:15px;align-items:start}
.tr-surahs{max-height:680px;overflow:auto;display:grid;gap:5px}
.tr-surah{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;border-radius:10px;padding:10px 11px;cursor:pointer;background:#f7faf6;border:1px solid transparent;color:#234b3c}
.tr-surah:hover{background:#e8f7eb}.tr-surah.active{background:#ddf3e6;border-color:#82bfa1}.tr-surah strong{font-size:12px}.tr-surah small{display:block;font-size:10px;color:#638474;margin-top:3px}.tr-surah .ar{font:16px "Noto Naskh Arabic","Amiri","Traditional Arabic",serif;color:#0b684d;white-space:nowrap}
.tr-reader-main{min-width:0;display:grid;gap:12px}
.tr-page{height:min(67vh,630px);min-height:345px;overflow:auto;border-radius:15px;border:1px solid #eadcbd;background:#faf7ec;padding:13px;scroll-behavior:smooth}
.tr-sheet{max-width:760px;min-height:320px;margin:auto;background:#fffdfa;border:1px solid #e8d8ab;border-radius:8px;padding:22px 29px;box-shadow:0 5px 18px #77562717}
.tr-sheet-head{font:700 20px Georgia,serif;color:#126148;text-align:center;border-bottom:1px solid #dfd4af;padding-bottom:14px;margin-bottom:16px}
.tr-script{direction:rtl;text-align:center;font:clamp(24px,2.45vw,35px)/2.45 "Noto Naskh Arabic","Amiri","Traditional Arabic",serif;color:#173c31}
.tr-verse{border-radius:6px;padding:2px 3px;cursor:pointer;transition:background .17s,color .17s}
.tr-verse:nth-of-type(5n){color:#835329}.tr-verse:nth-of-type(5n+2){color:#2268a0}.tr-verse:nth-of-type(5n+3){color:#a05767}.tr-verse:nth-of-type(5n+4){color:#7a568c}
.tr-verse.current{background:#ffebb0;box-shadow:0 0 0 2px #ddb26455;color:#0b563e!important}
.tr-num{font-size:.65em;color:#aa8745;padding:0 4px;white-space:nowrap}
.tr-mushaf-caption{text-align:center;color:#887a58;font-size:11px;padding-top:13px;line-height:1.6}
.tr-progress{width:100%;accent-color:#118261;cursor:pointer;min-height:19px}
.tr-player{position:sticky;bottom:8px;z-index:8;background:linear-gradient(115deg,#ecf8ec,#fefbf3);border:1px solid #afd6bc;box-shadow:0 9px 24px #073f352b;border-radius:15px;padding:12px 15px;display:grid;gap:6px}
.tr-time{font-variant-numeric:tabular-nums;font-size:11px;color:#4a745f}
.tr-status{font-size:11px;color:#557866}
.tr-player-title{font-weight:800;color:#14513a;font-size:13px}
.tr-note{border-left:3px solid #c79d45;background:#fff9ea;padding:11px 13px;border-radius:8px;color:#78633b;font-size:12px;line-height:1.5}
.tr-sections{display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px}
.tr-language{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tr-lessons{display:grid;gap:5px;max-height:670px;overflow:auto}
.tr-lesson{border:1px solid #e5eee2;padding:10px 11px;border-radius:10px;background:#fafdf8;text-align:left;color:#164330;cursor:pointer;width:100%}
.tr-lesson strong{font-size:12px;display:block}.tr-lesson small{display:block;color:#728978;font-size:10px;margin-top:4px}
.tr-lesson.active{border-color:#8bc29b;background:#e4f6e8}
.tr-examples{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:11px}
.tr-example{border:1px solid #e0eade;background:#fcfdf7;border-radius:13px;padding:12px 8px 10px;text-align:center;display:grid;gap:5px;align-content:center;min-height:127px;transition:transform .15s ease,box-shadow .15s ease;cursor:pointer;color:#144c39}
.tr-example:hover,.tr-example:focus-visible{transform:translateY(-3px);box-shadow:0 8px 18px #144c3920;border-color:#81bca0}
.tr-example.playing{background:#e4f8e9;border-color:#10774f}
.tr-example:disabled{opacity:.65;cursor:not-allowed}
.tr-example .arabic{font:clamp(27px,3vw,36px)/1.7 "Noto Naskh Arabic","Amiri","Traditional Arabic",serif;direction:rtl}
.tr-example .meaning{font-size:11px;font-weight:700;line-height:1.4}
.tr-example .speaker{font-size:10px;color:#537b67}
.tr-skill{color:#567c64;font-size:11px}.tr-intro{font-size:13px;line-height:1.7;color:#426751}
.tr-accent{color:#af832b;font-weight:800}
.tr-adhkar-card{border:1px solid #e3eadf;border-radius:15px;padding:19px;background:#fffdfa;display:grid;gap:12px}
.tr-adhkar-arabic{direction:rtl;text-align:right;font:clamp(23px,2.4vw,32px)/2.2 "Noto Naskh Arabic","Amiri","Traditional Arabic",serif;color:#194b37;max-height:250px;overflow:auto}
.tr-adhkar-trans{font-size:13px;color:#526c5e;line-height:1.65}
.tr-category{display:flex;flex-wrap:wrap;gap:7px}.tr-category button{white-space:nowrap}
.tr-adhkar-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:15px}
.tr-adhkar-list{max-height:480px;overflow:auto;display:grid;gap:5px}
.tr-adhkar-item{border:1px solid #e0eadf;background:#fff;text-align:left;padding:9px 11px;border-radius:10px;cursor:pointer;width:100%;color:#174936;display:grid;gap:5px}
.tr-adhkar-item.active{background:#e4f6e9;border-color:#81bca0}.tr-adhkar-item strong{font-size:12px}.tr-adhkar-item span{font-size:10px;color:#668675}
.tr-adhkar-source{font-size:11px;color:#8b7f65}
.tr-shell select:focus,.tr-panel input:focus{outline:2px solid #79bd9c}
@media(max-width:980px){.tr-reader-grid,.tr-sections,.tr-adhkar-layout{grid-template-columns:1fr}.tr-surahs,.tr-lessons,.tr-adhkar-list{max-height:180px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.tr-page{height:min(63vh,590px)}}
@media(max-width:600px){.tr-screen{gap:11px}.tr-top{padding:18px}.tr-panel{padding:12px}.tr-sheet{padding:15px}.tr-script{font-size:25px;line-height:2.25}.tr-page{height:52vh;min-height:320px;padding:7px}.tr-surahs,.tr-lessons{max-height:135px;grid-template-columns:repeat(2,1fr)}.tr-examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tr-example{padding:7px 3px;min-height:111px}.tr-example .arabic{font-size:27px}.tr-player{bottom:60px;padding:10px}.tr-btn,.tr-tab{padding:8px 9px}.tr-reader-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){.tr-page{scroll-behavior:auto}.tr-btn,.tr-tab,.tr-example{transition:none}}

@media(min-width:700px) and (max-width:980px){.topbar{flex-wrap:wrap;gap:10px}.topbar-left,.topbar-right{min-width:0;max-width:100%;flex-wrap:wrap}.topbar-right{justify-content:flex-start}.topbar .search-spot{display:none}}

/* Original-format Mushaf and real sidebar toggles */
.tr-original-book{max-width:700px;margin:auto;display:grid;gap:11px;justify-items:center;min-width:0}
.tr-original-vp{position:relative;width:min(100%,500px);min-width:0;background:#fffaf1;box-shadow:0 5px 19px #85693720;border:1px solid #dac990;border-radius:3px;overflow:hidden;user-select:none;cursor:pointer}
.tr-original-art{width:100%;height:100%;object-fit:fill;display:block}
.tr-original-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.tr-focus-polygon{fill:rgba(43,181,109,.27);stroke:#078852;stroke-width:1.45;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px #5da97b)}
.tr-focus-neutral{fill:rgba(227,170,60,.15);stroke:#bf8a30;stroke-width:1;vector-effect:non-scaling-stroke}
.tr-audio-follow{width:min(100%,660px);background:#fff9e9;border:1px solid #ded1a7;border-radius:13px;padding:12px 17px;margin:auto;display:grid;gap:6px;min-width:0}
.tr-follow-words{text-align:center;direction:rtl;unicode-bidi:plaintext;font:clamp(24px,2.5vw,34px)/2.25 "Noto Naskh Arabic","Amiri","Traditional Arabic",serif;color:#194437}
.tr-audio-word{white-space:normal;display:inline;border-radius:7px;padding:1px 3px;transition:background-color .16s,color .16s}
.tr-audio-word.onword{background:#efd17a;color:#064b32;box-shadow:0 0 0 3px #efd17a9a}
.tr-original-empty{width:min(100%,540px);min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(145deg,#fffefa,#f1ead6);border:3px double #cca66b;border-radius:22px;text-align:center;padding:20px 25px;color:#1b583e}
.tr-original-empty .tr-original-icon{font:74px/1.7 "Noto Naskh Arabic",serif;color:#c19a56}
.tr-original-empty h2{font:700 24px/1.65 "Noto Naskh Arabic",serif;margin:0;color:#0b633f}
.tr-original-empty p{font-size:15px;margin:0}
.tr-private-indo{width:100%;min-height:560px;height:70vh;border:0;background:#fff;border-radius:8px}
.tr-original-book .tr-mushaf-caption{padding-top:0}
.tr-page{scrollbar-gutter:stable;overscroll-behavior:contain}
.tr-settings-header{margin:14px 0 6px;padding:7px 11px 3px;font-size:10px;letter-spacing:.15em;font-weight:800;color:#b6d3c2}
.tr-sidebar-toggles{display:grid;gap:5px;padding:0 6px}
.tr-sidebar-toggle{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 11px;width:100%;border:1px solid #96cfaf30;border-radius:11px;background:#e8ffe408;color:#e9f9ea;text-align:left;transition:background .18s ease,transform .18s ease,border-color .18s ease;cursor:pointer}
.tr-sidebar-toggle:hover{background:#c4ead323;transform:translateX(2px);border-color:#87d3af70}
.tr-sidebar-toggle>span:first-child{font-size:12px;font-weight:700;line-height:1.25}
.tr-toggle-pill{color:#d9e1d9;border-radius:99px;min-width:44px;text-align:center;padding:3px 7px;font-size:10px;font-weight:800;background:#ffffff22;box-shadow:inset 0 1px 4px #001c1530;transition:background .2s,color .2s}
.tr-sidebar-toggle[aria-pressed="true"] .tr-toggle-pill{background:#addfbd;color:#065537}
.tr-sidebar-toggle[aria-pressed="false"] .tr-toggle-pill{background:#fff1ce;color:#7e5b1a}
.sidebar{transition:transform .28s cubic-bezier(.2,.74,.25,1),background .4s ease,box-shadow .25s ease}
.nav-item{transition:transform .17s ease,background .18s ease,box-shadow .18s ease}
.nav-item:hover{transform:translateX(3px)}
.sidebar-scrim{transition:opacity .28s ease}
.tr-audio-follow{animation:tr-soft-in .22s ease-out}
@keyframes tr-soft-in{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.tr-adhkar-arabic span.tr-dhikr-word{border-radius:6px;padding:1px 2px;transition:background .2s}
.tr-dhikr-word.current{background:#ffdf91;color:#073c2c;box-shadow:0 0 0 2px #ffdf91}
.tr-reader-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:780px){
 .sidebar{will-change:transform;transition:transform .29s cubic-bezier(.2,.78,.2,1);overscroll-behavior:contain}
 .sidebar-scrim{display:block!important;visibility:hidden;opacity:0;pointer-events:none;background:#061e18b3;backdrop-filter:blur(0px)}
 .sidebar-scrim.show{visibility:visible;opacity:1;pointer-events:auto;backdrop-filter:blur(3px)}
 .tr-original-vp{width:min(100%,465px)}
 .tr-follow-words{font-size:24px}
 .tr-original-empty{min-height:320px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.sidebar-scrim,.nav-item,.tr-audio-word{transition:none!important}.tr-audio-follow{animation:none}}

.tr-drawer-close{display:none}
@media(max-width:780px){.tr-drawer-close{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:10px 12px;margin:-7px 0 9px;border-radius:11px;border:1px solid #bce0c35e;background:#ffffff1a;color:#e7ffef;font-size:12px;font-weight:700;transition:background .2s}
.tr-drawer-close:hover{background:#c1e0c03b}}

/* Production interface: layout adapts automatically. No manual device-preview controls. */
.device-tools{display:none!important}
@media(max-width:600px){
 .tr-screen{gap:7px;padding-bottom:22px}
 .tr-top{padding:11px 14px;border-radius:14px}
 .tr-top h2{font-size:21px;line-height:1.15;margin:3px 0}
 .tr-top p{font-size:11px;line-height:1.35}
 .tr-top>span{display:none}
 .tr-panel{padding:8px 10px;border-radius:12px}
 .tr-reader-grid{gap:5px}
 .tr-reader-grid>aside.tr-panel{display:none}
 .tr-reader-main{gap:7px}
 .tr-reader-main>.tr-panel:first-child{padding:7px 10px}
 .tr-reader-main>.tr-panel:first-child .tr-row{gap:7px}
 .tr-reader-main>.tr-panel:first-child .tr-row>.tr-group{flex-wrap:nowrap}
 .tr-reader-main>.tr-panel:first-child .tr-row>.tr-group .tr-btn{padding:6px 8px;font-size:10px}
 .tr-reader-main>.tr-panel:first-child .tr-row>.tr-group .tr-status{white-space:nowrap;font-size:10px}
 .tr-reader-main>.tr-panel:first-child select{max-width:165px;min-height:35px}
 .tr-original-vp{width:min(100%,350px)}
 .tr-page{height:57vh;min-height:360px;max-height:510px;padding:7px}
 .tr-player{padding:8px 10px;bottom:60px;border-radius:12px;gap:3px}
 .tr-player>.tr-row:first-child .tr-status{display:none}
 .tr-player>.tr-row:nth-child(2){flex-wrap:nowrap;align-items:end}
 .tr-player>.tr-row:nth-child(2) .tr-label{min-width:112px;flex:1!important}
 .tr-player>.tr-row:nth-child(2) .tr-group{flex-wrap:nowrap;gap:5px}
 .tr-player>.tr-row:nth-child(2) .tr-group .tr-btn{padding:7px 6px;font-size:10px}
 .tr-player>.tr-row:nth-child(2) .tr-group .tr-label{display:none}
 .tr-player>.tr-row:nth-child(3) #tr-word-status{display:none}
 .tr-player>.tr-group:last-child{display:none}
 .tr-player>.tr-group:nth-last-child(1){display:none}
 .tr-player-title{font-size:11px}
 .tr-page .tr-mushaf-caption{font-size:9px}
 .tr-follow-words{font-size:22px}
 .tr-surahs{display:none}
 .tr-original-empty{min-height:300px;padding:10px 14px}
 .tr-original-empty .tr-original-icon{font-size:55px}
 .tr-original-empty h2{font-size:19px}
}

/* Make the Quran page visible immediately on phones and tablets: the Surah selector already lives above the page. */
@media(max-width:980px){
 .tr-reader-grid .tr-reader-main{order:0;min-width:0}
 .tr-reader-grid>aside{order:1}
}
@media(max-width:780px){
 .tr-reader-grid>aside{display:none}
 .tr-player{bottom:58px}
 .tr-page{min-height:280px;height:min(57vh,490px)}
 .tr-reader-main{gap:9px}
}

.tr-noorani-scroll{display:flex;justify-content:center;min-height:300px;max-height:73vh;overflow:auto;overscroll-behavior:contain;background:#f5f7f1;padding:9px;border:1px solid #d7e6d8;border-radius:12px}
.tr-noorani-original{width:min(100%,590px);max-width:100%;margin:0 auto;flex-shrink:0;background:#fafcf9;box-shadow:0 5px 17px #124d361d;line-height:0}
.tr-noorani-original-art{display:block;width:100%;height:auto;max-width:none}
@media(max-width:600px){.tr-noorani-scroll{height:56vh;max-height:510px;min-height:300px;padding:6px}.tr-noorani-original{width:min(100%,370px)}}

/* Prevent nested Quran-player controls from expanding mobile grid past screen width. */
.tr-screen{grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
.tr-top,.tr-panel,.tr-reader-grid,.tr-reader-main,.tr-player,.tr-page,.tr-row{min-width:0;max-width:100%}
@media(max-width:980px){.tr-reader-grid,.tr-sections,.tr-adhkar-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.tr-player>.tr-row:nth-child(2){min-width:0;max-width:100%;flex-wrap:wrap}.tr-player>.tr-row:nth-child(2) .tr-group{flex-wrap:wrap;min-width:0}.tr-player>.tr-row:nth-child(2) .tr-label{min-width:0!important;max-width:100%}.tr-player select{max-width:100%}}

/* The actual 862-page Indo-Pak PDF from the Android Academy, not reflowed Arabic. */
.tr-indo-mushaf{width:100%;max-width:860px;min-width:0;margin:0 auto;display:grid;gap:8px;justify-items:center}
.tr-indo-mushaf iframe.tr-private-indo{display:block;width:min(100%,740px);height:min(73vh,830px);min-height:440px;border:1px solid #e0d8bd;border-radius:9px;background:#fff;box-shadow:0 3px 15px #173d2020}
@media(max-width:750px){.tr-indo-mushaf iframe.tr-private-indo{width:100%;height:62vh;min-height:380px}}
