/* Row of reader icons (shared by all readers) */
.readers-row { margin: 25px 0 10px; text-align: center; }
.readers-row h4 { margin: 0 0 14px; color: #044770; text-transform: none; letter-spacing: normal; }
.readers-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.reader-card {
    width: 96px; text-decoration: none; text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.reader-icon {
    width: 78px; height: 78px; margin: 0 auto 6px; padding: 4px; box-sizing: border-box; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px; color: #fff; font-size: 22px; font-weight: bold; line-height: 1.3;
    font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Amiri', serif;
    background: linear-gradient(145deg, var(--c1), var(--c2));
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25), inset 0 0 0 2px rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.reader-icon.long { font-size: 18px; }                 /* long names such as احسن القواعد */
.reader-icon .inner { text-align: center; max-width: 100%; }
.reader-icon small { display: block; margin-top: 3px; font: 700 10px/1 sans-serif; letter-spacing: .6px; text-transform: uppercase; opacity: .9; }
.reader-card:hover .reader-icon, .reader-card:focus .reader-icon { transform: translateY(-4px); box-shadow: 0 7px 14px rgba(0, 0, 0, .3); }
.reader-card:active .reader-icon { transform: scale(.95); }
.reader-label { display: block; font-size: 12px; font-weight: 700; line-height: 1.25; color: #044770; }

/* the reader you are in now */
.reader-card.current { cursor: default; }
.reader-card.current .reader-icon { outline: 3px solid #f2b705; outline-offset: 2px; }
.reader-card.current .reader-label::after { content: " ●"; color: #f2b705; }

@media (max-width: 480px) {
    .readers-list { gap: 10px 6px; }
    .reader-card { width: 30%; }
}

[data-theme="dark"] .readers-row h4,
[data-theme="dark"] .reader-label { color: #e0e0e0; }