/* Halaman konten publik MuslimKu */

[hidden] {
    display: none !important;
}

.library-page {
    background: var(--paper);
}

.site-nav > a[aria-current="page"] {
    color: var(--brass-light);
}

.site-nav > a[aria-current="page"]::after {
    right: 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(50px, 6.5vw, 86px) 0 clamp(44px, 5.5vw, 68px);
    background:
        radial-gradient(100% 120% at 82% 0%, rgba(28, 143, 108, 0.24) 0%, transparent 55%),
        linear-gradient(150deg, var(--ink) 0%, #08291f 62%, #0a3328 100%);
    color: var(--paper);
    border-bottom: 1px solid rgba(198, 161, 91, 0.24);
}

.page-hero h1 {
    max-width: 20ch;
    margin: 18px 0 18px;
    font-family: var(--display);
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.015em;
}

.page-hero__lede {
    max-width: 58ch;
    color: rgba(251, 247, 238, 0.72);
    font-size: clamp(0.95rem, 1.2vw, 1.04rem);
    line-height: 1.78;
}

.page-hero__meta {
    margin-top: 20px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
}

.page-hero__arabic {
    display: inline-block;
    margin-left: 0.25em;
    font-family: var(--arabic);
    font-size: 0.62em;
    line-height: 1.6;
    color: var(--brass-light);
    vertical-align: middle;
}

.page-hero--compact {
    padding-top: clamp(36px, 5vw, 60px);
    padding-bottom: clamp(34px, 4vw, 50px);
}

.page-hero--compact h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--brass-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-body {
    padding: clamp(40px, 5vw, 70px) 0 clamp(64px, 8vw, 100px);
}

.page-body--player {
    padding-bottom: clamp(80px, 10vw, 120px);
}

.page-note {
    max-width: 70ch;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.prose-note {
    max-width: 960px;
    margin: 0 auto 34px;
    padding: 20px 22px;
    border-left: 2px solid var(--brass);
    background: var(--paper-raised);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.78;
}

.prose-note--closing {
    margin-top: 36px;
    margin-bottom: 0;
}

.prose-note a {
    color: var(--emerald);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Kontrol dasar */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--paper-raised);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
}

.field input:hover,
.field select:hover {
    border-color: rgba(6, 35, 28, 0.34);
}

.field input:focus-visible,
.field select:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.field--grow {
    flex: 1 1 320px;
    max-width: 430px;
}

.btn--small {
    padding: 0.68rem 1rem;
    font-size: 0.8rem;
}

.btn--quiet {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--ink);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
    border-color: var(--jade);
    background: var(--sand);
    color: var(--ink);
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--emerald);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(14, 90, 70, 0.35);
    text-underline-offset: 4px;
    cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
    text-decoration-color: var(--emerald);
}

.link-button:disabled {
    color: var(--muted);
    cursor: not-allowed;
    text-decoration: none;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: var(--brass);
    color: var(--emerald);
}

/* Daftar surat */

.library-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.result-count {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.surah-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 17px 16px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-raised);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.surah-card a:hover,
.surah-card a:focus-visible {
    border-color: rgba(198, 161, 91, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(6, 35, 28, 0.08);
}

.surah-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 14px;
}

.surah-card__num {
    font-family: var(--display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.surah-card__arabic {
    font-family: var(--arabic);
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--emerald);
    text-align: right;
}

.surah-card__name {
    font-family: var(--display);
    font-size: 1.06rem;
    color: var(--ink);
    line-height: 1.25;
}

.surah-card__meaning {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.surah-card__meta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.surah-empty {
    padding: 30px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Pemutar murotal */

.murotal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.qari-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.qari-form .field {
    min-width: 250px;
}

.audio-credit {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.ayah-list {
    border-top: 1px solid var(--line);
}

.ayah {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0 18px;
    padding: 24px 16px 24px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    transition: background-color 0.18s ease;
}

.ayah.is-playing {
    background: rgba(198, 161, 91, 0.09);
    box-shadow: inset 2px 0 0 var(--brass);
}

.ayah__head {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ayah-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ayah__num {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--emerald);
}

.ayah__num-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ayah-medallion__petals circle,
.ayah-medallion__ring {
    fill: var(--paper-raised);
    stroke: var(--brass);
}

.ayah-medallion__petals circle {
    stroke-width: 0.9;
}

.ayah-medallion__ring {
    stroke-width: 1.15;
}

.ayah-medallion__inner {
    fill: none;
    stroke: var(--brass);
    stroke-width: 0.65;
    opacity: 0.55;
}

.ayah__num-text {
    position: relative;
    z-index: 1;
    font-family: var(--arabic);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    color: var(--emerald);
    transform: translateY(0.4px);
}

.ayah__num-text--compact {
    font-size: 0.7rem;
    letter-spacing: -0.01em;
}

.ayah.is-playing .ayah-medallion__petals circle,
.ayah.is-playing .ayah-medallion__ring {
    fill: var(--sand);
}

.ayah__play {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--emerald);
    cursor: pointer;
}

.ayah__play svg {
    width: 12px;
    height: 12px;
}

.ayah__play:hover,
.ayah__play:focus-visible {
    border-color: var(--brass);
    background: var(--sand);
}

.ayah.is-playing .ayah__play {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink);
}

.ayah__arabic {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--arabic);
    font-size: clamp(1.7rem, 3.1vw, 2.25rem);
    line-height: 2;
    text-align: right;
    color: var(--ink);
}

.ayah__translation {
    grid-column: 2;
    grid-row: 2;
    max-width: 74ch;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.76;
}

.player {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 400px) auto;
    gap: 16px;
    align-items: center;
    margin-top: 26px;
    padding: 13px 16px;
    border: 1px solid rgba(198, 161, 91, 0.34);
    border-radius: 10px;
    background: rgba(6, 35, 28, 0.97);
    color: var(--paper);
    box-shadow: 0 -12px 36px rgba(2, 15, 11, 0.24);
    backdrop-filter: blur(10px);
}

.player__now {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--paper);
    line-height: 1.45;
}

.player__hint {
    margin-top: 3px;
    color: rgba(251, 247, 238, 0.66);
    font-size: 0.68rem;
    line-height: 1.4;
}

.player audio {
    width: 100%;
    height: 36px;
}

.player__nav {
    display: flex;
    gap: 6px;
}

.player .icon-button {
    color: var(--paper);
    border-color: rgba(251, 247, 238, 0.28);
}

.player .icon-button:hover,
.player .icon-button:focus-visible {
    border-color: var(--brass);
    color: var(--brass-light);
}

/* Sholawat */

.chip-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 960px;
    margin: 0 auto 36px;
}

.chip-nav a {
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper-raised);
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.chip-nav a:hover,
.chip-nav a:focus-visible {
    border-color: var(--brass);
    color: var(--emerald);
}

.sholawat-list {
    display: grid;
    gap: 18px;
    max-width: 960px;
    margin-inline: auto;
}

.sholawat {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-raised);
    scroll-margin-top: 96px;
}

.sholawat__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.sholawat__index {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(198, 161, 91, 0.55);
    border-radius: 50%;
    color: var(--brass);
    font-family: var(--display);
    font-size: 0.8rem;
}

.sholawat h2 {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.4vw, 1.62rem);
    font-weight: 400;
    line-height: 1.2;
}

.sholawat__category {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sholawat__arabic {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--arabic);
    font-size: clamp(1.6rem, 3.3vw, 2.25rem);
    line-height: 2.1;
    text-align: right;
    color: var(--ink);
}

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

.sholawat__latin {
    color: var(--emerald);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.8;
}

.sholawat__translation {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.8;
}

.sholawat__note {
    padding: 10px 12px;
    border-left: 2px solid var(--brass);
    background: rgba(198, 161, 91, 0.07);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

/* Fikih thaharah */

.fiqh-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    margin-top: 34px;
}

.fiqh-toc {
    position: sticky;
    top: 100px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-raised);
}

.fiqh-toc__title {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.fiqh-toc ol {
    display: grid;
    gap: 2px;
}

.fiqh-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.fiqh-toc a span {
    flex: 0 0 18px;
    color: var(--brass);
    font-family: var(--display);
    font-size: 0.72rem;
}

.fiqh-toc a:hover,
.fiqh-toc a:focus-visible {
    background: var(--sand);
    color: var(--ink);
}

.chapter {
    padding-bottom: 34px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}

.chapter:last-of-type {
    border-bottom: 0;
}

.chapter__num {
    color: var(--jade);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.chapter h2 {
    margin: 8px 0 12px;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
}

.chapter__summary {
    max-width: 65ch;
    padding-left: 14px;
    border-left: 2px solid var(--brass);
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.chapter__section {
    margin-top: 26px;
}

.chapter__section h3 {
    margin-bottom: 8px;
    font-family: var(--display);
    font-size: 1.22rem;
    font-weight: 400;
    color: var(--ink);
}

.chapter__section > p {
    max-width: 72ch;
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.82;
}

.dalil {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 8px;
    background: var(--sand);
}

.dalil__label {
    color: var(--jade);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dalil blockquote {
    margin: 12px 0 0;
    padding-left: 14px;
    border-left: 2px solid var(--brass);
}

.dalil blockquote + blockquote {
    margin-top: 16px;
}

.dalil blockquote p {
    max-width: 72ch;
    color: var(--ink);
    font-size: 0.89rem;
    line-height: 1.76;
}

.dalil cite {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
}

/* Jadwal sholat */

.sahur-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 24px;
    align-items: start;
}

.panel {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-raised);
}

.panel h2 {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink);
}

.panel__lede {
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions .btn {
    flex: 1 1 auto;
}

.form-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.form-status.is-ok {
    color: var(--emerald);
}

.form-status.is-error {
    color: #963a2c;
}

.sahur-board {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 12px;
    background:
        radial-gradient(120% 100% at 88% 0%, rgba(28, 143, 108, 0.24) 0%, transparent 55%),
        linear-gradient(155deg, var(--ink) 0%, #082a21 66%, #0a3328 100%);
    color: var(--paper);
    box-shadow: 0 24px 60px rgba(6, 35, 28, 0.18);
}

.board__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.board__eyebrow {
    color: var(--brass);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.board__head h2 {
    margin-top: 5px;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.6vw, 1.85rem);
    font-weight: 400;
    line-height: 1.2;
}

.board__date {
    margin-top: 4px;
    color: rgba(251, 247, 238, 0.7);
    font-size: 0.78rem;
}

.zone-badge {
    padding: 5px 9px;
    border: 1px solid rgba(198, 161, 91, 0.5);
    border-radius: 3px;
    color: var(--brass-light);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.board__status {
    min-height: 1.5em;
    margin-top: 18px;
    color: rgba(251, 247, 238, 0.74);
    font-size: 0.8rem;
    line-height: 1.55;
}

.board__status.is-error {
    color: #f0b9ac;
}

.next-prayer {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 8px;
    background: rgba(198, 161, 91, 0.08);
}

.next-prayer__label {
    color: var(--brass);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.next-prayer__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-top: 5px;
}

.next-prayer__main h3 {
    font-family: var(--display);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 400;
    line-height: 1.1;
}

.next-prayer__time {
    color: var(--brass-light);
    font-family: var(--display);
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1;
}

.next-prayer__countdown {
    margin-top: 8px;
    color: var(--paper);
    font-family: var(--display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.next-prayer__hint {
    margin-top: 3px;
    color: rgba(251, 247, 238, 0.68);
    font-size: 0.72rem;
    line-height: 1.5;
}

.prayer-times {
    margin-top: 18px;
    border-top: 1px solid rgba(251, 247, 238, 0.12);
}

.prayer-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 2px;
    border-bottom: 1px solid rgba(251, 247, 238, 0.1);
}

.prayer-row dt {
    color: rgba(251, 247, 238, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.prayer-row dd {
    color: var(--paper);
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.1;
}

.prayer-row.is-next dt,
.prayer-row.is-next dd {
    color: var(--brass-light);
}

.prayer-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(251, 247, 238, 0.12);
}

.prayer-extra p {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.prayer-extra span {
    color: rgba(251, 247, 238, 0.62);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prayer-extra strong {
    color: var(--brass-light);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 400;
}

.prayer-meta {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.prayer-meta p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

.prayer-meta strong {
    color: var(--ink);
    font-weight: 700;
}

.sahur-notes {
    margin-top: 28px;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.note-grid h2 {
    margin-bottom: 7px;
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 400;
    color: var(--ink);
}

.note-grid p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.note-grid strong {
    color: var(--ink);
}

/* Responsif */

@media (max-width: 1080px) {
    .surah-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sahur-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .note-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fiqh-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .fiqh-toc {
        position: static;
    }

    .fiqh-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 12px;
    }

    .note-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .surah-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
    }

    .player__info {
        min-width: 0;
    }

    .player audio {
        grid-column: 1 / -1;
        order: 3;
    }

    .player__nav {
        order: 2;
    }

    .murotal-toolbar {
        align-items: stretch;
    }

    .qari-form {
        flex: 1 1 100%;
        align-items: flex-end;
    }

    .qari-form .field {
        flex: 1 1 220px;
        min-width: 0;
    }

    .murotal-toolbar > .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: clamp(2rem, 8.8vw, 2.7rem);
    }

    .page-hero__meta {
        letter-spacing: 0.12em;
    }

    .ayah {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0 12px;
        padding-right: 4px;
    }

    .ayah__num {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .ayah__num-text {
        font-size: 0.76rem;
    }

    .ayah__num-text--compact {
        font-size: 0.58rem;
    }

    .ayah__play {
        width: 28px;
        height: 28px;
    }

    .ayah__arabic {
        font-size: clamp(1.55rem, 6.8vw, 1.95rem);
    }

    .field--grow {
        max-width: none;
    }

    .library-toolbar {
        align-items: stretch;
    }

    .result-count {
        align-self: flex-start;
    }

    .sholawat__head {
        gap: 12px;
    }

    .sholawat__index {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .fiqh-toc ol {
        grid-template-columns: minmax(0, 1fr);
    }

    .chapter__section > p,
    .dalil blockquote p {
        font-size: 0.9rem;
    }

    .sahur-board {
        padding: 20px 16px;
    }

    .prayer-row dd {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .player {
        padding: 11px 12px;
    }

    .player__hint {
        display: none;
    }
}

@media (max-width: 370px) {
    .qari-form .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 400px) {
    .surah-grid {
        gap: 8px;
    }

    .surah-card a {
        padding: 14px 12px;
    }

    .surah-card__arabic {
        font-size: 1.15rem;
    }

    .surah-card__name {
        font-size: 0.98rem;
    }

    .surah-card__meaning {
        font-size: 0.72rem;
    }
}
